[03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]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:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:22]accept exits with 8 [03:42:22]New connection [03:42:22]New thread 3066674532 created [03:42:22]Thread 3066817892 joined [03:42:22]Waiting for new connection... [03:42:22] Sock 8.Parse request [03:42:22]Sock 8.Check first char [03:42:22]Sock 8.First char is OK [03:42:22]request: POST /json_proto HTTP/1.0 [03:42:22]Method: POST [03:42:22]URL: /json_proto [03:42:22]Method is POST - this is cgi request [03:42:22]url: /json_proto [03:42:22]query_string will be loaded in cgi processing [03:42:22]execute_cgi json_proto POST (null) [03:42:22]execute_cgi path=json_proto method=POST [03:42:22]POST find Content-Length [03:42:22]Host: 172.17.42.132:8080 [03:42:22]Content-Length: 620 [03:42:22]Content-Type: application/json [03:42:22] [03:42:22]POST finish read [03:42:22]Found Content-Length = 620 [03:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47328", "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" ] } } [03:42:22]execute_script... [03:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47328", "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" ] } } [03:42:22]POST & json_proto [03:42:22]process_json_proto [03:42:22]json parsed OK: [03:42:22]protocol is kg_v1.0 [03:42:22]action value=close_receipt [03:42:22]process_action close_receipt [03:42:22]cmd_close_receipt [03:42:22]MH_GetDate [03:42:22]Write to MH i2c: F0 00 00 2D 45 61 [03:42:22]Write i2c OK [03:42:22]MH_I2C_Read... [03:42:22]Read from MH i2c: F0 [03:42:22]MH_I2C_Read... [03:42:22]Read from MH i2c: F0 09 00 [03:42:22]MH_I2C_Read... [03:42:22]Read from MH i2c: F0 09 00 2D 45 00 A7 CD 15 67 4C DF 56 66 41 [03:42:22]GetLastDocTimeStamp 1729478867 [03:42:22]current date 1729482151 [03:42:22]FM_GetShiftState [03:42:22]SAM_PROTO_GetShiftState [03:42:22]wFMCommunicate request_size=4 [03:42:22]MH_SAM_APDU [03:42:22]CAPDU: 80 13 01 00 [03:42:22]Write to MH i2c: E2 08 00 2E 45 80 13 01 00 00 00 00 00 F0 [03:42:22]Write i2c OK [03:42:22]MH_I2C_Read... [03:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:22]Read from MH i2c: E2 [03:42:22]MH_I2C_Read... [03:42:22]Read from MH i2c: E2 0E 00 [03:42:22]MH_I2C_Read... [03:42:22]Read from MH i2c: E2 0E 00 2E 45 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 50 [03:42:22]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:42:22]wFMCommunicate OK [03:42:22]SAM_PROTO_GetShiftState done [03:42:22]FM_GetShiftState done [03:42:22]opened in 1729469755 [03:42:22]opened+sec_in_day 1729556155 [03:42:22]quantity*price = 14400 [03:42:22]sum+1 = 14401 [03:42:22]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 СНО: Общий режим Чек 15 21.10.2024 03:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63018 ФПД: 135975683170806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T034231&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63018&fm=135975683170806&tin=02508201610067®Number=0000000000091619&sum=14400 0 [03:42:24]StoreToDocumentArchive [03:42:24]shift 544 fd 63018 [03:42:24]save to /storage/0544/doc_00063018 [03:42:24]save last doc name /storage/0544/doc_00063018 to /storage/kkm_last_doc_name [03:42:24]save OK [03:42:24]Clear old archive folders... [03:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=273 [03:42:24]tlvbuf is 00EE2F60 [03:42:24]SAM_PROTO_ClearQueue [03:42:24]wFMCommunicate request_size=4 [03:42:24]MH_SAM_APDU [03:42:24]CAPDU: 80 09 00 00 [03:42:24]Write to MH i2c: E2 08 00 3B 45 80 09 00 00 00 00 00 00 F2 [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 3B 45 00 90 00 F4 [03:42:24]RAPDU: 90 00 [03:42:24]wFMCommunicate OK [03:42:24]SAM_PROTO_ClearQueue done [03:42:24]KKMCreateOFDPacket [03:42:24]OFDProtocolAddRootSTLVToBuf [03:42:24]FM_MakeSignedData [03:42:24]FM_MakeSignedData [03:42:24]SAM_PROTO_SignData [03:42:24]wFMCommunicate request_size=4 [03:42:24]MH_SAM_APDU [03:42:24]CAPDU: 80 0D 01 02 [03:42:24]Write to MH i2c: E2 08 00 3C 45 80 0D 01 02 00 00 00 00 FA [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 3C 45 00 90 00 F5 [03:42:24]RAPDU: 90 00 [03:42:24]wFMCommunicate OK [03:42:24]wFMCommunicate request_size=255 [03:42:24]MH_SAM_APDU [03:42:24]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 0F 00 00 00 F4 03 04 00 A7 CD 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [03:42:24]Write to MH i2c: E2 02 01 3D 45 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 0F 00 00 00 F4 03 04 00 A7 CD 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 86 [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 3D 45 00 90 00 F6 [03:42:24]RAPDU: 90 00 [03:42:24]wFMCommunicate OK [03:42:24]wFMCommunicate request_size=32 [03:42:24]MH_SAM_APDU [03:42:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F6 00 00 35 04 06 00 7B AB 4E 4B 21 F6 [03:42:24]Write to MH i2c: E2 23 00 3E 45 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F6 00 00 35 04 06 00 7B AB 4E 4B 21 F6 00 00 56 [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 03 00 3E 45 00 90 00 F7 [03:42:24]RAPDU: 90 00 [03:42:24]wFMCommunicate OK [03:42:24]wFMCommunicate request_size=4 [03:42:24]MH_SAM_APDU [03:42:24]CAPDU: 80 0D 03 02 [03:42:24]Write to MH i2c: E2 08 00 3F 45 80 0D 03 02 00 00 00 00 FF [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 0B 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 0B 00 3F 45 00 6E A4 B7 85 BA D9 BF 1E 90 00 BE [03:42:24]RAPDU: 6E A4 B7 85 BA D9 BF 1E 90 00 [03:42:24]wFMCommunicate OK [03:42:24]SAM_PROTO_SignData done [03:42:24]FM_MakeSignedData done [03:42:24]CreateOFDProtocolMessage [03:42:24]wFMCommunicate request_size=4 [03:42:24]MH_SAM_APDU [03:42:24]CAPDU: 80 11 00 00 [03:42:24]Write to MH i2c: E2 08 00 40 45 80 11 00 00 00 00 00 00 FF [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:24]Read from MH i2c: E2 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 17 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: E2 17 00 40 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [03:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:42:24]wFMCommunicate OK [03:42:24]CreateOFDProtocolMessage done [03:42:24]OFDSenderStorePacket 63018 [03:42:24]StoreOFDPacket docnum=63018 [03:42:24]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 7C 63 1D 01 A9 FD 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 0F 00 00 00 F4 03 04 00 A7 CD 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F6 00 00 35 04 06 00 7B AB 4E 4B 21 F6 6E A4 B7 85 BA D9 BF 1E [03:42:24]CheckFolder [03:42:24]dirname=/storage/ofd_packets [03:42:24]CheckFolder done [03:42:24]ProducePacketName [03:42:24]name=ofd_packets/00063018 [03:42:24]NVStorageSaveData ofd_packets/00063018 [03:42:24]File name is /storage/ofd_packets/00063018 [03:42:24]Write 323 bytes [03:42:24]NVStorageSaveData done [03:42:24]OFDSenderStorePacket done [03:42:24]KKMCreateOFDPacket done [03:42:24]NVStorageSaveData kkm_last_timestamp [03:42:24]File name is /storage/kkm_last_timestamp [03:42:24]Write 4 bytes [03:42:24]NVStorageSaveData done [03:42:24]OFD Sender: Processing packet 63018 [packets to send 232, broken 231] [03:42:24]ProducePacketName [03:42:24]name=ofd_packets/00063018 [03:42:24]ExternCall_PrintAddStr [03:42:24]wPrintStart [03:42:24]Write to MH i2c: 01 00 00 41 45 86 [03:42:24]OFD Sender: To server: pG, [03:42:24]CommunicateWithHost lk.salyk.kg:30040 [03:42:24]ConnectInit lk.salyk.kg [03:42:24]Write i2c OK [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: 01 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: 01 07 00 [03:42:24]MH_I2C_Read... [03:42:24]Read from MH i2c: 01 07 00 41 45 00 00 00 00 00 FF 0F 9B [03:42:24]RasterBufferAndPrint [03:42:24]line Счет N : (3)47328 [03:42:24]line ИНН: 02508201610067 [03:42:24]line Контрольно-Кассовый Чек [03:42:24]line ПРОДАЖА [03:42:24]line Товар: 48743570 [03:42:24]line Сигареты Winston XStyle Blue [03:42:24]line 1.000 * 144.00 [03:42:24]line = 144.00 [03:42:24]line НДС 12% НСП 1% [03:42:24]line > о реализуемом товаре [03:42:24]line ИТОГО: 144.00 [03:42:24]line НСП 1% : 1.27 [03:42:24]line НДС 12% : 15.29 [03:42:24]line Наличными: 144.00 [03:42:24]line Безнал.: 0.00 [03:42:24]line Место: АЗС № 86 "Партнер Нефть" [03:42:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:42:24]line СНО: Общий режим [03:42:24]line Чек 15 21.10.2024 03:42 [03:42:24]line Смена: 544 ФФД: 1.0 [03:42:24]line ЗНМ: 0300000154 [03:42:24]line РНМ: 0000000000091619 [03:42:24]line Версия ККМ: 001 [03:42:24]line ФМ: 0000000000874676 [03:42:24]line ФД: 63018 [03:42:24]line ФПД: 135975683170806 [03:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T034231&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63018&fm=135975683170806&tin=02508201610067®Number=0000000000091619&sum=14400 [03:42:24]line 0 [03:42:24]Connected sock=10 [03:42: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 25 01 00 00 7C 63 1D 01 A9 FD 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 0F 00 00 00 F4 03 04 00 A7 CD 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F6 00 00 35 04 06 00 7B AB 4E 4B 21 F6 6E A4 B7 85 BA D9 BF 1E [03:42:24]written 0, free lines is 4095 [03:42:25]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 C1 76 47 00 70 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 2A F6 00 00 F4 03 04 00 A6 77 15 67 B6 04 01 00 00 BB 95 15 E1 0F 0C E8 40 [03:42:25]CommunicateWithHost err = 0 [03:42:25]CheckOFDResponse [03:42:25]1017 (14) - 77093643461234 [03:42:25]1041 (16) - 0000000000874676 [03:42:25]1040 (4) - 63018 [03:42:25]1012 (4) - 20.10.2024 21:35 [03:42:25]1206 (1) - 0 [03:42:25]OFD Sender: Remove packet 63018 [03:42:25]ProducePacketName [03:42:25]name=ofd_packets/00063018 [03:42:25]NVStorageDeleteData [03:42:25]Write to MH i2c: 01 00 00 69 45 AE [03:42:25]Write i2c OK [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: 01 [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: 01 07 00 [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: 01 07 00 69 45 00 00 00 00 00 05 0D C7 [03:42:25]RasterBufferAndPrint [03:42:25]line [03:42:25]line [03:42:25]line [03:42:25]line [03:42:25]line [03:42:25]written 0, free lines is 3339 [03:42:25]MH_Cut [03:42:25]Write to MH i2c: D1 01 00 70 45 01 87 [03:42:25]Write i2c OK [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: D1 [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: D1 01 00 [03:42:25]MH_I2C_Read... [03:42:25]Read from MH i2c: D1 01 00 70 45 00 86 [03:42:25]Write to MH i2c: 01 00 00 71 45 B6 [03:42:25]Write i2c OK [03:42:25]MH_I2C_Read... [03:42:25]OFD Sender: No OFD packet to send [03:42:26]*** Cut start [03:42:26]*** Partial cut [03:42:26]*** CUTSNS_PIN = 1 [03:42:26]*** CUTSNS_PIN = 0 [03:42:26]*** Brake cut motor [03:42:26]Read from MH i2c: 01 [03:42:26]MH_I2C_Read... [03:42:26]*** Stop cut motor [03:42:26]*** Cut end [03:42:26]Read from MH i2c: 01 07 00 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: 01 07 00 71 45 00 00 00 00 00 FF 0F CB [03:42:26]process_action close_receipt done [03:42:26]requested_data is exist [03:42:26]produce_requested_data [03:42:26]requested_item fm.sn is exist - process it [03:42:26]wFMCommunicate request_size=4 [03:42:26]MH_SAM_APDU [03:42:26]CAPDU: 80 11 00 00 [03:42:26]Write to MH i2c: E2 08 00 72 45 80 11 00 00 00 00 00 00 31 [03:42:26]Write i2c OK [03:42:26]MH_I2C_Read... [03:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:26]Read from MH i2c: E2 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 17 00 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 17 00 72 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8A [03:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:42:26]wFMCommunicate OK [03:42:26]requested_item fd.num is exist - process it [03:42:26]SAM_PROTO_GetFieldsCounters [03:42:26]wFMCommunicate request_size=4 [03:42:26]MH_SAM_APDU [03:42:26]CAPDU: 80 13 00 00 [03:42:26]Write to MH i2c: E2 08 00 73 45 80 13 00 00 00 00 00 00 34 [03:42:26]Write i2c OK [03:42:26]MH_I2C_Read... [03:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:42:26]Read from MH i2c: E2 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 62 00 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 62 00 73 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2A F6 00 00 0E 04 04 00 20 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 CB [03:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2A F6 00 00 0E 04 04 00 20 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:42:26]wFMCommunicate OK [03:42:26]SAM_PROTO_GetFieldsCounters done [03:42:26]requested_item shift.num is exist - process it [03:42:26]requested_item shift.opened is exist - process it [03:42:26]req_shift_opened [03:42:26]FM_GetShiftState [03:42:26]SAM_PROTO_GetShiftState [03:42:26]wFMCommunicate request_size=4 [03:42:26]MH_SAM_APDU [03:42:26]CAPDU: 80 13 01 00 [03:42:26]Write to MH i2c: E2 08 00 74 45 80 13 01 00 00 00 00 00 36 [03:42:26]Write i2c OK [03:42:26]MH_I2C_Read... [03:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:26]Read from MH i2c: E2 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 0E 00 [03:42:26]MH_I2C_Read... [03:42:26]Read from MH i2c: E2 0E 00 74 45 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 96 [03:42:26]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:42:26]wFMCommunicate OK [03:42:26]SAM_PROTO_GetShiftState done [03:42:26]FM_GetShiftState done [03:42:26]req_shift_opened done [03:42:26]requested_item shift.open_date is exist - process it [03:42:26]req_shift_open_date [03:42:26]req_shift_open_date done [03:42:26]produce_requested_data done [03:42:26]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63018,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [03:42:26]process_action_free close_receipt [03:42:26]json_value_free [03:42:26]json_value_free done [03:42:26]process_json_proto returns [03:42:26]Send response to host [03:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63018,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [03:42:26]free response buf [03:42:26]execute_script done [03:42:26]execute_script returns [03:42:26]free content buf [03:42:26]Sock 8.Close socket [03:42:26]Sock 8.Thread stoped [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45: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:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:40]accept exits with 9 [03:49:40]New connection [03:49:40]New thread 3066817892 created [03:49:40]Thread 3066674532 joined [03:49:40]Waiting for new connection... [03:49:40] Sock 9.Parse request [03:49:40]Sock 9.Check first char [03:49:40]Sock 9.First char is OK [03:49:40]request: POST /json_proto HTTP/1.0 [03:49:40]Method: POST [03:49:40]URL: /json_proto [03:49:40]Method is POST - this is cgi request [03:49:40]url: /json_proto [03:49:40]query_string will be loaded in cgi processing [03:49:40]execute_cgi json_proto POST (null) [03:49:40]execute_cgi path=json_proto method=POST [03:49:40]POST find Content-Length [03:49:40]Host: 172.17.42.132:8080 [03:49:40]Content-Length: 921 [03:49:40]Content-Type: application/json [03:49:40] [03:49:40]POST finish read [03:49:40]Found Content-Length = 921 [03:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47329", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:40]execute_script... [03:49: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)47329", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:40]POST & json_proto [03:49:40]process_json_proto [03:49:40]json parsed OK: [03:49:40]protocol is kg_v1.0 [03:49:40]action value=close_receipt [03:49:40]process_action close_receipt [03:49:40]cmd_close_receipt [03:49:40]MH_GetDate [03:49:40]Write to MH i2c: F0 00 00 75 45 A9 [03:49:40]Write i2c OK [03:49:40]MH_I2C_Read... [03:49:40]Read from MH i2c: F0 [03:49:40]MH_I2C_Read... [03:49:40]Read from MH i2c: F0 09 00 [03:49:40]MH_I2C_Read... [03:49:40]Read from MH i2c: F0 09 00 75 45 00 5D CF 15 67 4C DF 56 66 41 [03:49:40]GetLastDocTimeStamp 1729482151 [03:49:40]current date 1729482589 [03:49:40]FM_GetShiftState [03:49:40]SAM_PROTO_GetShiftState [03:49:40]wFMCommunicate request_size=4 [03:49:40]MH_SAM_APDU [03:49:40]CAPDU: 80 13 01 00 [03:49:40]Write to MH i2c: E2 08 00 76 45 80 13 01 00 00 00 00 00 38 [03:49:40]Write i2c OK [03:49:40]MH_I2C_Read... [03:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:40]Read from MH i2c: E2 [03:49:40]MH_I2C_Read... [03:49:40]Read from MH i2c: E2 0E 00 [03:49:40]MH_I2C_Read... [03:49:40]Read from MH i2c: E2 0E 00 76 45 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 98 [03:49:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:49:40]wFMCommunicate OK [03:49:40]SAM_PROTO_GetShiftState done [03:49:40]FM_GetShiftState done [03:49:40]opened in 1729469755 [03:49:40]opened+sec_in_day 1729556155 [03:49:40]quantity*price = 17000 [03:49:40]sum+1 = 17001 [03:49:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 21.10.2024 03:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63019 ФПД: 176758787093057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T034949&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63019&fm=176758787093057&tin=02508201610067®Number=0000000000091619&sum=18000 0 [03:49:41]StoreToDocumentArchive [03:49:41]shift 544 fd 63019 [03:49:41]save to /storage/0544/doc_00063019 [03:49:41]save last doc name /storage/0544/doc_00063019 to /storage/kkm_last_doc_name [03:49:41]save OK [03:49:41]Clear old archive folders... [03:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=391 [03:49:41]tlvbuf is 00FAAF70 [03:49:41]SAM_PROTO_ClearQueue [03:49:41]wFMCommunicate request_size=4 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 09 00 00 [03:49:41]Write to MH i2c: E2 08 00 83 45 80 09 00 00 00 00 00 00 3A [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 83 45 00 90 00 3C [03:49:41]RAPDU: 90 00 [03:49:41]wFMCommunicate OK [03:49:41]SAM_PROTO_ClearQueue done [03:49:41]KKMCreateOFDPacket [03:49:41]OFDProtocolAddRootSTLVToBuf [03:49:41]FM_MakeSignedData [03:49:41]FM_MakeSignedData [03:49:41]SAM_PROTO_SignData [03:49:41]wFMCommunicate request_size=4 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 0D 01 02 [03:49:41]Write to MH i2c: E2 08 00 84 45 80 0D 01 02 00 00 00 00 42 [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 84 45 00 90 00 3D [03:49:41]RAPDU: 90 00 [03:49:41]wFMCommunicate OK [03:49:41]wFMCommunicate request_size=255 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [03:49:41]Write to MH i2c: E2 02 01 85 45 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 A9 [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]OFD Sender: No OFD packet to send [03:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 85 45 00 90 00 3E [03:49:41]RAPDU: 90 00 [03:49:41]wFMCommunicate OK [03:49:41]wFMCommunicate request_size=150 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D CF 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F6 00 00 35 04 06 00 A0 C2 DC B7 32 41 [03:49:41]Write to MH i2c: E2 99 00 86 45 80 0D 02 02 91 00 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D CF 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F6 00 00 35 04 06 00 A0 C2 DC B7 32 41 00 00 B3 [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 03 00 86 45 00 90 00 3F [03:49:41]RAPDU: 90 00 [03:49:41]wFMCommunicate OK [03:49:41]wFMCommunicate request_size=4 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 0D 03 02 [03:49:41]Write to MH i2c: E2 08 00 87 45 80 0D 03 02 00 00 00 00 47 [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 0B 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 0B 00 87 45 00 FC F8 DA 29 C5 80 6D DE 90 00 CF [03:49:41]RAPDU: FC F8 DA 29 C5 80 6D DE 90 00 [03:49:41]wFMCommunicate OK [03:49:41]SAM_PROTO_SignData done [03:49:41]FM_MakeSignedData done [03:49:41]CreateOFDProtocolMessage [03:49:41]wFMCommunicate request_size=4 [03:49:41]MH_SAM_APDU [03:49:41]CAPDU: 80 11 00 00 [03:49:41]Write to MH i2c: E2 08 00 88 45 80 11 00 00 00 00 00 00 47 [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:41]Read from MH i2c: E2 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 17 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: E2 17 00 88 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A0 [03:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:49:41]wFMCommunicate OK [03:49:41]CreateOFDProtocolMessage done [03:49:41]OFDSenderStorePacket 63019 [03:49:41]StoreOFDPacket docnum=63019 [03:49: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 9B 01 00 00 8C 14 93 01 34 F4 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D CF 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F6 00 00 35 04 06 00 A0 C2 DC B7 32 41 FC F8 DA 29 C5 80 6D DE [03:49:41]CheckFolder [03:49:41]dirname=/storage/ofd_packets [03:49:41]CheckFolder done [03:49:41]ProducePacketName [03:49:41]name=ofd_packets/00063019 [03:49:41]NVStorageSaveData ofd_packets/00063019 [03:49:41]File name is /storage/ofd_packets/00063019 [03:49:41]Write 441 bytes [03:49:41]NVStorageSaveData done [03:49:41]OFDSenderStorePacket done [03:49:41]KKMCreateOFDPacket done [03:49:41]NVStorageSaveData kkm_last_timestamp [03:49:41]File name is /storage/kkm_last_timestamp [03:49:41]Write 4 bytes [03:49:41]NVStorageSaveData done [03:49:41]ExternCall_PrintAddStr [03:49:41]wPrintStart [03:49:41]Write to MH i2c: 01 00 00 89 45 CE [03:49:41]Write i2c OK [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: 01 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: 01 07 00 [03:49:41]MH_I2C_Read... [03:49:41]Read from MH i2c: 01 07 00 89 45 00 00 00 00 00 FF 0F E3 [03:49:41]RasterBufferAndPrint [03:49:41]line Счет N : (3)47329 [03:49:41]line ИНН: 02508201610067 [03:49:41]line Контрольно-Кассовый Чек [03:49:41]line ПРОДАЖА [03:49:42]line Товар: 5449000000996 [03:49:42]line Напиток Кока-Кола 0,33л [03:49:42]line 2.000 * 85.00 [03:49:42]line = 170.00 [03:49:42]line НДС 12% НСП 1% [03:49:42]line > о реализуемом товаре [03:49:42]line Товар: 46226617 [03:49:42]line Mentos ПВ Нежная Мята 6*100*2г [03:49:42]line 1.000 * 10.00 [03:49:42]line = 10.00 [03:49:42]line НДС 12% НСП 1% [03:49:42]line > о реализуемом товаре [03:49:42]line ИТОГО: 180.00 [03:49:42]line НСП 1% : 1.59 [03:49:42]line НДС 12% : 19.11 [03:49:42]line Наличными: 180.00 [03:49:42]line Безнал.: 0.00 [03:49:42]line Место: АЗС № 86 "Партнер Нефть" [03:49:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:49:42]line СНО: Общий режим [03:49:42]line Чек 16 21.10.2024 03:49 [03:49:42]line Смена: 544 ФФД: 1.0 [03:49:42]line ЗНМ: 0300000154 [03:49:42]line РНМ: 0000000000091619 [03:49:42]line Версия ККМ: 001 [03:49:42]line ФМ: 0000000000874676 [03:49:42]line ФД: 63019 [03:49:42]line ФПД: 176758787093057 [03:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T034949&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63019&fm=176758787093057&tin=02508201610067®Number=0000000000091619&sum=18000 [03:49:42]OFD Sender: Processing packet 63019 [packets to send 232, broken 231] [03:49:42]ProducePacketName [03:49:42]name=ofd_packets/00063019 [03:49:42]OFD Sender: To server: pG, [03:49:42]CommunicateWithHost lk.salyk.kg:30040 [03:49:42]ConnectInit lk.salyk.kg [03:49:42]line 0 [03:49:42]written 0, free lines is 4095 [03:49:42]Connected sock=11 [03:49: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 9B 01 00 00 8C 14 93 01 34 F4 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D CF 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F6 00 00 35 04 06 00 A0 C2 DC B7 32 41 FC F8 DA 29 C5 80 6D DE [03:49: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 52 FB 47 00 41 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F6 00 00 F4 03 04 00 5B 79 15 67 B6 04 01 00 00 AF 96 0E 90 67 CE 8E E4 [03:49:42]CommunicateWithHost err = 0 [03:49:42]CheckOFDResponse [03:49:42]1017 (14) - 77093643461234 [03:49:42]1041 (16) - 0000000000874676 [03:49:42]1040 (4) - 63019 [03:49:42]1012 (4) - 20.10.2024 21:42 [03:49:42]1206 (1) - 0 [03:49:42]OFD Sender: Remove packet 63019 [03:49:42]ProducePacketName [03:49:42]name=ofd_packets/00063019 [03:49:42]NVStorageDeleteData [03:49:42]Write to MH i2c: 01 00 00 B8 45 FD [03:49:42]Write i2c OK [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: 01 [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: 01 07 00 [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: 01 07 00 B8 45 00 00 00 00 00 B3 0C C3 [03:49:42]RasterBufferAndPrint [03:49:42]line [03:49:42]line [03:49:42]line [03:49:42]line [03:49:42]line [03:49:42]written 0, free lines is 3258 [03:49:42]MH_Cut [03:49:42]Write to MH i2c: D1 01 00 BF 45 01 D6 [03:49:42]Write i2c OK [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: D1 [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: D1 01 00 [03:49:42]MH_I2C_Read... [03:49:42]Read from MH i2c: D1 01 00 BF 45 00 D5 [03:49:42]Write to MH i2c: 01 00 00 C0 45 05 [03:49:42]Write i2c OK [03:49:42]MH_I2C_Read... [03:49:43]OFD Sender: No OFD packet to send [03:49:43]*** Cut start [03:49:43]*** Partial cut [03:49:43]*** CUTSNS_PIN = 1 [03:49:43]*** CUTSNS_PIN = 0 [03:49:43]*** Brake cut motor [03:49:44]Read from MH i2c: 01 [03:49:44]MH_I2C_Read... [03:49:44]*** Stop cut motor [03:49:44]*** Cut end [03:49:44]Read from MH i2c: 01 07 00 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: 01 07 00 C0 45 00 00 00 00 00 FF 0F 1A [03:49:44]process_action close_receipt done [03:49:44]requested_data is exist [03:49:44]produce_requested_data [03:49:44]requested_item fm.sn is exist - process it [03:49:44]wFMCommunicate request_size=4 [03:49:44]MH_SAM_APDU [03:49:44]CAPDU: 80 11 00 00 [03:49:44]Write to MH i2c: E2 08 00 C1 45 80 11 00 00 00 00 00 00 80 [03:49:44]Write i2c OK [03:49:44]MH_I2C_Read... [03:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:44]Read from MH i2c: E2 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 17 00 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 17 00 C1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D9 [03:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:49:44]wFMCommunicate OK [03:49:44]requested_item fd.num is exist - process it [03:49:44]SAM_PROTO_GetFieldsCounters [03:49:44]wFMCommunicate request_size=4 [03:49:44]MH_SAM_APDU [03:49:44]CAPDU: 80 13 00 00 [03:49:44]Write to MH i2c: E2 08 00 C2 45 80 13 00 00 00 00 00 00 83 [03:49:44]Write i2c OK [03:49:44]MH_I2C_Read... [03:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:44]Read from MH i2c: E2 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 62 00 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 62 00 C2 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2B F6 00 00 0E 04 04 00 20 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 1E [03:49: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 2B F6 00 00 0E 04 04 00 20 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 [03:49:44]wFMCommunicate OK [03:49:44]SAM_PROTO_GetFieldsCounters done [03:49:44]requested_item shift.num is exist - process it [03:49:44]requested_item shift.opened is exist - process it [03:49:44]req_shift_opened [03:49:44]FM_GetShiftState [03:49:44]SAM_PROTO_GetShiftState [03:49:44]wFMCommunicate request_size=4 [03:49:44]MH_SAM_APDU [03:49:44]CAPDU: 80 13 01 00 [03:49:44]Write to MH i2c: E2 08 00 C3 45 80 13 01 00 00 00 00 00 85 [03:49:44]Write i2c OK [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 [03:49:44]MH_I2C_Read... [03:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:44]Read from MH i2c: E2 0E 00 [03:49:44]MH_I2C_Read... [03:49:44]Read from MH i2c: E2 0E 00 C3 45 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E5 [03:49:44]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:49:44]wFMCommunicate OK [03:49:44]SAM_PROTO_GetShiftState done [03:49:44]FM_GetShiftState done [03:49:44]req_shift_opened done [03:49:44]requested_item shift.open_date is exist - process it [03:49:44]req_shift_open_date [03:49:44]req_shift_open_date done [03:49:44]produce_requested_data done [03:49:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63019,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [03:49:44]process_action_free close_receipt [03:49:44]json_value_free [03:49:44]json_value_free done [03:49:44]process_json_proto returns [03:49:44]Send response to host [03:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63019,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [03:49:44]free response buf [03:49:44]execute_script done [03:49:44]execute_script returns [03:49:44]free content buf [03:49:44]Sock 9.Close socket [03:49:44]Sock 9.Thread stoped [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:05]accept exits with 8 [03:55:05]New connection [03:55:05]New thread 3066674532 created [03:55:05]Thread 3066817892 joined [03:55:05]Waiting for new connection... [03:55:05] Sock 8.Parse request [03:55:05]Sock 8.Check first char [03:55:05]Sock 8.First char is OK [03:55:05]request: POST /json_proto HTTP/1.0 [03:55:05]Method: POST [03:55:05]URL: /json_proto [03:55:05]Method is POST - this is cgi request [03:55:05]url: /json_proto [03:55:05]query_string will be loaded in cgi processing [03:55:05]execute_cgi json_proto POST (null) [03:55:05]execute_cgi path=json_proto method=POST [03:55:05]POST find Content-Length [03:55:05]Host: 172.17.42.132:8080 [03:55:05]Content-Length: 629 [03:55:05]Content-Type: application/json [03:55:05] [03:55:05]POST finish read [03:55:05]Found Content-Length = 629 [03:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47330", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:05]execute_script... [03:55: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)47330", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:05]POST & json_proto [03:55:05]process_json_proto [03:55:05]json parsed OK: [03:55:05]protocol is kg_v1.0 [03:55:05]action value=close_receipt [03:55:05]process_action close_receipt [03:55:05]cmd_close_receipt [03:55:05]MH_GetDate [03:55:05]Write to MH i2c: F0 00 00 C4 45 F8 [03:55:05]Write i2c OK [03:55:05]MH_I2C_Read... [03:55:05]Read from MH i2c: F0 [03:55:05]MH_I2C_Read... [03:55:05]Read from MH i2c: F0 09 00 [03:55:05]MH_I2C_Read... [03:55:05]Read from MH i2c: F0 09 00 C4 45 00 A2 D0 15 67 4C DF 56 66 D6 [03:55:05]GetLastDocTimeStamp 1729482589 [03:55:05]current date 1729482914 [03:55:05]FM_GetShiftState [03:55:05]SAM_PROTO_GetShiftState [03:55:05]wFMCommunicate request_size=4 [03:55:05]MH_SAM_APDU [03:55:05]CAPDU: 80 13 01 00 [03:55:05]Write to MH i2c: E2 08 00 C5 45 80 13 01 00 00 00 00 00 87 [03:55:05]Write i2c OK [03:55:05]MH_I2C_Read... [03:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:05]Read from MH i2c: E2 [03:55:05]MH_I2C_Read... [03:55:05]Read from MH i2c: E2 0E 00 [03:55:05]MH_I2C_Read... [03:55:05]Read from MH i2c: E2 0E 00 C5 45 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E7 [03:55:05]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:55:05]wFMCommunicate OK [03:55:05]SAM_PROTO_GetShiftState done [03:55:05]FM_GetShiftState done [03:55:05]opened in 1729469755 [03:55:05]opened+sec_in_day 1729556155 [03:55:05]quantity*price = 30000 [03:55:05]sum+1 = 30001 [03:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 21.10.2024 03:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63020 ФПД: 143551382168857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035514&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63020&fm=143551382168857&tin=02508201610067®Number=0000000000091619&sum=30000 0 [03:55:07]StoreToDocumentArchive [03:55:07]shift 544 fd 63020 [03:55:07]save to /storage/0544/doc_00063020 [03:55:07]save last doc name /storage/0544/doc_00063020 to /storage/kkm_last_doc_name [03:55:07]save OK [03:55:07]Clear old archive folders... [03:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=270 [03:55:07]tlvbuf is 00E73780 [03:55:07]SAM_PROTO_ClearQueue [03:55:07]wFMCommunicate request_size=4 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 09 00 00 [03:55:07]Write to MH i2c: E2 08 00 D2 45 80 09 00 00 00 00 00 00 89 [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 D2 45 00 90 00 8B [03:55:07]RAPDU: 90 00 [03:55:07]wFMCommunicate OK [03:55:07]SAM_PROTO_ClearQueue done [03:55:07]KKMCreateOFDPacket [03:55:07]OFDProtocolAddRootSTLVToBuf [03:55:07]FM_MakeSignedData [03:55:07]FM_MakeSignedData [03:55:07]SAM_PROTO_SignData [03:55:07]wFMCommunicate request_size=4 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 0D 01 02 [03:55:07]Write to MH i2c: E2 08 00 D3 45 80 0D 01 02 00 00 00 00 91 [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 D3 45 00 90 00 8C [03:55:07]RAPDU: 90 00 [03:55:07]wFMCommunicate OK [03:55:07]wFMCommunicate request_size=255 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A2 D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [03:55:07]Write to MH i2c: E2 02 01 D4 45 80 0D 02 02 FA 00 03 00 0E 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A2 D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 17 [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 D4 45 00 90 00 8D [03:55:07]RAPDU: 90 00 [03:55:07]wFMCommunicate OK [03:55:07]wFMCommunicate request_size=29 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 0D 02 02 18 38 37 34 36 37 36 10 04 04 00 2C F6 00 00 35 04 06 00 82 8F 29 24 25 19 [03:55:07]Write to MH i2c: E2 20 00 D5 45 80 0D 02 02 18 00 38 37 34 36 37 36 10 04 04 00 2C F6 00 00 35 04 06 00 82 8F 29 24 25 19 00 00 1F [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 03 00 D5 45 00 90 00 8E [03:55:07]RAPDU: 90 00 [03:55:07]wFMCommunicate OK [03:55:07]wFMCommunicate request_size=4 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 0D 03 02 [03:55:07]Write to MH i2c: E2 08 00 D6 45 80 0D 03 02 00 00 00 00 96 [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 0B 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 0B 00 D6 45 00 83 C3 28 79 86 8C 3C F9 90 00 C5 [03:55:07]RAPDU: 83 C3 28 79 86 8C 3C F9 90 00 [03:55:07]wFMCommunicate OK [03:55:07]SAM_PROTO_SignData done [03:55:07]FM_MakeSignedData done [03:55:07]CreateOFDProtocolMessage [03:55:07]wFMCommunicate request_size=4 [03:55:07]MH_SAM_APDU [03:55:07]CAPDU: 80 11 00 00 [03:55:07]Write to MH i2c: E2 08 00 D7 45 80 11 00 00 00 00 00 00 96 [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:07]Read from MH i2c: E2 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 17 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: E2 17 00 D7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EF [03:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:55:07]wFMCommunicate OK [03:55:07]CreateOFDProtocolMessage done [03:55:07]OFDSenderStorePacket 63020 [03:55:07]StoreOFDPacket docnum=63020 [03:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 22 01 00 00 12 F9 1A 01 FC CA 5A 03 01 00 03 00 0E 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A2 D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F6 00 00 35 04 06 00 82 8F 29 24 25 19 83 C3 28 79 86 8C 3C F9 [03:55:07]CheckFolder [03:55:07]dirname=/storage/ofd_packets [03:55:07]CheckFolder done [03:55:07]ProducePacketName [03:55:07]name=ofd_packets/00063020 [03:55:07]NVStorageSaveData ofd_packets/00063020 [03:55:07]File name is /storage/ofd_packets/00063020 [03:55:07]Write 320 bytes [03:55:07]NVStorageSaveData done [03:55:07]OFDSenderStorePacket done [03:55:07]KKMCreateOFDPacket done [03:55:07]NVStorageSaveData kkm_last_timestamp [03:55:07]File name is /storage/kkm_last_timestamp [03:55:07]Write 4 bytes [03:55:07]NVStorageSaveData done [03:55:07]ExternCall_PrintAddStr [03:55:07]wPrintStart [03:55:07]Write to MH i2c: 01 00 00 D8 45 1D [03:55:07]Write i2c OK [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: 01 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: 01 07 00 [03:55:07]MH_I2C_Read... [03:55:07]Read from MH i2c: 01 07 00 D8 45 00 00 00 00 00 FF 0F 32 [03:55:07]RasterBufferAndPrint [03:55:07]line Счет N : (3)47330 [03:55:07]line ИНН: 02508201610067 [03:55:07]line Контрольно-Кассовый Чек [03:55:07]line ПРОДАЖА [03:55:07]line Товар: 4700000480814 [03:55:07]line Пиво Живое 0,5 ст [03:55:07]line 3.000 * 100.00 [03:55:07]line = 300.00 [03:55:07]line НДС 12% НСП 1% [03:55:07]line > о реализуемом товаре [03:55:07]line ИТОГО: 300.00 [03:55:07]line НСП 1% : 2.65 [03:55:07]line НДС 12% : 31.86 [03:55:07]line Наличными: 300.00 [03:55:07]line Безнал.: 0.00 [03:55:07]line Место: АЗС № 86 "Партнер Нефть" [03:55:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:55:07]line СНО: Общий режим [03:55:07]line Чек 17 21.10.2024 03:55 [03:55:07]line Смена: 544 ФФД: 1.0 [03:55:07]line ЗНМ: 0300000154 [03:55:07]line РНМ: 0000000000091619 [03:55:07]line Версия ККМ: 001 [03:55:07]line ФМ: 0000000000874676 [03:55:07]line ФД: 63020 [03:55:07]line ФПД: 143551382168857 [03:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035514&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63020&fm=143551382168857&tin=02508201610067®Number=0000000000091619&sum=30000 [03:55:07]OFD Sender: Processing packet 63020 [packets to send 232, broken 231] [03:55:07]ProducePacketName [03:55:07]name=ofd_packets/00063020 [03:55:07]OFD Sender: To server: pG, [03:55:07]CommunicateWithHost lk.salyk.kg:30040 [03:55:07]ConnectInit lk.salyk.kg [03:55:07]line 0 [03:55:07]written 0, free lines is 4095 [03:55:08]Connected sock=10 [03:55: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 22 01 00 00 12 F9 1A 01 FC CA 5A 03 01 00 03 00 0E 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A2 D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F6 00 00 35 04 06 00 82 8F 29 24 25 19 83 C3 28 79 86 8C 3C F9 [03:55:08]Write to MH i2c: 01 00 00 00 46 46 [03:55:08]Write i2c OK [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: 01 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: 01 07 00 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: 01 07 00 00 46 00 00 00 00 00 15 0D 6F [03:55:08]RasterBufferAndPrint [03:55:08]line [03:55:08]line [03:55:08]line [03:55:08]line [03:55:08]line [03:55:08]written 0, free lines is 3356 [03:55:08]MH_Cut [03:55:08]Write to MH i2c: D1 01 00 07 46 01 1F [03:55:08]Write i2c OK [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: D1 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: D1 01 00 [03:55:08]MH_I2C_Read... [03:55:08]Read from MH i2c: D1 01 00 07 46 00 1E [03:55:08]Write to MH i2c: 01 00 00 08 46 4E [03:55:08]Write i2c OK [03:55:08]MH_I2C_Read... [03:55: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 29 EA 47 00 80 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 2C F6 00 00 F4 03 04 00 A1 7A 15 67 B6 04 01 00 00 F2 7C A9 0E F1 B0 4D F1 [03:55:08]CommunicateWithHost err = 0 [03:55:08]CheckOFDResponse [03:55:08]1017 (14) - 77093643461234 [03:55:08]1041 (16) - 0000000000874676 [03:55:08]1040 (4) - 63020 [03:55:08]1012 (4) - 20.10.2024 21:48 [03:55:08]1206 (1) - 0 [03:55:08]OFD Sender: Remove packet 63020 [03:55:08]ProducePacketName [03:55:08]name=ofd_packets/00063020 [03:55:08]NVStorageDeleteData [03:55:08]OFD Sender: No OFD packet to send [03:55:09]*** Cut start [03:55:09]*** Partial cut [03:55:09]*** CUTSNS_PIN = 1 [03:55:09]*** CUTSNS_PIN = 0 [03:55:09]*** Brake cut motor [03:55:09]Read from MH i2c: 01 [03:55:09]MH_I2C_Read... [03:55:09]*** Stop cut motor [03:55:09]*** Cut end [03:55:09]Read from MH i2c: 01 07 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: 01 07 00 08 46 00 00 00 00 00 FF 0F 63 [03:55:09]process_action close_receipt done [03:55:09]requested_data is exist [03:55:09]produce_requested_data [03:55:09]requested_item fm.sn is exist - process it [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 11 00 00 [03:55:09]Write to MH i2c: E2 08 00 09 46 80 11 00 00 00 00 00 00 C9 [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 17 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 17 00 09 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 22 [03:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:55:09]wFMCommunicate OK [03:55:09]requested_item fd.num is exist - process it [03:55:09]SAM_PROTO_GetFieldsCounters [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 13 00 00 [03:55:09]Write to MH i2c: E2 08 00 0A 46 80 13 00 00 00 00 00 00 CC [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 62 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 62 00 0A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2C F6 00 00 0E 04 04 00 20 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 6B [03:55: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 2C F6 00 00 0E 04 04 00 20 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 [03:55:09]wFMCommunicate OK [03:55:09]SAM_PROTO_GetFieldsCounters done [03:55:09]requested_item shift.num is exist - process it [03:55:09]requested_item shift.opened is exist - process it [03:55:09]req_shift_opened [03:55:09]FM_GetShiftState [03:55:09]SAM_PROTO_GetShiftState [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 13 01 00 [03:55:09]Write to MH i2c: E2 08 00 0B 46 80 13 01 00 00 00 00 00 CE [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0E 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0E 00 0B 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2E [03:55:09]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:55:09]wFMCommunicate OK [03:55:09]SAM_PROTO_GetShiftState done [03:55:09]FM_GetShiftState done [03:55:09]req_shift_opened done [03:55:09]requested_item shift.open_date is exist - process it [03:55:09]req_shift_open_date [03:55:09]req_shift_open_date done [03:55:09]produce_requested_data done [03:55:09]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63020,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [03:55:09]process_action_free close_receipt [03:55:09]json_value_free [03:55:09]json_value_free done [03:55:09]process_json_proto returns [03:55:09]Send response to host [03:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63020,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [03:55:09]free response buf [03:55:09]execute_script done [03:55:09]execute_script returns [03:55:09]free content buf [03:55:09]Sock 8.Close socket [03:55:09]Sock 8.Thread stoped [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]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:01]accept exits with 9 [03:56:01]New connection [03:56:01]New thread 3066817892 created [03:56:01]Thread 3066674532 joined [03:56:01]Waiting for new connection... [03:56:01] Sock 9.Parse request [03:56:01]Sock 9.Check first char [03:56:01]Sock 9.First char is OK [03:56:01]request: POST /json_proto HTTP/1.0 [03:56:01]Method: POST [03:56:01]URL: /json_proto [03:56:01]Method is POST - this is cgi request [03:56:01]url: /json_proto [03:56:01]query_string will be loaded in cgi processing [03:56:01]execute_cgi json_proto POST (null) [03:56:01]execute_cgi path=json_proto method=POST [03:56:01]POST find Content-Length [03:56:01]Host: 172.17.42.132:8080 [03:56:01]Content-Length: 619 [03:56:01]Content-Type: application/json [03:56:01] [03:56:01]POST finish read [03:56:01]Found Content-Length = 619 [03:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47331", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:01]execute_script... [03:56: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)47331", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:01]POST & json_proto [03:56:01]process_json_proto [03:56:01]json parsed OK: [03:56:01]protocol is kg_v1.0 [03:56:01]action value=close_receipt [03:56:01]process_action close_receipt [03:56:01]cmd_close_receipt [03:56:01]MH_GetDate [03:56:01]Write to MH i2c: F0 00 00 0C 46 41 [03:56:01]Write i2c OK [03:56:01]MH_I2C_Read... [03:56:01]Read from MH i2c: F0 [03:56:01]MH_I2C_Read... [03:56:01]Read from MH i2c: F0 09 00 [03:56:01]MH_I2C_Read... [03:56:01]Read from MH i2c: F0 09 00 0C 46 00 DA D0 15 67 4C DF 56 66 57 [03:56:01]GetLastDocTimeStamp 1729482914 [03:56:01]current date 1729482970 [03:56:01]FM_GetShiftState [03:56:01]SAM_PROTO_GetShiftState [03:56:01]wFMCommunicate request_size=4 [03:56:01]MH_SAM_APDU [03:56:01]CAPDU: 80 13 01 00 [03:56:01]Write to MH i2c: E2 08 00 0D 46 80 13 01 00 00 00 00 00 D0 [03:56:01]Write i2c OK [03:56:01]MH_I2C_Read... [03:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:01]Read from MH i2c: E2 [03:56:01]MH_I2C_Read... [03:56:01]Read from MH i2c: E2 0E 00 [03:56:01]MH_I2C_Read... [03:56:01]Read from MH i2c: E2 0E 00 0D 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 30 [03:56:01]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:56:01]wFMCommunicate OK [03:56:01]SAM_PROTO_GetShiftState done [03:56:01]FM_GetShiftState done [03:56:01]opened in 1729469755 [03:56:01]opened+sec_in_day 1729556155 [03:56:01]quantity*price = 15000 [03:56:01]sum+1 = 15001 [03:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 21.10.2024 03:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63021 ФПД: 9484616984319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035610&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63021&fm=9484616984319&tin=02508201610067®Number=0000000000091619&sum=15000 0 [03:56:02]StoreToDocumentArchive [03:56:02]shift 544 fd 63021 [03:56:02]save to /storage/0544/doc_00063021 [03:56:02]save last doc name /storage/0544/doc_00063021 to /storage/kkm_last_doc_name [03:56:02]save OK [03:56:02]Clear old archive folders... [03:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=272 [03:56:02]tlvbuf is 00EFFEF0 [03:56:02]SAM_PROTO_ClearQueue [03:56:02]wFMCommunicate request_size=4 [03:56:02]MH_SAM_APDU [03:56:02]CAPDU: 80 09 00 00 [03:56:02]Write to MH i2c: E2 08 00 1A 46 80 09 00 00 00 00 00 00 D2 [03:56:02]Write i2c OK [03:56:02]MH_I2C_Read... [03:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:02]Read from MH i2c: E2 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 03 00 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 03 00 1A 46 00 90 00 D4 [03:56:02]RAPDU: 90 00 [03:56:02]wFMCommunicate OK [03:56:02]SAM_PROTO_ClearQueue done [03:56:02]KKMCreateOFDPacket [03:56:02]OFDProtocolAddRootSTLVToBuf [03:56:02]FM_MakeSignedData [03:56:02]FM_MakeSignedData [03:56:02]SAM_PROTO_SignData [03:56:02]wFMCommunicate request_size=4 [03:56:02]MH_SAM_APDU [03:56:02]CAPDU: 80 0D 01 02 [03:56:02]Write to MH i2c: E2 08 00 1B 46 80 0D 01 02 00 00 00 00 DA [03:56:02]Write i2c OK [03:56:02]MH_I2C_Read... [03:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:02]Read from MH i2c: E2 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 03 00 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 03 00 1B 46 00 90 00 D5 [03:56:02]RAPDU: 90 00 [03:56:02]wFMCommunicate OK [03:56:02]wFMCommunicate request_size=255 [03:56:02]MH_SAM_APDU [03:56:02]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 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DA D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [03:56:02]Write to MH i2c: E2 02 01 1C 46 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 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DA D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 BD [03:56:03]Write i2c OK [03:56:03]MH_I2C_Read... [03:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:03]Read from MH i2c: E2 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 03 00 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 03 00 1C 46 00 90 00 D6 [03:56:03]RAPDU: 90 00 [03:56:03]wFMCommunicate OK [03:56:03]wFMCommunicate request_size=31 [03:56:03]MH_SAM_APDU [03:56:03]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 2D F6 00 00 35 04 06 00 08 A0 4F 39 E6 FF [03:56:03]Write to MH i2c: E2 22 00 1D 46 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 2D F6 00 00 35 04 06 00 08 A0 4F 39 E6 FF 00 00 46 [03:56:03]Write i2c OK [03:56:03]MH_I2C_Read... [03:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:03]Read from MH i2c: E2 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 03 00 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 03 00 1D 46 00 90 00 D7 [03:56:03]RAPDU: 90 00 [03:56:03]wFMCommunicate OK [03:56:03]wFMCommunicate request_size=4 [03:56:03]MH_SAM_APDU [03:56:03]CAPDU: 80 0D 03 02 [03:56:03]Write to MH i2c: E2 08 00 1E 46 80 0D 03 02 00 00 00 00 DF [03:56:03]Write i2c OK [03:56:03]MH_I2C_Read... [03:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:03]Read from MH i2c: E2 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 0B 00 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 0B 00 1E 46 00 E3 BB DA 2D B2 D3 1F 05 90 00 2E [03:56:03]RAPDU: E3 BB DA 2D B2 D3 1F 05 90 00 [03:56:03]wFMCommunicate OK [03:56:03]SAM_PROTO_SignData done [03:56:03]FM_MakeSignedData done [03:56:03]CreateOFDProtocolMessage [03:56:03]wFMCommunicate request_size=4 [03:56:03]MH_SAM_APDU [03:56:03]CAPDU: 80 11 00 00 [03:56:03]Write to MH i2c: E2 08 00 1F 46 80 11 00 00 00 00 00 00 DF [03:56:03]Write i2c OK [03:56:03]MH_I2C_Read... [03:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:03]Read from MH i2c: E2 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 17 00 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: E2 17 00 1F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 38 [03:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:56:03]wFMCommunicate OK [03:56:03]CreateOFDProtocolMessage done [03:56:03]OFDSenderStorePacket 63021 [03:56:03]StoreOFDPacket docnum=63021 [03:56: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 24 01 00 00 BA BF 1C 01 D6 90 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 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DA D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F6 00 00 35 04 06 00 08 A0 4F 39 E6 FF E3 BB DA 2D B2 D3 1F 05 [03:56:03]CheckFolder [03:56:03]dirname=/storage/ofd_packets [03:56:03]CheckFolder done [03:56:03]ProducePacketName [03:56:03]name=ofd_packets/00063021 [03:56:03]NVStorageSaveData ofd_packets/00063021 [03:56:03]File name is /storage/ofd_packets/00063021 [03:56:03]Write 322 bytes [03:56:03]NVStorageSaveData done [03:56:03]OFDSenderStorePacket done [03:56:03]KKMCreateOFDPacket done [03:56:03]NVStorageSaveData kkm_last_timestamp [03:56:03]File name is /storage/kkm_last_timestamp [03:56:03]Write 4 bytes [03:56:03]NVStorageSaveData done [03:56:03]ExternCall_PrintAddStr [03:56:03]wPrintStart [03:56:03]Write to MH i2c: 01 00 00 20 46 66 [03:56:03]Write i2c OK [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: 01 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: 01 07 00 [03:56:03]MH_I2C_Read... [03:56:03]Read from MH i2c: 01 07 00 20 46 00 00 00 00 00 FF 0F 7B [03:56:03]RasterBufferAndPrint [03:56:03]line Счет N : (3)47331 [03:56:03]line ИНН: 02508201610067 [03:56:03]line Контрольно-Кассовый Чек [03:56:03]line ПРОДАЖА [03:56:03]line Товар: 4640030091607 [03:56:03]line Сигареты ESSE Exchange [03:56:03]line 1.000 * 150.00 [03:56:03]line = 150.00 [03:56:03]line НДС 12% НСП 1% [03:56:03]line > о реализуемом товаре [03:56:03]line ИТОГО: 150.00 [03:56:03]line НСП 1% : 1.33 [03:56:03]line НДС 12% : 15.93 [03:56:03]line Наличными: 150.00 [03:56:03]line Безнал.: 0.00 [03:56:03]line Место: АЗС № 86 "Партнер Нефть" [03:56:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:56:03]line СНО: Общий режим [03:56:03]line Чек 18 21.10.2024 03:56 [03:56:03]line Смена: 544 ФФД: 1.0 [03:56:03]line ЗНМ: 0300000154 [03:56:03]line РНМ: 0000000000091619 [03:56:03]line Версия ККМ: 001 [03:56:03]line ФМ: 0000000000874676 [03:56:03]line ФД: 63021 [03:56:03]line ФПД: 9484616984319 [03:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035610&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63021&fm=9484616984319&tin=02508201610067®Number=0000000000091619&sum=15000 [03:56:03]OFD Sender: Processing packet 63021 [packets to send 232, broken 231] [03:56:03]ProducePacketName [03:56:03]name=ofd_packets/00063021 [03:56:03]OFD Sender: To server: pG, [03:56:03]CommunicateWithHost lk.salyk.kg:30040 [03:56:03]ConnectInit lk.salyk.kg [03:56:03]line 0 [03:56:03]written 0, free lines is 4095 [03:56:03]Connected sock=10 [03:56:03]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 BA BF 1C 01 D6 90 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 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DA D0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F6 00 00 35 04 06 00 08 A0 4F 39 E6 FF E3 BB DA 2D B2 D3 1F 05 [03:56:04]Write to MH i2c: 01 00 00 48 46 8E [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 07 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 07 00 48 46 00 00 00 00 00 14 0D B6 [03:56:04]RasterBufferAndPrint [03:56:04]line [03:56:04]line [03:56:04]line [03:56:04]line [03:56:04]line [03:56:04]written 0, free lines is 3358 [03:56:04]MH_Cut [03:56:04]Write to MH i2c: D1 01 00 4F 46 01 67 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: D1 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: D1 01 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: D1 01 00 4F 46 00 66 [03:56:04]Write to MH i2c: 01 00 00 50 46 96 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56: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 AA 84 47 00 4A 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 2D F6 00 00 F4 03 04 00 D9 7A 15 67 B6 04 01 00 00 A4 E2 00 43 1F 25 BC CF [03:56:04]CommunicateWithHost err = 0 [03:56:04]CheckOFDResponse [03:56:04]1017 (14) - 77093643461234 [03:56:04]1041 (16) - 0000000000874676 [03:56:04]1040 (4) - 63021 [03:56:04]1012 (4) - 20.10.2024 21:49 [03:56:04]1206 (1) - 0 [03:56:04]OFD Sender: Remove packet 63021 [03:56:04]ProducePacketName [03:56:04]name=ofd_packets/00063021 [03:56:04]NVStorageDeleteData [03:56:04]OFD Sender: No OFD packet to send [03:56:04]*** Cut start [03:56:04]*** Partial cut [03:56:04]*** CUTSNS_PIN = 1 [03:56:04]*** CUTSNS_PIN = 0 [03:56:05]*** Brake cut motor [03:56:05]Read from MH i2c: 01 [03:56:05]MH_I2C_Read... [03:56:05]*** Stop cut motor [03:56:05]*** Cut end [03:56:05]Read from MH i2c: 01 07 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: 01 07 00 50 46 00 00 00 00 00 FF 0F AB [03:56:05]process_action close_receipt done [03:56:05]requested_data is exist [03:56:05]produce_requested_data [03:56:05]requested_item fm.sn is exist - process it [03:56:05]wFMCommunicate request_size=4 [03:56:05]MH_SAM_APDU [03:56:05]CAPDU: 80 11 00 00 [03:56:05]Write to MH i2c: E2 08 00 51 46 80 11 00 00 00 00 00 00 11 [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:05]Read from MH i2c: E2 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 17 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 17 00 51 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6A [03:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:56:05]wFMCommunicate OK [03:56:05]requested_item fd.num is exist - process it [03:56:05]SAM_PROTO_GetFieldsCounters [03:56:05]wFMCommunicate request_size=4 [03:56:05]MH_SAM_APDU [03:56:05]CAPDU: 80 13 00 00 [03:56:05]Write to MH i2c: E2 08 00 52 46 80 13 00 00 00 00 00 00 14 [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:05]Read from MH i2c: E2 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 62 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 62 00 52 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2D F6 00 00 0E 04 04 00 20 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 B7 [03:56:05]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 2D F6 00 00 0E 04 04 00 20 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 [03:56:05]wFMCommunicate OK [03:56:05]SAM_PROTO_GetFieldsCounters done [03:56:05]requested_item shift.num is exist - process it [03:56:05]requested_item shift.opened is exist - process it [03:56:05]req_shift_opened [03:56:05]FM_GetShiftState [03:56:05]SAM_PROTO_GetShiftState [03:56:05]wFMCommunicate request_size=4 [03:56:05]MH_SAM_APDU [03:56:05]CAPDU: 80 13 01 00 [03:56:05]Write to MH i2c: E2 08 00 53 46 80 13 01 00 00 00 00 00 16 [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:05]Read from MH i2c: E2 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 0E 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: E2 0E 00 53 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 76 [03:56:05]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [03:56:05]wFMCommunicate OK [03:56:05]SAM_PROTO_GetShiftState done [03:56:05]FM_GetShiftState done [03:56:05]req_shift_opened done [03:56:05]requested_item shift.open_date is exist - process it [03:56:05]req_shift_open_date [03:56:05]req_shift_open_date done [03:56:05]produce_requested_data done [03:56:05]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63021,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [03:56:05]process_action_free close_receipt [03:56:05]json_value_free [03:56:05]json_value_free done [03:56:05]process_json_proto returns [03:56:05]Send response to host [03:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63021,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [03:56:05]free response buf [03:56:05]execute_script done [03:56:05]execute_script returns [03:56:05]free content buf [03:56:05]Sock 9.Close socket [03:56:05]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02: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:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:24]accept exits with 8 [04:12:24]New connection [04:12:24]New thread 3066674532 created [04:12:24]Thread 3066817892 joined [04:12:24]Waiting for new connection... [04:12:24] Sock 8.Parse request [04:12:24]Sock 8.Check first char [04:12:24]Sock 8.First char is OK [04:12:24]request: POST /json_proto HTTP/1.0 [04:12:24]Method: POST [04:12:24]URL: /json_proto [04:12:24]Method is POST - this is cgi request [04:12:24]url: /json_proto [04:12:24]query_string will be loaded in cgi processing [04:12:24]execute_cgi json_proto POST (null) [04:12:24]execute_cgi path=json_proto method=POST [04:12:24]POST find Content-Length [04:12:24]Host: 172.17.42.132:8080 [04:12:24]Content-Length: 665 [04:12:24]Content-Type: application/json [04:12:24] [04:12:24]POST finish read [04:12:24]Found Content-Length = 665 [04:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47332", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "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" ] } } [04:12:24]execute_script... [04:12:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47332", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "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" ] } } [04:12:24]POST & json_proto [04:12:24]process_json_proto [04:12:24]json parsed OK: [04:12:24]protocol is kg_v1.0 [04:12:24]action value=close_receipt [04:12:24]process_action close_receipt [04:12:24]cmd_close_receipt [04:12:24]MH_GetDate [04:12:24]Write to MH i2c: F0 00 00 54 46 89 [04:12:24]Write i2c OK [04:12:24]MH_I2C_Read... [04:12:24]Read from MH i2c: F0 [04:12:24]MH_I2C_Read... [04:12:24]Read from MH i2c: F0 09 00 [04:12:24]MH_I2C_Read... [04:12:24]Read from MH i2c: F0 09 00 54 46 00 B1 D4 15 67 4C DF 56 66 7A [04:12:24]GetLastDocTimeStamp 1729482970 [04:12:24]current date 1729483953 [04:12:24]FM_GetShiftState [04:12:24]SAM_PROTO_GetShiftState [04:12:24]wFMCommunicate request_size=4 [04:12:24]MH_SAM_APDU [04:12:24]CAPDU: 80 13 01 00 [04:12:24]Write to MH i2c: E2 08 00 55 46 80 13 01 00 00 00 00 00 18 [04:12:24]Write i2c OK [04:12:24]MH_I2C_Read... [04:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:24]Read from MH i2c: E2 [04:12:24]MH_I2C_Read... [04:12:24]Read from MH i2c: E2 0E 00 [04:12:24]MH_I2C_Read... [04:12:24]Read from MH i2c: E2 0E 00 55 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 78 [04:12:24]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [04:12:24]wFMCommunicate OK [04:12:24]SAM_PROTO_GetShiftState done [04:12:24]FM_GetShiftState done [04:12:24]opened in 1729469755 [04:12:24]opened+sec_in_day 1729556155 [04:12:24]quantity*price = 10400 [04:12:24]sum+1 = 10401 [04:12:24]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 СНО: Общий режим Чек 19 21.10.2024 04:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63022 ФПД: 180569215312694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041233&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63022&fm=180569215312694&tin=02508201610067®Number=0000000000091619&sum=10400 0 [04:12:25]StoreToDocumentArchive [04:12:25]shift 544 fd 63022 [04:12:25]save to /storage/0544/doc_00063022 [04:12:25]save last doc name /storage/0544/doc_00063022 to /storage/kkm_last_doc_name [04:12:25]save OK [04:12:25]Clear old archive folders... [04:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:12:25]tlvbuf is 00EDBCA0 [04:12:25]SAM_PROTO_ClearQueue [04:12:25]wFMCommunicate request_size=4 [04:12:25]MH_SAM_APDU [04:12:25]CAPDU: 80 09 00 00 [04:12:25]Write to MH i2c: E2 08 00 62 46 80 09 00 00 00 00 00 00 1A [04:12:25]Write i2c OK [04:12:25]MH_I2C_Read... [04:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:25]Read from MH i2c: E2 [04:12:25]MH_I2C_Read... [04:12:25]Read from MH i2c: E2 03 00 [04:12:25]MH_I2C_Read... [04:12:25]Read from MH i2c: E2 03 00 62 46 00 90 00 1C [04:12:25]RAPDU: 90 00 [04:12:25]wFMCommunicate OK [04:12:25]SAM_PROTO_ClearQueue done [04:12:25]KKMCreateOFDPacket [04:12:25]OFDProtocolAddRootSTLVToBuf [04:12:25]FM_MakeSignedData [04:12:25]FM_MakeSignedData [04:12:25]SAM_PROTO_SignData [04:12:25]wFMCommunicate request_size=4 [04:12:25]MH_SAM_APDU [04:12:25]CAPDU: 80 0D 01 02 [04:12:25]Write to MH i2c: E2 08 00 63 46 80 0D 01 02 00 00 00 00 22 [04:12:25]Write i2c OK [04:12:25]MH_I2C_Read... [04:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:25]Read from MH i2c: E2 [04:12:25]MH_I2C_Read... [04:12:25]Read from MH i2c: E2 03 00 [04:12:25]MH_I2C_Read... [04:12:25]Read from MH i2c: E2 03 00 63 46 00 90 00 1D [04:12:25]RAPDU: 90 00 [04:12:25]wFMCommunicate OK [04:12:25]wFMCommunicate request_size=255 [04:12:25]MH_SAM_APDU [04:12:25]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 13 00 00 00 F4 03 04 00 B1 D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [04:12:25]Write to MH i2c: E2 02 01 64 46 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 13 00 00 00 F4 03 04 00 B1 D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 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 54 [04:12:25]Write i2c OK [04:12:25]MH_I2C_Read... [04:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:26]Read from MH i2c: E2 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 03 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 03 00 64 46 00 90 00 1E [04:12:26]RAPDU: 90 00 [04:12:26]wFMCommunicate OK [04:12:26]wFMCommunicate request_size=41 [04:12:26]MH_SAM_APDU [04:12:26]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 2E F6 00 00 35 04 06 00 A4 3A 0B EF A3 36 [04:12:26]Write to MH i2c: E2 2C 00 65 46 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 2E F6 00 00 35 04 06 00 A4 3A 0B EF A3 36 00 00 CF [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:26]Read from MH i2c: E2 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 03 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 03 00 65 46 00 90 00 1F [04:12:26]RAPDU: 90 00 [04:12:26]wFMCommunicate OK [04:12:26]wFMCommunicate request_size=4 [04:12:26]MH_SAM_APDU [04:12:26]CAPDU: 80 0D 03 02 [04:12:26]Write to MH i2c: E2 08 00 66 46 80 0D 03 02 00 00 00 00 27 [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:26]Read from MH i2c: E2 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 0B 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 0B 00 66 46 00 1E 58 64 F5 31 EF 58 7C 90 00 EB [04:12:26]RAPDU: 1E 58 64 F5 31 EF 58 7C 90 00 [04:12:26]wFMCommunicate OK [04:12:26]SAM_PROTO_SignData done [04:12:26]FM_MakeSignedData done [04:12:26]CreateOFDProtocolMessage [04:12:26]wFMCommunicate request_size=4 [04:12:26]MH_SAM_APDU [04:12:26]CAPDU: 80 11 00 00 [04:12:26]Write to MH i2c: E2 08 00 67 46 80 11 00 00 00 00 00 00 27 [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:26]Read from MH i2c: E2 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 17 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: E2 17 00 67 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 80 [04:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [04:12:26]wFMCommunicate OK [04:12:26]CreateOFDProtocolMessage done [04:12:26]OFDSenderStorePacket 63022 [04:12:26]StoreOFDPacket docnum=63022 [04:12:26]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 72 11 26 01 77 96 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 13 00 00 00 F4 03 04 00 B1 D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2E F6 00 00 35 04 06 00 A4 3A 0B EF A3 36 1E 58 64 F5 31 EF 58 7C [04:12:26]CheckFolder [04:12:26]dirname=/storage/ofd_packets [04:12:26]CheckFolder done [04:12:26]ProducePacketName [04:12:26]name=ofd_packets/00063022 [04:12:26]NVStorageSaveData ofd_packets/00063022 [04:12:26]File name is /storage/ofd_packets/00063022 [04:12:26]Write 332 bytes [04:12:26]NVStorageSaveData done [04:12:26]OFDSenderStorePacket done [04:12:26]KKMCreateOFDPacket done [04:12:26]NVStorageSaveData kkm_last_timestamp [04:12:26]File name is /storage/kkm_last_timestamp [04:12:26]Write 4 bytes [04:12:26]NVStorageSaveData done [04:12:26]ExternCall_PrintAddStr [04:12:26]wPrintStart [04:12:26]Write to MH i2c: 01 00 00 68 46 AE [04:12:26]OFD Sender: Processing packet 63022 [packets to send 232, broken 231] [04:12:26]ProducePacketName [04:12:26]name=ofd_packets/00063022 [04:12:26]OFD Sender: To server: pG, [04:12:26]CommunicateWithHost lk.salyk.kg:30040 [04:12:26]ConnectInit lk.salyk.kg [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 07 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 07 00 68 46 00 00 00 00 00 FF 0F C3 [04:12:26]RasterBufferAndPrint [04:12:26]line Счет N : (3)47332 [04:12:26]line ИНН: 02508201610067 [04:12:26]line Контрольно-Кассовый Чек [04:12:26]line ПРОДАЖА [04:12:26]line Товар: 4870202521292 [04:12:26]line Напиток Сок березы 1,2л [04:12:26]line 1.000 * 104.00 [04:12:26]line = 104.00 [04:12:26]line НДС 12% НСП 1% [04:12:26]line > о реализуемом товаре [04:12:26]line ИТОГО: 104.00 [04:12:26]line НСП 1% : 0.92 [04:12:26]line НДС 12% : 11.04 [04:12:26]line Наличными: 104.00 [04:12:26]line Безнал.: 0.00 [04:12:26]line Место: АЗС № 86 "Партнер Нефть" [04:12:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:12:26]line СНО: Общий режим [04:12:26]line Чек 19 21.10.2024 04:12 [04:12:26]line Смена: 544 ФФД: 1.0 [04:12:26]line ЗНМ: 0300000154 [04:12:26]line РНМ: 0000000000091619 [04:12:26]line Версия ККМ: 001 [04:12:26]line ФМ: 0000000000874676 [04:12:26]line ФД: 63022 [04:12:26]line ФПД: 180569215312694 [04:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041233&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63022&fm=180569215312694&tin=02508201610067®Number=0000000000091619&sum=10400 [04:12:26]line 0 [04:12:26]written 0, free lines is 4095 [04:12:26]Connected sock=9 [04:12: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 2E 01 00 00 72 11 26 01 77 96 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 13 00 00 00 F4 03 04 00 B1 D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2E F6 00 00 35 04 06 00 A4 3A 0B EF A3 36 1E 58 64 F5 31 EF 58 7C [04:12:26]Write to MH i2c: 01 00 00 90 46 D6 [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 07 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: 01 07 00 90 46 00 00 00 00 00 22 0D 0C [04:12:26]RasterBufferAndPrint [04:12:26]line [04:12:26]line [04:12:26]line [04:12:26]line [04:12:26]line [04:12:26]written 0, free lines is 3371 [04:12:26]MH_Cut [04:12:26]Write to MH i2c: D1 01 00 97 46 01 AF [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: D1 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: D1 01 00 [04:12:26]MH_I2C_Read... [04:12:26]Read from MH i2c: D1 01 00 97 46 00 AE [04:12:26]Write to MH i2c: 01 00 00 98 46 DE [04:12:26]Write i2c OK [04:12:26]MH_I2C_Read... [04:12: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 87 F0 47 00 C7 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 2E F6 00 00 F4 03 04 00 B0 7E 15 67 B6 04 01 00 00 D3 E0 EC 18 E5 21 DC 18 [04:12:26]CommunicateWithHost err = 0 [04:12:26]CheckOFDResponse [04:12:26]1017 (14) - 77093643461234 [04:12:26]1041 (16) - 0000000000874676 [04:12:26]1040 (4) - 63022 [04:12:26]1012 (4) - 20.10.2024 22:05 [04:12:26]1206 (1) - 0 [04:12:26]OFD Sender: Remove packet 63022 [04:12:26]ProducePacketName [04:12:26]name=ofd_packets/00063022 [04:12:26]NVStorageDeleteData [04:12:27]OFD Sender: No OFD packet to send [04:12:27]*** Cut start [04:12:27]*** Partial cut [04:12:27]*** CUTSNS_PIN = 1 [04:12:27]*** CUTSNS_PIN = 0 [04:12:27]*** Brake cut motor [04:12:28]Read from MH i2c: 01 [04:12:28]MH_I2C_Read... [04:12:28]*** Stop cut motor [04:12:28]*** Cut end [04:12:28]Read from MH i2c: 01 07 00 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: 01 07 00 98 46 00 00 00 00 00 FF 0F F3 [04:12:28]process_action close_receipt done [04:12:28]requested_data is exist [04:12:28]produce_requested_data [04:12:28]requested_item fm.sn is exist - process it [04:12:28]wFMCommunicate request_size=4 [04:12:28]MH_SAM_APDU [04:12:28]CAPDU: 80 11 00 00 [04:12:28]Write to MH i2c: E2 08 00 99 46 80 11 00 00 00 00 00 00 59 [04:12:28]Write i2c OK [04:12:28]MH_I2C_Read... [04:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:28]Read from MH i2c: E2 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 17 00 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 17 00 99 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B2 [04:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [04:12:28]wFMCommunicate OK [04:12:28]requested_item fd.num is exist - process it [04:12:28]SAM_PROTO_GetFieldsCounters [04:12:28]wFMCommunicate request_size=4 [04:12:28]MH_SAM_APDU [04:12:28]CAPDU: 80 13 00 00 [04:12:28]Write to MH i2c: E2 08 00 9A 46 80 13 00 00 00 00 00 00 5C [04:12:28]Write i2c OK [04:12:28]MH_I2C_Read... [04:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:28]Read from MH i2c: E2 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 62 00 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 62 00 9A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2E F6 00 00 0E 04 04 00 20 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 03 [04:12: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 2E F6 00 00 0E 04 04 00 20 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 [04:12:28]wFMCommunicate OK [04:12:28]SAM_PROTO_GetFieldsCounters done [04:12:28]requested_item shift.num is exist - process it [04:12:28]requested_item shift.opened is exist - process it [04:12:28]req_shift_opened [04:12:28]FM_GetShiftState [04:12:28]SAM_PROTO_GetShiftState [04:12:28]wFMCommunicate request_size=4 [04:12:28]MH_SAM_APDU [04:12:28]CAPDU: 80 13 01 00 [04:12:28]Write to MH i2c: E2 08 00 9B 46 80 13 01 00 00 00 00 00 5E [04:12:28]Write i2c OK [04:12:28]MH_I2C_Read... [04:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:28]Read from MH i2c: E2 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 0E 00 [04:12:28]MH_I2C_Read... [04:12:28]Read from MH i2c: E2 0E 00 9B 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BE [04:12:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [04:12:28]wFMCommunicate OK [04:12:28]SAM_PROTO_GetShiftState done [04:12:28]FM_GetShiftState done [04:12:28]req_shift_opened done [04:12:28]requested_item shift.open_date is exist - process it [04:12:28]req_shift_open_date [04:12:28]req_shift_open_date done [04:12:28]produce_requested_data done [04:12:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63022,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [04:12:28]process_action_free close_receipt [04:12:28]json_value_free [04:12:28]json_value_free done [04:12:28]process_json_proto returns [04:12:28]Send response to host [04:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63022,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [04:12:28]free response buf [04:12:28]execute_script done [04:12:28]execute_script returns [04:12:28]free content buf [04:12:28]Sock 8.Close socket [04:12:28]Sock 8.Thread stoped [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:40]accept exits with 10 [04:13:40]New connection [04:13:40]New thread 3066817892 created [04:13:40]Thread 3066674532 joined [04:13:40]Waiting for new connection... [04:13:40] Sock 10.Parse request [04:13:40]Sock 10.Check first char [04:13:40]Sock 10.First char is OK [04:13:40]request: POST /json_proto HTTP/1.0 [04:13:40]Method: POST [04:13:40]URL: /json_proto [04:13:40]Method is POST - this is cgi request [04:13:40]url: /json_proto [04:13:40]query_string will be loaded in cgi processing [04:13:40]execute_cgi json_proto POST (null) [04:13:40]execute_cgi path=json_proto method=POST [04:13:40]POST find Content-Length [04:13:40]Host: 172.17.42.132:8080 [04:13:40]Content-Length: 944 [04:13:40]Content-Type: application/json [04:13:40] [04:13:40]POST finish read [04:13:40]Found Content-Length = 944 [04:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47333", "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 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\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" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:40]execute_script... [04:13: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)47333", "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 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\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" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:40]POST & json_proto [04:13:40]process_json_proto [04:13:40]json parsed OK: [04:13:40]protocol is kg_v1.0 [04:13:40]action value=close_receipt [04:13:40]process_action close_receipt [04:13:40]cmd_close_receipt [04:13:40]MH_GetDate [04:13:40]Write to MH i2c: F0 00 00 9C 46 D1 [04:13:40]Write i2c OK [04:13:40]MH_I2C_Read... [04:13:40]Read from MH i2c: F0 [04:13:40]MH_I2C_Read... [04:13:40]Read from MH i2c: F0 09 00 [04:13:40]MH_I2C_Read... [04:13:40]Read from MH i2c: F0 09 00 9C 46 00 FD D4 15 67 4C DF 56 66 0E [04:13:40]GetLastDocTimeStamp 1729483953 [04:13:40]current date 1729484029 [04:13:40]FM_GetShiftState [04:13:40]SAM_PROTO_GetShiftState [04:13:40]wFMCommunicate request_size=4 [04:13:40]MH_SAM_APDU [04:13:40]CAPDU: 80 13 01 00 [04:13:40]Write to MH i2c: E2 08 00 9D 46 80 13 01 00 00 00 00 00 60 [04:13:40]Write i2c OK [04:13:40]MH_I2C_Read... [04:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:40]Read from MH i2c: E2 [04:13:40]MH_I2C_Read... [04:13:40]Read from MH i2c: E2 0E 00 [04:13:40]MH_I2C_Read... [04:13:40]Read from MH i2c: E2 0E 00 9D 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C0 [04:13:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [04:13:40]wFMCommunicate OK [04:13:40]SAM_PROTO_GetShiftState done [04:13:40]FM_GetShiftState done [04:13:40]opened in 1729469755 [04:13:40]opened+sec_in_day 1729556155 [04:13:40]quantity*price = 9900 [04:13:40]sum+1 = 9901 [04:13:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.54 НДС 12% : 18.47 Наличными: 174.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 21.10.2024 04:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63023 ФПД: 187826998103833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041349&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63023&fm=187826998103833&tin=02508201610067®Number=0000000000091619&sum=17400 0 [04:13:41]StoreToDocumentArchive [04:13:41]shift 544 fd 63023 [04:13:41]save to /storage/0544/doc_00063023 [04:13:41]save last doc name /storage/0544/doc_00063023 to /storage/kkm_last_doc_name [04:13:41]save OK [04:13:41]Clear old archive folders... [04:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=399 [04:13:41]tlvbuf is 00EE2E50 [04:13:41]SAM_PROTO_ClearQueue [04:13:41]wFMCommunicate request_size=4 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 09 00 00 [04:13:41]Write to MH i2c: E2 08 00 AA 46 80 09 00 00 00 00 00 00 62 [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 AA 46 00 90 00 64 [04:13:41]RAPDU: 90 00 [04:13:41]wFMCommunicate OK [04:13:41]SAM_PROTO_ClearQueue done [04:13:41]KKMCreateOFDPacket [04:13:41]OFDProtocolAddRootSTLVToBuf [04:13:41]FM_MakeSignedData [04:13:41]FM_MakeSignedData [04:13:41]SAM_PROTO_SignData [04:13:41]wFMCommunicate request_size=4 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 0D 01 02 [04:13:41]Write to MH i2c: E2 08 00 AB 46 80 0D 01 02 00 00 00 00 6A [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 AB 46 00 90 00 65 [04:13:41]RAPDU: 90 00 [04:13:41]wFMCommunicate OK [04:13:41]wFMCommunicate request_size=255 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 0D 02 02 FA 03 00 8F 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 F8 43 00 00 00 00 EB 03 [04:13:41]Write to MH i2c: E2 02 01 AC 46 80 0D 02 02 FA 00 03 00 8F 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 F8 43 00 00 00 00 EB 03 00 00 10 [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 AC 46 00 90 00 66 [04:13:41]RAPDU: 90 00 [04:13:41]wFMCommunicate OK [04:13:41]wFMCommunicate request_size=158 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 0D 02 02 99 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 14 00 00 00 F4 03 04 00 FD D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F6 00 00 35 04 06 00 AA D3 E1 80 4F 19 [04:13:41]Write to MH i2c: E2 A1 00 AD 46 80 0D 02 02 99 00 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 14 00 00 00 F4 03 04 00 FD D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F6 00 00 35 04 06 00 AA D3 E1 80 4F 19 00 00 F6 [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 03 00 AD 46 00 90 00 67 [04:13:41]RAPDU: 90 00 [04:13:41]wFMCommunicate OK [04:13:41]wFMCommunicate request_size=4 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 0D 03 02 [04:13:41]Write to MH i2c: E2 08 00 AE 46 80 0D 03 02 00 00 00 00 6F [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 0B 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 0B 00 AE 46 00 9D CA 40 97 65 C2 39 56 90 00 64 [04:13:41]RAPDU: 9D CA 40 97 65 C2 39 56 90 00 [04:13:41]wFMCommunicate OK [04:13:41]SAM_PROTO_SignData done [04:13:41]FM_MakeSignedData done [04:13:41]CreateOFDProtocolMessage [04:13:41]wFMCommunicate request_size=4 [04:13:41]MH_SAM_APDU [04:13:41]CAPDU: 80 11 00 00 [04:13:41]Write to MH i2c: E2 08 00 AF 46 80 11 00 00 00 00 00 00 6F [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:41]Read from MH i2c: E2 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 17 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: E2 17 00 AF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C8 [04:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [04:13:41]wFMCommunicate OK [04:13:41]CreateOFDProtocolMessage done [04:13:41]OFDSenderStorePacket 63023 [04:13:41]StoreOFDPacket docnum=63023 [04:13: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 A3 01 00 00 52 43 9B 01 6C EF 5A 03 01 00 03 00 8F 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 14 00 00 00 F4 03 04 00 FD D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F6 00 00 35 04 06 00 AA D3 E1 80 4F 19 9D CA 40 97 65 C2 39 56 [04:13:41]CheckFolder [04:13:41]dirname=/storage/ofd_packets [04:13:41]CheckFolder done [04:13:41]ProducePacketName [04:13:41]name=ofd_packets/00063023 [04:13:41]NVStorageSaveData ofd_packets/00063023 [04:13:41]File name is /storage/ofd_packets/00063023 [04:13:41]Write 449 bytes [04:13:41]NVStorageSaveData done [04:13:41]OFDSenderStorePacket done [04:13:41]KKMCreateOFDPacket done [04:13:41]NVStorageSaveData kkm_last_timestamp [04:13:41]File name is /storage/kkm_last_timestamp [04:13:41]Write 4 bytes [04:13:41]NVStorageSaveData done [04:13:41]ExternCall_PrintAddStr [04:13:41]wPrintStart [04:13:41]Write to MH i2c: 01 00 00 B0 46 F6 [04:13:41]Write i2c OK [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: 01 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: 01 07 00 [04:13:41]MH_I2C_Read... [04:13:41]Read from MH i2c: 01 07 00 B0 46 00 00 00 00 00 FF 0F 0B [04:13:41]RasterBufferAndPrint [04:13:41]line Счет N : (3)47333 [04:13:41]line ИНН: 02508201610067 [04:13:42]line Контрольно-Кассовый Чек [04:13:42]line ПРОДАЖА [04:13:42]line Товар: 4870022003312 [04:13:42]line Gorilla эн нап манго-кокос 0,45 ж/б [04:13:42]line 1.000 * 99.00 [04:13:42]line = 99.00 [04:13:42]line НДС 12% НСП 1% [04:13:42]line > о реализуемом товаре [04:13:42]line Товар: 54491472 [04:13:42]line Напиток Кока-Кола 0,5л [04:13:42]line 1.000 * 75.00 [04:13:42]line = 75.00 [04:13:42]line НДС 12% НСП 1% [04:13:42]line > о реализуемом товаре [04:13:42]line ИТОГО: 174.00 [04:13:42]line НСП 1% : 1.54 [04:13:42]line НДС 12% : 18.47 [04:13:42]line Наличными: 174.00 [04:13:42]line Безнал.: 0.00 [04:13:42]line Место: АЗС № 86 "Партнер Нефть" [04:13:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:13:42]line СНО: Общий режим [04:13:42]line Чек 20 21.10.2024 04:13 [04:13:42]line Смена: 544 ФФД: 1.0 [04:13:42]line ЗНМ: 0300000154 [04:13:42]line РНМ: 0000000000091619 [04:13:42]line Версия ККМ: 001 [04:13:42]line ФМ: 0000000000874676 [04:13:42]line ФД: 63023 [04:13:42]line ФПД: 187826998103833 [04:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041349&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63023&fm=187826998103833&tin=02508201610067®Number=0000000000091619&sum=17400 [04:13:42]line 0 [04:13:42]OFD Sender: Processing packet 63023 [packets to send 232, broken 231] [04:13:42]ProducePacketName [04:13:42]name=ofd_packets/00063023 [04:13:42]OFD Sender: To server: pG, [04:13:42]CommunicateWithHost lk.salyk.kg:30040 [04:13:42]ConnectInit lk.salyk.kg [04:13:42]written 0, free lines is 4095 [04:13:42]Connected sock=9 [04:13: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 A3 01 00 00 52 43 9B 01 6C EF 5A 03 01 00 03 00 8F 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 14 00 00 00 F4 03 04 00 FD D4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F6 00 00 35 04 06 00 AA D3 E1 80 4F 19 9D CA 40 97 65 C2 39 56 [04:13:42]Write to MH i2c: 01 00 00 DF 46 25 [04:13:42]Write i2c OK [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: 01 [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: 01 07 00 [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: 01 07 00 DF 46 00 00 00 00 00 C6 0C FE [04:13:42]RasterBufferAndPrint [04:13:42]line [04:13:42]line [04:13:42]line [04:13:42]line [04:13:42]line [04:13:42]written 0, free lines is 3276 [04:13:42]MH_Cut [04:13:42]Write to MH i2c: D1 01 00 E6 46 01 FE [04:13:42]Write i2c OK [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: D1 [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: D1 01 00 [04:13:42]MH_I2C_Read... [04:13:42]Read from MH i2c: D1 01 00 E6 46 00 FD [04:13:42]Write to MH i2c: 01 00 00 E7 46 2D [04:13:42]Write i2c OK [04:13:42]MH_I2C_Read... [04:13: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 D8 A9 47 00 81 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F6 00 00 F4 03 04 00 FB 7E 15 67 B6 04 01 00 00 6B 71 C7 C9 FE FF 25 FF [04:13:42]CommunicateWithHost err = 0 [04:13:42]CheckOFDResponse [04:13:42]1017 (14) - 77093643461234 [04:13:42]1041 (16) - 0000000000874676 [04:13:42]1040 (4) - 63023 [04:13:42]1012 (4) - 20.10.2024 22:06 [04:13:42]1206 (1) - 0 [04:13:42]OFD Sender: Remove packet 63023 [04:13:42]ProducePacketName [04:13:42]name=ofd_packets/00063023 [04:13:42]NVStorageDeleteData [04:13:43]OFD Sender: No OFD packet to send [04:13:43]*** Cut start [04:13:43]*** Partial cut [04:13:43]*** CUTSNS_PIN = 1 [04:13:43]*** CUTSNS_PIN = 0 [04:13:43]*** Brake cut motor [04:13:44]Read from MH i2c: 01 [04:13:44]MH_I2C_Read... [04:13:44]*** Stop cut motor [04:13:44]*** Cut end [04:13:44]Read from MH i2c: 01 07 00 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: 01 07 00 E7 46 00 00 00 00 00 FF 0F 42 [04:13:44]process_action close_receipt done [04:13:44]requested_data is exist [04:13:44]produce_requested_data [04:13:44]requested_item fm.sn is exist - process it [04:13:44]wFMCommunicate request_size=4 [04:13:44]MH_SAM_APDU [04:13:44]CAPDU: 80 11 00 00 [04:13:44]Write to MH i2c: E2 08 00 E8 46 80 11 00 00 00 00 00 00 A8 [04:13:44]Write i2c OK [04:13:44]MH_I2C_Read... [04:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:44]Read from MH i2c: E2 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 17 00 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 17 00 E8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 01 [04:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [04:13:44]wFMCommunicate OK [04:13:44]requested_item fd.num is exist - process it [04:13:44]SAM_PROTO_GetFieldsCounters [04:13:44]wFMCommunicate request_size=4 [04:13:44]MH_SAM_APDU [04:13:44]CAPDU: 80 13 00 00 [04:13:44]Write to MH i2c: E2 08 00 E9 46 80 13 00 00 00 00 00 00 AB [04:13:44]Write i2c OK [04:13:44]MH_I2C_Read... [04:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:13:44]Read from MH i2c: E2 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 62 00 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 62 00 E9 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 2F F6 00 00 0E 04 04 00 20 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 56 [04:13: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 2F F6 00 00 0E 04 04 00 20 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 [04:13:44]wFMCommunicate OK [04:13:44]SAM_PROTO_GetFieldsCounters done [04:13:44]requested_item shift.num is exist - process it [04:13:44]requested_item shift.opened is exist - process it [04:13:44]req_shift_opened [04:13:44]FM_GetShiftState [04:13:44]SAM_PROTO_GetShiftState [04:13:44]wFMCommunicate request_size=4 [04:13:44]MH_SAM_APDU [04:13:44]CAPDU: 80 13 01 00 [04:13:44]Write to MH i2c: E2 08 00 EA 46 80 13 01 00 00 00 00 00 AD [04:13:44]Write i2c OK [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 [04:13:44]MH_I2C_Read... [04:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:44]Read from MH i2c: E2 0E 00 [04:13:44]MH_I2C_Read... [04:13:44]Read from MH i2c: E2 0E 00 EA 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 0D [04:13:44]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [04:13:44]wFMCommunicate OK [04:13:44]SAM_PROTO_GetShiftState done [04:13:44]FM_GetShiftState done [04:13:44]req_shift_opened done [04:13:44]requested_item shift.open_date is exist - process it [04:13:44]req_shift_open_date [04:13:44]req_shift_open_date done [04:13:44]produce_requested_data done [04:13:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63023,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [04:13:44]process_action_free close_receipt [04:13:44]json_value_free [04:13:44]json_value_free done [04:13:44]process_json_proto returns [04:13:44]Send response to host [04:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63023,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [04:13:44]free response buf [04:13:44]execute_script done [04:13:44]execute_script returns [04:13:44]free content buf [04:13:44]Sock 10.Close socket [04:13:44]Sock 10.Thread stoped [04:13:45]int [04:13:45]Write to MH i2c: 01 00 00 EB 46 31 [04:13:45]*** FLAG_PRN_PAP1 set [04:13:45]Write i2c OK [04:13:45]MH_I2C_Read... [04:13:45]Read from MH i2c: 01 [04:13:45]MH_I2C_Read... [04:13:45]Read from MH i2c: 01 07 00 [04:13:45]MH_I2C_Read... [04:13:45]Read from MH i2c: 01 07 00 EB 46 00 01 00 00 00 FF 0F 47 [04:13:45]state=0 [04:13:45]No paper [04:13:48]OFD Sender: No OFD packet to send [04:13:49]int [04:13:49]Write to MH i2c: 01 00 00 EC 46 32 [04:13:49]*** FLAG_PRN_PAP2 set [04:13:49]Write i2c OK [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 07 00 [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 07 00 EC 46 00 03 00 00 00 FF 0F 4A [04:13:49]state=0 [04:13:49]No paper [04:13:49]Cover opened [04:13:49]int [04:13:49]Write to MH i2c: 01 00 00 ED 46 33 [04:13:49]*** FLAG_PRN_PAP2 reset [04:13:49]Write i2c OK [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 07 00 [04:13:49]MH_I2C_Read... [04:13:49]Read from MH i2c: 01 07 00 ED 46 00 01 00 00 00 FF 0F 49 [04:13:49]state=3 [04:13:49]No paper [04:13:49]Cover closed [04:13:53]OFD Sender: No OFD packet to send [04:13:56]int [04:13:56]Write to MH i2c: 01 00 00 EE 46 34 [04:13:56]*** FLAG_PRN_PAP2 set [04:13:56]Write i2c OK [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 07 00 [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 07 00 EE 46 00 03 00 00 00 FF 0F 4C [04:13:56]state=0 [04:13:56]No paper [04:13:56]Cover opened [04:13:56]int [04:13:56]Write to MH i2c: 01 00 00 EF 46 35 [04:13:56]*** FLAG_PRN_PAP2 reset [04:13:56]Write i2c OK [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 07 00 [04:13:56]MH_I2C_Read... [04:13:56]Read from MH i2c: 01 07 00 EF 46 00 01 00 00 00 FF 0F 4B [04:13:56]state=3 [04:13:56]No paper [04:13:56]Cover closed [04:13:58]OFD Sender: No OFD packet to send [04:13:59]int [04:13:59]Write to MH i2c: 01 00 00 F0 46 36 [04:13:59]*** FLAG_PRN_PAP1 reset [04:13:59]Write i2c OK [04:13:59]MH_I2C_Read... [04:13:59]Read from MH i2c: 01 [04:13:59]MH_I2C_Read... [04:13:59]Read from MH i2c: 01 07 00 [04:13:59]MH_I2C_Read... [04:13:59]Read from MH i2c: 01 07 00 F0 46 00 00 00 00 00 FF 0F 4B [04:13:59]state=0 [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]accept exits with 8 [04:16:38]New connection [04:16:38]New thread 3066674532 created [04:16:38]Thread 3066817892 joined [04:16:38]Waiting for new connection... [04:16:38] Sock 8.Parse request [04:16:38]Sock 8.Check first char [04:16:38]Sock 8.First char is OK [04:16:38]request: POST /json_proto HTTP/1.0 [04:16:38]Method: POST [04:16:38]URL: /json_proto [04:16:38]Method is POST - this is cgi request [04:16:38]url: /json_proto [04:16:38]query_string will be loaded in cgi processing [04:16:38]execute_cgi json_proto POST (null) [04:16:38]execute_cgi path=json_proto method=POST [04:16:38]POST find Content-Length [04:16:38]Host: 172.17.42.132:8080 [04:16:38]Content-Length: 1678 [04:16:38]Content-Type: application/json [04:16:38] [04:16:38]POST finish read [04:16:38]Found Content-Length = 1678 [04:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47334", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.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" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 569.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:38]execute_script... [04:16: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)47334", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.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" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 569.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:38]POST & json_proto [04:16:38]process_json_proto [04:16:38]json parsed OK: [04:16:38]protocol is kg_v1.0 [04:16:38]action value=close_receipt [04:16:38]process_action close_receipt [04:16:38]cmd_close_receipt [04:16:38]MH_GetDate [04:16:38]Write to MH i2c: F0 00 00 F1 46 26 [04:16:38]OFD Sender: No OFD packet to send [04:16:38]Write i2c OK [04:16:38]MH_I2C_Read... [04:16:38]Read from MH i2c: F0 [04:16:38]MH_I2C_Read... [04:16:38]Read from MH i2c: F0 09 00 [04:16:38]MH_I2C_Read... [04:16:38]Read from MH i2c: F0 09 00 F1 46 00 AF D5 15 67 4C DF 56 66 16 [04:16:38]GetLastDocTimeStamp 1729484029 [04:16:38]current date 1729484207 [04:16:38]FM_GetShiftState [04:16:38]SAM_PROTO_GetShiftState [04:16:38]wFMCommunicate request_size=4 [04:16:38]MH_SAM_APDU [04:16:38]CAPDU: 80 13 01 00 [04:16:38]Write to MH i2c: E2 08 00 F2 46 80 13 01 00 00 00 00 00 B5 [04:16:38]Write i2c OK [04:16:38]MH_I2C_Read... [04:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:38]Read from MH i2c: E2 [04:16:38]MH_I2C_Read... [04:16:38]Read from MH i2c: E2 0E 00 [04:16:38]MH_I2C_Read... [04:16:38]Read from MH i2c: E2 0E 00 F2 46 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 15 [04:16:38]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [04:16:38]wFMCommunicate OK [04:16:38]SAM_PROTO_GetShiftState done [04:16:38]FM_GetShiftState done [04:16:38]opened in 1729469755 [04:16:38]opened+sec_in_day 1729556155 [04:16:38]quantity*price = 19900 [04:16:38]sum+1 = 19901 [04:16:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 21.10.2024 05:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63025 ФПД: 260357265600106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052248&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63025&fm=260357265600106&tin=02508201610067®Number=0000000000091619&sum=12500 0 [05:22:48]StoreToDocumentArchive [05:22:48]shift 544 fd 63025 [05:22:48]save to /storage/0544/doc_00063025 [05:22:48]save last doc name /storage/0544/doc_00063025 to /storage/kkm_last_doc_name [05:22:48]save OK [05:22:48]Clear old archive folders... [05:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [05:22:48]tlvbuf is 01896640 [05:22:48]SAM_PROTO_ClearQueue [05:22:48]wFMCommunicate request_size=4 [05:22:48]MH_SAM_APDU [05:22:48]CAPDU: 80 09 00 00 [05:22:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [05:22:48]Write i2c OK [05:22:48]MH_I2C_Read... [05:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:48]Read from MH i2c: E2 [05:22:48]MH_I2C_Read... [05:22:48]Read from MH i2c: E2 03 00 [05:22:48]MH_I2C_Read... [05:22:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [05:22:48]RAPDU: 90 00 [05:22:48]wFMCommunicate OK [05:22:48]SAM_PROTO_ClearQueue done [05:22:48]KKMCreateOFDPacket [05:22:48]OFDProtocolAddRootSTLVToBuf [05:22:48]FM_MakeSignedData [05:22:48]FM_MakeSignedData [05:22:48]SAM_PROTO_SignData [05:22:48]wFMCommunicate request_size=4 [05:22:48]MH_SAM_APDU [05:22:48]CAPDU: 80 0D 01 02 [05:22:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [05:22:48]Write i2c OK [05:22:48]MH_I2C_Read... [05:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:48]Read from MH i2c: E2 [05:22:48]MH_I2C_Read... [05:22:48]Read from MH i2c: E2 03 00 [05:22:48]MH_I2C_Read... [05:22:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [05:22:48]RAPDU: 90 00 [05:22:48]wFMCommunicate OK [05:22:48]wFMCommunicate request_size=255 [05:22:48]MH_SAM_APDU [05:22:48]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 16 00 00 00 F4 03 04 00 28 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [05:22:48]Write to MH i2c: E2 02 01 2D 00 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 16 00 00 00 F4 03 04 00 28 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 13 [05:22:49]Write i2c OK [05:22:49]MH_I2C_Read... [05:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:49]Read from MH i2c: E2 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 03 00 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [05:22:49]RAPDU: 90 00 [05:22:49]wFMCommunicate OK [05:22:49]wFMCommunicate request_size=37 [05:22:49]MH_SAM_APDU [05:22:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F6 00 00 35 04 06 00 EC CB 26 54 AE 6A [05:22:49]Write to MH i2c: E2 28 00 2E 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F6 00 00 35 04 06 00 EC CB 26 54 AE 6A 00 00 75 [05:22:49]Write i2c OK [05:22:49]MH_I2C_Read... [05:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:49]Read from MH i2c: E2 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 03 00 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [05:22:49]RAPDU: 90 00 [05:22:49]wFMCommunicate OK [05:22:49]wFMCommunicate request_size=4 [05:22:49]MH_SAM_APDU [05:22:49]CAPDU: 80 0D 03 02 [05:22:49]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [05:22:49]Write i2c OK [05:22:49]MH_I2C_Read... [05:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:49]Read from MH i2c: E2 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 0B 00 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 0B 00 2F 00 00 B0 A5 27 44 C5 91 D2 49 90 00 DC [05:22:49]RAPDU: B0 A5 27 44 C5 91 D2 49 90 00 [05:22:49]wFMCommunicate OK [05:22:49]SAM_PROTO_SignData done [05:22:49]FM_MakeSignedData done [05:22:49]CreateOFDProtocolMessage [05:22:49]wFMCommunicate request_size=4 [05:22:49]MH_SAM_APDU [05:22:49]CAPDU: 80 11 00 00 [05:22:49]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [05:22:49]Write i2c OK [05:22:49]MH_I2C_Read... [05:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:49]Read from MH i2c: E2 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: E2 17 00 [05:22:49]MH_I2C_Read... [05:22:49]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 [05:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:22:49]wFMCommunicate OK [05:22:49]CreateOFDProtocolMessage done [05:22:49]OFDSenderStorePacket 63025 [05:22:49]StoreOFDPacket docnum=63025 [05:22: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 2A 01 00 00 7E F4 22 01 12 36 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 16 00 00 00 F4 03 04 00 28 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F6 00 00 35 04 06 00 EC CB 26 54 AE 6A B0 A5 27 44 C5 91 D2 49 [05:22:49]CheckFolder [05:22:49]dirname=/storage/ofd_packets [05:22:49]CheckFolder done [05:22:49]ProducePacketName [05:22:49]name=ofd_packets/00063025 [05:22:49]NVStorageSaveData ofd_packets/00063025 [05:22:49]File name is /storage/ofd_packets/00063025 [05:22:49]Write 328 bytes [05:22:49]NVStorageSaveData done [05:22:49]OFDSenderStorePacket done [05:22:49]KKMCreateOFDPacket done [05:22:49]NVStorageSaveData kkm_last_timestamp [05:22:49]File name is /storage/kkm_last_timestamp [05:22:49]Write 4 bytes [05:22:49]NVStorageSaveData done [05:22:49]OFD Sender: Processing packet 63025 [packets to send 232, broken 231] [05:22:49]ProducePacketName [05:22:49]name=ofd_packets/00063025 [05:22:49]OFD Sender: To server: pG, [05:22:49]CommunicateWithHost lk.salyk.kg:30040 [05:22:49]ConnectInit lk.salyk.kg [05:22:49]ExternCall_PrintAddStr [05:22:49]wPrintStart [05:22:49]Write to MH i2c: 01 00 00 31 00 31 [05:22:49]Write i2c OK [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: 01 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: 01 07 00 [05:22:49]MH_I2C_Read... [05:22:49]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [05:22:49]RasterBufferAndPrint [05:22:49]line Счет N : (3)47335 [05:22:49]line ИНН: 02508201610067 [05:22:49]line Контрольно-Кассовый Чек [05:22:49]line ПРОДАЖА [05:22:49]line Товар: 5449000054227 [05:22:49]line Напиток Кока-Кола 1л [05:22:49]line 1.000 * 125.00 [05:22:49]line = 125.00 [05:22:49]line НДС 12% НСП 1% [05:22:49]line > о реализуемом товаре [05:22:49]line ИТОГО: 125.00 [05:22:49]line НСП 1% : 1.11 [05:22:49]line НДС 12% : 13.27 [05:22:49]line Наличными: 125.00 [05:22:49]line Безнал.: 0.00 [05:22:49]line Место: АЗС № 86 "Партнер Нефть" [05:22:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:22:49]line СНО: Общий режим [05:22:49]line Чек 22 21.10.2024 05:22 [05:22:49]line Смена: 544 ФФД: 1.0 [05:22:49]line ЗНМ: 0300000154 [05:22:49]line РНМ: 0000000000091619 [05:22:49]line Версия ККМ: 001 [05:22:49]line ФМ: 0000000000874676 [05:22:49]line ФД: 63025 [05:22:49]line ФПД: 260357265600106 [05:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052248&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63025&fm=260357265600106&tin=02508201610067®Number=0000000000091619&sum=12500 [05:22:49]line 0 [05:22:49]written 0, free lines is 4095 [05:22:49]Connected sock=11 [05:22: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 2A 01 00 00 7E F4 22 01 12 36 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 16 00 00 00 F4 03 04 00 28 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F6 00 00 35 04 06 00 EC CB 26 54 AE 6A B0 A5 27 44 C5 91 D2 49 [05:22:50]Write to MH i2c: 01 00 00 59 00 59 [05:22:50]Write i2c OK [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: 01 [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: 01 07 00 [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 26 0D 93 [05:22:50]RasterBufferAndPrint [05:22:50]line [05:22:50]line [05:22:50]line [05:22:50]line [05:22:50]line [05:22:50]written 0, free lines is 3388 [05:22:50]MH_Cut [05:22:50]Write to MH i2c: D1 01 00 60 00 01 32 [05:22:50]Write i2c OK [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: D1 [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: D1 01 00 [05:22:50]MH_I2C_Read... [05:22:50]Read from MH i2c: D1 01 00 60 00 00 31 [05:22:50]Write to MH i2c: 01 00 00 61 00 61 [05:22:50]Write i2c OK [05:22:50]MH_I2C_Read... [05:22: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 1B 77 47 00 30 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F6 00 00 F4 03 04 00 26 8F 15 67 B6 04 01 00 00 E8 7A CD 32 A9 54 4E 10 [05:22:50]CommunicateWithHost err = 0 [05:22:50]CheckOFDResponse [05:22:50]1017 (14) - 77093643461234 [05:22:50]1041 (16) - 0000000000874676 [05:22:50]1040 (4) - 63025 [05:22:50]1012 (4) - 20.10.2024 23:15 [05:22:50]1206 (1) - 0 [05:22:50]OFD Sender: Remove packet 63025 [05:22:50]ProducePacketName [05:22:50]name=ofd_packets/00063025 [05:22:50]NVStorageDeleteData [05:22:50]*** Cut start [05:22:50]*** Partial cut [05:22:50]*** CUTSNS_PIN = 1 [05:22:50]*** CUTSNS_PIN = 0 [05:22:50]OFD Sender: No OFD packet to send [05:22:51]*** Brake cut motor [05:22:51]Read from MH i2c: 01 [05:22:51]MH_I2C_Read... [05:22:51]*** Stop cut motor [05:22:51]*** Cut end [05:22:51]Read from MH i2c: 01 07 00 [05:22:51]MH_I2C_Read... [05:22:51]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [05:22:51]process_action close_receipt done [05:22:51]requested_data is exist [05:22:51]produce_requested_data [05:22:51]requested_item fm.sn is exist - process it [05:22:51]wFMCommunicate request_size=4 [05:22:51]MH_SAM_APDU [05:22:51]CAPDU: 80 11 00 00 [05:22:51]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [05:22:51]Write i2c OK [05:22:51]MH_I2C_Read... [05:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:51]Read from MH i2c: E2 [05:22:51]MH_I2C_Read... [05:22:51]Read from MH i2c: E2 17 00 [05:22:51]MH_I2C_Read... [05:22:51]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 [05:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:22:51]wFMCommunicate OK [05:22:51]requested_item fd.num is exist - process it [05:22:51]SAM_PROTO_GetFieldsCounters [05:22:51]wFMCommunicate request_size=4 [05:22:51]MH_SAM_APDU [05:22:51]CAPDU: 80 13 00 00 [05:22:51]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [05:22:51]Write i2c OK [05:22:51]MH_I2C_Read... [05:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:51]Read from MH i2c: E2 [05:22:51]MH_I2C_Read... [05:22:51]Read from MH i2c: E2 62 00 [05:22:51]MH_I2C_Read... [05:22:51]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 31 F6 00 00 0E 04 04 00 20 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 92 [05:22: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 31 F6 00 00 0E 04 04 00 20 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 [05:22:51]wFMCommunicate OK [05:22:51]SAM_PROTO_GetFieldsCounters done [05:22:51]requested_item shift.num is exist - process it [05:22:51]requested_item shift.opened is exist - process it [05:22:51]req_shift_opened [05:22:51]FM_GetShiftState [05:22:51]SAM_PROTO_GetShiftState [05:22:51]wFMCommunicate request_size=4 [05:22:51]MH_SAM_APDU [05:22:51]CAPDU: 80 13 01 00 [05:22:51]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [05:22:51]Write i2c OK [05:22:51]MH_I2C_Read... [05:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:51]Read from MH i2c: E2 [05:22:51]MH_I2C_Read... [05:22:51]Read from MH i2c: E2 0E 00 [05:22:51]MH_I2C_Read... [05:22:51]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 41 [05:22:51]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:22:51]wFMCommunicate OK [05:22:51]SAM_PROTO_GetShiftState done [05:22:51]FM_GetShiftState done [05:22:51]req_shift_opened done [05:22:51]requested_item shift.open_date is exist - process it [05:22:51]req_shift_open_date [05:22:51]req_shift_open_date done [05:22:51]produce_requested_data done [05:22:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63025,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:22:51]process_action_free close_receipt [05:22:51]json_value_free [05:22:51]json_value_free done [05:22:51]process_json_proto returns [05:22:51]Send response to host [05:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63025,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:22:51]free response buf [05:22:51]execute_script done [05:22:51]execute_script returns [05:22:51]free content buf [05:22:51]Sock 9.Close socket [05:22:51]Sock 9.Thread stoped [05:22:53]accept exits with 7 [05:22:53]New connection [05:22:53]New thread 3067055460 created [05:22:53]Thread 3067198820 joined [05:22:53]Waiting for new connection... [05:22:53] Sock 7.Parse request [05:22:53]Sock 7.Check first char [05:22:53]Sock 7.First char is OK [05:22:53]request: POST /json_proto HTTP/1.0 [05:22:53]Method: POST [05:22:53]URL: /json_proto [05:22:53]Method is POST - this is cgi request [05:22:53]url: /json_proto [05:22:53]query_string will be loaded in cgi processing [05:22:53]execute_cgi json_proto POST (null) [05:22:53]execute_cgi path=json_proto method=POST [05:22:53]POST find Content-Length [05:22:53]Host: 172.17.42.132:8080 [05:22:53]Content-Length: 894 [05:22:53]Content-Type: application/json [05:22:53] [05:22:53]POST finish read [05:22:53]Found Content-Length = 894 [05:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47336", "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 }]} ,{ "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" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:53]execute_script... [05:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47336", "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 }]} ,{ "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" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:53]POST & json_proto [05:22:53]process_json_proto [05:22:53]json parsed OK: [05:22:53]protocol is kg_v1.0 [05:22:53]action value=close_receipt [05:22:53]process_action close_receipt [05:22:53]cmd_close_receipt [05:22:53]MH_GetDate [05:22:53]Write to MH i2c: F0 00 00 65 00 54 [05:22:53]Write i2c OK [05:22:53]MH_I2C_Read... [05:22:53]Read from MH i2c: F0 [05:22:53]MH_I2C_Read... [05:22:53]Read from MH i2c: F0 09 00 [05:22:53]MH_I2C_Read... [05:22:53]Read from MH i2c: F0 09 00 65 00 00 2D E5 15 67 4C DF 56 66 D2 [05:22:53]GetLastDocTimeStamp 1729488168 [05:22:53]current date 1729488173 [05:22:53]FM_GetShiftState [05:22:53]SAM_PROTO_GetShiftState [05:22:53]wFMCommunicate request_size=4 [05:22:53]MH_SAM_APDU [05:22:53]CAPDU: 80 13 01 00 [05:22:53]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [05:22:53]Write i2c OK [05:22:53]MH_I2C_Read... [05:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:53]Read from MH i2c: E2 [05:22:53]MH_I2C_Read... [05:22:53]Read from MH i2c: E2 0E 00 [05:22:53]MH_I2C_Read... [05:22:53]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 43 [05:22:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:22:53]wFMCommunicate OK [05:22:53]SAM_PROTO_GetShiftState done [05:22:53]FM_GetShiftState done [05:22:53]opened in 1729469755 [05:22:53]opened+sec_in_day 1729556155 [05:22:53]quantity*price = 12500 [05:22:53]sum+1 = 12501 [05:22:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 23 21.10.2024 05:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63026 ФПД: 227409328222491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63026&fm=227409328222491&tin=02508201610067®Number=0000000000091619&sum=26900 0 [05:22:54]StoreToDocumentArchive [05:22:54]shift 544 fd 63026 [05:22:54]save to /storage/0544/doc_00063026 [05:22:54]save last doc name /storage/0544/doc_00063026 to /storage/kkm_last_doc_name [05:22:54]save OK [05:22:54]Clear old archive folders... [05:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=381 [05:22:54]tlvbuf is 01830CE0 [05:22:54]SAM_PROTO_ClearQueue [05:22:54]wFMCommunicate request_size=4 [05:22:54]MH_SAM_APDU [05:22:54]CAPDU: 80 09 00 00 [05:22:54]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [05:22:54]Write i2c OK [05:22:54]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]SAM_PROTO_ClearQueue done [05:22:55]KKMCreateOFDPacket [05:22:55]OFDProtocolAddRootSTLVToBuf [05:22:55]FM_MakeSignedData [05:22:55]FM_MakeSignedData [05:22:55]SAM_PROTO_SignData [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 01 02 [05:22:55]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=255 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 02 02 FA 03 00 7D 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 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 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 [05:22:55]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 7D 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 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 14 69 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 5C [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=140 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 17 00 00 00 F4 03 04 00 2E E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F6 00 00 35 04 06 00 CE D3 DC 3A 31 1B [05:22:55]Write to MH i2c: E2 8F 00 76 00 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 17 00 00 00 F4 03 04 00 2E E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F6 00 00 35 04 06 00 CE D3 DC 3A 31 1B 00 00 D5 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 03 02 [05:22:55]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:55]OFD Sender: No OFD packet to send [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 0B 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 0B 00 77 00 00 19 D7 A6 95 67 FD DE 77 90 00 D7 [05:22:55]RAPDU: 19 D7 A6 95 67 FD DE 77 90 00 [05:22:55]wFMCommunicate OK [05:22:55]SAM_PROTO_SignData done [05:22:55]FM_MakeSignedData done [05:22:55]CreateOFDProtocolMessage [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 11 00 00 [05:22:55]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 17 00 [05:22:55]MH_I2C_Read... [05:22:55]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 [05:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:22:55]wFMCommunicate OK [05:22:55]CreateOFDProtocolMessage done [05:22:55]OFDSenderStorePacket 63026 [05:22:55]StoreOFDPacket docnum=63026 [05:22: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 91 01 00 00 86 D8 89 01 3D A9 5A 03 01 00 03 00 7D 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 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 14 69 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 28 0B 00 00 00 00 07 04 06 00 14 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 17 00 00 00 F4 03 04 00 2E E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F6 00 00 35 04 06 00 CE D3 DC 3A 31 1B 19 D7 A6 95 67 FD DE 77 [05:22:55]CheckFolder [05:22:55]dirname=/storage/ofd_packets [05:22:55]CheckFolder done [05:22:55]ProducePacketName [05:22:55]name=ofd_packets/00063026 [05:22:55]NVStorageSaveData ofd_packets/00063026 [05:22:55]File name is /storage/ofd_packets/00063026 [05:22:55]Write 431 bytes [05:22:55]NVStorageSaveData done [05:22:55]OFDSenderStorePacket done [05:22:55]KKMCreateOFDPacket done [05:22:55]NVStorageSaveData kkm_last_timestamp [05:22:56]File name is /storage/kkm_last_timestamp [05:22:56]Write 4 bytes [05:22:56]NVStorageSaveData done [05:22:56]ExternCall_PrintAddStr [05:22:56]wPrintStart [05:22:56]Write to MH i2c: 01 00 00 79 00 79 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [05:22:56]RasterBufferAndPrint [05:22:56]line Счет N : (3)47336 [05:22:56]line ИНН: 02508201610067 [05:22:56]line Контрольно-Кассовый Чек [05:22:56]line ПРОДАЖА [05:22:56]line Товар: 5449000054227 [05:22:56]line Напиток Кока-Кола 1л [05:22:56]line 1.000 * 125.00 [05:22:56]line = 125.00 [05:22:56]line НДС 12% НСП 1% [05:22:56]line > о реализуемом товаре [05:22:56]line Товар: 48743570 [05:22:56]line Сигареты Winston XStyle Blue [05:22:56]line 1.000 * 144.00 [05:22:56]line = 144.00 [05:22:56]line НДС 12% НСП 1% [05:22:56]line > о реализуемом товаре [05:22:56]line ИТОГО: 269.00 [05:22:56]line НСП 1% : 2.38 [05:22:56]line НДС 12% : 28.56 [05:22:56]line Наличными: 269.00 [05:22:56]line Безнал.: 0.00 [05:22:56]line Место: АЗС № 86 "Партнер Нефть" [05:22:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:22:56]line СНО: Общий режим [05:22:56]line Чек 23 21.10.2024 05:22 [05:22:56]line Смена: 544 ФФД: 1.0 [05:22:56]line ЗНМ: 0300000154 [05:22:56]line РНМ: 0000000000091619 [05:22:56]line Версия ККМ: 001 [05:22:56]line ФМ: 0000000000874676 [05:22:56]line ФД: 63026 [05:22:56]line ФПД: 227409328222491 [05:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63026&fm=227409328222491&tin=02508201610067®Number=0000000000091619&sum=26900 [05:22:56]line 0 [05:22:56]written 0, free lines is 4095 [05:22:56]OFD Sender: Processing packet 63026 [packets to send 232, broken 231] [05:22:56]ProducePacketName [05:22:56]name=ofd_packets/00063026 [05:22:56]OFD Sender: To server: pG, [05:22:56]CommunicateWithHost lk.salyk.kg:30040 [05:22:56]ConnectInit lk.salyk.kg [05:22:56]Connected sock=10 [05:22:56]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 91 01 00 00 86 D8 89 01 3D A9 5A 03 01 00 03 00 7D 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 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 14 69 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 28 0B 00 00 00 00 07 04 06 00 14 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 17 00 00 00 F4 03 04 00 2E E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F6 00 00 35 04 06 00 CE D3 DC 3A 31 1B 19 D7 A6 95 67 FD DE 77 [05:22:56]Write to MH i2c: 01 00 00 A7 00 A7 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 DA 0C 94 [05:22:56]RasterBufferAndPrint [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]written 0, free lines is 3317 [05:22:56]MH_Cut [05:22:56]Write to MH i2c: D1 01 00 AE 00 01 80 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 01 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 01 00 AE 00 00 7F [05:22:56]Write to MH i2c: 01 00 00 AF 00 AF [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22: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 93 63 47 00 4F 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F6 00 00 F4 03 04 00 2D 8F 15 67 B6 04 01 00 00 55 06 E0 89 66 44 EF 1A [05:22:56]CommunicateWithHost err = 0 [05:22:56]CheckOFDResponse [05:22:56]1017 (14) - 77093643461234 [05:22:56]1041 (16) - 0000000000874676 [05:22:56]1040 (4) - 63026 [05:22:56]1012 (4) - 20.10.2024 23:15 [05:22:56]1206 (1) - 0 [05:22:56]OFD Sender: Remove packet 63026 [05:22:56]ProducePacketName [05:22:56]name=ofd_packets/00063026 [05:22:56]NVStorageDeleteData [05:22:57]*** Cut start [05:22:57]*** Partial cut [05:22:57]*** CUTSNS_PIN = 1 [05:22:57]*** CUTSNS_PIN = 0 [05:22:57]OFD Sender: No OFD packet to send [05:22:57]*** Brake cut motor [05:22:57]Read from MH i2c: 01 [05:22:57]MH_I2C_Read... [05:22:57]*** Stop cut motor [05:22:57]*** Cut end [05:22:57]Read from MH i2c: 01 07 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [05:22:57]process_action close_receipt done [05:22:57]requested_data is exist [05:22:57]produce_requested_data [05:22:57]requested_item fm.sn is exist - process it [05:22:57]wFMCommunicate request_size=4 [05:22:57]MH_SAM_APDU [05:22:57]CAPDU: 80 11 00 00 [05:22:57]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [05:22:57]Write i2c OK [05:22:57]MH_I2C_Read... [05:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:57]Read from MH i2c: E2 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 17 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 83 [05:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:22:57]wFMCommunicate OK [05:22:57]requested_item fd.num is exist - process it [05:22:57]SAM_PROTO_GetFieldsCounters [05:22:57]wFMCommunicate request_size=4 [05:22:57]MH_SAM_APDU [05:22:57]CAPDU: 80 13 00 00 [05:22:57]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [05:22:58]Write i2c OK [05:22:58]MH_I2C_Read... [05:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:58]Read from MH i2c: E2 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 62 00 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 62 00 B1 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 32 F6 00 00 0E 04 04 00 20 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 E4 [05:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 32 F6 00 00 0E 04 04 00 20 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 [05:22:58]wFMCommunicate OK [05:22:58]SAM_PROTO_GetFieldsCounters done [05:22:58]requested_item shift.num is exist - process it [05:22:58]requested_item shift.opened is exist - process it [05:22:58]req_shift_opened [05:22:58]FM_GetShiftState [05:22:58]SAM_PROTO_GetShiftState [05:22:58]wFMCommunicate request_size=4 [05:22:58]MH_SAM_APDU [05:22:58]CAPDU: 80 13 01 00 [05:22:58]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [05:22:58]Write i2c OK [05:22:58]MH_I2C_Read... [05:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:58]Read from MH i2c: E2 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 0E 00 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8F [05:22:58]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:22:58]wFMCommunicate OK [05:22:58]SAM_PROTO_GetShiftState done [05:22:58]FM_GetShiftState done [05:22:58]req_shift_opened done [05:22:58]requested_item shift.open_date is exist - process it [05:22:58]req_shift_open_date [05:22:58]req_shift_open_date done [05:22:58]produce_requested_data done [05:22:58]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63026,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:22:58]process_action_free close_receipt [05:22:58]json_value_free [05:22:58]json_value_free done [05:22:58]process_json_proto returns [05:22:58]Send response to host [05:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63026,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:22:58]free response buf [05:22:58]execute_script done [05:22:58]execute_script returns [05:22:58]free content buf [05:22:58]Sock 7.Close socket [05:22:58]Sock 7.Thread stoped [05:22:59]accept exits with 9 [05:22:59]New connection [05:22:59]New thread 3067198820 created [05:22:59]Thread 3067055460 joined [05:22:59]Waiting for new connection... [05:22:59] Sock 9.Parse request [05:22:59]Sock 9.Check first char [05:22:59]Sock 9.First char is OK [05:22:59]request: POST /json_proto HTTP/1.0 [05:22:59]Method: POST [05:22:59]URL: /json_proto [05:22:59]Method is POST - this is cgi request [05:22:59]url: /json_proto [05:22:59]query_string will be loaded in cgi processing [05:22:59]execute_cgi json_proto POST (null) [05:22:59]execute_cgi path=json_proto method=POST [05:22:59]POST find Content-Length [05:22:59]Host: 172.17.42.132:8080 [05:22:59]Content-Length: 961 [05:22:59]Content-Type: application/json [05:22:59] [05:22:59]POST finish read [05:22:59]Found Content-Length = 961 [05:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47337", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:59]execute_script... [05:22: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)47337", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 234.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:59]POST & json_proto [05:22:59]process_json_proto [05:22:59]json parsed OK: [05:22:59]protocol is kg_v1.0 [05:22:59]action value=close_receipt [05:22:59]process_action close_receipt [05:22:59]cmd_close_receipt [05:22:59]MH_GetDate [05:22:59]Write to MH i2c: F0 00 00 B3 00 A2 [05:22:59]Write i2c OK [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: F0 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: F0 09 00 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: F0 09 00 B3 00 00 33 E5 15 67 4C DF 56 66 26 [05:22:59]GetLastDocTimeStamp 1729488174 [05:22:59]current date 1729488179 [05:22:59]FM_GetShiftState [05:22:59]SAM_PROTO_GetShiftState [05:22:59]wFMCommunicate request_size=4 [05:22:59]MH_SAM_APDU [05:22:59]CAPDU: 80 13 01 00 [05:22:59]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [05:22:59]Write i2c OK [05:22:59]MH_I2C_Read... [05:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:59]Read from MH i2c: E2 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 0E 00 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 91 [05:22:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:22:59]wFMCommunicate OK [05:22:59]SAM_PROTO_GetShiftState done [05:22:59]FM_GetShiftState done [05:22:59]opened in 1729469755 [05:22:59]opened+sec_in_day 1729556155 [05:22:59]quantity*price = 10000 [05:22:59]sum+1 = 10001 [05:22:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 234.00 НСП 1% : 2.07 НДС 12% : 24.85 Наличными: 234.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 24 21.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63027 ФПД: 251383698239503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052300&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63027&fm=251383698239503&tin=02508201610067®Number=0000000000091619&sum=23400 0 [05:23:01]StoreToDocumentArchive [05:23:01]shift 544 fd 63027 [05:23:01]save to /storage/0544/doc_00063027 [05:23:01]save last doc name /storage/0544/doc_00063027 to /storage/kkm_last_doc_name [05:23:01]save OK [05:23:01]Clear old archive folders... [05:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=404 [05:23:01]tlvbuf is 01833B30 [05:23:01]SAM_PROTO_ClearQueue [05:23:01]wFMCommunicate request_size=4 [05:23:01]MH_SAM_APDU [05:23:01]CAPDU: 80 09 00 00 [05:23:01]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:01]Read from MH i2c: E2 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: E2 03 00 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [05:23:01]RAPDU: 90 00 [05:23:01]wFMCommunicate OK [05:23:01]SAM_PROTO_ClearQueue done [05:23:01]KKMCreateOFDPacket [05:23:01]OFDProtocolAddRootSTLVToBuf [05:23:01]FM_MakeSignedData [05:23:01]FM_MakeSignedData [05:23:01]SAM_PROTO_SignData [05:23:01]wFMCommunicate request_size=4 [05:23:01]MH_SAM_APDU [05:23:01]CAPDU: 80 0D 01 02 [05:23:01]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:01]Read from MH i2c: E2 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: E2 03 00 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [05:23:01]RAPDU: 90 00 [05:23:01]wFMCommunicate OK [05:23:01]wFMCommunicate request_size=255 [05:23:01]MH_SAM_APDU [05:23:01]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 68 5B 00 [05:23:01]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 68 5B 00 00 00 86 [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 03 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [05:23:02]RAPDU: 90 00 [05:23:02]wFMCommunicate OK [05:23:02]wFMCommunicate request_size=163 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 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 34 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F6 00 00 35 04 06 00 E4 A1 D4 09 30 0F [05:23:02]Write to MH i2c: E2 A6 00 C4 00 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 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 34 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F6 00 00 35 04 06 00 E4 A1 D4 09 30 0F 00 00 A7 [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]OFD Sender: No OFD packet to send [05:23:02]Read from MH i2c: E2 03 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [05:23:02]RAPDU: 90 00 [05:23:02]wFMCommunicate OK [05:23:02]wFMCommunicate request_size=4 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 0D 03 02 [05:23:02]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 0B 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 0B 00 C5 00 00 2C 8B 66 24 6E 27 41 18 90 00 70 [05:23:02]RAPDU: 2C 8B 66 24 6E 27 41 18 90 00 [05:23:02]wFMCommunicate OK [05:23:02]SAM_PROTO_SignData done [05:23:02]FM_MakeSignedData done [05:23:02]CreateOFDProtocolMessage [05:23:02]wFMCommunicate request_size=4 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 11 00 00 [05:23:02]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 17 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [05:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:02]wFMCommunicate OK [05:23:02]CreateOFDProtocolMessage done [05:23:02]OFDSenderStorePacket 63027 [05:23:02]StoreOFDPacket docnum=63027 [05:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A8 01 00 00 DB 0D A0 01 A8 75 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 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 34 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F6 00 00 35 04 06 00 E4 A1 D4 09 30 0F 2C 8B 66 24 6E 27 41 18 [05:23:02]CheckFolder [05:23:02]dirname=/storage/ofd_packets [05:23:02]CheckFolder done [05:23:02]ProducePacketName [05:23:02]name=ofd_packets/00063027 [05:23:02]NVStorageSaveData ofd_packets/00063027 [05:23:02]File name is /storage/ofd_packets/00063027 [05:23:02]Write 454 bytes [05:23:02]NVStorageSaveData done [05:23:02]OFDSenderStorePacket done [05:23:02]KKMCreateOFDPacket done [05:23:02]NVStorageSaveData kkm_last_timestamp [05:23:02]File name is /storage/kkm_last_timestamp [05:23:02]Write 4 bytes [05:23:02]NVStorageSaveData done [05:23:02]ExternCall_PrintAddStr [05:23:02]wPrintStart [05:23:02]Write to MH i2c: 01 00 00 C7 00 C7 [05:23:02]OFD Sender: Processing packet 63027 [packets to send 232, broken 231] [05:23:02]ProducePacketName [05:23:02]name=ofd_packets/00063027 [05:23:02]OFD Sender: To server: pG, [05:23:02]CommunicateWithHost lk.salyk.kg:30040 [05:23:02]ConnectInit lk.salyk.kg [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: 01 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: 01 07 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [05:23:02]RasterBufferAndPrint [05:23:02]line Счет N : (3)47337 [05:23:02]line ИНН: 02508201610067 [05:23:02]line Контрольно-Кассовый Чек [05:23:02]line ПРОДАЖА [05:23:02]line Товар: 4870001571528 [05:23:02]line Вода ASU пит н.газ персик ПЭТ 1,0 л [05:23:02]line 1.000 * 100.00 [05:23:02]line = 100.00 [05:23:02]line НДС 12% НСП 1% [05:23:02]line > о реализуемом товаре [05:23:02]line Товар: 4860019001346 [05:23:02]line Вода Боржоми 0,5л ст [05:23:02]line 1.000 * 134.00 [05:23:02]line = 134.00 [05:23:02]line НДС 12% НСП 1% [05:23:02]line > о реализуемом товаре [05:23:02]line ИТОГО: 234.00 [05:23:02]line НСП 1% : 2.07 [05:23:02]line НДС 12% : 24.85 [05:23:02]line Наличными: 234.00 [05:23:02]line Безнал.: 0.00 [05:23:02]line Место: АЗС № 86 "Партнер Нефть" [05:23:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:23:02]line СНО: Общий режим [05:23:02]line Чек 24 21.10.2024 05:23 [05:23:02]line Смена: 544 ФФД: 1.0 [05:23:02]line ЗНМ: 0300000154 [05:23:02]line РНМ: 0000000000091619 [05:23:02]line Версия ККМ: 001 [05:23:02]line ФМ: 0000000000874676 [05:23:02]line ФД: 63027 [05:23:02]line ФПД: 251383698239503 [05:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052300&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63027&fm=251383698239503&tin=02508201610067®Number=0000000000091619&sum=23400 [05:23:02]line 0 [05:23:02]written 0, free lines is 4095 [05:23:02]Connected sock=10 [05:23:02]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 A8 01 00 00 DB 0D A0 01 A8 75 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 68 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 09 00 00 00 00 07 04 06 00 68 5B 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 34 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F6 00 00 35 04 06 00 E4 A1 D4 09 30 0F 2C 8B 66 24 6E 27 41 18 [05:23:03]Write to MH i2c: 01 00 00 F6 00 F6 [05:23:03]Write i2c OK [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: 01 [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: 01 07 00 [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 E5 0C EE [05:23:03]RasterBufferAndPrint [05:23:03]line [05:23:03]line [05:23:03]line [05:23:03]line [05:23:03]line [05:23:03]written 0, free lines is 3334 [05:23:03]MH_Cut [05:23:03]Write to MH i2c: D1 01 00 FD 00 01 CF [05:23:03]Write i2c OK [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: D1 [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: D1 01 00 [05:23:03]MH_I2C_Read... [05:23:03]Read from MH i2c: D1 01 00 FD 00 00 CE [05:23:03]Write to MH i2c: 01 00 00 FE 00 FE [05:23:03]Write i2c OK [05:23:03]MH_I2C_Read... [05:23:03]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 6C 60 47 00 ED 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F6 00 00 F4 03 04 00 33 8F 15 67 B6 04 01 00 00 AB 81 00 85 17 E1 0B F6 [05:23:03]CommunicateWithHost err = 0 [05:23:03]CheckOFDResponse [05:23:03]1017 (14) - 77093643461234 [05:23:03]1041 (16) - 0000000000874676 [05:23:03]1040 (4) - 63027 [05:23:03]1012 (4) - 20.10.2024 23:16 [05:23:03]1206 (1) - 0 [05:23:03]OFD Sender: Remove packet 63027 [05:23:03]ProducePacketName [05:23:03]name=ofd_packets/00063027 [05:23:03]NVStorageDeleteData [05:23:03]*** Cut start [05:23:03]*** Partial cut [05:23:03]*** CUTSNS_PIN = 1 [05:23:04]*** CUTSNS_PIN = 0 [05:23:04]OFD Sender: No OFD packet to send [05:23:04]*** Brake cut motor [05:23:04]Read from MH i2c: 01 [05:23:04]MH_I2C_Read... [05:23:04]*** Stop cut motor [05:23:04]*** Cut end [05:23:04]Read from MH i2c: 01 07 00 [05:23:04]MH_I2C_Read... [05:23:04]Read from MH i2c: 01 07 00 FE 00 00 00 00 00 00 FF 0F 13 [05:23:04]process_action close_receipt done [05:23:04]requested_data is exist [05:23:04]produce_requested_data [05:23:04]requested_item fm.sn is exist - process it [05:23:04]wFMCommunicate request_size=4 [05:23:04]MH_SAM_APDU [05:23:04]CAPDU: 80 11 00 00 [05:23:04]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [05:23:04]Write i2c OK [05:23:04]MH_I2C_Read... [05:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:04]Read from MH i2c: E2 [05:23:04]MH_I2C_Read... [05:23:04]Read from MH i2c: E2 17 00 [05:23:04]MH_I2C_Read... [05:23:04]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D2 [05:23: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:23:04]wFMCommunicate OK [05:23:04]requested_item fd.num is exist - process it [05:23:04]SAM_PROTO_GetFieldsCounters [05:23:04]wFMCommunicate request_size=4 [05:23:04]MH_SAM_APDU [05:23:04]CAPDU: 80 13 00 00 [05:23:04]Write to MH i2c: E2 08 00 00 01 80 13 00 00 00 00 00 00 7D [05:23:04]Write i2c OK [05:23:04]MH_I2C_Read... [05:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:04]Read from MH i2c: E2 [05:23:04]MH_I2C_Read... [05:23:04]Read from MH i2c: E2 62 00 [05:23:04]MH_I2C_Read... [05:23:04]Read from MH i2c: E2 62 00 00 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 33 F6 00 00 0E 04 04 00 20 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 38 [05:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 33 F6 00 00 0E 04 04 00 20 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 [05:23:04]wFMCommunicate OK [05:23:04]SAM_PROTO_GetFieldsCounters done [05:23:04]requested_item shift.num is exist - process it [05:23:04]requested_item shift.opened is exist - process it [05:23:04]req_shift_opened [05:23:04]FM_GetShiftState [05:23:04]SAM_PROTO_GetShiftState [05:23:04]wFMCommunicate request_size=4 [05:23:04]MH_SAM_APDU [05:23:04]CAPDU: 80 13 01 00 [05:23:04]Write to MH i2c: E2 08 00 01 01 80 13 01 00 00 00 00 00 7F [05:23:05]Write i2c OK [05:23:05]MH_I2C_Read... [05:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:05]Read from MH i2c: E2 [05:23:05]MH_I2C_Read... [05:23:05]Read from MH i2c: E2 0E 00 [05:23:05]MH_I2C_Read... [05:23:05]Read from MH i2c: E2 0E 00 01 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 DF [05:23:05]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:05]wFMCommunicate OK [05:23:05]SAM_PROTO_GetShiftState done [05:23:05]FM_GetShiftState done [05:23:05]req_shift_opened done [05:23:05]requested_item shift.open_date is exist - process it [05:23:05]req_shift_open_date [05:23:05]req_shift_open_date done [05:23:05]produce_requested_data done [05:23:05]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63027,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:23:05]process_action_free close_receipt [05:23:05]json_value_free [05:23:05]json_value_free done [05:23:05]process_json_proto returns [05:23:05]Send response to host [05:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63027,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:23:05]free response buf [05:23:05]execute_script done [05:23:05]execute_script returns [05:23:05]free content buf [05:23:05]Sock 9.Close socket [05:23:05]Sock 9.Thread stoped [05:23:06]accept exits with 7 [05:23:06]New connection [05:23:06]New thread 3067055460 created [05:23:06]Thread 3067198820 joined [05:23:06]Waiting for new connection... [05:23:06] Sock 7.Parse request [05:23:06]Sock 7.Check first char [05:23:06]Sock 7.First char is OK [05:23:06]request: POST /json_proto HTTP/1.0 [05:23:06]Method: POST [05:23:06]URL: /json_proto [05:23:06]Method is POST - this is cgi request [05:23:06]url: /json_proto [05:23:06]query_string will be loaded in cgi processing [05:23:06]execute_cgi json_proto POST (null) [05:23:06]execute_cgi path=json_proto method=POST [05:23:06]POST find Content-Length [05:23:06]Host: 172.17.42.132:8080 [05:23:06]Content-Length: 961 [05:23:06]Content-Type: application/json [05:23:06] [05:23:06]POST finish read [05:23:06]Found Content-Length = 961 [05:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47338", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 4.000, "sum" : 580.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" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:06]execute_script... [05:23: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)47338", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 4.000, "sum" : 580.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" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:06]POST & json_proto [05:23:06]process_json_proto [05:23:06]json parsed OK: [05:23:06]protocol is kg_v1.0 [05:23:06]action value=close_receipt [05:23:06]process_action close_receipt [05:23:06]cmd_close_receipt [05:23:06]MH_GetDate [05:23:06]Write to MH i2c: F0 00 00 02 01 F2 [05:23:06]Write i2c OK [05:23:06]MH_I2C_Read... [05:23:06]Read from MH i2c: F0 [05:23:06]MH_I2C_Read... [05:23:06]Read from MH i2c: F0 09 00 [05:23:06]MH_I2C_Read... [05:23:06]Read from MH i2c: F0 09 00 02 01 00 3A E5 15 67 4C DF 56 66 7D [05:23:06]GetLastDocTimeStamp 1729488180 [05:23:06]current date 1729488186 [05:23:06]FM_GetShiftState [05:23:06]SAM_PROTO_GetShiftState [05:23:06]wFMCommunicate request_size=4 [05:23:06]MH_SAM_APDU [05:23:06]CAPDU: 80 13 01 00 [05:23:06]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [05:23:06]Write i2c OK [05:23:06]MH_I2C_Read... [05:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:06]Read from MH i2c: E2 [05:23:06]MH_I2C_Read... [05:23:06]Read from MH i2c: E2 0E 00 [05:23:06]MH_I2C_Read... [05:23:06]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E1 [05:23:06]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:06]wFMCommunicate OK [05:23:06]SAM_PROTO_GetShiftState done [05:23:06]FM_GetShiftState done [05:23:06]opened in 1729469755 [05:23:06]opened+sec_in_day 1729556155 [05:23:06]quantity*price = 58000 [05:23:06]sum+1 = 58001 [05:23:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 640.00 НСП 1% : 5.66 НДС 12% : 67.96 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 25 21.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63028 ФПД: 2734802410904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052306&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63028&fm=2734802410904&tin=02508201610067®Number=0000000000091619&sum=64000 0 [05:23:07]StoreToDocumentArchive [05:23:07]shift 544 fd 63028 [05:23:07]save to /storage/0544/doc_00063028 [05:23:07]save last doc name /storage/0544/doc_00063028 to /storage/kkm_last_doc_name [05:23:07]save OK [05:23:07]Clear old archive folders... [05:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=398 [05:23:07]tlvbuf is 018CA900 [05:23:07]SAM_PROTO_ClearQueue [05:23:07]wFMCommunicate request_size=4 [05:23:07]MH_SAM_APDU [05:23:07]CAPDU: 80 09 00 00 [05:23:07]Write to MH i2c: E2 08 00 10 01 80 09 00 00 00 00 00 00 83 [05:23:07]Write i2c OK [05:23:07]MH_I2C_Read... [05:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:07]Read from MH i2c: E2 [05:23:07]MH_I2C_Read... [05:23:07]Read from MH i2c: E2 03 00 [05:23:07]MH_I2C_Read... [05:23:07]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [05:23:07]RAPDU: 90 00 [05:23:07]wFMCommunicate OK [05:23:07]SAM_PROTO_ClearQueue done [05:23:07]KKMCreateOFDPacket [05:23:07]OFDProtocolAddRootSTLVToBuf [05:23:07]FM_MakeSignedData [05:23:07]FM_MakeSignedData [05:23:07]SAM_PROTO_SignData [05:23:07]wFMCommunicate request_size=4 [05:23:07]MH_SAM_APDU [05:23:07]CAPDU: 80 0D 01 02 [05:23:07]Write to MH i2c: E2 08 00 11 01 80 0D 01 02 00 00 00 00 8B [05:23:07]Write i2c OK [05:23:07]MH_I2C_Read... [05:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:08]Read from MH i2c: E2 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [05:23:08]RAPDU: 90 00 [05:23:08]wFMCommunicate OK [05:23:08]wFMCommunicate request_size=255 [05:23:08]MH_SAM_APDU [05:23:08]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 90 E2 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 00 FA 00 00 00 00 EB 03 26 [05:23:08]Write to MH i2c: E2 02 01 12 01 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 90 E2 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 00 FA 00 00 00 00 EB 03 26 00 00 A5 [05:23:08]Write i2c OK [05:23:08]MH_I2C_Read... [05:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:08]Read from MH i2c: E2 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [05:23:08]RAPDU: 90 00 [05:23:08]wFMCommunicate OK [05:23:08]wFMCommunicate request_size=157 [05:23:08]MH_SAM_APDU [05:23:08]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 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 3A E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F6 00 00 35 04 06 00 02 7C BE ED 1D 98 [05:23:08]Write to MH i2c: E2 A0 00 13 01 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 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 3A E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F6 00 00 35 04 06 00 02 7C BE ED 1D 98 00 00 A4 [05:23:08]Write i2c OK [05:23:08]MH_I2C_Read... [05:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:08]Read from MH i2c: E2 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 [05:23:08]MH_I2C_Read... [05:23:08]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [05:23:08]RAPDU: 90 00 [05:23:08]wFMCommunicate OK [05:23:08]wFMCommunicate request_size=4 [05:23:08]MH_SAM_APDU [05:23:08]CAPDU: 80 0D 03 02 [05:23:08]Write to MH i2c: E2 08 00 14 01 80 0D 03 02 00 00 00 00 90 [05:23:08]Write i2c OK [05:23:08]MH_I2C_Read... [05:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:09]Read from MH i2c: E2 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: E2 0B 00 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: E2 0B 00 14 01 00 4A CE C5 53 97 BD BF BA 90 00 8E [05:23:09]RAPDU: 4A CE C5 53 97 BD BF BA 90 00 [05:23:09]wFMCommunicate OK [05:23:09]SAM_PROTO_SignData done [05:23:09]FM_MakeSignedData done [05:23:09]CreateOFDProtocolMessage [05:23:09]wFMCommunicate request_size=4 [05:23:09]MH_SAM_APDU [05:23:09]CAPDU: 80 11 00 00 [05:23:09]Write to MH i2c: E2 08 00 15 01 80 11 00 00 00 00 00 00 90 [05:23:09]Write i2c OK [05:23:09]MH_I2C_Read... [05:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:09]Read from MH i2c: E2 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: E2 17 00 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: E2 17 00 15 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E9 [05:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:09]wFMCommunicate OK [05:23:09]CreateOFDProtocolMessage done [05:23:09]OFDSenderStorePacket 63028 [05:23:09]StoreOFDPacket docnum=63028 [05:23: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 A2 01 00 00 61 65 9A 01 DC F6 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 90 E2 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 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 3A E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F6 00 00 35 04 06 00 02 7C BE ED 1D 98 4A CE C5 53 97 BD BF BA [05:23:09]CheckFolder [05:23:09]dirname=/storage/ofd_packets [05:23:09]CheckFolder done [05:23:09]ProducePacketName [05:23:09]name=ofd_packets/00063028 [05:23:09]NVStorageSaveData ofd_packets/00063028 [05:23:09]File name is /storage/ofd_packets/00063028 [05:23:09]Write 448 bytes [05:23:09]NVStorageSaveData done [05:23:09]OFDSenderStorePacket done [05:23:09]KKMCreateOFDPacket done [05:23:09]NVStorageSaveData kkm_last_timestamp [05:23:09]File name is /storage/kkm_last_timestamp [05:23:09]Write 4 bytes [05:23:09]NVStorageSaveData done [05:23:09]ExternCall_PrintAddStr [05:23:09]wPrintStart [05:23:09]Write to MH i2c: 01 00 00 16 01 17 [05:23:09]Write i2c OK [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: 01 [05:23:09]MH_I2C_Read... [05:23:09]OFD Sender: Processing packet 63028 [packets to send 232, broken 231] [05:23:09]ProducePacketName [05:23:09]name=ofd_packets/00063028 [05:23:09]OFD Sender: To server: pG, [05:23:09]CommunicateWithHost lk.salyk.kg:30040 [05:23:09]ConnectInit lk.salyk.kg [05:23:09]Read from MH i2c: 01 07 00 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: 01 07 00 16 01 00 00 00 00 00 FF 0F 2C [05:23:09]RasterBufferAndPrint [05:23:09]line Счет N : (3)47338 [05:23:09]line ИНН: 02508201610067 [05:23:09]line Контрольно-Кассовый Чек [05:23:09]line ПРОДАЖА [05:23:09]line Товар: 4700001610012 [05:23:09]line Пиво Арпа 0,5л [05:23:09]line 4.000 * 145.00 [05:23:09]line = 580.00 [05:23:09]line НДС 12% НСП 1% [05:23:09]line > о реализуемом товаре [05:23:09]line Товар: 4700000160792 [05:23:09]line Снек Курут классический (круглый) [05:23:09]line 1.000 * 60.00 [05:23:09]line = 60.00 [05:23:09]line НДС 12% НСП 1% [05:23:09]line > о реализуемом товаре [05:23:09]line ИТОГО: 640.00 [05:23:09]line НСП 1% : 5.66 [05:23:09]line НДС 12% : 67.96 [05:23:09]line Наличными: 640.00 [05:23:09]line Безнал.: 0.00 [05:23:09]line Место: АЗС № 86 "Партнер Нефть" [05:23:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:23:09]line СНО: Общий режим [05:23:09]line Чек 25 21.10.2024 05:23 [05:23:09]line Смена: 544 ФФД: 1.0 [05:23:09]line ЗНМ: 0300000154 [05:23:09]line РНМ: 0000000000091619 [05:23:09]line Версия ККМ: 001 [05:23:09]line ФМ: 0000000000874676 [05:23:09]line ФД: 63028 [05:23:09]line ФПД: 2734802410904 [05:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052306&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63028&fm=2734802410904&tin=02508201610067®Number=0000000000091619&sum=64000 [05:23:09]line 0 [05:23:09]written 0, free lines is 4095 [05:23:09]Connected sock=10 [05:23: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 A2 01 00 00 61 65 9A 01 DC F6 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 90 E2 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 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 3A E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F6 00 00 35 04 06 00 02 7C BE ED 1D 98 4A CE C5 53 97 BD BF BA [05:23:09]Write to MH i2c: 01 00 00 45 01 46 [05:23:09]Write i2c OK [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: 01 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: 01 07 00 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 DF 0C 38 [05:23:09]RasterBufferAndPrint [05:23:09]line [05:23:09]line [05:23:09]line [05:23:09]line [05:23:09]line [05:23:09]written 0, free lines is 3334 [05:23:09]MH_Cut [05:23:09]Write to MH i2c: D1 01 00 4C 01 01 1F [05:23:09]Write i2c OK [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: D1 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: D1 01 00 [05:23:09]MH_I2C_Read... [05:23:09]Read from MH i2c: D1 01 00 4C 01 00 1E [05:23:09]Write to MH i2c: 01 00 00 4D 01 4E [05:23:09]Write i2c OK [05:23:09]MH_I2C_Read... [05:23: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 AA 55 47 00 AE 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F6 00 00 F4 03 04 00 3A 8F 15 67 B6 04 01 00 00 9E 28 BD 4B 03 31 85 86 [05:23:10]CommunicateWithHost err = 0 [05:23:10]CheckOFDResponse [05:23:10]1017 (14) - 77093643461234 [05:23:10]1041 (16) - 0000000000874676 [05:23:10]1040 (4) - 63028 [05:23:10]1012 (4) - 20.10.2024 23:16 [05:23:10]1206 (1) - 0 [05:23:10]OFD Sender: Remove packet 63028 [05:23:10]ProducePacketName [05:23:10]name=ofd_packets/00063028 [05:23:10]NVStorageDeleteData [05:23:10]*** Cut start [05:23:10]*** Partial cut [05:23:10]*** CUTSNS_PIN = 1 [05:23:10]*** CUTSNS_PIN = 0 [05:23:10]OFD Sender: No OFD packet to send [05:23:10]*** Brake cut motor [05:23:11]Read from MH i2c: 01 [05:23:11]MH_I2C_Read... [05:23:11]*** Stop cut motor [05:23:11]*** Cut end [05:23:11]Read from MH i2c: 01 07 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [05:23:11]process_action close_receipt done [05:23:11]requested_data is exist [05:23:11]produce_requested_data [05:23:11]requested_item fm.sn is exist - process it [05:23:11]wFMCommunicate request_size=4 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 11 00 00 [05:23:11]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:11]Read from MH i2c: E2 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 17 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 22 [05:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:11]wFMCommunicate OK [05:23:11]requested_item fd.num is exist - process it [05:23:11]SAM_PROTO_GetFieldsCounters [05:23:11]wFMCommunicate request_size=4 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 13 00 00 [05:23:11]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:11]Read from MH i2c: E2 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 62 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 62 00 4F 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 34 F6 00 00 0E 04 04 00 20 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 8B [05:23: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 34 F6 00 00 0E 04 04 00 20 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 [05:23:11]wFMCommunicate OK [05:23:11]SAM_PROTO_GetFieldsCounters done [05:23:11]requested_item shift.num is exist - process it [05:23:11]requested_item shift.opened is exist - process it [05:23:11]req_shift_opened [05:23:11]FM_GetShiftState [05:23:11]SAM_PROTO_GetShiftState [05:23:11]wFMCommunicate request_size=4 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 13 01 00 [05:23:11]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:11]Read from MH i2c: E2 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 0E 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2E [05:23:11]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:11]wFMCommunicate OK [05:23:11]SAM_PROTO_GetShiftState done [05:23:11]FM_GetShiftState done [05:23:11]req_shift_opened done [05:23:11]requested_item shift.open_date is exist - process it [05:23:11]req_shift_open_date [05:23:11]req_shift_open_date done [05:23:11]produce_requested_data done [05:23:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63028,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:23:11]process_action_free close_receipt [05:23:11]json_value_free [05:23:11]json_value_free done [05:23:11]process_json_proto returns [05:23:11]Send response to host [05:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63028,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:23:11]free response buf [05:23:11]execute_script done [05:23:11]execute_script returns [05:23:11]free content buf [05:23:11]Sock 7.Close socket [05:23:11]Sock 7.Thread stoped [05:23:13]accept exits with 9 [05:23:13]New connection [05:23:13]New thread 3067198820 created [05:23:13]Thread 3067055460 joined [05:23:13]Waiting for new connection... [05:23:13] Sock 9.Parse request [05:23:13]Sock 9.Check first char [05:23:13]Sock 9.First char is OK [05:23:13]request: POST /json_proto HTTP/1.0 [05:23:13]Method: POST [05:23:13]URL: /json_proto [05:23:13]Method is POST - this is cgi request [05:23:13]url: /json_proto [05:23:13]query_string will be loaded in cgi processing [05:23:13]execute_cgi json_proto POST (null) [05:23:13]execute_cgi path=json_proto method=POST [05:23:13]POST find Content-Length [05:23:13]Host: 172.17.42.132:8080 [05:23:13]Content-Length: 639 [05:23:13]Content-Type: application/json [05:23:13] [05:23:13]POST finish read [05:23:13]Found Content-Length = 639 [05:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47339", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:13]execute_script... [05:23:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47339", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:13]POST & json_proto [05:23:13]process_json_proto [05:23:13]json parsed OK: [05:23:13]protocol is kg_v1.0 [05:23:13]action value=close_receipt [05:23:13]process_action close_receipt [05:23:13]cmd_close_receipt [05:23:13]MH_GetDate [05:23:13]Write to MH i2c: F0 00 00 51 01 41 [05:23:13]Write i2c OK [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: F0 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: F0 09 00 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: F0 09 00 51 01 00 41 E5 15 67 4C DF 56 66 D3 [05:23:13]GetLastDocTimeStamp 1729488186 [05:23:13]current date 1729488193 [05:23:13]FM_GetShiftState [05:23:13]SAM_PROTO_GetShiftState [05:23:13]wFMCommunicate request_size=4 [05:23:13]MH_SAM_APDU [05:23:13]CAPDU: 80 13 01 00 [05:23:13]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [05:23:13]Write i2c OK [05:23:13]MH_I2C_Read... [05:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:13]Read from MH i2c: E2 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: E2 0E 00 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 30 [05:23:13]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:13]wFMCommunicate OK [05:23:13]SAM_PROTO_GetShiftState done [05:23:13]FM_GetShiftState done [05:23:13]opened in 1729469755 [05:23:13]opened+sec_in_day 1729556155 [05:23:13]quantity*price = 39800 [05:23:13]sum+1 = 39801 [05:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 398.00 НСП 1% : 3.52 НДС 12% : 42.26 Наличными: 398.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 26 21.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63029 ФПД: 6910670501499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052313&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63029&fm=6910670501499&tin=02508201610067®Number=0000000000091619&sum=39800 0 [05:23:15]StoreToDocumentArchive [05:23:15]shift 544 fd 63029 [05:23:15]save to /storage/0544/doc_00063029 [05:23:15]save last doc name /storage/0544/doc_00063029 to /storage/kkm_last_doc_name [05:23:15]save OK [05:23:15]Clear old archive folders... [05:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:23:15]tlvbuf is 01902DB0 [05:23:15]SAM_PROTO_ClearQueue [05:23:15]wFMCommunicate request_size=4 [05:23:15]MH_SAM_APDU [05:23:15]CAPDU: 80 09 00 00 [05:23:15]Write to MH i2c: E2 08 00 5F 01 80 09 00 00 00 00 00 00 D2 [05:23:15]Write i2c OK [05:23:15]MH_I2C_Read... [05:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:15]Read from MH i2c: E2 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [05:23:15]RAPDU: 90 00 [05:23:15]wFMCommunicate OK [05:23:15]SAM_PROTO_ClearQueue done [05:23:15]KKMCreateOFDPacket [05:23:15]OFDProtocolAddRootSTLVToBuf [05:23:15]FM_MakeSignedData [05:23:15]FM_MakeSignedData [05:23:15]SAM_PROTO_SignData [05:23:15]wFMCommunicate request_size=4 [05:23:15]MH_SAM_APDU [05:23:15]CAPDU: 80 0D 01 02 [05:23:15]Write to MH i2c: E2 08 00 60 01 80 0D 01 02 00 00 00 00 DA [05:23:15]Write i2c OK [05:23:15]MH_I2C_Read... [05:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:15]Read from MH i2c: E2 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [05:23:15]RAPDU: 90 00 [05:23:15]wFMCommunicate OK [05:23:15]wFMCommunicate request_size=255 [05:23:15]MH_SAM_APDU [05:23:15]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 41 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [05:23:15]Write to MH i2c: E2 02 01 61 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 41 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 42 [05:23:15]Write i2c OK [05:23:15]MH_I2C_Read... [05:23:15]OFD Sender: No OFD packet to send [05:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:15]Read from MH i2c: E2 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [05:23:15]RAPDU: 90 00 [05:23:15]wFMCommunicate OK [05:23:15]wFMCommunicate request_size=31 [05:23:15]MH_SAM_APDU [05:23:15]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 35 F6 00 00 35 04 06 00 06 49 04 0F 76 7B [05:23:15]Write to MH i2c: E2 22 00 62 01 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 35 F6 00 00 35 04 06 00 06 49 04 0F 76 7B 00 00 8C [05:23:15]Write i2c OK [05:23:15]MH_I2C_Read... [05:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:15]Read from MH i2c: E2 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: E2 03 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [05:23:16]RAPDU: 90 00 [05:23:16]wFMCommunicate OK [05:23:16]wFMCommunicate request_size=4 [05:23:16]MH_SAM_APDU [05:23:16]CAPDU: 80 0D 03 02 [05:23:16]Write to MH i2c: E2 08 00 63 01 80 0D 03 02 00 00 00 00 DF [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0B 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0B 00 63 01 00 BC B6 13 8B CF 7E 21 0C 90 00 6A [05:23:16]RAPDU: BC B6 13 8B CF 7E 21 0C 90 00 [05:23:16]wFMCommunicate OK [05:23:16]SAM_PROTO_SignData done [05:23:16]FM_MakeSignedData done [05:23:16]CreateOFDProtocolMessage [05:23:16]wFMCommunicate request_size=4 [05:23:16]MH_SAM_APDU [05:23:16]CAPDU: 80 11 00 00 [05:23:16]Write to MH i2c: E2 08 00 64 01 80 11 00 00 00 00 00 00 DF [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:16]Read from MH i2c: E2 17 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 17 00 64 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 38 [05:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:16]wFMCommunicate OK [05:23:16]CreateOFDProtocolMessage done [05:23:16]OFDSenderStorePacket 63029 [05:23:16]StoreOFDPacket docnum=63029 [05:23: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 24 01 00 00 3F 5F 1C 01 E9 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 41 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 06 49 04 0F 76 7B BC B6 13 8B CF 7E 21 0C [05:23:16]CheckFolder [05:23:16]dirname=/storage/ofd_packets [05:23:16]CheckFolder done [05:23:16]ProducePacketName [05:23:16]name=ofd_packets/00063029 [05:23:16]NVStorageSaveData ofd_packets/00063029 [05:23:16]File name is /storage/ofd_packets/00063029 [05:23:16]Write 322 bytes [05:23:16]NVStorageSaveData done [05:23:16]OFDSenderStorePacket done [05:23:16]KKMCreateOFDPacket done [05:23:16]NVStorageSaveData kkm_last_timestamp [05:23:16]File name is /storage/kkm_last_timestamp [05:23:16]Write 4 bytes [05:23:16]NVStorageSaveData done [05:23:16]ExternCall_PrintAddStr [05:23:16]wPrintStart [05:23:16]Write to MH i2c: 01 00 00 65 01 66 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]OFD Sender: Processing packet 63029 [packets to send 232, broken 231] [05:23:16]ProducePacketName [05:23:16]name=ofd_packets/00063029 [05:23:16]OFD Sender: To server: pG, [05:23:16]CommunicateWithHost lk.salyk.kg:30040 [05:23:16]ConnectInit lk.salyk.kg [05:23:16]Read from MH i2c: 01 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: 01 07 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 FF 0F 7B [05:23:16]RasterBufferAndPrint [05:23:16]line Счет N : (3)47339 [05:23:16]line ИНН: 02508201610067 [05:23:16]line Контрольно-Кассовый Чек [05:23:16]line ПРОДАЖА [05:23:16]line Товар: 4700000480517 [05:23:16]line Пиво Живое 1л ПЭТ [05:23:16]line 2.000 * 199.00 [05:23:16]line = 398.00 [05:23:16]line НДС 12% НСП 1% [05:23:16]line > о реализуемом товаре [05:23:16]line ИТОГО: 398.00 [05:23:16]line НСП 1% : 3.52 [05:23:16]line НДС 12% : 42.26 [05:23:16]line Наличными: 398.00 [05:23:16]line Безнал.: 0.00 [05:23:16]line Место: АЗС № 86 "Партнер Нефть" [05:23:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:23:16]line СНО: Общий режим [05:23:16]line Чек 26 21.10.2024 05:23 [05:23:16]line Смена: 544 ФФД: 1.0 [05:23:16]line ЗНМ: 0300000154 [05:23:16]line РНМ: 0000000000091619 [05:23:16]line Версия ККМ: 001 [05:23:16]line ФМ: 0000000000874676 [05:23:16]line ФД: 63029 [05:23:16]line ФПД: 6910670501499 [05:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052313&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63029&fm=6910670501499&tin=02508201610067®Number=0000000000091619&sum=39800 [05:23:16]line 0 [05:23:16]written 0, free lines is 4095 [05:23:16]Connected sock=10 [05:23: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 24 01 00 00 3F 5F 1C 01 E9 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 9B 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 41 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 06 49 04 0F 76 7B BC B6 13 8B CF 7E 21 0C [05:23:16]Write to MH i2c: 01 00 00 8D 01 8E [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: 01 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: 01 07 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 8C 0D 2E [05:23:16]RasterBufferAndPrint [05:23:16]line [05:23:16]line [05:23:16]line [05:23:16]line [05:23:16]line [05:23:16]written 0, free lines is 3507 [05:23:16]MH_Cut [05:23:16]Write to MH i2c: D1 01 00 94 01 01 67 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: D1 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: D1 01 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: D1 01 00 94 01 00 66 [05:23:16]Write to MH i2c: 01 00 00 95 01 96 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23: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 4B 77 47 00 B6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F6 00 00 F4 03 04 00 41 8F 15 67 B6 04 01 00 00 56 91 E6 C4 C1 5E 08 0D [05:23:17]CommunicateWithHost err = 0 [05:23:17]CheckOFDResponse [05:23:17]1017 (14) - 77093643461234 [05:23:17]1041 (16) - 0000000000874676 [05:23:17]1040 (4) - 63029 [05:23:17]1012 (4) - 20.10.2024 23:16 [05:23:17]1206 (1) - 0 [05:23:17]OFD Sender: Remove packet 63029 [05:23:17]ProducePacketName [05:23:17]name=ofd_packets/00063029 [05:23:17]NVStorageDeleteData [05:23:17]*** Cut start [05:23:17]*** Partial cut [05:23:17]*** CUTSNS_PIN = 1 [05:23:17]*** CUTSNS_PIN = 0 [05:23:17]*** Brake cut motor [05:23:17]OFD Sender: No OFD packet to send [05:23:18]Read from MH i2c: 01 [05:23:18]MH_I2C_Read... [05:23:18]*** Stop cut motor [05:23:18]*** Cut end [05:23:18]Read from MH i2c: 01 07 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [05:23:18]process_action close_receipt done [05:23:18]requested_data is exist [05:23:18]produce_requested_data [05:23:18]requested_item fm.sn is exist - process it [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 11 00 00 [05:23:18]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 17 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6A [05:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:18]wFMCommunicate OK [05:23:18]requested_item fd.num is exist - process it [05:23:18]SAM_PROTO_GetFieldsCounters [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 13 00 00 [05:23:18]Write to MH i2c: E2 08 00 97 01 80 13 00 00 00 00 00 00 14 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 62 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 62 00 97 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 35 F6 00 00 0E 04 04 00 20 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 D7 [05:23: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 35 F6 00 00 0E 04 04 00 20 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 [05:23:18]wFMCommunicate OK [05:23:18]SAM_PROTO_GetFieldsCounters done [05:23:18]requested_item shift.num is exist - process it [05:23:18]requested_item shift.opened is exist - process it [05:23:18]req_shift_opened [05:23:18]FM_GetShiftState [05:23:18]SAM_PROTO_GetShiftState [05:23:18]wFMCommunicate request_size=4 [05:23:18]MH_SAM_APDU [05:23:18]CAPDU: 80 13 01 00 [05:23:18]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [05:23:18]Write i2c OK [05:23:18]MH_I2C_Read... [05:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:18]Read from MH i2c: E2 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 0E 00 [05:23:18]MH_I2C_Read... [05:23:18]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 76 [05:23:18]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:18]wFMCommunicate OK [05:23:18]SAM_PROTO_GetShiftState done [05:23:18]FM_GetShiftState done [05:23:18]req_shift_opened done [05:23:18]requested_item shift.open_date is exist - process it [05:23:18]req_shift_open_date [05:23:18]req_shift_open_date done [05:23:18]produce_requested_data done [05:23:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63029,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:23:18]process_action_free close_receipt [05:23:18]json_value_free [05:23:18]json_value_free done [05:23:18]process_json_proto returns [05:23:18]Send response to host [05:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63029,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:23:18]free response buf [05:23:18]execute_script done [05:23:18]execute_script returns [05:23:18]free content buf [05:23:18]Sock 9.Close socket [05:23:18]Sock 9.Thread stoped [05:23:20]accept exits with 7 [05:23:20]New connection [05:23:20]New thread 3067055460 created [05:23:20]Thread 3067198820 joined [05:23:20]Waiting for new connection... [05:23:20] Sock 7.Parse request [05:23:20]Sock 7.Check first char [05:23:20]Sock 7.First char is OK [05:23:20]request: POST /json_proto HTTP/1.0 [05:23:20]Method: POST [05:23:20]URL: /json_proto [05:23:20]Method is POST - this is cgi request [05:23:20]url: /json_proto [05:23:20]query_string will be loaded in cgi processing [05:23:20]execute_cgi json_proto POST (null) [05:23:20]execute_cgi path=json_proto method=POST [05:23:20]POST find Content-Length [05:23:20]Host: 172.17.42.132:8080 [05:23:20]Content-Length: 619 [05:23:20]Content-Type: application/json [05:23:20] [05:23:20]POST finish read [05:23:20]Found Content-Length = 619 [05:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47340", "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" ] } } [05:23:20]execute_script... [05:23: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)47340", "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" ] } } [05:23:20]POST & json_proto [05:23:20]process_json_proto [05:23:20]json parsed OK: [05:23:20]protocol is kg_v1.0 [05:23:20]action value=close_receipt [05:23:20]process_action close_receipt [05:23:20]cmd_close_receipt [05:23:20]MH_GetDate [05:23:20]Write to MH i2c: F0 00 00 99 01 89 [05:23:20]Write i2c OK [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: F0 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: F0 09 00 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: F0 09 00 99 01 00 48 E5 15 67 4C DF 56 66 22 [05:23:20]GetLastDocTimeStamp 1729488193 [05:23:20]current date 1729488200 [05:23:20]FM_GetShiftState [05:23:20]SAM_PROTO_GetShiftState [05:23:20]wFMCommunicate request_size=4 [05:23:20]MH_SAM_APDU [05:23:20]CAPDU: 80 13 01 00 [05:23:20]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [05:23:20]Write i2c OK [05:23:20]MH_I2C_Read... [05:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:20]Read from MH i2c: E2 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: E2 0E 00 [05:23:20]MH_I2C_Read... [05:23:20]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 78 [05:23:20]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:20]wFMCommunicate OK [05:23:20]SAM_PROTO_GetShiftState done [05:23:20]FM_GetShiftState done [05:23:20]opened in 1729469755 [05:23:20]opened+sec_in_day 1729556155 [05:23:20]quantity*price = 13900 [05:23:20]sum+1 = 13901 [05:23:20]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 СНО: Общий режим Чек 27 21.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63030 ФПД: 154851541114585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052320&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63030&fm=154851541114585&tin=02508201610067®Number=0000000000091619&sum=13900 0 [05:23:21]StoreToDocumentArchive [05:23:21]shift 544 fd 63030 [05:23:21]save to /storage/0544/doc_00063030 [05:23:21]save last doc name /storage/0544/doc_00063030 to /storage/kkm_last_doc_name [05:23:21]save OK [05:23:21]Clear old archive folders... [05:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:23:22]tlvbuf is 0191F1B0 [05:23:22]SAM_PROTO_ClearQueue [05:23:22]wFMCommunicate request_size=4 [05:23:22]MH_SAM_APDU [05:23:22]CAPDU: 80 09 00 00 [05:23:22]Write to MH i2c: E2 08 00 A7 01 80 09 00 00 00 00 00 00 1A [05:23:22]Write i2c OK [05:23:22]MH_I2C_Read... [05:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:22]Read from MH i2c: E2 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [05:23:22]RAPDU: 90 00 [05:23:22]wFMCommunicate OK [05:23:22]SAM_PROTO_ClearQueue done [05:23:22]KKMCreateOFDPacket [05:23:22]OFDProtocolAddRootSTLVToBuf [05:23:22]FM_MakeSignedData [05:23:22]FM_MakeSignedData [05:23:22]SAM_PROTO_SignData [05:23:22]wFMCommunicate request_size=4 [05:23:22]MH_SAM_APDU [05:23:22]CAPDU: 80 0D 01 02 [05:23:22]Write to MH i2c: E2 08 00 A8 01 80 0D 01 02 00 00 00 00 22 [05:23:22]Write i2c OK [05:23:22]MH_I2C_Read... [05:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:22]Read from MH i2c: E2 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [05:23:22]RAPDU: 90 00 [05:23:22]wFMCommunicate OK [05:23:22]wFMCommunicate request_size=255 [05:23:22]MH_SAM_APDU [05:23:22]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 1B 00 00 00 F4 03 04 00 48 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [05:23:22]Write to MH i2c: E2 02 01 A9 01 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 1B 00 00 00 F4 03 04 00 48 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 3A [05:23:22]Write i2c OK [05:23:22]MH_I2C_Read... [05:23:22]OFD Sender: No OFD packet to send [05:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:22]Read from MH i2c: E2 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 [05:23:22]MH_I2C_Read... [05:23:22]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [05:23:23]RAPDU: 90 00 [05:23:23]wFMCommunicate OK [05:23:23]wFMCommunicate request_size=31 [05:23:23]MH_SAM_APDU [05:23:23]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 36 F6 00 00 35 04 06 00 8C D6 2F 19 DE D9 [05:23:23]Write to MH i2c: E2 22 00 AA 01 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 36 F6 00 00 35 04 06 00 8C D6 2F 19 DE D9 00 00 E3 [05:23:23]Write i2c OK [05:23:23]MH_I2C_Read... [05:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:23]Read from MH i2c: E2 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 03 00 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [05:23:23]RAPDU: 90 00 [05:23:23]wFMCommunicate OK [05:23:23]wFMCommunicate request_size=4 [05:23:23]MH_SAM_APDU [05:23:23]CAPDU: 80 0D 03 02 [05:23:23]Write to MH i2c: E2 08 00 AB 01 80 0D 03 02 00 00 00 00 27 [05:23:23]Write i2c OK [05:23:23]MH_I2C_Read... [05:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:23]Read from MH i2c: E2 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 0B 00 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 0B 00 AB 01 00 4A F7 09 99 43 11 D4 A4 90 00 D7 [05:23:23]RAPDU: 4A F7 09 99 43 11 D4 A4 90 00 [05:23:23]wFMCommunicate OK [05:23:23]SAM_PROTO_SignData done [05:23:23]FM_MakeSignedData done [05:23:23]CreateOFDProtocolMessage [05:23:23]wFMCommunicate request_size=4 [05:23:23]MH_SAM_APDU [05:23:23]CAPDU: 80 11 00 00 [05:23:23]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [05:23:23]Write i2c OK [05:23:23]MH_I2C_Read... [05:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:23]Read from MH i2c: E2 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 17 00 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 80 [05:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:23]wFMCommunicate OK [05:23:23]CreateOFDProtocolMessage done [05:23:23]OFDSenderStorePacket 63030 [05:23:23]StoreOFDPacket docnum=63030 [05:23: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 24 01 00 00 8B 4B 1C 01 92 D1 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 1B 00 00 00 F4 03 04 00 48 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8C D6 2F 19 DE D9 4A F7 09 99 43 11 D4 A4 [05:23:23]CheckFolder [05:23:23]dirname=/storage/ofd_packets [05:23:23]CheckFolder done [05:23:23]ProducePacketName [05:23:23]name=ofd_packets/00063030 [05:23:23]NVStorageSaveData ofd_packets/00063030 [05:23:23]File name is /storage/ofd_packets/00063030 [05:23:23]Write 322 bytes [05:23:23]NVStorageSaveData done [05:23:23]OFDSenderStorePacket done [05:23:23]KKMCreateOFDPacket done [05:23:23]NVStorageSaveData kkm_last_timestamp [05:23:23]File name is /storage/kkm_last_timestamp [05:23:23]Write 4 bytes [05:23:23]NVStorageSaveData done [05:23:23]ExternCall_PrintAddStr [05:23:23]wPrintStart [05:23:23]Write to MH i2c: 01 00 00 AD 01 AE [05:23:23]Write i2c OK [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: 01 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: 01 07 00 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [05:23:23]RasterBufferAndPrint [05:23:23]line Счет N : (3)47340 [05:23:23]line ИНН: 02508201610067 [05:23:23]line Контрольно-Кассовый Чек [05:23:23]line ПРОДАЖА [05:23:23]line Товар: 48745000 [05:23:23]line Сигареты Winston Purple Mix [05:23:23]line 1.000 * 139.00 [05:23:23]line = 139.00 [05:23:23]line НДС 12% НСП 1% [05:23:23]line > о реализуемом товаре [05:23:23]line ИТОГО: 139.00 [05:23:23]line НСП 1% : 1.23 [05:23:23]line НДС 12% : 14.76 [05:23:23]line Наличными: 139.00 [05:23:23]line Безнал.: 0.00 [05:23:23]line Место: АЗС № 86 "Партнер Нефть" [05:23:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:23:23]line СНО: Общий режим [05:23:23]line Чек 27 21.10.2024 05:23 [05:23:23]line Смена: 544 ФФД: 1.0 [05:23:23]line ЗНМ: 0300000154 [05:23:23]line РНМ: 0000000000091619 [05:23:23]line Версия ККМ: 001 [05:23:23]line ФМ: 0000000000874676 [05:23:23]line ФД: 63030 [05:23:23]line ФПД: 154851541114585 [05:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052320&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63030&fm=154851541114585&tin=02508201610067®Number=0000000000091619&sum=13900 [05:23:23]line 0 [05:23:23]written 0, free lines is 4095 [05:23:23]OFD Sender: Processing packet 63030 [packets to send 232, broken 231] [05:23:23]ProducePacketName [05:23:23]name=ofd_packets/00063030 [05:23:23]OFD Sender: To server: pG, [05:23:23]CommunicateWithHost lk.salyk.kg:30040 [05:23:23]ConnectInit lk.salyk.kg [05:23:23]Connected sock=10 [05:23: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 24 01 00 00 8B 4B 1C 01 92 D1 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 1B 00 00 00 F4 03 04 00 48 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 Write to MH i2c: 30 01 30 00 30 00 30 D5 30 30 30 30 30 30 39 31 36 31 39 11 04 10 01 00 D6 30 [05:23:23]30 30 Write i2c OK [05:23:23]30 MH_I2C_Read... [05:23:23]30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 Read from MH i2c: 00 01 36 [05:23:23]F6 MH_I2C_Read... [05:23:23]00 Read from MH i2c: 00 01 35 07 04 00 06 [05:23:23]00 MH_I2C_Read... [05:23:23]8C D6 2F 19 DE D9 4A F7 09 99 43 11 D4 A4 [05:23:23]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 29 0D 13 [05:23:23]RasterBufferAndPrint [05:23:23]line [05:23:23]line [05:23:23]line [05:23:23]line [05:23:23]line [05:23:23]written 0, free lines is 3468 [05:23:23]MH_Cut [05:23:23]Write to MH i2c: D1 01 00 DC 01 01 AF [05:23:23]Write i2c OK [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: D1 [05:23:23]MH_I2C_Read... [05:23:23]Read from MH i2c: D1 01 00 [05:23:24]MH_I2C_Read... [05:23:24]Read from MH i2c: D1 01 00 DC 01 00 AE [05:23:24]Write to MH i2c: 01 00 00 DD 01 DE [05:23:24]Write i2c OK [05:23:24]MH_I2C_Read... [05:23: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 53 5F 47 00 60 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F6 00 00 F4 03 04 00 48 8F 15 67 B6 04 01 00 00 A0 DD 29 F3 B8 D7 E1 B5 [05:23:24]CommunicateWithHost err = 0 [05:23:24]CheckOFDResponse [05:23:24]1017 (14) - 77093643461234 [05:23:24]1041 (16) - 0000000000874676 [05:23:24]1040 (4) - 63030 [05:23:24]1012 (4) - 20.10.2024 23:16 [05:23:24]1206 (1) - 0 [05:23:24]OFD Sender: Remove packet 63030 [05:23:24]ProducePacketName [05:23:24]name=ofd_packets/00063030 [05:23:24]NVStorageDeleteData [05:23:24]*** Cut start [05:23:24]*** Partial cut [05:23:24]*** CUTSNS_PIN = 1 [05:23:24]*** CUTSNS_PIN = 0 [05:23:24]*** Brake cut motor [05:23:24]OFD Sender: No OFD packet to send [05:23:25]Read from MH i2c: *** Stop cut motor [05:23:25]01 *** Cut end [05:23:25] [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: 01 07 00 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [05:23:25]process_action close_receipt done [05:23:25]requested_data is exist [05:23:25]produce_requested_data [05:23:25]requested_item fm.sn is exist - process it [05:23:25]wFMCommunicate request_size=4 [05:23:25]MH_SAM_APDU [05:23:25]CAPDU: 80 11 00 00 [05:23:25]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [05:23:25]Write i2c OK [05:23:25]MH_I2C_Read... [05:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:25]Read from MH i2c: E2 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 17 00 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B2 [05:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:25]wFMCommunicate OK [05:23:25]requested_item fd.num is exist - process it [05:23:25]SAM_PROTO_GetFieldsCounters [05:23:25]wFMCommunicate request_size=4 [05:23:25]MH_SAM_APDU [05:23:25]CAPDU: 80 13 00 00 [05:23:25]Write to MH i2c: E2 08 00 DF 01 80 13 00 00 00 00 00 00 5C [05:23:25]Write i2c OK [05:23:25]MH_I2C_Read... [05:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:25]Read from MH i2c: E2 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 62 00 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 62 00 DF 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 36 F6 00 00 0E 04 04 00 20 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 23 [05:23: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 36 F6 00 00 0E 04 04 00 20 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 [05:23:25]wFMCommunicate OK [05:23:25]SAM_PROTO_GetFieldsCounters done [05:23:25]requested_item shift.num is exist - process it [05:23:25]requested_item shift.opened is exist - process it [05:23:25]req_shift_opened [05:23:25]FM_GetShiftState [05:23:25]SAM_PROTO_GetShiftState [05:23:25]wFMCommunicate request_size=4 [05:23:25]MH_SAM_APDU [05:23:25]CAPDU: 80 13 01 00 [05:23:25]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [05:23:25]Write i2c OK [05:23:25]MH_I2C_Read... [05:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:25]Read from MH i2c: E2 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 0E 00 [05:23:25]MH_I2C_Read... [05:23:25]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BE [05:23:25]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:25]wFMCommunicate OK [05:23:25]SAM_PROTO_GetShiftState done [05:23:25]FM_GetShiftState done [05:23:25]req_shift_opened done [05:23:25]requested_item shift.open_date is exist - process it [05:23:25]req_shift_open_date [05:23:25]req_shift_open_date done [05:23:25]produce_requested_data done [05:23:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63030,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:23:25]process_action_free close_receipt [05:23:25]json_value_free [05:23:25]json_value_free done [05:23:25]process_json_proto returns [05:23:25]Send response to host [05:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63030,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:23:25]free response buf [05:23:25]execute_script done [05:23:25]execute_script returns [05:23:25]free content buf [05:23:25]Sock 7.Close socket [05:23:25]Sock 7.Thread stoped [05:23:27]accept exits with 9 [05:23:27]New connection [05:23:27]New thread 3067198820 created [05:23:27]Thread 3067055460 joined [05:23:27]Waiting for new connection... [05:23:27] Sock 9.Parse request [05:23:27]Sock 9.Check first char [05:23:27]Sock 9.First char is OK [05:23:27]request: POST /json_proto HTTP/1.0 [05:23:27]Method: POST [05:23:27]URL: /json_proto [05:23:27]Method is POST - this is cgi request [05:23:27]url: /json_proto [05:23:27]query_string will be loaded in cgi processing [05:23:27]execute_cgi json_proto POST (null) [05:23:27]execute_cgi path=json_proto method=POST [05:23:27]POST find Content-Length [05:23:27]Host: 172.17.42.132:8080 [05:23:27]Content-Length: 1156 [05:23:27]Content-Type: application/json [05:23:27] [05:23:27]POST finish read [05:23:27]Found Content-Length = 1156 [05:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47341", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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 }]} ,{ "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" : 819.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:27]execute_script... [05:23: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)47341", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.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 }]} ,{ "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" : 819.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:23:27]POST & json_proto [05:23:27]process_json_proto [05:23:27]json parsed OK: [05:23:27]protocol is kg_v1.0 [05:23:27]action value=close_receipt [05:23:27]process_action close_receipt [05:23:27]cmd_close_receipt [05:23:27]MH_GetDate [05:23:27]Write to MH i2c: F0 00 00 E1 01 D1 [05:23:27]Write i2c OK [05:23:27]MH_I2C_Read... [05:23:27]Read from MH i2c: F0 [05:23:27]MH_I2C_Read... [05:23:27]Read from MH i2c: F0 09 00 [05:23:27]MH_I2C_Read... [05:23:27]Read from MH i2c: F0 09 00 E1 01 00 50 E5 15 67 4C DF 56 66 72 [05:23:27]GetLastDocTimeStamp 1729488200 [05:23:27]current date 1729488208 [05:23:27]FM_GetShiftState [05:23:27]SAM_PROTO_GetShiftState [05:23:27]wFMCommunicate request_size=4 [05:23:27]MH_SAM_APDU [05:23:27]CAPDU: 80 13 01 00 [05:23:27]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [05:23:27]Write i2c OK [05:23:27]MH_I2C_Read... [05:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:27]Read from MH i2c: E2 [05:23:27]MH_I2C_Read... [05:23:27]Read from MH i2c: E2 0E 00 [05:23:27]MH_I2C_Read... [05:23:27]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C0 [05:23:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:28]wFMCommunicate OK [05:23:28]SAM_PROTO_GetShiftState done [05:23:28]FM_GetShiftState done [05:23:28]opened in 1729469755 [05:23:28]opened+sec_in_day 1729556155 [05:23:28]quantity*price = 55500 [05:23:28]sum+1 = 55501 [05:23:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 819.00 НСП 1% : 7.25 НДС 12% : 86.97 Наличными: 819.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 28 21.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63031 ФПД: 86915745721905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052328&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63031&fm=86915745721905&tin=02508201610067®Number=0000000000091619&sum=81900 0 [05:23:29]StoreToDocumentArchive [05:23:29]shift 544 fd 63031 [05:23:29]save to /storage/0544/doc_00063031 [05:23:29]save last doc name /storage/0544/doc_00063031 to /storage/kkm_last_doc_name [05:23:29]save OK [05:23:29]Clear old archive folders... [05:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=485 [05:23:29]tlvbuf is 018DF2A0 [05:23:29]SAM_PROTO_ClearQueue [05:23:29]wFMCommunicate request_size=4 [05:23:29]MH_SAM_APDU [05:23:29]CAPDU: 80 09 00 00 [05:23:29]Write to MH i2c: E2 08 00 EF 01 80 09 00 00 00 00 00 00 62 [05:23:29]Write i2c OK [05:23:29]MH_I2C_Read... [05:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:29]OFD Sender: No OFD packet to send [05:23:29]Read from MH i2c: E2 [05:23:29]MH_I2C_Read... [05:23:29]Read from MH i2c: E2 03 00 [05:23:29]MH_I2C_Read... [05:23:29]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [05:23:29]RAPDU: 90 00 [05:23:29]wFMCommunicate OK [05:23:29]SAM_PROTO_ClearQueue done [05:23:29]KKMCreateOFDPacket [05:23:29]OFDProtocolAddRootSTLVToBuf [05:23:29]FM_MakeSignedData [05:23:29]FM_MakeSignedData [05:23:29]SAM_PROTO_SignData [05:23:29]wFMCommunicate request_size=4 [05:23:29]MH_SAM_APDU [05:23:29]CAPDU: 80 0D 01 02 [05:23:29]Write to MH i2c: E2 08 00 F0 01 80 0D 01 02 00 00 00 00 6A [05:23:29]Write i2c OK [05:23:29]MH_I2C_Read... [05:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:30]Read from MH i2c: E2 [05:23:30]MH_I2C_Read... [05:23:30]Read from MH i2c: E2 03 00 [05:23:30]MH_I2C_Read... [05:23:30]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [05:23:30]RAPDU: 90 00 [05:23:30]wFMCommunicate OK [05:23:30]wFMCommunicate request_size=255 [05:23:30]MH_SAM_APDU [05:23:30]CAPDU: 80 0D 02 02 FA 03 00 E5 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 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 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 [05:23:30]Write to MH i2c: E2 02 01 F1 01 80 0D 02 02 FA 00 03 00 E5 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 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 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 00 00 6C [05:23:30]Write i2c OK [05:23:30]MH_I2C_Read... [05:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:30]Read from MH i2c: E2 [05:23:30]MH_I2C_Read... [05:23:30]Read from MH i2c: E2 03 00 [05:23:30]MH_I2C_Read... [05:23:30]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [05:23:30]RAPDU: 90 00 [05:23:30]wFMCommunicate OK [05:23:30]wFMCommunicate request_size=244 [05:23:30]MH_SAM_APDU [05:23:30]CAPDU: 80 0D 02 02 EF 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 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 21 00 00 00 00 07 04 06 00 EC 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 4F 0C A6 26 2E 31 [05:23:30]Write to MH i2c: E2 F7 00 F2 01 80 0D 02 02 EF 00 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 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 21 00 00 00 00 07 04 06 00 EC 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 4F 0C A6 26 2E 31 00 00 59 [05:23:31]Write i2c OK [05:23:31]MH_I2C_Read... [05:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:31]Read from MH i2c: E2 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 03 00 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [05:23:31]RAPDU: 90 00 [05:23:31]wFMCommunicate OK [05:23:31]wFMCommunicate request_size=4 [05:23:31]MH_SAM_APDU [05:23:31]CAPDU: 80 0D 03 02 [05:23:31]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [05:23:31]Write i2c OK [05:23:31]MH_I2C_Read... [05:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:31]Read from MH i2c: E2 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 0B 00 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 0B 00 F3 01 00 95 9F 65 B2 40 4C 7D 24 90 00 E8 [05:23:31]RAPDU: 95 9F 65 B2 40 4C 7D 24 90 00 [05:23:31]wFMCommunicate OK [05:23:31]SAM_PROTO_SignData done [05:23:31]FM_MakeSignedData done [05:23:31]CreateOFDProtocolMessage [05:23:31]wFMCommunicate request_size=4 [05:23:31]MH_SAM_APDU [05:23:31]CAPDU: 80 11 00 00 [05:23:31]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [05:23:31]Write i2c OK [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 [05:23:31]MH_I2C_Read... [05:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:31]Read from MH i2c: E2 17 00 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C8 [05:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:31]wFMCommunicate OK [05:23:31]CreateOFDProtocolMessage done [05:23:31]OFDSenderStorePacket 63031 [05:23:31]StoreOFDPacket docnum=63031 [05:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 F9 01 00 00 29 04 F1 01 EF D6 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 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 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 21 00 00 00 00 07 04 06 00 EC 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 50 E5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 4F 0C A6 26 2E 31 95 9F 65 B2 40 4C 7D 24 [05:23:31]CheckFolder [05:23:31]dirname=/storage/ofd_packets [05:23:31]CheckFolder done [05:23:31]ProducePacketName [05:23:31]name=ofd_packets/00063031 [05:23:31]NVStorageSaveData ofd_packets/00063031 [05:23:31]File name is /storage/ofd_packets/00063031 [05:23:31]Write 535 bytes [05:23:31]NVStorageSaveData done [05:23:31]OFDSenderStorePacket done [05:23:31]KKMCreateOFDPacket done [05:23:31]NVStorageSaveData kkm_last_timestamp [05:23:31]File name is /storage/kkm_last_timestamp [05:23:31]Write 4 bytes [05:23:31]NVStorageSaveData done [05:23:31]ExternCall_PrintAddStr [05:23:31]wPrintStart [05:23:31]Write to MH i2c: 01 00 00 F5 01 F6 [05:23:31]Write i2c OK [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: 01 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: 01 07 00 [05:23:31]MH_I2C_Read... [05:23:31]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [05:23:31]RasterBufferAndPrint [05:23:31]line Счет N : (3)47341 [05:23:31]line ИНН: 02508201610067 [05:23:31]line Контрольно-Кассовый Чек [05:23:31]line ПРОДАЖА [05:23:31]line Товар: 4700001061098 [05:23:31]line Коньяк Семетей 0,5л [05:23:31]line 1.000 * 555.00 [05:23:31]line = 555.00 [05:23:31]line НДС 12% НСП 1% [05:23:31]line > о реализуемом товаре [05:23:31]line Товар: 48745000 [05:23:31]line Сигареты Winston Purple Mix [05:23:31]line 1.000 * 139.00 [05:23:31]line = 139.00 [05:23:31]line НДС 12% НСП 1% [05:23:31]line > о реализуемом товаре [05:23:31]line Товар: 5449000054227 [05:23:31]line Напиток Кока-Кола 1л [05:23:31]line 1.000 * 125.00 [05:23:31]line = 125.00 [05:23:31]line НДС 12% НСП 1% [05:23:31]line > о реализуемом товаре [05:23:31]line ИТОГО: 819.00 [05:23:31]line НСП 1% : 7.25 [05:23:31]line НДС 12% : 86.97 [05:23:31]line Наличными: 819.00 [05:23:31]line Безнал.: 0.00 [05:23:31]line Место: АЗС № 86 "Партнер Нефть" [05:23:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:23:31]line СНО: Общий режим [05:23:31]line Чек 28 21.10.2024 05:23 [05:23:31]line Смена: 544 ФФД: 1.0 [05:23:31]line ЗНМ: 0300000154 [05:23:31]line РНМ: 0000000000091619 [05:23:31]line Версия ККМ: 001 [05:23:31]line ФМ: 0000000000874676 [05:23:31]line ФД: 63031 [05:23:31]line ФПД: 86915745721905 [05:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T052328&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63031&fm=86915745721905&tin=02508201610067®Number=0000000000091619&sum=81900 [05:23:31]line 0 [05:23:31]OFD Sender: Processing packet 63031 [packets to send 232, broken 231] [05:23:31]ProducePacketName [05:23:31]name=ofd_packets/00063031 [05:23:31]OFD Sender: To server: pG, [05:23:31]CommunicateWithHost lk.salyk.kg:30040 [05:23:31]ConnectInit lk.salyk.kg [05:23:31]written 0, free lines is 4095 [05:23:32]Connected sock=10 [05:23: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 F9 01 00 00 29 04 F1 01 EF D6 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 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 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 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 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 EC 3F 01 00 00 00 EB 03 Write to MH i2c: 26 01 00 00 EF 00 03 29 0F 02 2B 00 [05:23:32]F6 Write i2c OK [05:23:32]03 MH_I2C_Read... [05:23:32]01 Read from MH i2c: 00 01 01 [05:23:32]F7 MH_I2C_Read... [05:23:32]03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 Read from MH i2c: 01 01 F3 07 03 00 06 [05:23:32]00 MH_I2C_Read... [05:23:32]F9 21 00 00 00 00 07 04 06 00 Read from MH i2c: EC 01 3F 07 01 00 00 29 00 02 00 00 39 00 04 00 06 00 00 00 00 00 00 00 00 00 1F 04 02 00 01 00 26 12 0D 04 65 04 [05:23:32]00 RasterBufferAndPrint [05:23:32]1C line [05:23:32]00 line [05:23:32]00 line [05:23:32]00 line [05:23:32]F4 line [05:23:32]03 04 00 50 E5 15 67 0E 04 04 00 20 02 written 0, free lines is 3549 [05:23:32]00 00 B9 04 01 00 01 0D 04 10 00 MH_Cut [05:23:32]30 Write to MH i2c: D1 30 01 30 00 30 30 30 02 30 01 30 04 30 30 30 30 39 31 36 31 39 11 04 [05:23:32]10 00 30 30 30 30 30 30 30 30 Write i2c OK [05:23:32]30 MH_I2C_Read... [05:23:32]30 Read from MH i2c: 38 D1 37 [05:23:32]34 36 37 36 10 04 04 00 37 F6 00 00 MH_I2C_Read... [05:23:32]35 Read from MH i2c: 04 D1 06 01 00 00 4F 0C A6 26 2E 31 95 9F 65 B2 40 4C [05:23:32]7D MH_I2C_Read... [05:23:32]24 Read from MH i2c: [05:23:32]D1 01 00 30 02 00 03 [05:23:32]Write to MH i2c: 01 00 00 31 02 33 [05:23:32]Write i2c OK [05:23:32]MH_I2C_Read... [05:23:33]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 34 7A 47 00 A2 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F6 00 00 F4 03 04 00 51 8F 15 67 B6 04 01 00 00 ED 99 *** Cut start [05:23:33]F5 12 9E 40 D3 24 [05:23:33]CommunicateWithHost err = 0 [05:23:33]CheckOFDResponse [05:23:33]*** Partial cut [05:23:33]1017 (14) - 77093643461234 [05:23:33]1041 (16) - 0000000000874676 [05:23:33]1040 (4) - 63031 [05:23:33]*** CUTSNS_PIN = 1 [05:23:33]1012 (4) - 20.10.2024 23:16 [05:23:33]*** CUTSNS_PIN = 0 [05:23:33]1206 (1) - 0 [05:23:33]OFD Sender: Remove packet 63031 [05:23:33]ProducePacketName [05:23:33]name=ofd_packets/00063031 [05:23:33]NVStorageDeleteData [05:23:33]*** Brake cut motor [05:23:33]Read from MH i2c: 01 [05:23:33]MH_I2C_Read... [05:23:33]OFD Sender: No OFD packet to send [05:23:33]Read from MH i2c: 01 07 00 [05:23:33]MH_I2C_Read... [05:23:33]*** Stop cut motor [05:23:33]*** Cut end [05:23:33]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [05:23:33]process_action close_receipt done [05:23:33]requested_data is exist [05:23:33]produce_requested_data [05:23:33]requested_item fm.sn is exist - process it [05:23:33]wFMCommunicate request_size=4 [05:23:33]MH_SAM_APDU [05:23:33]CAPDU: 80 11 00 00 [05:23:33]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [05:23:33]Write i2c OK [05:23:33]MH_I2C_Read... [05:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:33]Read from MH i2c: E2 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 17 00 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 07 [05:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:23:34]wFMCommunicate OK [05:23:34]requested_item fd.num is exist - process it [05:23:34]SAM_PROTO_GetFieldsCounters [05:23:34]wFMCommunicate request_size=4 [05:23:34]MH_SAM_APDU [05:23:34]CAPDU: 80 13 00 00 [05:23:34]Write to MH i2c: E2 08 00 33 02 80 13 00 00 00 00 00 00 B1 [05:23:34]Write i2c OK [05:23:34]MH_I2C_Read... [05:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:34]Read from MH i2c: E2 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 62 00 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 62 00 33 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 37 F6 00 00 0E 04 04 00 20 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 7C [05:23: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 37 F6 00 00 0E 04 04 00 20 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 [05:23:34]wFMCommunicate OK [05:23:34]SAM_PROTO_GetFieldsCounters done [05:23:34]requested_item shift.num is exist - process it [05:23:34]requested_item shift.opened is exist - process it [05:23:34]req_shift_opened [05:23:34]FM_GetShiftState [05:23:34]SAM_PROTO_GetShiftState [05:23:34]wFMCommunicate request_size=4 [05:23:34]MH_SAM_APDU [05:23:34]CAPDU: 80 13 01 00 [05:23:34]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [05:23:34]Write i2c OK [05:23:34]MH_I2C_Read... [05:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:34]Read from MH i2c: E2 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 0E 00 [05:23:34]MH_I2C_Read... [05:23:34]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 13 [05:23:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [05:23:34]wFMCommunicate OK [05:23:34]SAM_PROTO_GetShiftState done [05:23:34]FM_GetShiftState done [05:23:34]req_shift_opened done [05:23:34]requested_item shift.open_date is exist - process it [05:23:34]req_shift_open_date [05:23:34]req_shift_open_date done [05:23:34]produce_requested_data done [05:23:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63031,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [05:23:34]process_action_free close_receipt [05:23:34]json_value_free [05:23:34]json_value_free done [05:23:34]process_json_proto returns [05:23:34]Send response to host [05:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63031,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [05:23:34]free response buf [05:23:34]execute_script done [05:23:34]execute_script returns [05:23:34]free content buf [05:23:34]Sock 9.Close socket [05:23:34]Sock 9.Thread stoped [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]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:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:14]accept exits with 7 [06:01:14]New connection [06:01:14]New thread 3067055460 created [06:01:14]Thread 3067198820 joined [06:01:14]Waiting for new connection... [06:01:14] Sock 7.Parse request [06:01:14]Sock 7.Check first char [06:01:14]Sock 7.First char is OK [06:01:14]request: POST /json_proto HTTP/1.0 [06:01:14]Method: POST [06:01:14]URL: /json_proto [06:01:14]Method is POST - this is cgi request [06:01:14]url: /json_proto [06:01:14]query_string will be loaded in cgi processing [06:01:14]execute_cgi json_proto POST (null) [06:01:14]execute_cgi path=json_proto method=POST [06:01:14]POST find Content-Length [06:01:14]Host: 172.17.42.132:8080 [06:01:14]Content-Length: 622 [06:01:14]Content-Type: application/json [06:01:14] [06:01:14]POST finish read [06:01:14]Found Content-Length = 622 [06:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47342", "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" ] } } [06:01:14]execute_script... [06:01: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)47342", "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" ] } } [06:01:14]POST & json_proto [06:01:14]process_json_proto [06:01:14]json parsed OK: [06:01:14]protocol is kg_v1.0 [06:01:14]action value=close_receipt [06:01:14]process_action close_receipt [06:01:14]cmd_close_receipt [06:01:14]MH_GetDate [06:01:14]Write to MH i2c: F0 00 00 35 02 26 [06:01:14]Write i2c OK [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: F0 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: F0 09 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: F0 09 00 35 02 00 2B EE 15 67 4C DF 56 66 AB [06:01:14]GetLastDocTimeStamp 1729488208 [06:01:14]current date 1729490475 [06:01:14]FM_GetShiftState [06:01:14]SAM_PROTO_GetShiftState [06:01:14]wFMCommunicate request_size=4 [06:01:14]MH_SAM_APDU [06:01:14]CAPDU: 80 13 01 00 [06:01:14]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [06:01:14]Write i2c OK [06:01:14]MH_I2C_Read... [06:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:14]Read from MH i2c: E2 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 0E 00 [06:01:14]MH_I2C_Read... [06:01:14]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 15 [06:01:14]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:01:14]wFMCommunicate OK [06:01:14]SAM_PROTO_GetShiftState done [06:01:14]FM_GetShiftState done [06:01:14]opened in 1729469755 [06:01:14]opened+sec_in_day 1729556155 [06:01:14]quantity*price = 14400 [06:01:14]sum+1 = 14401 [06:01:14]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 СНО: Общий режим Чек 29 21.10.2024 06:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63032 ФПД: 79099321924020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T060115&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63032&fm=79099321924020&tin=02508201610067®Number=0000000000091619&sum=14400 0 [06:01:16]StoreToDocumentArchive [06:01:16]shift 544 fd 63032 [06:01:16]save to /storage/0544/doc_00063032 [06:01:16]save last doc name /storage/0544/doc_00063032 to /storage/kkm_last_doc_name [06:01:16]save OK [06:01:16]Clear old archive folders... [06:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=275 [06:01:16]tlvbuf is 018BC750 [06:01:16]SAM_PROTO_ClearQueue [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 09 00 00 [06:01:16]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]SAM_PROTO_ClearQueue done [06:01:16]KKMCreateOFDPacket [06:01:16]OFDProtocolAddRootSTLVToBuf [06:01:16]FM_MakeSignedData [06:01:16]FM_MakeSignedData [06:01:16]SAM_PROTO_SignData [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 01 02 [06:01:16]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]wFMCommunicate request_size=255 [06:01:16]MH_SAM_APDU [06:01:16]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 1D 00 00 00 F4 03 04 00 2B EE 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [06:01:16]Write to MH i2c: E2 02 01 45 02 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 1D 00 00 00 F4 03 04 00 2B EE 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 99 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]wFMCommunicate request_size=34 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F6 00 00 35 04 06 00 47 F0 BE FC 39 B4 [06:01:16]Write to MH i2c: E2 25 00 46 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F6 00 00 35 04 06 00 47 F0 BE FC 39 B4 00 00 95 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 03 02 [06:01:16]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 0B 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 0B 00 47 02 00 42 22 5C C7 59 1B 40 45 90 00 45 [06:01:16]RAPDU: 42 22 5C C7 59 1B 40 45 90 00 [06:01:16]wFMCommunicate OK [06:01:16]SAM_PROTO_SignData done [06:01:16]FM_MakeSignedData done [06:01:16]CreateOFDProtocolMessage [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 11 00 00 [06:01:16]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 17 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1D [06:01:16]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:16]wFMCommunicate OK [06:01:16]CreateOFDProtocolMessage done [06:01:16]OFDSenderStorePacket 63032 [06:01:16]StoreOFDPacket docnum=63032 [06:01: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 27 01 00 00 A2 A7 1F 01 6D 65 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 1D 00 00 00 F4 03 04 00 2B EE 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 47 F0 BE FC 39 B4 42 22 5C C7 59 1B 40 45 [06:01:16]CheckFolder [06:01:16]dirname=/storage/ofd_packets [06:01:16]CheckFolder done [06:01:16]ProducePacketName [06:01:16]name=ofd_packets/00063032 [06:01:16]NVStorageSaveData ofd_packets/00063032 [06:01:16]File name is /storage/ofd_packets/00063032 [06:01:16]Write 325 bytes [06:01:16]NVStorageSaveData done [06:01:16]OFDSenderStorePacket done [06:01:16]KKMCreateOFDPacket done [06:01:16]NVStorageSaveData kkm_last_timestamp [06:01:16]File name is /storage/kkm_last_timestamp [06:01:16]Write 4 bytes [06:01:16]NVStorageSaveData done [06:01:16]ExternCall_PrintAddStr [06:01:16]wPrintStart [06:01:16]Write to MH i2c: 01 00 00 49 02 4B [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: 01 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: 01 07 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [06:01:16]RasterBufferAndPrint [06:01:16]line Счет N : (3)47342 [06:01:16]line ИНН: 02508201610067 [06:01:16]line Контрольно-Кассовый Чек [06:01:16]line ПРОДАЖА [06:01:16]line Товар: 48743587 [06:01:16]line Сигареты Winston XStyle Silver [06:01:16]line 1.000 * 144.00 [06:01:16]line = 144.00 [06:01:16]line НДС 12% НСП 1% [06:01:16]line > о реализуемом товаре [06:01:16]line ИТОГО: 144.00 [06:01:16]line НСП 1% : 1.27 [06:01:16]line НДС 12% : 15.29 [06:01:16]line Наличными: 144.00 [06:01:16]line Безнал.: 0.00 [06:01:16]line Место: АЗС № 86 "Партнер Нефть" [06:01:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:01:16]line СНО: Общий режим [06:01:16]line Чек 29 21.10.2024 06:01 [06:01:16]line Смена: 544 ФФД: 1.0 [06:01:16]line ЗНМ: 0300000154 [06:01:16]line РНМ: 0000000000091619 [06:01:16]line Версия ККМ: 001 [06:01:16]line ФМ: 0000000000874676 [06:01:16]line ФД: 63032 [06:01:16]line ФПД: 79099321924020 [06:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T060115&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63032&fm=79099321924020&tin=02508201610067®Number=0000000000091619&sum=14400 [06:01:16]OFD Sender: Processing packet 63032 [packets to send 232, broken 231] [06:01:16]ProducePacketName [06:01:16]name=ofd_packets/00063032 [06:01:16]OFD Sender: To server: pG, [06:01:16]CommunicateWithHost lk.salyk.kg:30040 [06:01:16]ConnectInit lk.salyk.kg [06:01:16]line 0 [06:01:16]written 0, free lines is 4095 [06:01:17]Connected sock=10 [06:01:17]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 A2 A7 1F 01 6D 65 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 1D 00 00 00 F4 03 04 00 2B EE 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 47 F0 BE FC 39 B4 42 22 5C C7 59 1B 40 45 [06:01:17]Write to MH i2c: 01 00 00 72 02 74 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 08 0D 90 [06:01:17]RasterBufferAndPrint [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]written 0, free lines is 3343 [06:01:17]MH_Cut [06:01:17]Write to MH i2c: D1 01 00 79 02 01 4D [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 01 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 01 00 79 02 00 4C [06:01:17]Write to MH i2c: 01 00 00 7A 02 7C [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01: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 20 68 47 00 1F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F6 00 00 F4 03 04 00 29 98 15 67 B6 04 01 00 00 F3 9E DC 1B 8C EB 4B AB [06:01:17]CommunicateWithHost err = 0 [06:01:17]CheckOFDResponse [06:01:17]1017 (14) - 77093643461234 [06:01:17]1041 (16) - 0000000000874676 [06:01:17]1040 (4) - 63032 [06:01:17]1012 (4) - 20.10.2024 23:54 [06:01:17]1206 (1) - 0 [06:01:17]OFD Sender: Remove packet 63032 [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00063032 [06:01:17]NVStorageDeleteData [06:01:17]OFD Sender: No OFD packet to send [06:01:18]*** Cut start [06:01:18]*** Partial cut [06:01:18]*** CUTSNS_PIN = 1 [06:01:18]*** CUTSNS_PIN = 0 [06:01:18]*** Brake cut motor [06:01:18]Read from MH i2c: 01 [06:01:18]MH_I2C_Read... [06:01:18]*** Stop cut motor [06:01:18]*** Cut end [06:01:18]Read from MH i2c: 01 07 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [06:01:18]process_action close_receipt done [06:01:18]requested_data is exist [06:01:18]produce_requested_data [06:01:18]requested_item fm.sn is exist - process it [06:01:18]wFMCommunicate request_size=4 [06:01:18]MH_SAM_APDU [06:01:18]CAPDU: 80 11 00 00 [06:01:18]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:18]Read from MH i2c: E2 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 17 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 50 [06:01:18]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:18]wFMCommunicate OK [06:01:18]requested_item fd.num is exist - process it [06:01:18]SAM_PROTO_GetFieldsCounters [06:01:18]wFMCommunicate request_size=4 [06:01:18]MH_SAM_APDU [06:01:18]CAPDU: 80 13 00 00 [06:01:18]Write to MH i2c: E2 08 00 7C 02 80 13 00 00 00 00 00 00 FA [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:18]Read from MH i2c: E2 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 62 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 62 00 7C 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 38 F6 00 00 0E 04 04 00 20 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 C9 [06:01: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 38 F6 00 00 0E 04 04 00 20 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 [06:01:18]wFMCommunicate OK [06:01:18]SAM_PROTO_GetFieldsCounters done [06:01:18]requested_item shift.num is exist - process it [06:01:18]requested_item shift.opened is exist - process it [06:01:18]req_shift_opened [06:01:18]FM_GetShiftState [06:01:18]SAM_PROTO_GetShiftState [06:01:18]wFMCommunicate request_size=4 [06:01:18]MH_SAM_APDU [06:01:18]CAPDU: 80 13 01 00 [06:01:18]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:18]Read from MH i2c: E2 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 0E 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5C [06:01:18]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:01:18]wFMCommunicate OK [06:01:18]SAM_PROTO_GetShiftState done [06:01:18]FM_GetShiftState done [06:01:18]req_shift_opened done [06:01:18]requested_item shift.open_date is exist - process it [06:01:18]req_shift_open_date [06:01:18]req_shift_open_date done [06:01:18]produce_requested_data done [06:01:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63032,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:01:18]process_action_free close_receipt [06:01:18]json_value_free [06:01:18]json_value_free done [06:01:18]process_json_proto returns [06:01:18]Send response to host [06:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63032,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:01:18]free response buf [06:01:18]execute_script done [06:01:18]execute_script returns [06:01:18]free content buf [06:01:18]Sock 7.Close socket [06:01:18]Sock 7.Thread stoped [06:01:22]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:38]accept exits with 9 [06:12:38]New connection [06:12:38]New thread 3067198820 created [06:12:38]Thread 3067055460 joined [06:12:38]Waiting for new connection... [06:12:38] Sock 9.Parse request [06:12:38]Sock 9.Check first char [06:12:38]Sock 9.First char is OK [06:12:38]request: POST /json_proto HTTP/1.0 [06:12:38]Method: POST [06:12:38]URL: /json_proto [06:12:38]Method is POST - this is cgi request [06:12:38]url: /json_proto [06:12:38]query_string will be loaded in cgi processing [06:12:38]execute_cgi json_proto POST (null) [06:12:38]execute_cgi path=json_proto method=POST [06:12:38]POST find Content-Length [06:12:38]Host: 172.17.42.132:8080 [06:12:38]Content-Length: 645 [06:12:38]Content-Type: application/json [06:12:38] [06:12:38]POST finish read [06:12:38]Found Content-Length = 645 [06:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47343", "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" ] } } [06:12:38]execute_script... [06:12: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)47343", "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" ] } } [06:12:38]POST & json_proto [06:12:38]process_json_proto [06:12:38]json parsed OK: [06:12:38]protocol is kg_v1.0 [06:12:38]action value=close_receipt [06:12:38]process_action close_receipt [06:12:38]cmd_close_receipt [06:12:38]MH_GetDate [06:12:38]Write to MH i2c: F0 00 00 7E 02 6F [06:12:38]Write i2c OK [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: F0 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: F0 09 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: F0 09 00 7E 02 00 D7 F0 15 67 4C DF 56 66 A2 [06:12:38]GetLastDocTimeStamp 1729490475 [06:12:38]current date 1729491159 [06:12:38]FM_GetShiftState [06:12:38]SAM_PROTO_GetShiftState [06:12:38]wFMCommunicate request_size=4 [06:12:38]MH_SAM_APDU [06:12:38]CAPDU: 80 13 01 00 [06:12:38]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [06:12:38]Write i2c OK [06:12:38]MH_I2C_Read... [06:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:38]Read from MH i2c: E2 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 0E 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5E [06:12:38]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:12:38]wFMCommunicate OK [06:12:38]SAM_PROTO_GetShiftState done [06:12:38]FM_GetShiftState done [06:12:38]opened in 1729469755 [06:12:38]opened+sec_in_day 1729556155 [06:12:38]quantity*price = 13000 [06:12:38]sum+1 = 13001 [06:12:38]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 СНО: Общий режим Чек 30 21.10.2024 06:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63033 ФПД: 7552340979800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061239&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63033&fm=7552340979800&tin=02508201610067®Number=0000000000091619&sum=13000 0 [06:12:40]StoreToDocumentArchive [06:12:40]shift 544 fd 63033 [06:12:40]save to /storage/0544/doc_00063033 [06:12:40]save last doc name /storage/0544/doc_00063033 to /storage/kkm_last_doc_name [06:12:40]save OK [06:12:40]Clear old archive folders... [06:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [06:12:40]tlvbuf is 018BC3B0 [06:12:40]SAM_PROTO_ClearQueue [06:12:40]wFMCommunicate request_size=4 [06:12:40]MH_SAM_APDU [06:12:40]CAPDU: 80 09 00 00 [06:12:40]Write to MH i2c: E2 08 00 8C 02 80 09 00 00 00 00 00 00 00 [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [06:12:40]RAPDU: 90 00 [06:12:40]wFMCommunicate OK [06:12:40]SAM_PROTO_ClearQueue done [06:12:40]KKMCreateOFDPacket [06:12:40]OFDProtocolAddRootSTLVToBuf [06:12:40]FM_MakeSignedData [06:12:40]FM_MakeSignedData [06:12:40]SAM_PROTO_SignData [06:12:40]wFMCommunicate request_size=4 [06:12:40]MH_SAM_APDU [06:12:40]CAPDU: 80 0D 01 02 [06:12:40]Write to MH i2c: E2 08 00 8D 02 80 0D 01 02 00 00 00 00 08 [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [06:12:40]RAPDU: 90 00 [06:12:40]wFMCommunicate OK [06:12:40]wFMCommunicate request_size=255 [06:12:40]MH_SAM_APDU [06:12:40]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 1E 00 00 00 F4 03 04 00 D7 F0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [06:12:40]Write to MH i2c: E2 02 01 8E 02 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 1E 00 00 00 F4 03 04 00 D7 F0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 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 9B [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [06:12:40]RAPDU: 90 00 [06:12:40]wFMCommunicate OK [06:12:40]wFMCommunicate request_size=41 [06:12:40]MH_SAM_APDU [06:12:40]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 F6 00 00 35 04 06 00 06 DE 6A 99 F0 58 [06:12:40]Write to MH i2c: E2 2C 00 8F 02 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 F6 00 00 35 04 06 00 06 DE 6A 99 F0 58 00 00 3E [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [06:12:40]RAPDU: 90 00 [06:12:40]wFMCommunicate OK [06:12:40]wFMCommunicate request_size=4 [06:12:40]MH_SAM_APDU [06:12:40]CAPDU: 80 0D 03 02 [06:12:40]Write to MH i2c: E2 08 00 90 02 80 0D 03 02 00 00 00 00 0D [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 0B 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 0B 00 90 02 00 4A DB 13 B8 2D 4E 4D 10 90 00 D6 [06:12:40]RAPDU: 4A DB 13 B8 2D 4E 4D 10 90 00 [06:12:40]wFMCommunicate OK [06:12:40]SAM_PROTO_SignData done [06:12:40]FM_MakeSignedData done [06:12:40]CreateOFDProtocolMessage [06:12:40]wFMCommunicate request_size=4 [06:12:40]MH_SAM_APDU [06:12:40]CAPDU: 80 11 00 00 [06:12:40]Write to MH i2c: E2 08 00 91 02 80 11 00 00 00 00 00 00 0D [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:40]Read from MH i2c: E2 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 17 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: E2 17 00 91 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 66 [06:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:12:40]wFMCommunicate OK [06:12:40]CreateOFDProtocolMessage done [06:12:40]OFDSenderStorePacket 63033 [06:12:40]StoreOFDPacket docnum=63033 [06:12: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 2E 01 00 00 3E 8C 26 01 46 AE 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 1E 00 00 00 F4 03 04 00 D7 F0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 06 DE 6A 99 F0 58 4A DB 13 B8 2D 4E 4D 10 [06:12:40]CheckFolder [06:12:40]dirname=/storage/ofd_packets [06:12:40]CheckFolder done [06:12:40]ProducePacketName [06:12:40]name=ofd_packets/00063033 [06:12:40]NVStorageSaveData ofd_packets/00063033 [06:12:40]File name is /storage/ofd_packets/00063033 [06:12:40]Write 332 bytes [06:12:40]NVStorageSaveData done [06:12:40]OFDSenderStorePacket done [06:12:40]KKMCreateOFDPacket done [06:12:40]NVStorageSaveData kkm_last_timestamp [06:12:40]File name is /storage/kkm_last_timestamp [06:12:40]Write 4 bytes [06:12:40]NVStorageSaveData done [06:12:40]ExternCall_PrintAddStr [06:12:40]wPrintStart [06:12:40]Write to MH i2c: 01 00 00 92 02 94 [06:12:40]Write i2c OK [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: 01 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: 01 07 00 [06:12:40]MH_I2C_Read... [06:12:40]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 FF 0F A9 [06:12:40]RasterBufferAndPrint [06:12:40]line Счет N : (3)47343 [06:12:40]line ИНН: 02508201610067 [06:12:40]line Контрольно-Кассовый Чек [06:12:40]line ПРОДАЖА [06:12:40]line Товар: 2000036220012 [06:12:40]line Кофе Капучино XL(GABB TRADE) [06:12:40]line 1.000 * 130.00 [06:12:40]line = 130.00 [06:12:40]line НДС 12% НСП 1% [06:12:40]line > о реализуемом товаре [06:12:40]line ИТОГО: 130.00 [06:12:40]line НСП 1% : 1.15 [06:12:40]line НДС 12% : 13.80 [06:12:40]line Наличными: 130.00 [06:12:40]line Безнал.: 0.00 [06:12:40]line Место: АЗС № 86 "Партнер Нефть" [06:12:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:12:40]line СНО: Общий режим [06:12:40]line Чек 30 21.10.2024 06:12 [06:12:40]line Смена: 544 ФФД: 1.0 [06:12:40]line ЗНМ: 0300000154 [06:12:40]line РНМ: 0000000000091619 [06:12:40]line Версия ККМ: 001 [06:12:40]line ФМ: 0000000000874676 [06:12:40]line ФД: 63033 [06:12:40]line ФПД: 7552340979800 [06:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061239&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63033&fm=7552340979800&tin=02508201610067®Number=0000000000091619&sum=13000 [06:12:40]OFD Sender: Processing packet 63033 [packets to send 232, broken 231] [06:12:40]ProducePacketName [06:12:40]name=ofd_packets/00063033 [06:12:40]OFD Sender: To server: pG, [06:12:40]CommunicateWithHost lk.salyk.kg:30040 [06:12:40]ConnectInit lk.salyk.kg [06:12:40]line 0 [06:12:40]written 0, free lines is 4095 [06:12:41]Connected sock=10 [06:12: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 2E 01 00 00 3E 8C 26 01 46 AE 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 1E 00 00 00 F4 03 04 00 D7 F0 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 06 DE 6A 99 F0 58 4A DB 13 B8 2D 4E 4D 10 [06:12:41]Write to MH i2c: 01 00 00 BB 02 BD [06:12:41]Write i2c OK [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: 01 [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: 01 07 00 [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FE 0C CE [06:12:41]RasterBufferAndPrint [06:12:41]line [06:12:41]line [06:12:41]line [06:12:41]line [06:12:41]line [06:12:41]written 0, free lines is 3332 [06:12:41]MH_Cut [06:12:41]Write to MH i2c: D1 01 00 C2 02 01 96 [06:12:41]Write i2c OK [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: D1 [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: D1 01 00 [06:12:41]MH_I2C_Read... [06:12:41]Read from MH i2c: D1 01 00 C2 02 00 95 [06:12:41]Write to MH i2c: 01 00 00 C3 02 C5 [06:12:41]Write i2c OK [06:12:41]MH_I2C_Read... [06:12: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 23 E5 47 00 B6 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F6 00 00 F4 03 04 00 D5 9A 15 67 B6 04 01 00 00 42 A7 D9 F4 73 EC 3D 36 [06:12:41]CommunicateWithHost err = 0 [06:12:41]CheckOFDResponse [06:12:41]1017 (14) - 77093643461234 [06:12:41]1041 (16) - 0000000000874676 [06:12:41]1040 (4) - 63033 [06:12:41]1012 (4) - 21.10.2024 00:05 [06:12:41]1206 (1) - 0 [06:12:41]OFD Sender: Remove packet 63033 [06:12:41]ProducePacketName [06:12:41]name=ofd_packets/00063033 [06:12:41]NVStorageDeleteData [06:12:42]OFD Sender: No OFD packet to send [06:12:42]*** Cut start [06:12:42]*** Partial cut [06:12:42]*** CUTSNS_PIN = 1 [06:12:42]*** CUTSNS_PIN = 0 [06:12:42]*** Brake cut motor [06:12:42]Read from MH i2c: 01 [06:12:42]MH_I2C_Read... [06:12:42]*** Stop cut motor [06:12:42]*** Cut end [06:12:42]Read from MH i2c: 01 07 00 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [06:12:42]process_action close_receipt done [06:12:42]requested_data is exist [06:12:42]produce_requested_data [06:12:42]requested_item fm.sn is exist - process it [06:12:42]wFMCommunicate request_size=4 [06:12:42]MH_SAM_APDU [06:12:42]CAPDU: 80 11 00 00 [06:12:42]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [06:12:42]Write i2c OK [06:12:42]MH_I2C_Read... [06:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:42]Read from MH i2c: E2 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 17 00 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [06:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:12:42]wFMCommunicate OK [06:12:42]requested_item fd.num is exist - process it [06:12:42]SAM_PROTO_GetFieldsCounters [06:12:42]wFMCommunicate request_size=4 [06:12:42]MH_SAM_APDU [06:12:42]CAPDU: 80 13 00 00 [06:12:42]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [06:12:42]Write i2c OK [06:12:42]MH_I2C_Read... [06:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:42]Read from MH i2c: E2 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 62 00 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 62 00 C5 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 39 F6 00 00 0E 04 04 00 20 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 16 [06:12: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 39 F6 00 00 0E 04 04 00 20 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 [06:12:42]wFMCommunicate OK [06:12:42]SAM_PROTO_GetFieldsCounters done [06:12:42]requested_item shift.num is exist - process it [06:12:42]requested_item shift.opened is exist - process it [06:12:42]req_shift_opened [06:12:42]FM_GetShiftState [06:12:42]SAM_PROTO_GetShiftState [06:12:42]wFMCommunicate request_size=4 [06:12:42]MH_SAM_APDU [06:12:42]CAPDU: 80 13 01 00 [06:12:42]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [06:12:42]Write i2c OK [06:12:42]MH_I2C_Read... [06:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:42]Read from MH i2c: E2 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 0E 00 [06:12:42]MH_I2C_Read... [06:12:42]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A5 [06:12:42]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:12:42]wFMCommunicate OK [06:12:42]SAM_PROTO_GetShiftState done [06:12:42]FM_GetShiftState done [06:12:42]req_shift_opened done [06:12:42]requested_item shift.open_date is exist - process it [06:12:42]req_shift_open_date [06:12:42]req_shift_open_date done [06:12:42]produce_requested_data done [06:12:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63033,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:12:42]process_action_free close_receipt [06:12:42]json_value_free [06:12:43]json_value_free done [06:12:43]process_json_proto returns [06:12:43]Send response to host [06:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63033,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:12:43]free response buf [06:12:43]execute_script done [06:12:43]execute_script returns [06:12:43]free content buf [06:12:43]Sock 9.Close socket [06:12:43]Sock 9.Thread stoped [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:05]accept exits with 7 [06:14:05]New connection [06:14:05]New thread 3067055460 created [06:14:05]Thread 3067198820 joined [06:14:05]Waiting for new connection... [06:14:05] Sock 7.Parse request [06:14:05]Sock 7.Check first char [06:14:05]Sock 7.First char is OK [06:14:05]request: POST /json_proto HTTP/1.0 [06:14:05]Method: POST [06:14:05]URL: /json_proto [06:14:05]Method is POST - this is cgi request [06:14:05]url: /json_proto [06:14:05]query_string will be loaded in cgi processing [06:14:05]execute_cgi json_proto POST (null) [06:14:05]execute_cgi path=json_proto method=POST [06:14:05]POST find Content-Length [06:14:05]Host: 172.17.42.132:8080 [06:14:05]Content-Length: 647 [06:14:05]Content-Type: application/json [06:14:05] [06:14:05]POST finish read [06:14:05]Found Content-Length = 647 [06:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47344", "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 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:05]execute_script... [06:14: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)47344", "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 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:05]POST & json_proto [06:14:05]process_json_proto [06:14:05]json parsed OK: [06:14:05]protocol is kg_v1.0 [06:14:05]action value=close_receipt [06:14:05]process_action close_receipt [06:14:05]cmd_close_receipt [06:14:05]MH_GetDate [06:14:05]Write to MH i2c: F0 00 00 C7 02 B8 [06:14:05]Write i2c OK [06:14:05]MH_I2C_Read... [06:14:05]Read from MH i2c: F0 [06:14:05]MH_I2C_Read... [06:14:05]Read from MH i2c: F0 09 00 [06:14:05]MH_I2C_Read... [06:14:05]Read from MH i2c: F0 09 00 C7 02 00 2E F1 15 67 4C DF 56 66 43 [06:14:05]GetLastDocTimeStamp 1729491159 [06:14:05]current date 1729491246 [06:14:05]FM_GetShiftState [06:14:05]SAM_PROTO_GetShiftState [06:14:05]wFMCommunicate request_size=4 [06:14:05]MH_SAM_APDU [06:14:05]CAPDU: 80 13 01 00 [06:14:05]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [06:14:05]Write i2c OK [06:14:05]MH_I2C_Read... [06:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:05]Read from MH i2c: E2 [06:14:05]MH_I2C_Read... [06:14:05]Read from MH i2c: E2 0E 00 [06:14:05]MH_I2C_Read... [06:14:05]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A7 [06:14:05]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:14:05]wFMCommunicate OK [06:14:05]SAM_PROTO_GetShiftState done [06:14:05]FM_GetShiftState done [06:14:05]opened in 1729469755 [06:14:05]opened+sec_in_day 1729556155 [06:14:05]quantity*price = 13400 [06:14:05]sum+1 = 13401 [06:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 31 21.10.2024 06:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63034 ФПД: 209057867434992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061406&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63034&fm=209057867434992&tin=02508201610067®Number=0000000000091619&sum=13400 0 [06:14:07]StoreToDocumentArchive [06:14:07]shift 544 fd 63034 [06:14:07]save to /storage/0544/doc_00063034 [06:14:07]save last doc name /storage/0544/doc_00063034 to /storage/kkm_last_doc_name [06:14:07]save OK [06:14:07]Clear old archive folders... [06:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:14:07]tlvbuf is 0182D5C0 [06:14:07]SAM_PROTO_ClearQueue [06:14:07]wFMCommunicate request_size=4 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 09 00 00 [06:14:07]Write to MH i2c: E2 08 00 D5 02 80 09 00 00 00 00 00 00 49 [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [06:14:07]RAPDU: 90 00 [06:14:07]wFMCommunicate OK [06:14:07]SAM_PROTO_ClearQueue done [06:14:07]KKMCreateOFDPacket [06:14:07]OFDProtocolAddRootSTLVToBuf [06:14:07]FM_MakeSignedData [06:14:07]FM_MakeSignedData [06:14:07]SAM_PROTO_SignData [06:14:07]wFMCommunicate request_size=4 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 0D 01 02 [06:14:07]Write to MH i2c: E2 08 00 D6 02 80 0D 01 02 00 00 00 00 51 [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [06:14:07]RAPDU: 90 00 [06:14:07]wFMCommunicate OK [06:14:07]wFMCommunicate request_size=255 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 0D 02 02 FA 03 00 14 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 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2E F1 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [06:14:07]Write to MH i2c: E2 02 01 D7 02 80 0D 02 02 FA 00 03 00 14 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 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2E F1 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 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 9C [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]OFD Sender: No OFD packet to send [06:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [06:14:07]RAPDU: 90 00 [06:14:07]wFMCommunicate OK [06:14:07]wFMCommunicate request_size=35 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F6 00 00 35 04 06 00 BE 23 13 ED 0B F0 [06:14:07]Write to MH i2c: E2 26 00 D8 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F6 00 00 35 04 06 00 BE 23 13 ED 0B F0 00 00 59 [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [06:14:07]RAPDU: 90 00 [06:14:07]wFMCommunicate OK [06:14:07]wFMCommunicate request_size=4 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 0D 03 02 [06:14:07]Write to MH i2c: E2 08 00 D9 02 80 0D 03 02 00 00 00 00 56 [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 0B 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 0B 00 D9 02 00 46 53 6A 30 2A 69 22 59 90 00 98 [06:14:07]RAPDU: 46 53 6A 30 2A 69 22 59 90 00 [06:14:07]wFMCommunicate OK [06:14:07]SAM_PROTO_SignData done [06:14:07]FM_MakeSignedData done [06:14:07]CreateOFDProtocolMessage [06:14:07]wFMCommunicate request_size=4 [06:14:07]MH_SAM_APDU [06:14:07]CAPDU: 80 11 00 00 [06:14:07]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:07]Read from MH i2c: E2 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 17 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AF [06:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:14:07]wFMCommunicate OK [06:14:07]CreateOFDProtocolMessage done [06:14:07]OFDSenderStorePacket 63034 [06:14:07]StoreOFDPacket docnum=63034 [06:14:07]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 EC A2 20 01 14 7E 5A 03 01 00 03 00 14 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 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2E F1 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BE 23 13 ED 0B F0 46 53 6A 30 2A 69 22 59 [06:14:07]CheckFolder [06:14:07]dirname=/storage/ofd_packets [06:14:07]CheckFolder done [06:14:07]ProducePacketName [06:14:07]name=ofd_packets/00063034 [06:14:07]NVStorageSaveData ofd_packets/00063034 [06:14:07]File name is /storage/ofd_packets/00063034 [06:14:07]Write 326 bytes [06:14:07]NVStorageSaveData done [06:14:07]OFDSenderStorePacket done [06:14:07]KKMCreateOFDPacket done [06:14:07]NVStorageSaveData kkm_last_timestamp [06:14:07]File name is /storage/kkm_last_timestamp [06:14:07]Write 4 bytes [06:14:07]NVStorageSaveData done [06:14:07]ExternCall_PrintAddStr [06:14:07]wPrintStart [06:14:07]Write to MH i2c: 01 00 00 DB 02 DD [06:14:07]Write i2c OK [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: 01 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: 01 07 00 [06:14:07]MH_I2C_Read... [06:14:07]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 FF 0F F2 [06:14:07]RasterBufferAndPrint [06:14:07]line Счет N : (3)47344 [06:14:07]line ИНН: 02508201610067 [06:14:07]line Контрольно-Кассовый Чек [06:14:07]line ПРОДАЖА [06:14:07]line Товар: 4860019001346 [06:14:07]line Вода Боржоми 0,5л ст [06:14:07]line 1.000 * 134.00 [06:14:07]line = 134.00 [06:14:07]line НДС 12% НСП 1% [06:14:07]line > о реализуемом товаре [06:14:07]line ИТОГО: 134.00 [06:14:07]line НСП 1% : 1.19 [06:14:07]line НДС 12% : 14.23 [06:14:07]line Наличными: 134.00 [06:14:07]line Безнал.: 0.00 [06:14:07]line Место: АЗС № 86 "Партнер Нефть" [06:14:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:14:07]line СНО: Общий режим [06:14:07]line Чек 31 21.10.2024 06:14 [06:14:07]line Смена: 544 ФФД: 1.0 [06:14:07]line ЗНМ: 0300000154 [06:14:07]line РНМ: 0000000000091619 [06:14:07]line Версия ККМ: 001 [06:14:07]line ФМ: 0000000000874676 [06:14:07]line ФД: 63034 [06:14:07]line ФПД: 209057867434992 [06:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061406&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63034&fm=209057867434992&tin=02508201610067®Number=0000000000091619&sum=13400 [06:14:07]line 0 [06:14:07]OFD Sender: Processing packet 63034 [packets to send 232, broken 231] [06:14:07]ProducePacketName [06:14:07]name=ofd_packets/00063034 [06:14:07]OFD Sender: To server: pG, [06:14:07]CommunicateWithHost lk.salyk.kg:30040 [06:14:07]ConnectInit lk.salyk.kg [06:14:07]written 0, free lines is 4095 [06:14:08]Connected sock=10 [06: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 28 01 00 00 EC A2 20 01 14 7E 5A 03 01 00 03 00 14 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 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2E F1 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BE 23 13 ED 0B F0 46 53 6A 30 2A 69 22 59 [06:14: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 32 57 47 00 8F 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F6 00 00 F4 03 04 00 2C 9B 15 67 B6 04 01 00 00 45 60 74 38 FE A6 F7 FA [06:14:08]CommunicateWithHost err = 0 [06:14:08]CheckOFDResponse [06:14:08]1017 (14) - 77093643461234 [06:14:08]1041 (16) - 0000000000874676 [06:14:08]1040 (4) - 63034 [06:14:08]1012 (4) - 21.10.2024 00:07 [06:14:08]1206 (1) - 0 [06:14:08]OFD Sender: Remove packet 63034 [06:14:08]ProducePacketName [06:14:08]name=ofd_packets/00063034 [06:14:08]NVStorageDeleteData [06:14:08]Write to MH i2c: 01 00 00 03 03 06 [06:14:08]Write i2c OK [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: 01 [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: 01 07 00 [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 27 0D 41 [06:14:08]RasterBufferAndPrint [06:14:08]line [06:14:08]line [06:14:08]line [06:14:08]line [06:14:08]line [06:14:08]written 0, free lines is 3373 [06:14:08]MH_Cut [06:14:08]Write to MH i2c: D1 01 00 0A 03 01 DF [06:14:08]Write i2c OK [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: D1 [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: D1 01 00 [06:14:08]MH_I2C_Read... [06:14:08]Read from MH i2c: D1 01 00 0A 03 00 DE [06:14:08]Write to MH i2c: 01 00 00 0B 03 0E [06:14:08]Write i2c OK [06:14:08]MH_I2C_Read... [06:14:08]OFD Sender: No OFD packet to send [06:14:09]*** Cut start [06:14:09]*** Partial cut [06:14:09]*** CUTSNS_PIN = 1 [06:14:09]*** CUTSNS_PIN = 0 [06:14:09]*** Brake cut motor [06:14:09]Read from MH i2c: 01 [06:14:09]MH_I2C_Read... [06:14:09]*** Stop cut motor [06:14:09]*** Cut end [06:14:09]Read from MH i2c: 01 07 00 [06:14:09]MH_I2C_Read... [06:14:09]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [06:14:09]process_action close_receipt done [06:14:09]requested_data is exist [06:14:09]produce_requested_data [06:14:09]requested_item fm.sn is exist - process it [06:14:09]wFMCommunicate request_size=4 [06:14:09]MH_SAM_APDU [06:14:09]CAPDU: 80 11 00 00 [06:14:09]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [06:14:09]Write i2c OK [06:14:09]MH_I2C_Read... [06:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:09]Read from MH i2c: E2 [06:14:09]MH_I2C_Read... [06:14:09]Read from MH i2c: E2 17 00 [06:14:09]MH_I2C_Read... [06:14:09]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 [06:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:14:09]wFMCommunicate OK [06:14:09]requested_item fd.num is exist - process it [06:14:09]SAM_PROTO_GetFieldsCounters [06:14:09]wFMCommunicate request_size=4 [06:14:09]MH_SAM_APDU [06:14:09]CAPDU: 80 13 00 00 [06:14:09]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [06:14:09]Write i2c OK [06:14:09]MH_I2C_Read... [06:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:14:09]Read from MH i2c: E2 [06:14:09]MH_I2C_Read... [06:14:09]Read from MH i2c: E2 62 00 [06:14:09]MH_I2C_Read... [06:14:09]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 3A F6 00 00 0E 04 04 00 20 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 63 [06:14: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 3A F6 00 00 0E 04 04 00 20 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 [06:14:09]wFMCommunicate OK [06:14:09]SAM_PROTO_GetFieldsCounters done [06:14:09]requested_item shift.num is exist - process it [06:14:09]requested_item shift.opened is exist - process it [06:14:09]req_shift_opened [06:14:09]FM_GetShiftState [06:14:09]SAM_PROTO_GetShiftState [06:14:09]wFMCommunicate request_size=4 [06:14:09]MH_SAM_APDU [06:14:09]CAPDU: 80 13 01 00 [06:14:09]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [06:14:09]Write i2c OK [06:14:09]MH_I2C_Read... [06:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:09]Read from MH i2c: E2 [06:14:09]MH_I2C_Read... [06:14:09]Read from MH i2c: E2 0E 00 [06:14:09]MH_I2C_Read... [06:14:09]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 EE [06:14:09]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:14:09]wFMCommunicate OK [06:14:09]SAM_PROTO_GetShiftState done [06:14:09]FM_GetShiftState done [06:14:09]req_shift_opened done [06:14:09]requested_item shift.open_date is exist - process it [06:14:09]req_shift_open_date [06:14:09]req_shift_open_date done [06:14:09]produce_requested_data done [06:14:09]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63034,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:14:09]process_action_free close_receipt [06:14:09]json_value_free [06:14:09]json_value_free done [06:14:09]process_json_proto returns [06:14:09]Send response to host [06:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63034,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:14:09]free response buf [06:14:09]execute_script done [06:14:09]execute_script returns [06:14:09]free content buf [06:14:09]Sock 7.Close socket [06:14:09]Sock 7.Thread stoped [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:56]accept exits with 9 [06:21:56]New connection [06:21:56]New thread 3067198820 created [06:21:56]Thread 3067055460 joined [06:21:56]Waiting for new connection... [06:21:56] Sock 9.Parse request [06:21:56]Sock 9.Check first char [06:21:56]Sock 9.First char is OK [06:21:56]request: POST /json_proto HTTP/1.0 [06:21:56]Method: POST [06:21:56]URL: /json_proto [06:21:56]Method is POST - this is cgi request [06:21:56]url: /json_proto [06:21:56]query_string will be loaded in cgi processing [06:21:56]execute_cgi json_proto POST (null) [06:21:56]execute_cgi path=json_proto method=POST [06:21:56]POST find Content-Length [06:21:56]Host: 172.17.42.132:8080 [06:21:56]Content-Length: 639 [06:21:56]Content-Type: application/json [06:21:56] [06:21:56]POST finish read [06:21:56]Found Content-Length = 639 [06:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47345", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:56]execute_script... [06:21: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)47345", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:56]POST & json_proto [06:21:56]process_json_proto [06:21:56]json parsed OK: [06:21:56]protocol is kg_v1.0 [06:21:56]action value=close_receipt [06:21:56]process_action close_receipt [06:21:56]cmd_close_receipt [06:21:56]MH_GetDate [06:21:56]Write to MH i2c: F0 00 00 0F 03 01 [06:21:56]Write i2c OK [06:21:56]MH_I2C_Read... [06:21:56]Read from MH i2c: F0 [06:21:56]MH_I2C_Read... [06:21:56]Read from MH i2c: F0 09 00 [06:21:56]MH_I2C_Read... [06:21:56]Read from MH i2c: F0 09 00 0F 03 00 05 F3 15 67 4C DF 56 66 65 [06:21:56]GetLastDocTimeStamp 1729491246 [06:21:56]current date 1729491717 [06:21:56]FM_GetShiftState [06:21:56]SAM_PROTO_GetShiftState [06:21:56]wFMCommunicate request_size=4 [06:21:56]MH_SAM_APDU [06:21:56]CAPDU: 80 13 01 00 [06:21:56]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [06:21:56]Write i2c OK [06:21:56]MH_I2C_Read... [06:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:56]Read from MH i2c: E2 [06:21:56]MH_I2C_Read... [06:21:56]Read from MH i2c: E2 0E 00 [06:21:56]MH_I2C_Read... [06:21:56]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F0 [06:21:56]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:21:56]wFMCommunicate OK [06:21:56]SAM_PROTO_GetShiftState done [06:21:56]FM_GetShiftState done [06:21:56]opened in 1729469755 [06:21:56]opened+sec_in_day 1729556155 [06:21:56]quantity*price = 19900 [06:21:56]sum+1 = 19901 [06:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 32 21.10.2024 06:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63035 ФПД: 218431535903325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63035&fm=218431535903325&tin=02508201610067®Number=0000000000091619&sum=19900 0 [06:21:58]StoreToDocumentArchive [06:21:58]shift 544 fd 63035 [06:21:58]save to /storage/0544/doc_00063035 [06:21:58]save last doc name /storage/0544/doc_00063035 to /storage/kkm_last_doc_name [06:21:58]save OK [06:21:58]Clear old archive folders... [06:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:21:58]tlvbuf is 0182D4A0 [06:21:58]SAM_PROTO_ClearQueue [06:21:58]wFMCommunicate request_size=4 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 09 00 00 [06:21:58]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [06:21:58]RAPDU: 90 00 [06:21:58]wFMCommunicate OK [06:21:58]SAM_PROTO_ClearQueue done [06:21:58]KKMCreateOFDPacket [06:21:58]OFDProtocolAddRootSTLVToBuf [06:21:58]FM_MakeSignedData [06:21:58]FM_MakeSignedData [06:21:58]SAM_PROTO_SignData [06:21:58]wFMCommunicate request_size=4 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 0D 01 02 [06:21:58]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [06:21:58]RAPDU: 90 00 [06:21:58]wFMCommunicate OK [06:21:58]wFMCommunicate request_size=255 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 05 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [06:21:58]Write to MH i2c: E2 02 01 1F 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 05 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 D6 [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [06:21:58]RAPDU: 90 00 [06:21:58]wFMCommunicate OK [06:21:58]wFMCommunicate request_size=31 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 3B F6 00 00 35 04 06 00 C6 A9 8E 1A F2 5D [06:21:58]Write to MH i2c: E2 22 00 20 03 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 3B F6 00 00 35 04 06 00 C6 A9 8E 1A F2 5D 00 00 65 [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [06:21:58]RAPDU: 90 00 [06:21:58]wFMCommunicate OK [06:21:58]wFMCommunicate request_size=4 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 0D 03 02 [06:21:58]Write to MH i2c: E2 08 00 21 03 80 0D 03 02 00 00 00 00 9F [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 0B 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 0B 00 21 03 00 19 F2 3C 3A 09 32 F2 93 90 00 E1 [06:21:58]RAPDU: 19 F2 3C 3A 09 32 F2 93 90 00 [06:21:58]wFMCommunicate OK [06:21:58]SAM_PROTO_SignData done [06:21:58]FM_MakeSignedData done [06:21:58]CreateOFDProtocolMessage [06:21:58]wFMCommunicate request_size=4 [06:21:58]MH_SAM_APDU [06:21:58]CAPDU: 80 11 00 00 [06:21:58]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:58]Read from MH i2c: E2 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: E2 17 00 [06:21:58]MH_I2C_Read... [06:21:58]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 [06:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:21:58]wFMCommunicate OK [06:21:58]CreateOFDProtocolMessage done [06:21:58]OFDSenderStorePacket 63035 [06:21:58]StoreOFDPacket docnum=63035 [06:21: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 24 01 00 00 D4 C5 1C 01 E2 9E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 05 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C6 A9 8E 1A F2 5D 19 F2 3C 3A 09 32 F2 93 [06:21:58]CheckFolder [06:21:58]dirname=/storage/ofd_packets [06:21:58]CheckFolder done [06:21:58]ProducePacketName [06:21:58]name=ofd_packets/00063035 [06:21:58]NVStorageSaveData ofd_packets/00063035 [06:21:58]File name is /storage/ofd_packets/00063035 [06:21:58]Write 322 bytes [06:21:58]NVStorageSaveData done [06:21:58]OFDSenderStorePacket done [06:21:58]KKMCreateOFDPacket done [06:21:58]NVStorageSaveData kkm_last_timestamp [06:21:58]File name is /storage/kkm_last_timestamp [06:21:58]Write 4 bytes [06:21:58]NVStorageSaveData done [06:21:58]ExternCall_PrintAddStr [06:21:58]wPrintStart [06:21:58]Write to MH i2c: 01 00 00 23 03 26 [06:21:58]Write i2c OK [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: 01 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: 01 07 00 [06:21:58]MH_I2C_Read... [06:21:58]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FF 0F 3B [06:21:58]RasterBufferAndPrint [06:21:58]line Счет N : (3)47345 [06:21:58]line ИНН: 02508201610067 [06:21:58]line Контрольно-Кассовый Чек [06:21:58]line ПРОДАЖА [06:21:58]line Товар: 4700000480517 [06:21:58]line Пиво Живое 1л ПЭТ [06:21:58]line 1.000 * 199.00 [06:21:58]line = 199.00 [06:21:58]line НДС 12% НСП 1% [06:21:58]line > о реализуемом товаре [06:21:58]line ИТОГО: 199.00 [06:21:58]line НСП 1% : 1.76 [06:21:58]line НДС 12% : 21.13 [06:21:58]line Наличными: 199.00 [06:21:58]line Безнал.: 0.00 [06:21:58]line Место: АЗС № 86 "Партнер Нефть" [06:21:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:21:58]line СНО: Общий режим [06:21:58]line Чек 32 21.10.2024 06:21 [06:21:58]line Смена: 544 ФФД: 1.0 [06:21:58]line ЗНМ: 0300000154 [06:21:58]line РНМ: 0000000000091619 [06:21:58]line Версия ККМ: 001 [06:21:58]line ФМ: 0000000000874676 [06:21:58]line ФД: 63035 [06:21:58]line ФПД: 218431535903325 [06:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63035&fm=218431535903325&tin=02508201610067®Number=0000000000091619&sum=19900 [06:21:58]OFD Sender: Processing packet 63035 [packets to send 232, broken 231] [06:21:58]ProducePacketName [06:21:58]name=ofd_packets/00063035 [06:21:58]OFD Sender: To server: pG, [06:21:58]CommunicateWithHost lk.salyk.kg:30040 [06:21:58]ConnectInit lk.salyk.kg [06:21:58]line 0 [06:21:58]written 0, free lines is 4095 [06:21:59]Connected sock=10 [06:21: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 24 01 00 00 D4 C5 1C 01 E2 9E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 05 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C6 A9 8E 1A F2 5D 19 F2 3C 3A 09 32 F2 93 [06:21:59]Write to MH i2c: 01 00 00 4B 03 4E [06:21:59]Write i2c OK [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: 01 [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: 01 07 00 [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 0C 0D 6E [06:21:59]RasterBufferAndPrint [06:21:59]line [06:21:59]line [06:21:59]line [06:21:59]line [06:21:59]line [06:21:59]written 0, free lines is 3346 [06:21:59]MH_Cut [06:21:59]Write to MH i2c: D1 01 00 52 03 01 27 [06:21:59]Write i2c OK [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: D1 [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: D1 01 00 [06:21:59]MH_I2C_Read... [06:21:59]Read from MH i2c: D1 01 00 52 03 00 26 [06:21:59]Write to MH i2c: 01 00 00 53 03 56 [06:21:59]Write i2c OK [06:21:59]MH_I2C_Read... [06:21: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 16 0B 47 00 40 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 03 9D 15 67 B6 04 01 00 00 4F 8F 8C DA 3F 94 07 7D [06:21:59]CommunicateWithHost err = 0 [06:21:59]CheckOFDResponse [06:21:59]1017 (14) - 77093643461234 [06:21:59]1041 (16) - 0000000000874676 [06:21:59]1040 (4) - 63035 [06:21:59]1012 (4) - 21.10.2024 00:14 [06:21:59]1206 (1) - 0 [06:21:59]OFD Sender: Remove packet 63035 [06:21:59]ProducePacketName [06:21:59]name=ofd_packets/00063035 [06:21:59]NVStorageDeleteData [06:21:59]OFD Sender: No OFD packet to send [06:22:00]*** Cut start [06:22:00]*** Partial cut [06:22:00]*** CUTSNS_PIN = 1 [06:22:00]*** CUTSNS_PIN = 0 [06:22:00]*** Brake cut motor [06:22:00]Read from MH i2c: 01 [06:22:00]MH_I2C_Read... [06:22:00]*** Stop cut motor [06:22:00]*** Cut end [06:22:00]Read from MH i2c: 01 07 00 [06:22:00]MH_I2C_Read... [06:22:00]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [06:22:00]process_action close_receipt done [06:22:00]requested_data is exist [06:22:00]produce_requested_data [06:22:00]requested_item fm.sn is exist - process it [06:22:00]wFMCommunicate request_size=4 [06:22:00]MH_SAM_APDU [06:22:00]CAPDU: 80 11 00 00 [06:22:00]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [06:22:00]Write i2c OK [06:22:00]MH_I2C_Read... [06:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:00]Read from MH i2c: E2 [06:22:00]MH_I2C_Read... [06:22:00]Read from MH i2c: E2 17 00 [06:22:00]MH_I2C_Read... [06:22:00]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 [06:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:22:00]wFMCommunicate OK [06:22:00]requested_item fd.num is exist - process it [06:22:00]SAM_PROTO_GetFieldsCounters [06:22:00]wFMCommunicate request_size=4 [06:22:00]MH_SAM_APDU [06:22:00]CAPDU: 80 13 00 00 [06:22:00]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [06:22:00]Write i2c OK [06:22:00]MH_I2C_Read... [06:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:00]Read from MH i2c: E2 [06:22:00]MH_I2C_Read... [06:22:00]Read from MH i2c: E2 62 00 [06:22:00]MH_I2C_Read... [06:22:00]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 3B F6 00 00 0E 04 04 00 20 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 AF [06:22: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 3B F6 00 00 0E 04 04 00 20 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 [06:22:00]wFMCommunicate OK [06:22:00]SAM_PROTO_GetFieldsCounters done [06:22:00]requested_item shift.num is exist - process it [06:22:00]requested_item shift.opened is exist - process it [06:22:00]req_shift_opened [06:22:00]FM_GetShiftState [06:22:00]SAM_PROTO_GetShiftState [06:22:00]wFMCommunicate request_size=4 [06:22:00]MH_SAM_APDU [06:22:00]CAPDU: 80 13 01 00 [06:22:00]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [06:22:00]Write i2c OK [06:22:00]MH_I2C_Read... [06:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:00]Read from MH i2c: E2 [06:22:00]MH_I2C_Read... [06:22:00]Read from MH i2c: E2 0E 00 [06:22:00]MH_I2C_Read... [06:22:00]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 36 [06:22:00]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:22:00]wFMCommunicate OK [06:22:00]SAM_PROTO_GetShiftState done [06:22:00]FM_GetShiftState done [06:22:00]req_shift_opened done [06:22:00]requested_item shift.open_date is exist - process it [06:22:00]req_shift_open_date [06:22:00]req_shift_open_date done [06:22:00]produce_requested_data done [06:22:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63035,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:22:00]process_action_free close_receipt [06:22:00]json_value_free [06:22:00]json_value_free done [06:22:00]process_json_proto returns [06:22:00]Send response to host [06:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63035,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:22:00]free response buf [06:22:00]execute_script done [06:22:00]execute_script returns [06:22:00]free content buf [06:22:00]Sock 9.Close socket [06:22:00]Sock 9.Thread stoped [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:05]accept exits with 7 [06:23:05]New connection [06:23:05]New thread 3067055460 created [06:23:05]Thread 3067198820 joined [06:23:05]Waiting for new connection... [06:23:05] Sock 7.Parse request [06:23:05]Sock 7.Check first char [06:23:05]Sock 7.First char is OK [06:23:05]request: POST /json_proto HTTP/1.0 [06:23:05]Method: POST [06:23:05]URL: /json_proto [06:23:05]Method is POST - this is cgi request [06:23:05]url: /json_proto [06:23:05]query_string will be loaded in cgi processing [06:23:05]execute_cgi json_proto POST (null) [06:23:05]execute_cgi path=json_proto method=POST [06:23:05]POST find Content-Length [06:23:05]Host: 172.17.42.132:8080 [06:23:05]Content-Length: 904 [06:23:05]Content-Type: application/json [06:23:05] [06:23:05]POST finish read [06:23:05]Found Content-Length = 904 [06:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47346", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:05]execute_script... [06:23: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)47346", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:05]POST & json_proto [06:23:05]process_json_proto [06:23:05]json parsed OK: [06:23:05]protocol is kg_v1.0 [06:23:05]action value=close_receipt [06:23:05]process_action close_receipt [06:23:05]cmd_close_receipt [06:23:05]MH_GetDate [06:23:05]Write to MH i2c: F0 00 00 57 03 49 [06:23:05]Write i2c OK [06:23:05]MH_I2C_Read... [06:23:05]Read from MH i2c: F0 [06:23:05]MH_I2C_Read... [06:23:05]Read from MH i2c: F0 09 00 [06:23:05]MH_I2C_Read... [06:23:05]Read from MH i2c: F0 09 00 57 03 00 4A F3 15 67 4C DF 56 66 F2 [06:23:05]GetLastDocTimeStamp 1729491717 [06:23:05]current date 1729491786 [06:23:05]FM_GetShiftState [06:23:05]SAM_PROTO_GetShiftState [06:23:05]wFMCommunicate request_size=4 [06:23:05]MH_SAM_APDU [06:23:05]CAPDU: 80 13 01 00 [06:23:05]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [06:23:05]Write i2c OK [06:23:05]MH_I2C_Read... [06:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:05]Read from MH i2c: E2 [06:23:05]MH_I2C_Read... [06:23:05]Read from MH i2c: E2 0E 00 [06:23:05]MH_I2C_Read... [06:23:05]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 38 [06:23:05]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:23:05]wFMCommunicate OK [06:23:05]SAM_PROTO_GetShiftState done [06:23:05]FM_GetShiftState done [06:23:05]opened in 1729469755 [06:23:05]opened+sec_in_day 1729556155 [06:23:05]quantity*price = 6000 [06:23:05]sum+1 = 6001 [06:23:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.63 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 33 21.10.2024 06:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63036 ФПД: 2669756039233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062306&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63036&fm=2669756039233&tin=02508201610067®Number=0000000000091619&sum=11900 0 [06:23:07]StoreToDocumentArchive [06:23:07]shift 544 fd 63036 [06:23:07]save to /storage/0544/doc_00063036 [06:23:07]save last doc name /storage/0544/doc_00063036 to /storage/kkm_last_doc_name [06:23:07]save OK [06:23:07]Clear old archive folders... [06:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=387 [06:23:07]tlvbuf is 01834E30 [06:23:07]SAM_PROTO_ClearQueue [06:23:07]wFMCommunicate request_size=4 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 09 00 00 [06:23:07]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [06:23:07]RAPDU: 90 00 [06:23:07]wFMCommunicate OK [06:23:07]SAM_PROTO_ClearQueue done [06:23:07]KKMCreateOFDPacket [06:23:07]OFDProtocolAddRootSTLVToBuf [06:23:07]FM_MakeSignedData [06:23:07]FM_MakeSignedData [06:23:07]SAM_PROTO_SignData [06:23:07]wFMCommunicate request_size=4 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 0D 01 02 [06:23:07]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [06:23:07]RAPDU: 90 00 [06:23:07]wFMCommunicate OK [06:23:07]wFMCommunicate request_size=255 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 0D 02 02 FA 03 00 83 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 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 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [06:23:07]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 83 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 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 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 91 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [06:23:07]RAPDU: 90 00 [06:23:07]wFMCommunicate OK [06:23:07]wFMCommunicate request_size=146 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 0D 02 02 8D 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 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 21 00 00 00 F4 03 04 00 4A F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 6D 99 DC 40 41 [06:23:07]Write to MH i2c: E2 95 00 68 03 80 0D 02 02 8D 00 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 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 21 00 00 00 F4 03 04 00 4A F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 6D 99 DC 40 41 00 00 D5 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [06:23:07]RAPDU: 90 00 [06:23:07]wFMCommunicate OK [06:23:07]wFMCommunicate request_size=4 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 0D 03 02 [06:23:07]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 0B 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 0B 00 69 03 00 F4 74 AC 3E 1F 49 49 57 90 00 42 [06:23:07]RAPDU: F4 74 AC 3E 1F 49 49 57 90 00 [06:23:07]wFMCommunicate OK [06:23:07]SAM_PROTO_SignData done [06:23:07]FM_MakeSignedData done [06:23:07]CreateOFDProtocolMessage [06:23:07]wFMCommunicate request_size=4 [06:23:07]MH_SAM_APDU [06:23:07]CAPDU: 80 11 00 00 [06:23:07]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:07]Read from MH i2c: E2 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: E2 17 00 [06:23:07]MH_I2C_Read... [06:23:07]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 [06:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:23:07]wFMCommunicate OK [06:23:07]CreateOFDProtocolMessage done [06:23:07]OFDSenderStorePacket 63036 [06:23:07]StoreOFDPacket docnum=63036 [06:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 97 01 00 00 86 12 8F 01 B0 2D 5A 03 01 00 03 00 83 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 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 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 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 21 00 00 00 F4 03 04 00 4A F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 6D 99 DC 40 41 F4 74 AC 3E 1F 49 49 57 [06:23:07]CheckFolder [06:23:07]dirname=/storage/ofd_packets [06:23:07]CheckFolder done [06:23:07]ProducePacketName [06:23:07]name=ofd_packets/00063036 [06:23:07]NVStorageSaveData ofd_packets/00063036 [06:23:07]File name is /storage/ofd_packets/00063036 [06:23:07]Write 437 bytes [06:23:07]NVStorageSaveData done [06:23:07]OFDSenderStorePacket done [06:23:07]KKMCreateOFDPacket done [06:23:07]NVStorageSaveData kkm_last_timestamp [06:23:07]File name is /storage/kkm_last_timestamp [06:23:07]Write 4 bytes [06:23:07]NVStorageSaveData done [06:23:07]ExternCall_PrintAddStr [06:23:07]wPrintStart [06:23:07]Write to MH i2c: 01 00 00 6B 03 6E [06:23:07]Write i2c OK [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: 01 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: 01 07 00 [06:23:07]MH_I2C_Read... [06:23:07]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [06:23:07]RasterBufferAndPrint [06:23:07]line Счет N : (3)47346 [06:23:07]line ИНН: 02508201610067 [06:23:07]line Контрольно-Кассовый Чек [06:23:07]line ПРОДАЖА [06:23:07]line Товар: 4700000310043 [06:23:07]line Вода Жалалабат 27 1л [06:23:07]line 1.000 * 60.00 [06:23:07]line = 60.00 [06:23:07]line НДС 12% НСП 1% [06:23:08]line > о реализуемом товаре [06:23:08]line Товар: 4607065001445 [06:23:08]line Шок батончик Snickers 50,5г [06:23:08]line 1.000 * 59.00 [06:23:08]line = 59.00 [06:23:08]line НДС 12% НСП 1% [06:23:08]line > о реализуемом товаре [06:23:08]line ИТОГО: 119.00 [06:23:08]line НСП 1% : 1.05 [06:23:08]line НДС 12% : 12.63 [06:23:08]line Наличными: 119.00 [06:23:08]line Безнал.: 0.00 [06:23:08]line Место: АЗС № 86 "Партнер Нефть" [06:23:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:23:08]line СНО: Общий режим [06:23:08]line Чек 33 21.10.2024 06:23 [06:23:08]line Смена: 544 ФФД: 1.0 [06:23:08]line ЗНМ: 0300000154 [06:23:08]line РНМ: 0000000000091619 [06:23:08]line Версия ККМ: 001 [06:23:08]line ФМ: 0000000000874676 [06:23:08]line ФД: 63036 [06:23:08]line ФПД: 2669756039233 [06:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062306&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63036&fm=2669756039233&tin=02508201610067®Number=0000000000091619&sum=11900 [06:23:08]line 0 [06:23:08]OFD Sender: Processing packet 63036 [packets to send 232, broken 231] [06:23:08]ProducePacketName [06:23:08]name=ofd_packets/00063036 [06:23:08]OFD Sender: To server: pG, [06:23:08]CommunicateWithHost lk.salyk.kg:30040 [06:23:08]ConnectInit lk.salyk.kg [06:23:08]written 0, free lines is 4095 [06:23:08]Connected sock=10 [06:23: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 97 01 00 00 86 12 8F 01 B0 2D 5A 03 01 00 03 00 83 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 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 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 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 21 00 00 00 F4 03 04 00 4A F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 6D 99 DC 40 41 F4 74 AC 3E 1F 49 49 57 [06:23:08]Write to MH i2c: 01 00 00 99 03 9C [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: 01 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: 01 07 00 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 C4 0C 73 [06:23:08]RasterBufferAndPrint [06:23:08]line [06:23:08]line [06:23:08]line [06:23:08]line [06:23:08]line [06:23:08]written 0, free lines is 3277 [06:23:08]MH_Cut [06:23:08]Write to MH i2c: D1 01 00 A0 03 01 75 [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: D1 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: D1 01 00 [06:23:08]MH_I2C_Read... [06:23:08]Read from MH i2c: D1 01 00 A0 03 00 74 [06:23:08]Write to MH i2c: 01 00 00 A1 03 A4 [06:23:08]Write i2c OK [06:23:08]MH_I2C_Read... [06:23: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 BB C3 47 00 90 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 3C F6 00 00 F4 03 04 00 49 9D 15 67 B6 04 01 00 00 72 2B 9A EE A6 3A 3C DC [06:23:08]CommunicateWithHost err = 0 [06:23:08]CheckOFDResponse [06:23:08]1017 (14) - 77093643461234 [06:23:08]1041 (16) - 0000000000874676 [06:23:08]1040 (4) - 63036 [06:23:08]1012 (4) - 21.10.2024 00:16 [06:23:08]1206 (1) - 0 [06:23:08]OFD Sender: Remove packet 63036 [06:23:08]ProducePacketName [06:23:08]name=ofd_packets/00063036 [06:23:08]NVStorageDeleteData [06:23:09]OFD Sender: No OFD packet to send [06:23:09]*** Cut start [06:23:09]*** Partial cut [06:23:09]*** CUTSNS_PIN = 1 [06:23:09]*** CUTSNS_PIN = 0 [06:23:09]*** Brake cut motor [06:23:09]Read from MH i2c: 01 [06:23:09]MH_I2C_Read... [06:23:09]*** Stop cut motor [06:23:09]*** Cut end [06:23:09]Read from MH i2c: 01 07 00 [06:23:09]MH_I2C_Read... [06:23:09]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [06:23:09]process_action close_receipt done [06:23:09]requested_data is exist [06:23:09]produce_requested_data [06:23:09]requested_item fm.sn is exist - process it [06:23:09]wFMCommunicate request_size=4 [06:23:09]MH_SAM_APDU [06:23:09]CAPDU: 80 11 00 00 [06:23:09]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [06:23:09]Write i2c OK [06:23:09]MH_I2C_Read... [06:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:10]Read from MH i2c: E2 [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 17 00 [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 78 [06:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:23:10]wFMCommunicate OK [06:23:10]requested_item fd.num is exist - process it [06:23:10]SAM_PROTO_GetFieldsCounters [06:23:10]wFMCommunicate request_size=4 [06:23:10]MH_SAM_APDU [06:23:10]CAPDU: 80 13 00 00 [06:23:10]Write to MH i2c: E2 08 00 A3 03 80 13 00 00 00 00 00 00 22 [06:23:10]Write i2c OK [06:23:10]MH_I2C_Read... [06:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:10]Read from MH i2c: E2 [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 62 00 [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 62 00 A3 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 3C F6 00 00 0E 04 04 00 20 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 01 [06:23: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 F6 00 00 0E 04 04 00 20 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 [06:23:10]wFMCommunicate OK [06:23:10]SAM_PROTO_GetFieldsCounters done [06:23:10]requested_item shift.num is exist - process it [06:23:10]requested_item shift.opened is exist - process it [06:23:10]req_shift_opened [06:23:10]FM_GetShiftState [06:23:10]SAM_PROTO_GetShiftState [06:23:10]wFMCommunicate request_size=4 [06:23:10]MH_SAM_APDU [06:23:10]CAPDU: 80 13 01 00 [06:23:10]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [06:23:10]Write i2c OK [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 [06:23:10]MH_I2C_Read... [06:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:10]Read from MH i2c: E2 0E 00 [06:23:10]MH_I2C_Read... [06:23:10]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 84 [06:23:10]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:23:10]wFMCommunicate OK [06:23:10]SAM_PROTO_GetShiftState done [06:23:10]FM_GetShiftState done [06:23:10]req_shift_opened done [06:23:10]requested_item shift.open_date is exist - process it [06:23:10]req_shift_open_date [06:23:10]req_shift_open_date done [06:23:10]produce_requested_data done [06:23:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63036,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:23:10]process_action_free close_receipt [06:23:10]json_value_free [06:23:10]json_value_free done [06:23:10]process_json_proto returns [06:23:10]Send response to host [06:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63036,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:23:10]free response buf [06:23:10]execute_script done [06:23:10]execute_script returns [06:23:10]free content buf [06:23:10]Sock 7.Close socket [06:23:10]Sock 7.Thread stoped [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:02]accept exits with 9 [06:24:02]New connection [06:24:02]New thread 3067198820 created [06:24:02]Thread 3067055460 joined [06:24:02]Waiting for new connection... [06:24:02] Sock 9.Parse request [06:24:02]Sock 9.Check first char [06:24:02]Sock 9.First char is OK [06:24:02]request: POST /json_proto HTTP/1.0 [06:24:02]Method: POST [06:24:02]URL: /json_proto [06:24:02]Method is POST - this is cgi request [06:24:02]url: /json_proto [06:24:02]query_string will be loaded in cgi processing [06:24:02]execute_cgi json_proto POST (null) [06:24:02]execute_cgi path=json_proto method=POST [06:24:02]POST find Content-Length [06:24:02]Host: 172.17.42.132:8080 [06:24:02]Content-Length: 620 [06:24:02]Content-Type: application/json [06:24:02] [06:24:02]POST finish read [06:24:02]Found Content-Length = 620 [06:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47347", "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" ] } } [06:24:02]execute_script... [06:24: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)47347", "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" ] } } [06:24:02]POST & json_proto [06:24:02]process_json_proto [06:24:02]json parsed OK: [06:24:02]protocol is kg_v1.0 [06:24:02]action value=close_receipt [06:24:02]process_action close_receipt [06:24:02]cmd_close_receipt [06:24:02]MH_GetDate [06:24:02]Write to MH i2c: F0 00 00 A5 03 97 [06:24:02]Write i2c OK [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: F0 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: F0 09 00 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: F0 09 00 A5 03 00 83 F3 15 67 4C DF 56 66 79 [06:24:02]GetLastDocTimeStamp 1729491786 [06:24:02]current date 1729491843 [06:24:02]FM_GetShiftState [06:24:02]SAM_PROTO_GetShiftState [06:24:02]wFMCommunicate request_size=4 [06:24:02]MH_SAM_APDU [06:24:02]CAPDU: 80 13 01 00 [06:24:02]Write to MH i2c: E2 08 00 A6 03 80 13 01 00 00 00 00 00 26 [06:24:02]Write i2c OK [06:24:02]MH_I2C_Read... [06:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:02]Read from MH i2c: E2 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: E2 0E 00 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: E2 0E 00 A6 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 86 [06:24:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:24:02]wFMCommunicate OK [06:24:02]SAM_PROTO_GetShiftState done [06:24:02]FM_GetShiftState done [06:24:02]opened in 1729469755 [06:24:02]opened+sec_in_day 1729556155 [06:24:02]quantity*price = 14400 [06:24:02]sum+1 = 14401 [06:24:02]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 СНО: Общий режим Чек 34 21.10.2024 06:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63037 ФПД: 56632193669527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062403&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63037&fm=56632193669527&tin=02508201610067®Number=0000000000091619&sum=14400 0 [06:24:03]StoreToDocumentArchive [06:24:03]shift 544 fd 63037 [06:24:03]save to /storage/0544/doc_00063037 [06:24:03]save last doc name /storage/0544/doc_00063037 to /storage/kkm_last_doc_name [06:24:03]save OK [06:24:03]Clear old archive folders... [06:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=273 [06:24:03]tlvbuf is 0182CF70 [06:24:03]SAM_PROTO_ClearQueue [06:24:03]wFMCommunicate request_size=4 [06:24:03]MH_SAM_APDU [06:24:03]CAPDU: 80 09 00 00 [06:24:03]Write to MH i2c: E2 08 00 B3 03 80 09 00 00 00 00 00 00 28 [06:24:03]Write i2c OK [06:24:03]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [06:24:04]RAPDU: 90 00 [06:24:04]wFMCommunicate OK [06:24:04]SAM_PROTO_ClearQueue done [06:24:04]KKMCreateOFDPacket [06:24:04]OFDProtocolAddRootSTLVToBuf [06:24:04]FM_MakeSignedData [06:24:04]FM_MakeSignedData [06:24:04]SAM_PROTO_SignData [06:24:04]wFMCommunicate request_size=4 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 0D 01 02 [06:24:04]Write to MH i2c: E2 08 00 B4 03 80 0D 01 02 00 00 00 00 30 [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [06:24:04]RAPDU: 90 00 [06:24:04]wFMCommunicate OK [06:24:04]wFMCommunicate request_size=255 [06:24:04]MH_SAM_APDU [06:24:04]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 22 00 00 00 F4 03 04 00 83 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [06:24:04]Write to MH i2c: E2 02 01 B5 03 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 22 00 00 00 F4 03 04 00 83 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 D1 [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]OFD Sender: No OFD packet to send [06:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [06:24:04]RAPDU: 90 00 [06:24:04]wFMCommunicate OK [06:24:04]wFMCommunicate request_size=32 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F6 00 00 35 04 06 00 33 81 B5 C9 59 97 [06:24:04]Write to MH i2c: E2 23 00 B6 03 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F6 00 00 35 04 06 00 33 81 B5 C9 59 97 00 00 EB [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [06:24:04]RAPDU: 90 00 [06:24:04]wFMCommunicate OK [06:24:04]wFMCommunicate request_size=4 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 0D 03 02 [06:24:04]Write to MH i2c: E2 08 00 B7 03 80 0D 03 02 00 00 00 00 35 [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 0B 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 0B 00 B7 03 00 E9 53 43 3C 77 A4 7A B5 90 00 3B [06:24:04]RAPDU: E9 53 43 3C 77 A4 7A B5 90 00 [06:24:04]wFMCommunicate OK [06:24:04]SAM_PROTO_SignData done [06:24:04]FM_MakeSignedData done [06:24:04]CreateOFDProtocolMessage [06:24:04]wFMCommunicate request_size=4 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 11 00 00 [06:24:04]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 17 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8E [06:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:24:04]wFMCommunicate OK [06:24:04]CreateOFDProtocolMessage done [06:24:04]OFDSenderStorePacket 63037 [06:24:04]StoreOFDPacket docnum=63037 [06:24: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 25 01 00 00 B0 0C 1D 01 F2 7F 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 22 00 00 00 F4 03 04 00 83 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 81 B5 C9 59 97 E9 53 43 3C 77 A4 7A B5 [06:24:04]CheckFolder [06:24:04]dirname=/storage/ofd_packets [06:24:04]CheckFolder done [06:24:04]ProducePacketName [06:24:04]name=ofd_packets/00063037 [06:24:04]NVStorageSaveData ofd_packets/00063037 [06:24:04]File name is /storage/ofd_packets/00063037 [06:24:04]Write 323 bytes [06:24:04]NVStorageSaveData done [06:24:04]OFDSenderStorePacket done [06:24:04]KKMCreateOFDPacket done [06:24:04]NVStorageSaveData kkm_last_timestamp [06:24:04]File name is /storage/kkm_last_timestamp [06:24:04]Write 4 bytes [06:24:04]NVStorageSaveData done [06:24:04]ExternCall_PrintAddStr [06:24:04]wPrintStart [06:24:04]Write to MH i2c: 01 00 00 B9 03 BC [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: 01 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: 01 07 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FF 0F D1 [06:24:04]RasterBufferAndPrint [06:24:04]line Счет N : (3)47347 [06:24:04]line ИНН: 02508201610067 [06:24:04]line Контрольно-Кассовый Чек [06:24:04]line ПРОДАЖА [06:24:04]line Товар: 48743570 [06:24:04]line Сигареты Winston XStyle Blue [06:24:04]line 1.000 * 144.00 [06:24:04]line = 144.00 [06:24:04]line НДС 12% НСП 1% [06:24:04]line > о реализуемом товаре [06:24:04]line ИТОГО: 144.00 [06:24:04]line НСП 1% : 1.27 [06:24:04]line НДС 12% : 15.29 [06:24:04]line Наличными: 144.00 [06:24:04]line Безнал.: 0.00 [06:24:04]line Место: АЗС № 86 "Партнер Нефть" [06:24:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:24:04]line СНО: Общий режим [06:24:04]line Чек 34 21.10.2024 06:24 [06:24:04]line Смена: 544 ФФД: 1.0 [06:24:04]line ЗНМ: 0300000154 [06:24:04]line РНМ: 0000000000091619 [06:24:04]line Версия ККМ: 001 [06:24:04]line ФМ: 0000000000874676 [06:24:04]line ФД: 63037 [06:24:04]line ФПД: 56632193669527 [06:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062403&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63037&fm=56632193669527&tin=02508201610067®Number=0000000000091619&sum=14400 [06:24:04]OFD Sender: Processing packet 63037 [packets to send 232, broken 231] [06:24:04]ProducePacketName [06:24:04]name=ofd_packets/00063037 [06:24:04]OFD Sender: To server: pG, [06:24:04]CommunicateWithHost lk.salyk.kg:30040 [06:24:04]ConnectInit lk.salyk.kg [06:24:04]line 0 [06:24:04]written 0, free lines is 4095 [06:24:05]Connected sock=10 [06:24: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 25 01 00 00 B0 0C 1D 01 F2 7F 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 22 00 00 00 F4 03 04 00 83 F3 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 81 B5 C9 59 97 E9 53 43 3C 77 A4 7A B5 [06:24:05]Write to MH i2c: 01 00 00 E1 03 E4 [06:24:05]Write i2c OK [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: 01 [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: 01 07 00 [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 03 0D FB [06:24:05]RasterBufferAndPrint [06:24:05]line [06:24:05]line [06:24:05]line [06:24:05]line [06:24:05]line [06:24:05]written 0, free lines is 3337 [06:24:05]MH_Cut [06:24:05]Write to MH i2c: D1 01 00 E8 03 01 BD [06:24:05]Write i2c OK [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: D1 [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: D1 01 00 [06:24:05]MH_I2C_Read... [06:24:05]Read from MH i2c: D1 01 00 E8 03 00 BC [06:24:05]Write to MH i2c: 01 00 00 E9 03 EC [06:24:05]Write i2c OK [06:24:05]MH_I2C_Read... [06:24: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 57 54 47 00 4F 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 3D F6 00 00 F4 03 04 00 81 9D 15 67 B6 04 01 00 00 E5 B2 6B 70 9B FC 33 7A [06:24:05]CommunicateWithHost err = 0 [06:24:05]CheckOFDResponse [06:24:05]1017 (14) - 77093643461234 [06:24:05]1041 (16) - 0000000000874676 [06:24:05]1040 (4) - 63037 [06:24:05]1012 (4) - 21.10.2024 00:17 [06:24:05]1206 (1) - 0 [06:24:05]OFD Sender: Remove packet 63037 [06:24:05]ProducePacketName [06:24:05]name=ofd_packets/00063037 [06:24:05]NVStorageDeleteData [06:24:05]*** Cut start [06:24:05]*** Partial cut [06:24:05]*** CUTSNS_PIN = 1 [06:24:05]OFD Sender: No OFD packet to send [06:24:06]*** CUTSNS_PIN = 0 [06:24:06]*** Brake cut motor [06:24:06]Read from MH i2c: 01 [06:24:06]MH_I2C_Read... [06:24:06]*** Stop cut motor [06:24:06]*** Cut end [06:24:06]Read from MH i2c: 01 07 00 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [06:24:06]process_action close_receipt done [06:24:06]requested_data is exist [06:24:06]produce_requested_data [06:24:06]requested_item fm.sn is exist - process it [06:24:06]wFMCommunicate request_size=4 [06:24:06]MH_SAM_APDU [06:24:06]CAPDU: 80 11 00 00 [06:24:06]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [06:24:06]Write i2c OK [06:24:06]MH_I2C_Read... [06:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:06]Read from MH i2c: E2 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 17 00 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C0 [06:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:24:06]wFMCommunicate OK [06:24:06]requested_item fd.num is exist - process it [06:24:06]SAM_PROTO_GetFieldsCounters [06:24:06]wFMCommunicate request_size=4 [06:24:06]MH_SAM_APDU [06:24:06]CAPDU: 80 13 00 00 [06:24:06]Write to MH i2c: E2 08 00 EB 03 80 13 00 00 00 00 00 00 6A [06:24:06]Write i2c OK [06:24:06]MH_I2C_Read... [06:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:06]Read from MH i2c: E2 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 62 00 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 62 00 EB 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 3D F6 00 00 0E 04 04 00 20 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 4D [06:24: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 3D F6 00 00 0E 04 04 00 20 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 [06:24:06]wFMCommunicate OK [06:24:06]SAM_PROTO_GetFieldsCounters done [06:24:06]requested_item shift.num is exist - process it [06:24:06]requested_item shift.opened is exist - process it [06:24:06]req_shift_opened [06:24:06]FM_GetShiftState [06:24:06]SAM_PROTO_GetShiftState [06:24:06]wFMCommunicate request_size=4 [06:24:06]MH_SAM_APDU [06:24:06]CAPDU: 80 13 01 00 [06:24:06]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [06:24:06]Write i2c OK [06:24:06]MH_I2C_Read... [06:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:06]Read from MH i2c: E2 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 0E 00 [06:24:06]MH_I2C_Read... [06:24:06]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CC [06:24:06]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:24:06]wFMCommunicate OK [06:24:06]SAM_PROTO_GetShiftState done [06:24:06]FM_GetShiftState done [06:24:06]req_shift_opened done [06:24:06]requested_item shift.open_date is exist - process it [06:24:06]req_shift_open_date [06:24:06]req_shift_open_date done [06:24:06]produce_requested_data done [06:24:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63037,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:24:06]process_action_free close_receipt [06:24:06]json_value_free [06:24:06]json_value_free done [06:24:06]process_json_proto returns [06:24:06]Send response to host [06:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63037,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:24:06]free response buf [06:24:06]execute_script done [06:24:06]execute_script returns [06:24:06]free content buf [06:24:06]Sock 9.Close socket [06:24:06]Sock 9.Thread stoped [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:52]accept exits with 7 [06:27:52]New connection [06:27:52]New thread 3067055460 created [06:27:52]Thread 3067198820 joined [06:27:52]Waiting for new connection... [06:27:52] Sock 7.Parse request [06:27:52]Sock 7.Check first char [06:27:52]Sock 7.First char is OK [06:27:52]request: POST /json_proto HTTP/1.0 [06:27:52]Method: POST [06:27:52]URL: /json_proto [06:27:52]Method is POST - this is cgi request [06:27:52]url: /json_proto [06:27:52]query_string will be loaded in cgi processing [06:27:52]execute_cgi json_proto POST (null) [06:27:52]execute_cgi path=json_proto method=POST [06:27:52]POST find Content-Length [06:27:52]Host: 172.17.42.132:8080 [06:27:52]Content-Length: 651 [06:27:52]Content-Type: application/json [06:27:52] [06:27:52]POST finish read [06:27:52]Found Content-Length = 651 [06:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47348", "tax_sys" : 0, "items" : [ { "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:52]execute_script... [06:27: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)47348", "tax_sys" : 0, "items" : [ { "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:52]POST & json_proto [06:27:52]process_json_proto [06:27:52]json parsed OK: [06:27:52]protocol is kg_v1.0 [06:27:52]action value=close_receipt [06:27:52]process_action close_receipt [06:27:52]cmd_close_receipt [06:27:52]MH_GetDate [06:27:52]Write to MH i2c: F0 00 00 ED 03 DF [06:27:52]Write i2c OK [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: F0 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: F0 09 00 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: F0 09 00 ED 03 00 69 F4 15 67 4C DF 56 66 A8 [06:27:52]GetLastDocTimeStamp 1729491843 [06:27:52]current date 1729492073 [06:27:52]FM_GetShiftState [06:27:52]SAM_PROTO_GetShiftState [06:27:52]wFMCommunicate request_size=4 [06:27:52]MH_SAM_APDU [06:27:52]CAPDU: 80 13 01 00 [06:27:52]Write to MH i2c: E2 08 00 EE 03 80 13 01 00 00 00 00 00 6E [06:27:52]Write i2c OK [06:27:52]MH_I2C_Read... [06:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:52]Read from MH i2c: E2 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: E2 0E 00 [06:27:52]MH_I2C_Read... [06:27:52]Read from MH i2c: E2 0E 00 EE 03 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CE [06:27:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:27:52]wFMCommunicate OK [06:27:52]SAM_PROTO_GetShiftState done [06:27:52]FM_GetShiftState done [06:27:52]opened in 1729469755 [06:27:52]opened+sec_in_day 1729556155 [06:27:52]quantity*price = 12500 [06:27:52]sum+1 = 12501 [06:27:52]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 СНО: Общий режим Чек 35 21.10.2024 06:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63038 ФПД: 161984392360883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062753&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63038&fm=161984392360883&tin=02508201610067®Number=0000000000091619&sum=12500 0 [06:27:53]StoreToDocumentArchive [06:27:53]shift 544 fd 63038 [06:27:53]save to /storage/0544/doc_00063038 [06:27:53]save last doc name /storage/0544/doc_00063038 to /storage/kkm_last_doc_name [06:27:53]save OK [06:27:53]Clear old archive folders... [06:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=284 [06:27:53]tlvbuf is 01822990 [06:27:53]SAM_PROTO_ClearQueue [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 09 00 00 [06:27:53]Write to MH i2c: E2 08 00 FB 03 80 09 00 00 00 00 00 00 70 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 03 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [06:27:53]RAPDU: 90 00 [06:27:53]wFMCommunicate OK [06:27:53]SAM_PROTO_ClearQueue done [06:27:53]KKMCreateOFDPacket [06:27:53]OFDProtocolAddRootSTLVToBuf [06:27:53]FM_MakeSignedData [06:27:53]FM_MakeSignedData [06:27:53]SAM_PROTO_SignData [06:27:53]wFMCommunicate request_size=4 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 0D 01 02 [06:27:53]Write to MH i2c: E2 08 00 FC 03 80 0D 01 02 00 00 00 00 78 [06:27:53]Write i2c OK [06:27:53]MH_I2C_Read... [06:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:53]Read from MH i2c: E2 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 03 00 [06:27:53]MH_I2C_Read... [06:27:53]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [06:27:53]RAPDU: 90 00 [06:27:53]wFMCommunicate OK [06:27:53]wFMCommunicate request_size=255 [06:27:53]MH_SAM_APDU [06:27:53]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 00 00 00 F4 03 04 00 69 F4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 [06:27:53]Write to MH i2c: E2 02 01 FD 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 00 00 00 F4 03 04 00 69 F4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 00 00 39 [06:27:54]Write i2c OK [06:27:54]MH_I2C_Read... [06:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:54]Read from MH i2c: E2 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 03 00 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [06:27:54]RAPDU: 90 00 [06:27:54]wFMCommunicate OK [06:27:54]wFMCommunicate request_size=43 [06:27:54]MH_SAM_APDU [06:27:54]CAPDU: 80 0D 02 02 26 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 F6 00 00 35 04 06 00 93 52 EE 2A 73 B3 [06:27:54]Write to MH i2c: E2 2E 00 FE 03 80 0D 02 02 26 00 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 F6 00 00 35 04 06 00 93 52 EE 2A 73 B3 00 00 C0 [06:27:54]Write i2c OK [06:27:54]MH_I2C_Read... [06:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:54]Read from MH i2c: E2 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 03 00 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [06:27:54]RAPDU: 90 00 [06:27:54]wFMCommunicate OK [06:27:54]wFMCommunicate request_size=4 [06:27:54]MH_SAM_APDU [06:27:54]CAPDU: 80 0D 03 02 [06:27:54]Write to MH i2c: E2 08 00 FF 03 80 0D 03 02 00 00 00 00 7D [06:27:54]Write i2c OK [06:27:54]MH_I2C_Read... [06:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:54]Read from MH i2c: E2 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 0B 00 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 0B 00 FF 03 00 22 90 8E F0 C4 20 A5 F4 90 00 2B [06:27:54]RAPDU: 22 90 8E F0 C4 20 A5 F4 90 00 [06:27:54]wFMCommunicate OK [06:27:54]SAM_PROTO_SignData done [06:27:54]FM_MakeSignedData done [06:27:54]CreateOFDProtocolMessage [06:27:54]wFMCommunicate request_size=4 [06:27:54]MH_SAM_APDU [06:27:54]CAPDU: 80 11 00 00 [06:27:54]Write to MH i2c: E2 08 00 00 04 80 11 00 00 00 00 00 00 7E [06:27:54]Write i2c OK [06:27:54]MH_I2C_Read... [06:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:54]Read from MH i2c: E2 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 17 00 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: E2 17 00 00 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D7 [06:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:27:54]wFMCommunicate OK [06:27:54]CreateOFDProtocolMessage done [06:27:54]OFDSenderStorePacket 63038 [06:27:54]StoreOFDPacket docnum=63038 [06:27: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 30 01 00 00 73 4A 28 01 91 11 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 00 00 00 F4 03 04 00 69 F4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 93 52 EE 2A 73 B3 22 90 8E F0 C4 20 A5 F4 [06:27:54]CheckFolder [06:27:54]dirname=/storage/ofd_packets [06:27:54]CheckFolder done [06:27:54]ProducePacketName [06:27:54]name=ofd_packets/00063038 [06:27:54]NVStorageSaveData ofd_packets/00063038 [06:27:54]File name is /storage/ofd_packets/00063038 [06:27:54]Write 334 bytes [06:27:54]NVStorageSaveData done [06:27:54]OFDSenderStorePacket done [06:27:54]KKMCreateOFDPacket done [06:27:54]NVStorageSaveData kkm_last_timestamp [06:27:54]File name is /storage/kkm_last_timestamp [06:27:54]Write 4 bytes [06:27:54]NVStorageSaveData done [06:27:54]ExternCall_PrintAddStr [06:27:54]wPrintStart [06:27:54]Write to MH i2c: 01 00 00 01 04 05 [06:27:54]Write i2c OK [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: 01 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: 01 07 00 [06:27:54]MH_I2C_Read... [06:27:54]Read from MH i2c: 01 07 00 01 04 00 00 00 00 00 FF 0F 1A [06:27:54]RasterBufferAndPrint [06:27:54]line Счет N : (3)47348 [06:27:54]line ИНН: 02508201610067 [06:27:54]line Контрольно-Кассовый Чек [06:27:54]line ПРОДАЖА [06:27:54]line Товар: 2000036190018 [06:27:54]line Кофе Американо XL(GABB TRADE) [06:27:54]line 1.000 * 125.00 [06:27:54]line = 125.00 [06:27:54]line НДС 12% НСП 1% [06:27:54]line > о реализуемом товаре [06:27:54]line ИТОГО: 125.00 [06:27:54]line НСП 1% : 1.11 [06:27:54]line НДС 12% : 13.27 [06:27:54]line Наличными: 125.00 [06:27:54]line Безнал.: 0.00 [06:27:54]line Место: АЗС № 86 "Партнер Нефть" [06:27:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:27:54]line СНО: Общий режим [06:27:54]line Чек 35 21.10.2024 06:27 [06:27:54]line Смена: 544 ФФД: 1.0 [06:27:54]line ЗНМ: 0300000154 [06:27:54]line РНМ: 0000000000091619 [06:27:54]line Версия ККМ: 001 [06:27:54]line ФМ: 0000000000874676 [06:27:54]line ФД: 63038 [06:27:54]line ФПД: 161984392360883 [06:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062753&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63038&fm=161984392360883&tin=02508201610067®Number=0000000000091619&sum=12500 [06:27:54]line 0 [06:27:54]OFD Sender: Processing packet 63038 [packets to send 232, broken 231] [06:27:54]ProducePacketName [06:27:54]name=ofd_packets/00063038 [06:27:54]OFD Sender: To server: pG, [06:27:54]CommunicateWithHost lk.salyk.kg:30040 [06:27:54]ConnectInit lk.salyk.kg [06:27:54]written 0, free lines is 4095 [06:27:55]Connected sock=10 [06:27: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 30 01 00 00 73 4A 28 01 91 11 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 00 00 00 F4 03 04 00 69 F4 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 93 52 EE 2A 73 B3 22 90 8E F0 C4 20 A5 F4 [06:27:55]Write to MH i2c: 01 00 00 2A 04 2E [06:27:55]Write i2c OK [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: 01 [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: 01 07 00 [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 0F 0D 51 [06:27:55]RasterBufferAndPrint [06:27:55]line [06:27:55]line [06:27:55]line [06:27:55]line [06:27:55]line [06:27:55]written 0, free lines is 3349 [06:27:55]MH_Cut [06:27:55]Write to MH i2c: D1 01 00 31 04 01 07 [06:27:55]Write i2c OK [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: D1 [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: D1 01 00 [06:27:55]MH_I2C_Read... [06:27:55]Read from MH i2c: D1 01 00 31 04 00 06 [06:27:55]Write to MH i2c: 01 00 00 32 04 36 [06:27:55]Write i2c OK [06:27:55]MH_I2C_Read... [06:27: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 4A 0E 47 00 2E 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F6 00 00 F4 03 04 00 67 9E 15 67 B6 04 01 00 00 AC 5C 8A 59 AB B0 54 BE [06:27:55]CommunicateWithHost err = 0 [06:27:55]CheckOFDResponse [06:27:55]1017 (14) - 77093643461234 [06:27:55]1041 (16) - 0000000000874676 [06:27:55]1040 (4) - 63038 [06:27:55]1012 (4) - 21.10.2024 00:20 [06:27:55]1206 (1) - 0 [06:27:55]OFD Sender: Remove packet 63038 [06:27:55]ProducePacketName [06:27:55]name=ofd_packets/00063038 [06:27:55]NVStorageDeleteData [06:27:55]OFD Sender: No OFD packet to send [06:27:55]*** Cut start [06:27:55]*** Partial cut [06:27:55]*** CUTSNS_PIN = 1 [06:27:55]*** CUTSNS_PIN = 0 [06:27:56]*** Brake cut motor [06:27:56]Read from MH i2c: 01 [06:27:56]MH_I2C_Read... [06:27:56]*** Stop cut motor [06:27:56]*** Cut end [06:27:56]Read from MH i2c: 01 07 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [06:27:56]process_action close_receipt done [06:27:56]requested_data is exist [06:27:56]produce_requested_data [06:27:56]requested_item fm.sn is exist - process it [06:27:56]wFMCommunicate request_size=4 [06:27:56]MH_SAM_APDU [06:27:56]CAPDU: 80 11 00 00 [06:27:56]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [06:27:56]Write i2c OK [06:27:56]MH_I2C_Read... [06:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:56]Read from MH i2c: E2 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 17 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0A [06:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:27:56]wFMCommunicate OK [06:27:56]requested_item fd.num is exist - process it [06:27:56]SAM_PROTO_GetFieldsCounters [06:27:56]wFMCommunicate request_size=4 [06:27:56]MH_SAM_APDU [06:27:56]CAPDU: 80 13 00 00 [06:27:56]Write to MH i2c: E2 08 00 34 04 80 13 00 00 00 00 00 00 B4 [06:27:56]Write i2c OK [06:27:56]MH_I2C_Read... [06:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:56]Read from MH i2c: E2 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 62 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 62 00 34 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 3E F6 00 00 0E 04 04 00 20 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 9B [06:27: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 F6 00 00 0E 04 04 00 20 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 [06:27:56]wFMCommunicate OK [06:27:56]SAM_PROTO_GetFieldsCounters done [06:27:56]requested_item shift.num is exist - process it [06:27:56]requested_item shift.opened is exist - process it [06:27:56]req_shift_opened [06:27:56]FM_GetShiftState [06:27:56]SAM_PROTO_GetShiftState [06:27:56]wFMCommunicate request_size=4 [06:27:56]MH_SAM_APDU [06:27:56]CAPDU: 80 13 01 00 [06:27:56]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [06:27:56]Write i2c OK [06:27:56]MH_I2C_Read... [06:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:56]Read from MH i2c: E2 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 0E 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 16 [06:27:56]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:27:56]wFMCommunicate OK [06:27:56]SAM_PROTO_GetShiftState done [06:27:56]FM_GetShiftState done [06:27:56]req_shift_opened done [06:27:56]requested_item shift.open_date is exist - process it [06:27:56]req_shift_open_date [06:27:56]req_shift_open_date done [06:27:56]produce_requested_data done [06:27:56]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63038,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:27:56]process_action_free close_receipt [06:27:56]json_value_free [06:27:56]json_value_free done [06:27:56]process_json_proto returns [06:27:56]Send response to host [06:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63038,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:27:56]free response buf [06:27:56]execute_script done [06:27:56]execute_script returns [06:27:56]free content buf [06:27:56]Sock 7.Close socket [06:27:56]Sock 7.Thread stoped [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:35]accept exits with 9 [06:32:35]New connection [06:32:35]New thread 3067198820 created [06:32:35]Thread 3067055460 joined [06:32:35]Waiting for new connection... [06:32:35] Sock 9.Parse request [06:32:35]Sock 9.Check first char [06:32:35]Sock 9.First char is OK [06:32:35]request: POST /json_proto HTTP/1.0 [06:32:35]Method: POST [06:32:35]URL: /json_proto [06:32:35]Method is POST - this is cgi request [06:32:35]url: /json_proto [06:32:35]query_string will be loaded in cgi processing [06:32:35]execute_cgi json_proto POST (null) [06:32:35]execute_cgi path=json_proto method=POST [06:32:35]POST find Content-Length [06:32:35]Host: 172.17.42.132:8080 [06:32:35]Content-Length: 644 [06:32:35]Content-Type: application/json [06:32:35] [06:32:35]POST finish read [06:32:35]Found Content-Length = 644 [06:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47349", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:35]execute_script... [06:32: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)47349", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:35]POST & json_proto [06:32:35]process_json_proto [06:32:35]json parsed OK: [06:32:35]protocol is kg_v1.0 [06:32:35]action value=close_receipt [06:32:35]process_action close_receipt [06:32:35]cmd_close_receipt [06:32:35]MH_GetDate [06:32:35]Write to MH i2c: F0 00 00 36 04 29 [06:32:35]Write i2c OK [06:32:35]MH_I2C_Read... [06:32:35]Read from MH i2c: F0 [06:32:35]MH_I2C_Read... [06:32:35]Read from MH i2c: F0 09 00 [06:32:35]MH_I2C_Read... [06:32:35]Read from MH i2c: F0 09 00 36 04 00 84 F5 15 67 4C DF 56 66 0E [06:32:35]GetLastDocTimeStamp 1729492073 [06:32:35]current date 1729492356 [06:32:35]FM_GetShiftState [06:32:35]SAM_PROTO_GetShiftState [06:32:35]wFMCommunicate request_size=4 [06:32:35]MH_SAM_APDU [06:32:35]CAPDU: 80 13 01 00 [06:32:35]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [06:32:35]Write i2c OK [06:32:35]MH_I2C_Read... [06:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:35]Read from MH i2c: E2 [06:32:35]MH_I2C_Read... [06:32:35]Read from MH i2c: E2 0E 00 [06:32:35]MH_I2C_Read... [06:32:35]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 18 [06:32:35]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:32:35]wFMCommunicate OK [06:32:35]SAM_PROTO_GetShiftState done [06:32:35]FM_GetShiftState done [06:32:35]opened in 1729469755 [06:32:35]opened+sec_in_day 1729556155 [06:32:35]quantity*price = 1000 [06:32:35]sum+1 = 1001 [06:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 36 21.10.2024 06:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63039 ФПД: 188106795333826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063236&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63039&fm=188106795333826&tin=02508201610067®Number=0000000000091619&sum=1000 0 [06:32:36]StoreToDocumentArchive [06:32:36]shift 544 fd 63039 [06:32:36]save to /storage/0544/doc_00063039 [06:32:36]save last doc name /storage/0544/doc_00063039 to /storage/kkm_last_doc_name [06:32:36]save OK [06:32:36]Clear old archive folders... [06:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=280 [06:32:36]tlvbuf is 01827C00 [06:32:36]SAM_PROTO_ClearQueue [06:32:36]wFMCommunicate request_size=4 [06:32:36]MH_SAM_APDU [06:32:36]CAPDU: 80 09 00 00 [06:32:36]Write to MH i2c: E2 08 00 44 04 80 09 00 00 00 00 00 00 BA [06:32:36]Write i2c OK [06:32:36]MH_I2C_Read... [06:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:36]Read from MH i2c: E2 [06:32:36]MH_I2C_Read... [06:32:36]Read from MH i2c: E2 03 00 [06:32:36]MH_I2C_Read... [06:32:36]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [06:32:36]RAPDU: 90 00 [06:32:36]wFMCommunicate OK [06:32:36]SAM_PROTO_ClearQueue done [06:32:36]KKMCreateOFDPacket [06:32:36]OFDProtocolAddRootSTLVToBuf [06:32:36]FM_MakeSignedData [06:32:36]FM_MakeSignedData [06:32:36]SAM_PROTO_SignData [06:32:36]wFMCommunicate request_size=4 [06:32:36]MH_SAM_APDU [06:32:36]CAPDU: 80 0D 01 02 [06:32:36]Write to MH i2c: E2 08 00 45 04 80 0D 01 02 00 00 00 00 C2 [06:32:36]Write i2c OK [06:32:36]MH_I2C_Read... [06:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:37]Read from MH i2c: E2 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [06:32:37]RAPDU: 90 00 [06:32:37]wFMCommunicate OK [06:32:37]wFMCommunicate request_size=255 [06:32:37]MH_SAM_APDU [06:32:37]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 F5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [06:32:37]Write to MH i2c: E2 02 01 46 04 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 F5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 42 [06:32:37]Write i2c OK [06:32:37]MH_I2C_Read... [06:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:37]Read from MH i2c: E2 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [06:32:37]RAPDU: 90 00 [06:32:37]wFMCommunicate OK [06:32:37]wFMCommunicate request_size=39 [06:32:37]MH_SAM_APDU [06:32:37]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 3F F6 00 00 35 04 06 00 AB 15 06 B7 38 C2 [06:32:37]Write to MH i2c: E2 2A 00 47 04 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 3F F6 00 00 35 04 06 00 AB 15 06 B7 38 C2 00 00 32 [06:32:37]Write i2c OK [06:32:37]MH_I2C_Read... [06:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:37]Read from MH i2c: E2 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [06:32:37]RAPDU: 90 00 [06:32:37]wFMCommunicate OK [06:32:37]wFMCommunicate request_size=4 [06:32:37]MH_SAM_APDU [06:32:37]CAPDU: 80 0D 03 02 [06:32:37]Write to MH i2c: E2 08 00 48 04 80 0D 03 02 00 00 00 00 C7 [06:32:37]Write i2c OK [06:32:37]MH_I2C_Read... [06:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:37]Read from MH i2c: E2 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 0B 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 0B 00 48 04 00 35 2F 14 26 EA 35 C2 F8 90 00 3F [06:32:37]RAPDU: 35 2F 14 26 EA 35 C2 F8 90 00 [06:32:37]wFMCommunicate OK [06:32:37]SAM_PROTO_SignData done [06:32:37]FM_MakeSignedData done [06:32:37]CreateOFDProtocolMessage [06:32:37]wFMCommunicate request_size=4 [06:32:37]MH_SAM_APDU [06:32:37]CAPDU: 80 11 00 00 [06:32:37]Write to MH i2c: E2 08 00 49 04 80 11 00 00 00 00 00 00 C7 [06:32:37]Write i2c OK [06:32:37]MH_I2C_Read... [06:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:37]Read from MH i2c: E2 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 17 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: E2 17 00 49 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 20 [06:32: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:32:37]wFMCommunicate OK [06:32:37]CreateOFDProtocolMessage done [06:32:37]OFDSenderStorePacket 63039 [06:32:37]StoreOFDPacket docnum=63039 [06:32:37]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 2E E0 24 01 57 0E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 F5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 AB 15 06 B7 38 C2 35 2F 14 26 EA 35 C2 F8 [06:32:37]CheckFolder [06:32:37]dirname=/storage/ofd_packets [06:32:37]CheckFolder done [06:32:37]ProducePacketName [06:32:37]name=ofd_packets/00063039 [06:32:37]NVStorageSaveData ofd_packets/00063039 [06:32:37]File name is /storage/ofd_packets/00063039 [06:32:37]Write 330 bytes [06:32:37]NVStorageSaveData done [06:32:37]OFDSenderStorePacket done [06:32:37]KKMCreateOFDPacket done [06:32:37]NVStorageSaveData kkm_last_timestamp [06:32:37]File name is /storage/kkm_last_timestamp [06:32:37]Write 4 bytes [06:32:37]NVStorageSaveData done [06:32:37]ExternCall_PrintAddStr [06:32:37]wPrintStart [06:32:37]Write to MH i2c: 01 00 00 4A 04 4E [06:32:37]Write i2c OK [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: 01 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: 01 07 00 [06:32:37]MH_I2C_Read... [06:32:37]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 FF 0F 63 [06:32:37]RasterBufferAndPrint [06:32:37]line Счет N : (3)47349 [06:32:37]line ИНН: 02508201610067 [06:32:37]line Контрольно-Кассовый Чек [06:32:37]line ПРОДАЖА [06:32:37]line Товар: 46226617 [06:32:37]line Mentos ПВ Нежная Мята 6*100*2г [06:32:37]line 1.000 * 10.00 [06:32:37]line = 10.00 [06:32:37]line НДС 12% НСП 1% [06:32:37]line > о реализуемом товаре [06:32:37]line ИТОГО: 10.00 [06:32:37]line НСП 1% : 0.09 [06:32:37]line НДС 12% : 1.06 [06:32:37]line Наличными: 10.00 [06:32:37]line Безнал.: 0.00 [06:32:37]line Место: АЗС № 86 "Партнер Нефть" [06:32:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:32:37]line СНО: Общий режим [06:32:37]line Чек 36 21.10.2024 06:32 [06:32:37]line Смена: 544 ФФД: 1.0 [06:32:37]line ЗНМ: 0300000154 [06:32:37]line РНМ: 0000000000091619 [06:32:37]line Версия ККМ: 001 [06:32:37]line ФМ: 0000000000874676 [06:32:37]line ФД: 63039 [06:32:37]line ФПД: 188106795333826 [06:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063236&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63039&fm=188106795333826&tin=02508201610067®Number=0000000000091619&sum=1000 [06:32:37]line 0 [06:32:37]OFD Sender: Processing packet 63039 [packets to send 232, broken 231] [06:32:37]ProducePacketName [06:32:37]name=ofd_packets/00063039 [06:32:37]OFD Sender: To server: pG, [06:32:37]CommunicateWithHost lk.salyk.kg:30040 [06:32:37]ConnectInit lk.salyk.kg [06:32:37]written 0, free lines is 4095 [06:32:38]Connected sock=10 [06:32: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 2C 01 00 00 2E E0 24 01 57 0E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 F5 15 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 AB 15 06 B7 38 C2 35 2F 14 26 EA 35 C2 F8 [06:32:38]Write to MH i2c: 01 00 00 73 04 77 [06:32:38]Write i2c OK [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: 01 [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: 01 07 00 [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 F4 0C 7E [06:32:38]RasterBufferAndPrint [06:32:38]line [06:32:38]line [06:32:38]line [06:32:38]line [06:32:38]line [06:32:38]written 0, free lines is 3323 [06:32:38]MH_Cut [06:32:38]Write to MH i2c: D1 01 00 7A 04 01 50 [06:32:38]Write i2c OK [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: D1 [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: D1 01 00 [06:32:38]MH_I2C_Read... [06:32:38]Read from MH i2c: D1 01 00 7A 04 00 4F [06:32:38]Write to MH i2c: 01 00 00 7B 04 7F [06:32:38]Write i2c OK [06:32:38]MH_I2C_Read... [06:32:38]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 C6 39 47 00 62 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 82 9F 15 67 B6 04 01 00 00 15 10 DB 94 89 77 59 36 [06:32:38]CommunicateWithHost err = 0 [06:32:38]CheckOFDResponse [06:32:38]1017 (14) - 77093643461234 [06:32:38]1041 (16) - 0000000000874676 [06:32:38]1040 (4) - 63039 [06:32:38]1012 (4) - 21.10.2024 00:25 [06:32:38]1206 (1) - 0 [06:32:38]OFD Sender: Remove packet 63039 [06:32:38]ProducePacketName [06:32:38]name=ofd_packets/00063039 [06:32:38]NVStorageDeleteData [06:32:38]OFD Sender: No OFD packet to send [06:32:38]*** Cut start [06:32:38]*** Partial cut [06:32:38]*** CUTSNS_PIN = 1 [06:32:38]*** CUTSNS_PIN = 0 [06:32:39]*** Brake cut motor [06:32:39]Read from MH i2c: 01 [06:32:39]MH_I2C_Read... [06:32:39]*** Stop cut motor [06:32:39]*** Cut end [06:32:39]Read from MH i2c: 01 07 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [06:32:39]process_action close_receipt done [06:32:39]requested_data is exist [06:32:39]produce_requested_data [06:32:39]requested_item fm.sn is exist - process it [06:32:39]wFMCommunicate request_size=4 [06:32:39]MH_SAM_APDU [06:32:39]CAPDU: 80 11 00 00 [06:32:39]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [06:32:39]Write i2c OK [06:32:39]MH_I2C_Read... [06:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:39]Read from MH i2c: E2 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 17 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 53 [06:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:32:39]wFMCommunicate OK [06:32:39]requested_item fd.num is exist - process it [06:32:39]SAM_PROTO_GetFieldsCounters [06:32:39]wFMCommunicate request_size=4 [06:32:39]MH_SAM_APDU [06:32:39]CAPDU: 80 13 00 00 [06:32:39]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [06:32:39]Write i2c OK [06:32:39]MH_I2C_Read... [06:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:39]Read from MH i2c: E2 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 62 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 62 00 7D 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 3F F6 00 00 0E 04 04 00 20 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 E8 [06:32: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 3F F6 00 00 0E 04 04 00 20 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 [06:32:39]wFMCommunicate OK [06:32:39]SAM_PROTO_GetFieldsCounters done [06:32:39]requested_item shift.num is exist - process it [06:32:39]requested_item shift.opened is exist - process it [06:32:39]req_shift_opened [06:32:39]FM_GetShiftState [06:32:39]SAM_PROTO_GetShiftState [06:32:39]wFMCommunicate request_size=4 [06:32:39]MH_SAM_APDU [06:32:39]CAPDU: 80 13 01 00 [06:32:39]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [06:32:39]Write i2c OK [06:32:39]MH_I2C_Read... [06:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:39]Read from MH i2c: E2 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 0E 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5F [06:32:39]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [06:32:39]wFMCommunicate OK [06:32:39]SAM_PROTO_GetShiftState done [06:32:39]FM_GetShiftState done [06:32:39]req_shift_opened done [06:32:39]requested_item shift.open_date is exist - process it [06:32:39]req_shift_open_date [06:32:39]req_shift_open_date done [06:32:39]produce_requested_data done [06:32:39]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63039,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [06:32:39]process_action_free close_receipt [06:32:39]json_value_free [06:32:39]json_value_free done [06:32:39]process_json_proto returns [06:32:39]Send response to host [06:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63039,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [06:32:39]free response buf [06:32:39]execute_script done [06:32:39]execute_script returns [06:32:39]free content buf [06:32:39]Sock 9.Close socket [06:32:39]Sock 9.Thread stoped [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]ConnectInit Can't connect to host [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28: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:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]accept exits with 7 [07:35:09]New connection [07:35:09]New thread 3067055460 created [07:35:09]Thread 3067198820 joined [07:35:09]Waiting for new connection... [07:35:09] Sock 7.Parse request [07:35:09]Sock 7.Check first char [07:35:09]Sock 7.First char is OK [07:35:09]request: POST /json_proto HTTP/1.0 [07:35:09]Method: POST [07:35:09]URL: /json_proto [07:35:09]Method is POST - this is cgi request [07:35:09]url: /json_proto [07:35:09]query_string will be loaded in cgi processing [07:35:09]execute_cgi json_proto POST (null) [07:35:09]execute_cgi path=json_proto method=POST [07:35:09]POST find Content-Length [07:35:09]Host: 172.17.42.132:8080 [07:35:09]Content-Length: 674 [07:35:09]Content-Type: application/json [07:35:09] [07:35:09]POST finish read [07:35:09]Found Content-Length = 674 [07:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47350", "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" ] } } [07:35:09]execute_script... [07:35:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47350", "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" ] } } [07:35:09]POST & json_proto [07:35:09]process_json_proto [07:35:09]json parsed OK: [07:35:09]protocol is kg_v1.0 [07:35:09]action value=close_receipt [07:35:09]process_action close_receipt [07:35:09]cmd_close_receipt [07:35:09]MH_GetDate [07:35:09]Write to MH i2c: F0 00 00 7F 04 72 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: F0 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: F0 09 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: F0 09 00 7F 04 00 2E 04 16 67 4C DF 56 66 11 [07:35:09]GetLastDocTimeStamp 1729492356 [07:35:09]current date 1729496110 [07:35:09]FM_GetShiftState [07:35:09]SAM_PROTO_GetShiftState [07:35:09]wFMCommunicate request_size=4 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 13 01 00 [07:35:09]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 0E 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 61 [07:35:09]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [07:35:09]wFMCommunicate OK [07:35:09]SAM_PROTO_GetShiftState done [07:35:09]FM_GetShiftState done [07:35:09]opened in 1729469755 [07:35:09]opened+sec_in_day 1729556155 [07:35:09]quantity*price = 8900 [07:35:09]sum+1 = 8901 [07:35:09]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 СНО: Общий режим Чек 37 21.10.2024 07:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63040 ФПД: 133900403041653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073510&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63040&fm=133900403041653&tin=02508201610067®Number=0000000000091619&sum=8900 0 [07:35:10]StoreToDocumentArchive [07:35:10]shift 544 fd 63040 [07:35:10]save to /storage/0544/doc_00063040 [07:35:10]save last doc name /storage/0544/doc_00063040 to /storage/kkm_last_doc_name [07:35:10]save OK [07:35:10]Clear old archive folders... [07:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=286 [07:35:10]tlvbuf is 018BD9D0 [07:35:10]SAM_PROTO_ClearQueue [07:35:10]wFMCommunicate request_size=4 [07:35:10]MH_SAM_APDU [07:35:10]CAPDU: 80 09 00 00 [07:35:10]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [07:35:10]RAPDU: 90 00 [07:35:10]wFMCommunicate OK [07:35:10]SAM_PROTO_ClearQueue done [07:35:10]KKMCreateOFDPacket [07:35:10]OFDProtocolAddRootSTLVToBuf [07:35:10]FM_MakeSignedData [07:35:10]FM_MakeSignedData [07:35:10]SAM_PROTO_SignData [07:35:10]wFMCommunicate request_size=4 [07:35:10]MH_SAM_APDU [07:35:10]CAPDU: 80 0D 01 02 [07:35:10]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [07:35:10]RAPDU: 90 00 [07:35:10]wFMCommunicate OK [07:35:10]wFMCommunicate request_size=255 [07:35:10]MH_SAM_APDU [07:35:10]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 25 00 00 00 F4 03 04 00 2E 04 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [07:35:10]Write to MH i2c: E2 02 01 8F 04 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 25 00 00 00 F4 03 04 00 2E 04 16 67 0E 04 04 00 20 02 00 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 82 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [07:35:10]RAPDU: 90 00 [07:35:10]wFMCommunicate OK [07:35:10]wFMCommunicate request_size=45 [07:35:10]MH_SAM_APDU [07:35:10]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 40 F6 00 00 35 04 06 00 79 C8 1D F5 65 75 [07:35:10]Write to MH i2c: E2 30 00 90 04 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 40 F6 00 00 35 04 06 00 79 C8 1D F5 65 75 00 00 CD [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [07:35:10]RAPDU: 90 00 [07:35:10]wFMCommunicate OK [07:35:10]wFMCommunicate request_size=4 [07:35:10]MH_SAM_APDU [07:35:10]CAPDU: 80 0D 03 02 [07:35:10]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 0B 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 0B 00 91 04 00 D5 2C 33 84 78 FF 31 1D 90 00 8E [07:35:10]RAPDU: D5 2C 33 84 78 FF 31 1D 90 00 [07:35:10]wFMCommunicate OK [07:35:10]SAM_PROTO_SignData done [07:35:10]FM_MakeSignedData done [07:35:10]CreateOFDProtocolMessage [07:35:10]wFMCommunicate request_size=4 [07:35:10]MH_SAM_APDU [07:35:10]CAPDU: 80 11 00 00 [07:35:10]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 17 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 69 [07:35: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:35:10]wFMCommunicate OK [07:35:10]CreateOFDProtocolMessage done [07:35:10]OFDSenderStorePacket 63040 [07:35:10]StoreOFDPacket docnum=63040 [07:35: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 32 01 00 00 A6 D9 2A 01 30 D2 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 25 00 00 00 F4 03 04 00 2E 04 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 79 C8 1D F5 65 75 D5 2C 33 84 78 FF 31 1D [07:35:10]CheckFolder [07:35:10]dirname=/storage/ofd_packets [07:35:10]CheckFolder done [07:35:10]ProducePacketName [07:35:10]name=ofd_packets/00063040 [07:35:10]NVStorageSaveData ofd_packets/00063040 [07:35:10]File name is /storage/ofd_packets/00063040 [07:35:10]Write 336 bytes [07:35:10]NVStorageSaveData done [07:35:10]OFDSenderStorePacket done [07:35:10]KKMCreateOFDPacket done [07:35:10]NVStorageSaveData kkm_last_timestamp [07:35:10]File name is /storage/kkm_last_timestamp [07:35:10]Write 4 bytes [07:35:10]NVStorageSaveData done [07:35:10]ExternCall_PrintAddStr [07:35:10]wPrintStart [07:35:10]Write to MH i2c: 01 00 00 93 04 97 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 07 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [07:35:10]RasterBufferAndPrint [07:35:10]line Счет N : (3)47350 [07:35:10]line ИНН: 02508201610067 [07:35:10]line Контрольно-Кассовый Чек [07:35:10]line ПРОДАЖА [07:35:10]line Товар: 4700040114120 [07:35:10]line Султан чай 1л. чер персик [07:35:10]line 1.000 * 89.00 [07:35:10]line = 89.00 [07:35:10]line НДС 12% НСП 1% [07:35:10]line > о реализуемом товаре [07:35:10]line ИТОГО: 89.00 [07:35:10]line НСП 1% : 0.79 [07:35:10]line НДС 12% : 9.45 [07:35:10]line Наличными: 89.00 [07:35:10]line Безнал.: 0.00 [07:35:10]line Место: АЗС № 86 "Партнер Нефть" [07:35:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:35:10]line СНО: Общий режим [07:35:10]line Чек 37 21.10.2024 07:35 [07:35:10]line Смена: 544 ФФД: 1.0 [07:35:10]line ЗНМ: 0300000154 [07:35:10]line РНМ: 0000000000091619 [07:35:10]line Версия ККМ: 001 [07:35:10]line ФМ: 0000000000874676 [07:35:10]line ФД: 63040 [07:35:10]line ФПД: 133900403041653 [07:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073510&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63040&fm=133900403041653&tin=02508201610067®Number=0000000000091619&sum=8900 [07:35:11]line 0 [07:35:11]OFD Sender: Processing packet 63040 [packets to send 232, broken 231] [07:35:11]ProducePacketName [07:35:11]name=ofd_packets/00063040 [07:35:11]OFD Sender: To server: pG, [07:35:11]CommunicateWithHost lk.salyk.kg:30040 [07:35:11]ConnectInit lk.salyk.kg [07:35:11]written 0, free lines is 4095 [07:35:11]Connected sock=10 [07:35:11]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 A6 D9 2A 01 30 D2 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 25 00 00 00 F4 03 04 00 2E 04 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 79 C8 1D F5 65 75 D5 2C 33 84 78 FF 31 1D [07:35:11]Write to MH i2c: 01 00 00 BB 04 BF [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 07 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 09 0D DC [07:35:11]RasterBufferAndPrint [07:35:11]line [07:35:11]line [07:35:11]line [07:35:11]line [07:35:11]line [07:35:11]written 0, free lines is 3344 [07:35:11]MH_Cut [07:35:11]Write to MH i2c: D1 01 00 C2 04 01 98 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: D1 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: D1 01 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: D1 01 00 C2 04 00 97 [07:35:11]Write to MH i2c: 01 00 00 C3 04 C7 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]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 97 47 00 9B 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 40 F6 00 00 F4 03 04 00 2C AE 15 67 B6 04 01 00 00 8F C9 C9 1E 47 F1 7B 02 [07:35:11]CommunicateWithHost err = 0 [07:35:11]CheckOFDResponse [07:35:11]1017 (14) - 77093643461234 [07:35:11]1041 (16) - 0000000000874676 [07:35:11]1040 (4) - 63040 [07:35:11]1012 (4) - 21.10.2024 01:28 [07:35:11]1206 (1) - 0 [07:35:11]OFD Sender: Remove packet 63040 [07:35:11]ProducePacketName [07:35:11]name=ofd_packets/00063040 [07:35:11]NVStorageDeleteData [07:35:12]OFD Sender: No OFD packet to send [07:35:12]*** Cut start [07:35:12]*** Partial cut [07:35:12]*** CUTSNS_PIN = 1 [07:35:12]*** CUTSNS_PIN = 0 [07:35:12]*** Brake cut motor [07:35:12]Read from MH i2c: 01 [07:35:12]MH_I2C_Read... [07:35:12]*** Stop cut motor [07:35:12]*** Cut end [07:35:12]Read from MH i2c: 01 07 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [07:35:12]process_action close_receipt done [07:35:12]requested_data is exist [07:35:12]produce_requested_data [07:35:12]requested_item fm.sn is exist - process it [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 11 00 00 [07:35:12]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 17 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9B [07:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:35:13]wFMCommunicate OK [07:35:13]requested_item fd.num is exist - process it [07:35:13]SAM_PROTO_GetFieldsCounters [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 13 00 00 [07:35:13]Write to MH i2c: E2 08 00 C5 04 80 13 00 00 00 00 00 00 45 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 62 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 62 00 C5 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 40 F6 00 00 0E 04 04 00 20 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 34 [07:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [07:35:13]wFMCommunicate OK [07:35:13]SAM_PROTO_GetFieldsCounters done [07:35:13]requested_item shift.num is exist - process it [07:35:13]requested_item shift.opened is exist - process it [07:35:13]req_shift_opened [07:35:13]FM_GetShiftState [07:35:13]SAM_PROTO_GetShiftState [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 13 01 00 [07:35:13]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 0E 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A7 [07:35:13]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [07:35:13]wFMCommunicate OK [07:35:13]SAM_PROTO_GetShiftState done [07:35:13]FM_GetShiftState done [07:35:13]req_shift_opened done [07:35:13]requested_item shift.open_date is exist - process it [07:35:13]req_shift_open_date [07:35:13]req_shift_open_date done [07:35:13]produce_requested_data done [07:35:13]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63040,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [07:35:13]process_action_free close_receipt [07:35:13]json_value_free [07:35:13]json_value_free done [07:35:13]process_json_proto returns [07:35:13]Send response to host [07:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63040,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [07:35:13]free response buf [07:35:13]execute_script done [07:35:13]execute_script returns [07:35:13]free content buf [07:35:13]Sock 7.Close socket [07:35:13]Sock 7.Thread stoped [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:53]accept exits with 9 [07:42:53]New connection [07:42:53]New thread 3067198820 created [07:42:53]Thread 3067055460 joined [07:42:53]Waiting for new connection... [07:42:53] Sock 9.Parse request [07:42:53]Sock 9.Check first char [07:42:53]Sock 9.First char is OK [07:42:53]request: POST /json_proto HTTP/1.0 [07:42:53]Method: POST [07:42:53]URL: /json_proto [07:42:53]Method is POST - this is cgi request [07:42:53]url: /json_proto [07:42:53]query_string will be loaded in cgi processing [07:42:53]execute_cgi json_proto POST (null) [07:42:53]execute_cgi path=json_proto method=POST [07:42:53]POST find Content-Length [07:42:53]Host: 172.17.42.132:8080 [07:42:53]Content-Length: 649 [07:42:53]Content-Type: application/json [07:42:53] [07:42:53]POST finish read [07:42:53]Found Content-Length = 649 [07:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47351", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:53]execute_script... [07:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47351", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:53]POST & json_proto [07:42:53]process_json_proto [07:42:53]json parsed OK: [07:42:53]protocol is kg_v1.0 [07:42:53]action value=close_receipt [07:42:53]process_action close_receipt [07:42:53]cmd_close_receipt [07:42:53]MH_GetDate [07:42:53]Write to MH i2c: F0 00 00 C7 04 BA [07:42:53]Write i2c OK [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: F0 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: F0 09 00 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: F0 09 00 C7 04 00 FE 05 16 67 4C DF 56 66 2A [07:42:53]GetLastDocTimeStamp 1729496110 [07:42:53]current date 1729496574 [07:42:53]FM_GetShiftState [07:42:53]SAM_PROTO_GetShiftState [07:42:53]wFMCommunicate request_size=4 [07:42:53]MH_SAM_APDU [07:42:53]CAPDU: 80 13 01 00 [07:42:53]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [07:42:53]Write i2c OK [07:42:53]MH_I2C_Read... [07:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:53]Read from MH i2c: E2 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: E2 0E 00 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A9 [07:42:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [07:42:53]wFMCommunicate OK [07:42:53]SAM_PROTO_GetShiftState done [07:42:53]FM_GetShiftState done [07:42:53]opened in 1729469755 [07:42:53]opened+sec_in_day 1729556155 [07:42:53]quantity*price = 10500 [07:42:53]sum+1 = 10501 [07:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 38 21.10.2024 07:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63041 ФПД: 24590937248391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63041&fm=24590937248391&tin=02508201610067®Number=0000000000091619&sum=10500 0 [07:42:54]StoreToDocumentArchive [07:42:54]shift 544 fd 63041 [07:42:54]save to /storage/0544/doc_00063041 [07:42:54]save last doc name /storage/0544/doc_00063041 to /storage/kkm_last_doc_name [07:42:54]save OK [07:42:54]Clear old archive folders... [07:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:42:54]tlvbuf is 01834A40 [07:42:54]SAM_PROTO_ClearQueue [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 09 00 00 [07:42:54]Write to MH i2c: E2 08 00 D5 04 80 09 00 00 00 00 00 00 4B [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_ClearQueue done [07:42:54]KKMCreateOFDPacket [07:42:54]OFDProtocolAddRootSTLVToBuf [07:42:54]FM_MakeSignedData [07:42:54]FM_MakeSignedData [07:42:54]SAM_PROTO_SignData [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 0D 01 02 [07:42:54]Write to MH i2c: E2 08 00 D6 04 80 0D 01 02 00 00 00 00 53 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=255 [07:42:54]MH_SAM_APDU [07:42: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 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 FE 05 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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:42:54]Write to MH i2c: E2 02 01 D7 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 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 FE 05 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 E4 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=41 [07:42:54]MH_SAM_APDU [07:42:54]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 41 F6 00 00 35 04 06 00 16 5D 86 14 52 87 [07:42:54]Write to MH i2c: E2 2C 00 D8 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 41 F6 00 00 35 04 06 00 16 5D 86 14 52 87 00 00 48 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 0D 03 02 [07:42:54]Write to MH i2c: E2 08 00 D9 04 80 0D 03 02 00 00 00 00 58 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0B 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0B 00 D9 04 00 C1 52 7E D6 1F 7A D1 98 90 00 C2 [07:42:54]RAPDU: C1 52 7E D6 1F 7A D1 98 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_SignData done [07:42:54]FM_MakeSignedData done [07:42:54]CreateOFDProtocolMessage [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 11 00 00 [07:42:54]Write to MH i2c: E2 08 00 DA 04 80 11 00 00 00 00 00 00 58 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 DA 04 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:42: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:42:54]wFMCommunicate OK [07:42:54]CreateOFDProtocolMessage done [07:42:54]OFDSenderStorePacket 63041 [07:42:54]StoreOFDPacket docnum=63041 [07:42: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 2E 01 00 00 D2 CC 26 01 63 C7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 FE 05 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 16 5D 86 14 52 87 C1 52 7E D6 1F 7A D1 98 [07:42:54]CheckFolder [07:42:54]dirname=/storage/ofd_packets [07:42:54]CheckFolder done [07:42:54]ProducePacketName [07:42:54]name=ofd_packets/00063041 [07:42:54]NVStorageSaveData ofd_packets/00063041 [07:42:54]File name is /storage/ofd_packets/00063041 [07:42:54]Write 332 bytes [07:42:54]NVStorageSaveData done [07:42:54]OFDSenderStorePacket done [07:42:54]KKMCreateOFDPacket done [07:42:54]NVStorageSaveData kkm_last_timestamp [07:42:54]File name is /storage/kkm_last_timestamp [07:42:54]Write 4 bytes [07:42:54]NVStorageSaveData done [07:42:54]ExternCall_PrintAddStr [07:42:54]wPrintStart [07:42:54]Write to MH i2c: 01 00 00 DB 04 DF [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 07 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 FF 0F F4 [07:42:54]RasterBufferAndPrint [07:42:54]line Счет N : (3)47351 [07:42:54]line ИНН: 02508201610067 [07:42:54]line Контрольно-Кассовый Чек [07:42:54]line ПРОДАЖА [07:42:54]line Товар: 2000034730018 [07:42:54]line Кофе Американо (GABB TRADE) [07:42:54]line 1.000 * 105.00 [07:42:54]line = 105.00 [07:42:54]line НДС 12% НСП 1% [07:42:54]line > о реализуемом товаре [07:42:54]line ИТОГО: 105.00 [07:42:54]line НСП 1% : 0.93 [07:42:54]line НДС 12% : 11.15 [07:42:54]line Наличными: 105.00 [07:42:54]line Безнал.: 0.00 [07:42:54]line Место: АЗС № 86 "Партнер Нефть" [07:42:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:42:54]line СНО: Общий режим [07:42:54]line Чек 38 21.10.2024 07:42 [07:42:54]line Смена: 544 ФФД: 1.0 [07:42:54]line ЗНМ: 0300000154 [07:42:54]line РНМ: 0000000000091619 [07:42:54]line Версия ККМ: 001 [07:42:54]line ФМ: 0000000000874676 [07:42:54]line ФД: 63041 [07:42:54]line ФПД: 24590937248391 [07:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63041&fm=24590937248391&tin=02508201610067®Number=0000000000091619&sum=10500 [07:42:55]line 0 [07:42:55]OFD Sender: Processing packet 63041 [packets to send 232, broken 231] [07:42:55]ProducePacketName [07:42:55]name=ofd_packets/00063041 [07:42:55]OFD Sender: To server: pG, [07:42:55]CommunicateWithHost lk.salyk.kg:30040 [07:42:55]ConnectInit lk.salyk.kg [07:42:55]written 0, free lines is 4095 [07:42:55]Write to MH i2c: 01 00 00 04 05 09 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FD 0C 19 [07:42:55]RasterBufferAndPrint [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]written 0, free lines is 3328 [07:42:55]MH_Cut [07:42:55]Write to MH i2c: D1 01 00 0B 05 01 E2 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 01 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 01 00 0B 05 00 E1 [07:42:55]Write to MH i2c: 01 00 00 0C 05 11 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:56]*** Cut start [07:42:56]*** Partial cut [07:42:56]*** CUTSNS_PIN = 1 [07:42:56]*** CUTSNS_PIN = 0 [07:42:56]*** Brake cut motor [07:42:57]Read from MH i2c: 01 [07:42:57]MH_I2C_Read... [07:42:57]*** Stop cut motor [07:42:57]*** Cut end [07:42:57]Read from MH i2c: 01 07 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [07:42:57]process_action close_receipt done [07:42:57]requested_data is exist [07:42:57]produce_requested_data [07:42:57]requested_item fm.sn is exist - process it [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 11 00 00 [07:42:57]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 17 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E5 [07:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:42:57]wFMCommunicate OK [07:42:57]requested_item fd.num is exist - process it [07:42:57]SAM_PROTO_GetFieldsCounters [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 13 00 00 [07:42:57]Write to MH i2c: E2 08 00 0E 05 80 13 00 00 00 00 00 00 8F [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 62 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 62 00 0E 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 41 F6 00 00 0E 04 04 00 20 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 82 [07:42: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 41 F6 00 00 0E 04 04 00 20 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 [07:42:57]wFMCommunicate OK [07:42:57]SAM_PROTO_GetFieldsCounters done [07:42:57]requested_item shift.num is exist - process it [07:42:57]requested_item shift.opened is exist - process it [07:42:57]req_shift_opened [07:42:57]FM_GetShiftState [07:42:57]SAM_PROTO_GetShiftState [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 13 01 00 [07:42:57]Write to MH i2c: E2 08 00 0F 05 80 13 01 00 00 00 00 00 91 [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 0F 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F1 [07:42:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [07:42:57]wFMCommunicate OK [07:42:57]SAM_PROTO_GetShiftState done [07:42:57]FM_GetShiftState done [07:42:57]req_shift_opened done [07:42:57]requested_item shift.open_date is exist - process it [07:42:57]req_shift_open_date [07:42:57]req_shift_open_date done [07:42:57]produce_requested_data done [07:42:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63041,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [07:42:57]process_action_free close_receipt [07:42:57]json_value_free [07:42:57]json_value_free done [07:42:57]process_json_proto returns [07:42:57]Send response to host [07:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63041,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [07:42:57]free response buf [07:42:57]execute_script done [07:42:57]execute_script returns [07:42:57]free content buf [07:42:57]Sock 9.Close socket [07:42:57]Sock 9.Thread stoped [07:45:04]ConnectInit Can't connect to host [07:45:04]CommunicateWithHost connect error [07:45:04]CommunicateWithHost err = -1 [07:45:04]OFD Sender: Server communicate error [07:45:09]OFD Sender: Processing packet 63041 [packets to send 232, broken 231] [07:45:09]ProducePacketName [07:45:09]name=ofd_packets/00063041 [07:45:09]OFD Sender: To server: pG, [07:45:09]CommunicateWithHost lk.salyk.kg:30040 [07:45:09]ConnectInit lk.salyk.kg [07:45:09]Connected sock=9 [07:45: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 2E 01 00 00 D2 CC 26 01 63 C7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 FE 05 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 16 5D 86 14 52 87 C1 52 7E D6 1F 7A D1 98 [07:45: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 CD 9D 47 00 9A 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 41 F6 00 00 F4 03 04 00 82 B0 15 67 B6 04 01 00 00 30 3C 9D 6D 62 6A 8E CF [07:45:10]CommunicateWithHost err = 0 [07:45:10]CheckOFDResponse [07:45:10]1017 (14) - 77093643461234 [07:45:10]1041 (16) - 0000000000874676 [07:45:10]1040 (4) - 63041 [07:45:10]1012 (4) - 21.10.2024 01:38 [07:45:10]1206 (1) - 0 [07:45:10]OFD Sender: Remove packet 63041 [07:45:10]ProducePacketName [07:45:10]name=ofd_packets/00063041 [07:45:10]NVStorageDeleteData [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:13]accept exits with 7 [08:07:13]New connection [08:07:13]New thread 3067055460 created [08:07:13]Thread 3067198820 joined [08:07:13]Waiting for new connection... [08:07:13] Sock 7.Parse request [08:07:13]Sock 7.Check first char [08:07:13]Sock 7.First char is OK [08:07:13]request: POST /json_proto HTTP/1.0 [08:07:13]Method: POST [08:07:13]URL: /json_proto [08:07:13]Method is POST - this is cgi request [08:07:13]url: /json_proto [08:07:13]query_string will be loaded in cgi processing [08:07:13]execute_cgi json_proto POST (null) [08:07:13]execute_cgi path=json_proto method=POST [08:07:13]POST find Content-Length [08:07:13]Host: 172.17.42.132:8080 [08:07:13]Content-Length: 936 [08:07:13]Content-Type: application/json [08:07:13] [08:07:13]POST finish read [08:07:13]Found Content-Length = 936 [08:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47352", "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:13]execute_script... [08:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47352", "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:13]POST & json_proto [08:07:13]process_json_proto [08:07:13]json parsed OK: [08:07:13]protocol is kg_v1.0 [08:07:13]action value=close_receipt [08:07:13]process_action close_receipt [08:07:13]cmd_close_receipt [08:07:13]MH_GetDate [08:07:13]Write to MH i2c: F0 00 00 10 05 04 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: F0 09 00 10 05 00 B2 0B 16 67 4C DF 56 66 2E [08:07:13]GetLastDocTimeStamp 1729496574 [08:07:13]current date 1729498034 [08:07:13]FM_GetShiftState [08:07:13]SAM_PROTO_GetShiftState [08:07:13]wFMCommunicate request_size=4 [08:07:13]MH_SAM_APDU [08:07:13]CAPDU: 80 13 01 00 [08:07:13]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F3 [08:07:13]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetShiftState done [08:07:13]FM_GetShiftState done [08:07:13]opened in 1729469755 [08:07:13]opened+sec_in_day 1729556155 [08:07:13]quantity*price = 8900 [08:07:13]sum+1 = 8901 [08:07:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 39 21.10.2024 08:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63042 ФПД: 42580738186572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080714&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63042&fm=42580738186572&tin=02508201610067®Number=0000000000091619&sum=9900 0 [08:07:14]StoreToDocumentArchive [08:07:14]shift 544 fd 63042 [08:07:14]save to /storage/0544/doc_00063042 [08:07:14]save last doc name /storage/0544/doc_00063042 to /storage/kkm_last_doc_name [08:07:14]save OK [08:07:14]Clear old archive folders... [08:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=396 [08:07:14]tlvbuf is 01833080 [08:07:14]SAM_PROTO_ClearQueue [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 09 00 00 [08:07:14]Write to MH i2c: E2 08 00 1E 05 80 09 00 00 00 00 00 00 95 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_ClearQueue done [08:07:14]KKMCreateOFDPacket [08:07:14]OFDProtocolAddRootSTLVToBuf [08:07:14]FM_MakeSignedData [08:07:14]FM_MakeSignedData [08:07:14]SAM_PROTO_SignData [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 01 02 [08:07:14]Write to MH i2c: E2 08 00 1F 05 80 0D 01 02 00 00 00 00 9D [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=255 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 FA 03 00 8C 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF [08:07:14]Write to MH i2c: E2 02 01 20 05 80 0D 02 02 FA 00 03 00 8C 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 00 00 53 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:14]Read from MH i2c: E2 03 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [08:07:14]RAPDU: 90 00 [08:07:14]wFMCommunicate OK [08:07:14]wFMCommunicate request_size=155 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 0D 02 02 96 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 27 00 00 00 F4 03 04 00 B2 0B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 26 BA 19 C6 1D 4C [08:07:14]Write to MH i2c: E2 9E 00 21 05 80 0D 02 02 96 00 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 27 00 00 00 F4 03 04 00 B2 0B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 26 BA 19 C6 1D 4C 00 00 39 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 03 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [08:07:15]RAPDU: 90 00 [08:07:15]wFMCommunicate OK [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 0D 03 02 [08:07:15]Write to MH i2c: E2 08 00 22 05 80 0D 03 02 00 00 00 00 A2 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0B 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0B 00 22 05 00 E1 BB 54 8B 57 11 B2 1F 90 00 57 [08:07:15]RAPDU: E1 BB 54 8B 57 11 B2 1F 90 00 [08:07:15]wFMCommunicate OK [08:07:15]SAM_PROTO_SignData done [08:07:15]FM_MakeSignedData done [08:07:15]CreateOFDProtocolMessage [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 11 00 00 [08:07:15]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 17 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [08:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:07:15]wFMCommunicate OK [08:07:15]CreateOFDProtocolMessage done [08:07:15]OFDSenderStorePacket 63042 [08:07:15]StoreOFDPacket docnum=63042 [08:07:15]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 DD 11 98 01 CA A2 5A 03 01 00 03 00 8C 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 27 00 00 00 F4 03 04 00 B2 0B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 26 BA 19 C6 1D 4C E1 BB 54 8B 57 11 B2 1F [08:07:15]CheckFolder [08:07:15]dirname=/storage/ofd_packets [08:07:15]CheckFolder done [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00063042 [08:07:15]NVStorageSaveData ofd_packets/00063042 [08:07:15]File name is /storage/ofd_packets/00063042 [08:07:15]Write 446 bytes [08:07:15]NVStorageSaveData done [08:07:15]OFDSenderStorePacket done [08:07:15]KKMCreateOFDPacket done [08:07:15]NVStorageSaveData kkm_last_timestamp [08:07:15]File name is /storage/kkm_last_timestamp [08:07:15]Write 4 bytes [08:07:15]NVStorageSaveData done [08:07:15]ExternCall_PrintAddStr [08:07:15]wPrintStart [08:07:15]Write to MH i2c: 01 00 00 24 05 29 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [08:07:15]RasterBufferAndPrint [08:07:15]line Счет N : (3)47352 [08:07:15]line ИНН: 02508201610067 [08:07:15]line Контрольно-Кассовый Чек [08:07:15]line ПРОДАЖА [08:07:15]line Товар: 4700040114120 [08:07:15]line Султан чай 1л. чер персик [08:07:15]line 1.000 * 89.00 [08:07:15]line = 89.00 [08:07:15]line НДС 12% НСП 1% [08:07:15]line > о реализуемом товаре [08:07:15]line Товар: 46226617 [08:07:15]line Mentos ПВ Нежная Мята 6*100*2г [08:07:15]line 1.000 * 10.00 [08:07:15]line = 10.00 [08:07:15]line НДС 12% НСП 1% [08:07:15]line > о реализуемом товаре [08:07:15]line ИТОГО: 99.00 [08:07:15]line НСП 1% : 0.88 [08:07:15]line НДС 12% : 10.51 [08:07:15]line Наличными: 99.00 [08:07:15]line Безнал.: 0.00 [08:07:15]line Место: АЗС № 86 "Партнер Нефть" [08:07:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:07:15]line СНО: Общий режим [08:07:15]line Чек 39 21.10.2024 08:07 [08:07:15]line Смена: 544 ФФД: 1.0 [08:07:15]line ЗНМ: 0300000154 [08:07:15]line РНМ: 0000000000091619 [08:07:15]line Версия ККМ: 001 [08:07:15]line ФМ: 0000000000874676 [08:07:15]line ФД: 63042 [08:07:15]line ФПД: 42580738186572 [08:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080714&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63042&fm=42580738186572&tin=02508201610067®Number=0000000000091619&sum=9900 [08:07:15]line 0 [08:07:15]OFD Sender: Processing packet 63042 [packets to send 232, broken 231] [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00063042 [08:07:15]OFD Sender: To server: pG, [08:07:15]CommunicateWithHost lk.salyk.kg:30040 [08:07:15]ConnectInit lk.salyk.kg [08:07:15]written 0, free lines is 4095 [08:07:15]Connected sock=10 [08:07:15]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 DD 11 98 01 CA A2 5A 03 01 00 03 00 8C 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 27 00 00 00 F4 03 04 00 B2 0B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 26 BA 19 C6 1D 4C E1 BB 54 8B 57 11 B2 1F [08:07:15]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 E4 F6 47 00 36 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 42 F6 00 00 F4 03 04 00 B0 B5 15 67 B6 04 01 00 00 54 D4 93 56 1C 13 F1 5F [08:07:15]CommunicateWithHost err = 0 [08:07:15]CheckOFDResponse [08:07:15]1017 (14) - 77093643461234 [08:07:15]1041 (16) - 0000000000874676 [08:07:15]1040 (4) - 63042 [08:07:15]1012 (4) - 21.10.2024 02:00 [08:07:16]1206 (1) - 0 [08:07:16]OFD Sender: Remove packet 63042 [08:07:16]ProducePacketName [08:07:16]name=ofd_packets/00063042 [08:07:16]NVStorageDeleteData [08:07:16]Write to MH i2c: 01 00 00 53 05 58 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: 01 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: 01 07 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 D8 0C 43 [08:07:16]RasterBufferAndPrint [08:07:16]line [08:07:16]line [08:07:16]line [08:07:16]line [08:07:16]line [08:07:16]written 0, free lines is 3294 [08:07:16]MH_Cut [08:07:16]Write to MH i2c: D1 01 00 5A 05 01 31 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: D1 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: D1 01 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: D1 01 00 5A 05 00 30 [08:07:16]Write to MH i2c: 01 00 00 5B 05 60 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]OFD Sender: No OFD packet to send [08:07:16]*** Cut start [08:07:16]*** Partial cut [08:07:16]*** CUTSNS_PIN = 1 [08:07:16]*** CUTSNS_PIN = 0 [08:07:16]*** Brake cut motor [08:07:17]Read from MH i2c: 01 [08:07:17]MH_I2C_Read... [08:07:17]*** Stop cut motor [08:07:17]*** Cut end [08:07:17]Read from MH i2c: 01 07 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 FF 0F 75 [08:07:17]process_action close_receipt done [08:07:17]requested_data is exist [08:07:17]produce_requested_data [08:07:17]requested_item fm.sn is exist - process it [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 11 00 00 [08:07:17]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 5C 05 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:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:07:17]wFMCommunicate OK [08:07:17]requested_item fd.num is exist - process it [08:07:17]SAM_PROTO_GetFieldsCounters [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 00 00 [08:07:17]Write to MH i2c: E2 08 00 5D 05 80 13 00 00 00 00 00 00 DE [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 62 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 62 00 5D 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 42 F6 00 00 0E 04 04 00 20 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 D5 [08:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetFieldsCounters done [08:07:17]requested_item shift.num is exist - process it [08:07:17]requested_item shift.opened is exist - process it [08:07:17]req_shift_opened [08:07:17]FM_GetShiftState [08:07:17]SAM_PROTO_GetShiftState [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 01 00 [08:07:17]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 40 [08:07:17]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetShiftState done [08:07:17]FM_GetShiftState done [08:07:17]req_shift_opened done [08:07:17]requested_item shift.open_date is exist - process it [08:07:17]req_shift_open_date [08:07:17]req_shift_open_date done [08:07:17]produce_requested_data done [08:07:17]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63042,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:07:17]process_action_free close_receipt [08:07:17]json_value_free [08:07:17]json_value_free done [08:07:17]process_json_proto returns [08:07:17]Send response to host [08:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63042,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:07:17]free response buf [08:07:17]execute_script done [08:07:17]execute_script returns [08:07:17]free content buf [08:07:17]Sock 7.Close socket [08:07:17]Sock 7.Thread stoped [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:28]accept exits with 9 [08:23:28]New connection [08:23:28]New thread 3067198820 created [08:23:28]Thread 3067055460 joined [08:23:28]Waiting for new connection... [08:23:28] Sock 9.Parse request [08:23:28]Sock 9.Check first char [08:23:28]Sock 9.First char is OK [08:23:28]request: POST /json_proto HTTP/1.0 [08:23:28]Method: POST [08:23:28]URL: /json_proto [08:23:28]Method is POST - this is cgi request [08:23:28]url: /json_proto [08:23:28]query_string will be loaded in cgi processing [08:23:28]execute_cgi json_proto POST (null) [08:23:28]execute_cgi path=json_proto method=POST [08:23:28]POST find Content-Length [08:23:28]Host: 172.17.42.132:8080 [08:23:28]Content-Length: 1616 [08:23:28]Content-Type: application/json [08:23:28] [08:23:28]POST finish read [08:23:28]Found Content-Length = 1616 [08:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47353", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 44.60, "quantity" : 2.000, "sum" : 89.20, "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" : 92.18, "quantity" : 1.000, "sum" : 92.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 61.45, "quantity" : 1.000, "sum" : 61.45, "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" ] } } [08:23:28]execute_script... [08:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47353", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 44.60, "quantity" : 2.000, "sum" : 89.20, "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" : 92.18, "quantity" : 1.000, "sum" : 92.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 61.45, "quantity" : 1.000, "sum" : 61.45, "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" ] } } [08:23:28]POST & json_proto [08:23:28]process_json_proto [08:23:28]json parsed OK: [08:23:28]protocol is kg_v1.0 [08:23:28]action value=close_receipt [08:23:28]process_action close_receipt [08:23:28]cmd_close_receipt [08:23:28]MH_GetDate [08:23:28]Write to MH i2c: F0 00 00 5F 05 53 [08:23:28]Write i2c OK [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: F0 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: F0 09 00 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: F0 09 00 5F 05 00 82 0F 16 67 4C DF 56 66 51 [08:23:28]GetLastDocTimeStamp 1729498034 [08:23:28]current date 1729499010 [08:23:28]FM_GetShiftState [08:23:28]SAM_PROTO_GetShiftState [08:23:28]wFMCommunicate request_size=4 [08:23:28]MH_SAM_APDU [08:23:28]CAPDU: 80 13 01 00 [08:23:28]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [08:23:28]Write i2c OK [08:23:28]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0E 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 42 [08:23:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:23:29]wFMCommunicate OK [08:23:29]SAM_PROTO_GetShiftState done [08:23:29]FM_GetShiftState done [08:23:29]opened in 1729469755 [08:23:29]opened+sec_in_day 1729556155 [08:23:29]quantity*price = 12389 [08:23:29]sum+1 = 12390 [08:23:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001159955 Вода ASU пит н.газ ПЭТ 1л 2.000 * 44.60 = 89.20 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 92.18 = 92.18 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 61.45 = 61.45 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 366.72 НСП 1% : 3.25 НДС 12% : 38.95 Наличными: 0.00 Безнал.: 366.72 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 40 21.10.2024 08:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63043 ФПД: 148191399524868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082330&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63043&fm=148191399524868&tin=02508201610067®Number=0000000000091619&sum=36672 0 [08:23:30]StoreToDocumentArchive [08:23:30]shift 544 fd 63043 [08:23:30]save to /storage/0544/doc_00063043 [08:23:30]save last doc name /storage/0544/doc_00063043 to /storage/kkm_last_doc_name [08:23:30]save OK [08:23:30]Clear old archive folders... [08:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=630 [08:23:30]tlvbuf is 018B4630 [08:23:30]SAM_PROTO_ClearQueue [08:23:30]wFMCommunicate request_size=4 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 09 00 00 [08:23:30]Write to MH i2c: E2 08 00 6D 05 80 09 00 00 00 00 00 00 E4 [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [08:23:30]RAPDU: 90 00 [08:23:30]wFMCommunicate OK [08:23:30]SAM_PROTO_ClearQueue done [08:23:30]KKMCreateOFDPacket [08:23:30]OFDProtocolAddRootSTLVToBuf [08:23:30]FM_MakeSignedData [08:23:30]FM_MakeSignedData [08:23:30]SAM_PROTO_SignData [08:23:30]wFMCommunicate request_size=4 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 0D 01 02 [08:23:30]Write to MH i2c: E2 08 00 6E 05 80 0D 01 02 00 00 00 00 EC [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [08:23:30]RAPDU: 90 00 [08:23:30]wFMCommunicate OK [08:23:30]wFMCommunicate request_size=255 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 0D 02 02 FA 03 00 76 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 07 00 00 00 00 00 37 04 06 00 6C 11 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 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 [08:23:30]Write to MH i2c: E2 02 01 6F 05 80 0D 02 02 FA 00 03 00 76 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 07 00 00 00 00 00 37 04 06 00 6C 11 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 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 00 00 0F [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [08:23:30]RAPDU: 90 00 [08:23:30]wFMCommunicate OK [08:23:30]wFMCommunicate request_size=255 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 0D 02 02 FA 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 02 24 00 00 00 00 13 04 06 00 02 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 01 18 00 00 00 00 13 04 06 00 01 18 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 45 01 00 00 [08:23:30]Write to MH i2c: E2 02 01 70 05 80 0D 02 02 FA 00 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 02 24 00 00 00 00 13 04 06 00 02 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 01 18 00 00 00 00 13 04 06 00 01 18 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 45 01 00 00 00 00 BA [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [08:23:30]RAPDU: 90 00 [08:23:30]wFMCommunicate OK [08:23:30]wFMCommunicate request_size=139 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 28 00 00 00 F4 03 04 00 82 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 86 C7 7F BA 3A 04 [08:23:30]Write to MH i2c: E2 8E 00 71 05 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 28 00 00 00 F4 03 04 00 82 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 86 C7 7F BA 3A 04 00 00 9A [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [08:23:30]RAPDU: 90 00 [08:23:30]wFMCommunicate OK [08:23:30]wFMCommunicate request_size=4 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 0D 03 02 [08:23:30]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0B 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0B 00 72 05 00 6E AC C9 55 56 0F A0 49 90 00 79 [08:23:31]RAPDU: 6E AC C9 55 56 0F A0 49 90 00 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_SignData done [08:23:31]FM_MakeSignedData done [08:23:31]CreateOFDProtocolMessage [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 11 00 00 [08:23:31]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [08:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:23:31]wFMCommunicate OK [08:23:31]CreateOFDProtocolMessage done [08:23:31]OFDSenderStorePacket 63043 [08:23:31]StoreOFDPacket docnum=63043 [08:23:31]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 02 00 00 5A F7 82 02 FC 2A 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 07 00 00 00 00 00 37 04 06 00 6C 11 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 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 02 24 00 00 00 00 13 04 06 00 02 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 01 18 00 00 00 00 13 04 06 00 01 18 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 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 28 00 00 00 F4 03 04 00 82 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 86 C7 7F BA 3A 04 6E AC C9 55 56 0F A0 49 [08:23:31]CheckFolder [08:23:31]dirname=/storage/ofd_packets [08:23:31]CheckFolder done [08:23:31]ProducePacketName [08:23:31]name=ofd_packets/00063043 [08:23:31]NVStorageSaveData ofd_packets/00063043 [08:23:31]File name is /storage/ofd_packets/00063043 [08:23:31]Write 680 bytes [08:23:31]NVStorageSaveData done [08:23:31]OFDSenderStorePacket done [08:23:31]KKMCreateOFDPacket done [08:23:31]NVStorageSaveData kkm_last_timestamp [08:23:31]File name is /storage/kkm_last_timestamp [08:23:31]Write 4 bytes [08:23:31]NVStorageSaveData done [08:23:31]ExternCall_PrintAddStr [08:23:31]wPrintStart [08:23:31]Write to MH i2c: 01 00 00 74 05 79 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 07 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [08:23:31]RasterBufferAndPrint [08:23:31]line Счет N : (3)47353 [08:23:31]line ИНН: 02508201610067 [08:23:31]line Контрольно-Кассовый Чек [08:23:31]line ПРОДАЖА [08:23:31]line Товар: 2000036190018 [08:23:31]line Кофе Американо XL(GABB TRADE) [08:23:31]line 1.000 * 123.89 [08:23:31]line = 123.89 [08:23:31]line НДС 12% НСП 1% [08:23:31]line > о реализуемом товаре [08:23:31]line Товар: 4870001159955 [08:23:31]line Вода ASU пит н.газ ПЭТ 1л [08:23:31]line 2.000 * 44.60 [08:23:31]line = 89.20 [08:23:31]line НДС 12% НСП 1% [08:23:31]line > о реализуемом товаре [08:23:31]line Товар: 4603290004879 [08:23:31]line Печ.сах.FORSITE Сэнд.кокос.вк [08:23:31]line 1.000 * 92.18 [08:23:31]line = 92.18 [08:23:31]line НДС 12% НСП 1% [08:23:31]line > о реализуемом товаре [08:23:31]line Товар: 4607120854184 [08:23:31]line Снек Орехи BEERKa Арахис 90г [08:23:31]line 1.000 * 61.45 [08:23:31]line = 61.45 [08:23:31]line НДС 12% НСП 1% [08:23:31]line > о реализуемом товаре [08:23:31]line ИТОГО: 366.72 [08:23:31]line НСП 1% : 3.25 [08:23:31]line НДС 12% : 38.95 [08:23:31]line Наличными: 0.00 [08:23:31]line Безнал.: 366.72 [08:23:31]line Место: АЗС № 86 "Партнер Нефть" [08:23:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:23:31]line СНО: Общий режим [08:23:31]line Чек 40 21.10.2024 08:23 [08:23:31]line Смена: 544 ФФД: 1.0 [08:23:31]line ЗНМ: 0300000154 [08:23:31]line РНМ: 0000000000091619 [08:23:31]line Версия ККМ: 001 [08:23:31]line Платежная система: Mbank [08:23:31]line ФМ: 0000000000874676 [08:23:31]line ФД: 63043 [08:23:31]line ФПД: 148191399524868 [08:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082330&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63043&fm=148191399524868&tin=02508201610067®Number=0000000000091619&sum=36672 [08:23:31]line 0 [08:23:31]OFD Sender: Processing packet 63043 [packets to send 232, broken 231] [08:23:31]ProducePacketName [08:23:31]name=ofd_packets/00063043 [08:23:31]OFD Sender: To server: pG, [08:23:31]CommunicateWithHost lk.salyk.kg:30040 [08:23:31]ConnectInit lk.salyk.kg [08:23:31]written 0, free lines is 4095 [08:23:31]Connected sock=10 [08:23: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 8A 02 00 00 5A F7 82 02 FC 2A 5A 03 01 00 03 00 76 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 D0 07 00 00 00 00 00 37 04 06 00 6C 11 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 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 02 24 00 00 00 00 13 04 06 00 02 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 01 18 00 00 00 00 13 04 06 00 01 18 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 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 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 28 00 00 00 F4 03 04 00 82 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 86 C7 7F BA 3A 04 6E AC C9 55 56 0F A0 49 [08:23: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 2E 53 47 00 A6 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F6 00 00 F4 03 04 00 80 B9 15 67 B6 04 01 00 00 65 AE 92 ED C7 03 54 3C [08:23:32]CommunicateWithHost err = 0 [08:23:32]CheckOFDResponse [08:23:32]1017 (14) - 77093643461234 [08:23:32]1041 (16) - 0000000000874676 [08:23:32]1040 (4) - 63043 [08:23:32]1012 (4) - 21.10.2024 02:16 [08:23:32]1206 (1) - 0 [08:23:32]OFD Sender: Remove packet 63043 [08:23:32]ProducePacketName [08:23:32]name=ofd_packets/00063043 [08:23:32]NVStorageDeleteData [08:23:32]Write to MH i2c: 01 00 00 B1 05 B6 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 22 0C EB [08:23:32]RasterBufferAndPrint [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]written 0, free lines is 3115 [08:23:32]MH_Cut [08:23:32]Write to MH i2c: D1 01 00 B8 05 01 8F [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 01 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 01 00 B8 05 00 8E [08:23:32]Write to MH i2c: 01 00 00 B9 05 BE [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]OFD Sender: No OFD packet to send [08:23:32]*** Cut start [08:23:32]*** Partial cut [08:23:32]*** CUTSNS_PIN = 1 [08:23:32]*** CUTSNS_PIN = 0 [08:23:33]*** Brake cut motor [08:23:33]Read from MH i2c: 01 [08:23:33]MH_I2C_Read... [08:23:33]*** Stop cut motor [08:23:33]*** Cut end [08:23:33]Read from MH i2c: 01 07 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [08:23:33]process_action close_receipt done [08:23:33]requested_data is exist [08:23:33]produce_requested_data [08:23:33]requested_item fm.sn is exist - process it [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 11 00 00 [08:23:33]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 17 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 17 00 BA 05 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:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:23:33]wFMCommunicate OK [08:23:33]requested_item fd.num is exist - process it [08:23:33]SAM_PROTO_GetFieldsCounters [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 00 00 [08:23:33]Write to MH i2c: E2 08 00 BB 05 80 13 00 00 00 00 00 00 3C [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 BB 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 43 F6 00 00 0E 04 04 00 20 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 37 [08:23: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 43 F6 00 00 0E 04 04 00 20 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 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetFieldsCounters done [08:23:33]requested_item shift.num is exist - process it [08:23:33]requested_item shift.opened is exist - process it [08:23:33]req_shift_opened [08:23:33]FM_GetShiftState [08:23:33]SAM_PROTO_GetShiftState [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 01 00 [08:23:33]Write to MH i2c: E2 08 00 BC 05 80 13 01 00 00 00 00 00 3E [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 BC 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 9E [08:23:33]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetShiftState done [08:23:33]FM_GetShiftState done [08:23:33]req_shift_opened done [08:23:33]requested_item shift.open_date is exist - process it [08:23:33]req_shift_open_date [08:23:33]req_shift_open_date done [08:23:33]produce_requested_data done [08:23:33]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63043,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:23:33]process_action_free close_receipt [08:23:33]json_value_free [08:23:33]json_value_free done [08:23:33]process_json_proto returns [08:23:33]Send response to host [08:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63043,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:23:33]free response buf [08:23:33]execute_script done [08:23:33]execute_script returns [08:23:33]free content buf [08:23:33]Sock 9.Close socket [08:23:33]Sock 9.Thread stoped [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:23:58]accept exits with 7 [08:23:58]New connection [08:23:58]New thread 3067055460 created [08:23:58]Thread 3067198820 joined [08:23:58]Waiting for new connection... [08:23:58] Sock 7.Parse request [08:23:58]Sock 7.Check first char [08:23:58]Sock 7.First char is OK [08:23:58]request: POST /json_proto HTTP/1.0 [08:23:58]Method: POST [08:23:58]URL: /json_proto [08:23:58]Method is POST - this is cgi request [08:23:58]url: /json_proto [08:23:58]query_string will be loaded in cgi processing [08:23:58]execute_cgi json_proto POST (null) [08:23:58]execute_cgi path=json_proto method=POST [08:23:58]POST find Content-Length [08:23:58]Host: 172.17.42.132:8080 [08:23:58]Content-Length: 655 [08:23:58]Content-Type: application/json [08:23:58] [08:23:58]POST finish read [08:23:58]Found Content-Length = 655 [08:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47354", "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:23:58]execute_script... [08:23:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47354", "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:23:58]POST & json_proto [08:23:58]process_json_proto [08:23:58]json parsed OK: [08:23:58]protocol is kg_v1.0 [08:23:58]action value=close_receipt [08:23:58]process_action close_receipt [08:23:58]cmd_close_receipt [08:23:58]MH_GetDate [08:23:58]Write to MH i2c: F0 00 00 BD 05 B1 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: F0 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: F0 09 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: F0 09 00 BD 05 00 A0 0F 16 67 4C DF 56 66 CD [08:23:58]GetLastDocTimeStamp 1729499010 [08:23:58]current date 1729499040 [08:23:58]FM_GetShiftState [08:23:58]SAM_PROTO_GetShiftState [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 01 00 [08:23:58]Write to MH i2c: E2 08 00 BE 05 80 13 01 00 00 00 00 00 40 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 BE 05 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A0 [08:23:58]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetShiftState done [08:23:58]FM_GetShiftState done [08:23:58]opened in 1729469755 [08:23:58]opened+sec_in_day 1729556155 [08:23:58]quantity*price = 400 [08:23:58]sum+1 = 401 [08:23:58]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 СНО: Общий режим Чек 41 21.10.2024 08:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63044 ФПД: 239861639598652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082400&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63044&fm=239861639598652&tin=02508201610067®Number=0000000000091619&sum=400 0 [08:24:00]StoreToDocumentArchive [08:24:00]shift 544 fd 63044 [08:24:00]save to /storage/0544/doc_00063044 [08:24:00]save last doc name /storage/0544/doc_00063044 to /storage/kkm_last_doc_name [08:24:00]save OK [08:24:00]Clear old archive folders... [08:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:24:00]tlvbuf is 01828BA0 [08:24:00]SAM_PROTO_ClearQueue [08:24:00]wFMCommunicate request_size=4 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 09 00 00 [08:24:00]Write to MH i2c: E2 08 00 CB 05 80 09 00 00 00 00 00 00 42 [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [08:24:00]RAPDU: 90 00 [08:24:00]wFMCommunicate OK [08:24:00]SAM_PROTO_ClearQueue done [08:24:00]KKMCreateOFDPacket [08:24:00]OFDProtocolAddRootSTLVToBuf [08:24:00]FM_MakeSignedData [08:24:00]FM_MakeSignedData [08:24:00]SAM_PROTO_SignData [08:24:00]wFMCommunicate request_size=4 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 0D 01 02 [08:24:00]Write to MH i2c: E2 08 00 CC 05 80 0D 01 02 00 00 00 00 4A [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [08:24:00]RAPDU: 90 00 [08:24:00]wFMCommunicate OK [08:24:00]wFMCommunicate request_size=255 [08:24:00]MH_SAM_APDU [08:24:00]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 29 00 00 00 F4 03 04 00 A0 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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:24:00]Write to MH i2c: E2 02 01 CD 05 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 29 00 00 00 F4 03 04 00 A0 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 29 [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [08:24:00]RAPDU: 90 00 [08:24:00]wFMCommunicate OK [08:24:00]wFMCommunicate request_size=37 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F6 00 00 35 04 06 00 DA 27 23 D2 D2 3C [08:24:00]Write to MH i2c: E2 28 00 CE 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F6 00 00 35 04 06 00 DA 27 23 D2 D2 3C 00 00 E8 [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [08:24:00]RAPDU: 90 00 [08:24:00]wFMCommunicate OK [08:24:00]wFMCommunicate request_size=4 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 0D 03 02 [08:24:00]Write to MH i2c: E2 08 00 CF 05 80 0D 03 02 00 00 00 00 4F [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 0B 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 0B 00 CF 05 00 57 E9 80 2D AD CF 4F FE 90 00 06 [08:24:00]RAPDU: 57 E9 80 2D AD CF 4F FE 90 00 [08:24:00]wFMCommunicate OK [08:24:00]SAM_PROTO_SignData done [08:24:00]FM_MakeSignedData done [08:24:00]CreateOFDProtocolMessage [08:24:00]wFMCommunicate request_size=4 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 11 00 00 [08:24:00]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 17 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A8 [08:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:24:00]wFMCommunicate OK [08:24:00]CreateOFDProtocolMessage done [08:24:00]OFDSenderStorePacket 63044 [08:24:00]StoreOFDPacket docnum=63044 [08:24: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 2A 01 00 00 11 67 22 01 23 15 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 29 00 00 00 F4 03 04 00 A0 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 27 23 D2 D2 3C 57 E9 80 2D AD CF 4F FE [08:24:00]CheckFolder [08:24:00]dirname=/storage/ofd_packets [08:24:00]CheckFolder done [08:24:00]ProducePacketName [08:24:00]name=ofd_packets/00063044 [08:24:00]NVStorageSaveData ofd_packets/00063044 [08:24:00]File name is /storage/ofd_packets/00063044 [08:24:00]Write 328 bytes [08:24:00]NVStorageSaveData done [08:24:00]OFDSenderStorePacket done [08:24:00]KKMCreateOFDPacket done [08:24:00]NVStorageSaveData kkm_last_timestamp [08:24:00]File name is /storage/kkm_last_timestamp [08:24:00]Write 4 bytes [08:24:00]NVStorageSaveData done [08:24:00]ExternCall_PrintAddStr [08:24:00]wPrintStart [08:24:00]Write to MH i2c: 01 00 00 D1 05 D6 [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: 01 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: 01 07 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [08:24:00]RasterBufferAndPrint [08:24:00]line Счет N : (3)47354 [08:24:00]line ИНН: 02508201610067 [08:24:00]line Контрольно-Кассовый Чек [08:24:00]line ПРОДАЖА [08:24:00]line Товар: 2587136579566 [08:24:00]line Пакет Партнер Нефть [08:24:00]line 1.000 * 4.00 [08:24:00]line = 4.00 [08:24:00]line НДС 12% НСП 1% [08:24:00]line > о реализуемом товаре [08:24:00]line ИТОГО: 4.00 [08:24:00]line НСП 1% : 0.03 [08:24:00]line НДС 12% : 0.42 [08:24:00]line Наличными: 4.00 [08:24:00]line Безнал.: 0.00 [08:24:00]line Место: АЗС № 86 "Партнер Нефть" [08:24:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:24:00]line СНО: Общий режим [08:24:00]line Чек 41 21.10.2024 08:24 [08:24:00]line Смена: 544 ФФД: 1.0 [08:24:00]line ЗНМ: 0300000154 [08:24:00]line РНМ: 0000000000091619 [08:24:00]line Версия ККМ: 001 [08:24:00]line ФМ: 0000000000874676 [08:24:00]line ФД: 63044 [08:24:00]line ФПД: 239861639598652 [08:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082400&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63044&fm=239861639598652&tin=02508201610067®Number=0000000000091619&sum=400 [08:24:00]line 0 [08:24:00]OFD Sender: Processing packet 63044 [packets to send 232, broken 231] [08:24:00]ProducePacketName [08:24:00]name=ofd_packets/00063044 [08:24:00]OFD Sender: To server: pG, [08:24:00]CommunicateWithHost lk.salyk.kg:30040 [08:24:00]ConnectInit lk.salyk.kg [08:24:00]written 0, free lines is 4095 [08:24:01]Connected sock=10 [08:24: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 2A 01 00 00 11 67 22 01 23 15 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 29 00 00 00 F4 03 04 00 A0 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 27 23 D2 D2 3C 57 E9 80 2D AD CF 4F FE [08:24:01]Write to MH i2c: 01 00 00 F9 05 FE [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: 01 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: 01 07 00 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 07 0D 19 [08:24:01]RasterBufferAndPrint [08:24:01]line [08:24:01]line [08:24:01]line [08:24:01]line [08:24:01]line [08:24:01]written 0, free lines is 3341 [08:24:01]MH_Cut [08:24:01]Write to MH i2c: D1 01 00 00 06 01 D8 [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: D1 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: D1 01 00 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: D1 01 00 00 06 00 D7 [08:24:01]Write to MH i2c: 01 00 00 01 06 07 [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24: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 E4 5F 47 00 3C DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 9E B9 15 67 B6 04 01 00 00 39 76 C0 01 46 CB B3 09 [08:24:01]CommunicateWithHost err = 0 [08:24:01]CheckOFDResponse [08:24:01]1017 (14) - 77093643461234 [08:24:01]1041 (16) - 0000000000874676 [08:24:01]1040 (4) - 63044 [08:24:01]1012 (4) - 21.10.2024 02:17 [08:24:01]1206 (1) - 0 [08:24:01]OFD Sender: Remove packet 63044 [08:24:01]ProducePacketName [08:24:01]name=ofd_packets/00063044 [08:24:01]NVStorageDeleteData [08:24:01]OFD Sender: No OFD packet to send [08:24:02]*** Cut start [08:24:02]*** Partial cut [08:24:02]*** CUTSNS_PIN = 1 [08:24:02]*** CUTSNS_PIN = 0 [08:24:02]*** Brake cut motor [08:24:02]Read from MH i2c: 01 [08:24:02]MH_I2C_Read... [08:24:02]*** Stop cut motor [08:24:02]*** Cut end [08:24:02]Read from MH i2c: 01 07 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 FF 0F 1C [08:24:02]process_action close_receipt done [08:24:02]requested_data is exist [08:24:02]produce_requested_data [08:24:02]requested_item fm.sn is exist - process it [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 11 00 00 [08:24:02]Write to MH i2c: E2 08 00 02 06 80 11 00 00 00 00 00 00 82 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 17 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 17 00 02 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DB [08:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:24:02]wFMCommunicate OK [08:24:02]requested_item fd.num is exist - process it [08:24:02]SAM_PROTO_GetFieldsCounters [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 13 00 00 [08:24:02]Write to MH i2c: E2 08 00 03 06 80 13 00 00 00 00 00 00 85 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 62 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 62 00 03 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 44 F6 00 00 0E 04 04 00 20 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 84 [08:24: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 44 F6 00 00 0E 04 04 00 20 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 [08:24:02]wFMCommunicate OK [08:24:02]SAM_PROTO_GetFieldsCounters done [08:24:02]requested_item shift.num is exist - process it [08:24:02]requested_item shift.opened is exist - process it [08:24:02]req_shift_opened [08:24:02]FM_GetShiftState [08:24:02]SAM_PROTO_GetShiftState [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 13 01 00 [08:24:02]Write to MH i2c: E2 08 00 04 06 80 13 01 00 00 00 00 00 87 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0E 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0E 00 04 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E7 [08:24:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:24:02]wFMCommunicate OK [08:24:02]SAM_PROTO_GetShiftState done [08:24:02]FM_GetShiftState done [08:24:02]req_shift_opened done [08:24:02]requested_item shift.open_date is exist - process it [08:24:02]req_shift_open_date [08:24:02]req_shift_open_date done [08:24:02]produce_requested_data done [08:24:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63044,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:24:02]process_action_free close_receipt [08:24:02]json_value_free [08:24:02]json_value_free done [08:24:02]process_json_proto returns [08:24:02]Send response to host [08:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63044,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:24:02]free response buf [08:24:02]execute_script done [08:24:02]execute_script returns [08:24:02]free content buf [08:24:02]Sock 7.Close socket [08:24:02]Sock 7.Thread stoped [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:53]accept exits with 9 [08:24:53]New connection [08:24:53]New thread 3067198820 created [08:24:53]Thread 3067055460 joined [08:24:53]Waiting for new connection... [08:24:53] Sock 9.Parse request [08:24:53]Sock 9.Check first char [08:24:53]Sock 9.First char is OK [08:24:53]request: POST /json_proto HTTP/1.0 [08:24:53]Method: POST [08:24:53]URL: /json_proto [08:24:53]Method is POST - this is cgi request [08:24:53]url: /json_proto [08:24:53]query_string will be loaded in cgi processing [08:24:53]execute_cgi json_proto POST (null) [08:24:53]execute_cgi path=json_proto method=POST [08:24:53]POST find Content-Length [08:24:53]Host: 172.17.42.132:8080 [08:24:53]Content-Length: 622 [08:24:53]Content-Type: application/json [08:24:53] [08:24:53]POST finish read [08:24:53]Found Content-Length = 622 [08:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47355", "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:24:53]execute_script... [08:24: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)47355", "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:24:53]POST & json_proto [08:24:53]process_json_proto [08:24:53]json parsed OK: [08:24:53]protocol is kg_v1.0 [08:24:53]action value=close_receipt [08:24:53]process_action close_receipt [08:24:53]cmd_close_receipt [08:24:53]MH_GetDate [08:24:53]Write to MH i2c: F0 00 00 05 06 FA [08:24:53]Write i2c OK [08:24:53]MH_I2C_Read... [08:24:53]Read from MH i2c: F0 [08:24:53]MH_I2C_Read... [08:24:53]Read from MH i2c: F0 09 00 [08:24:53]MH_I2C_Read... [08:24:53]Read from MH i2c: F0 09 00 05 06 00 D6 0F 16 67 4C DF 56 66 4C [08:24:53]GetLastDocTimeStamp 1729499040 [08:24:53]current date 1729499094 [08:24:53]FM_GetShiftState [08:24:53]SAM_PROTO_GetShiftState [08:24:53]wFMCommunicate request_size=4 [08:24:53]MH_SAM_APDU [08:24:53]CAPDU: 80 13 01 00 [08:24:53]Write to MH i2c: E2 08 00 06 06 80 13 01 00 00 00 00 00 89 [08:24:53]Write i2c OK [08:24:53]MH_I2C_Read... [08:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:53]Read from MH i2c: E2 [08:24:53]MH_I2C_Read... [08:24:53]Read from MH i2c: E2 0E 00 [08:24:53]MH_I2C_Read... [08:24:53]Read from MH i2c: E2 0E 00 06 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E9 [08:24:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:24:53]wFMCommunicate OK [08:24:53]SAM_PROTO_GetShiftState done [08:24:53]FM_GetShiftState done [08:24:53]opened in 1729469755 [08:24:53]opened+sec_in_day 1729556155 [08:24:53]quantity*price = 14400 [08:24:53]sum+1 = 14401 [08:24:53]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 СНО: Общий режим Чек 42 21.10.2024 08:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63045 ФПД: 78581200117003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082454&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63045&fm=78581200117003&tin=02508201610067®Number=0000000000091619&sum=14400 0 [08:24:54]StoreToDocumentArchive [08:24:54]shift 544 fd 63045 [08:24:54]save to /storage/0544/doc_00063045 [08:24:54]save last doc name /storage/0544/doc_00063045 to /storage/kkm_last_doc_name [08:24:54]save OK [08:24:54]Clear old archive folders... [08:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:24:54]tlvbuf is 0182F060 [08:24:54]SAM_PROTO_ClearQueue [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 09 00 00 [08:24:54]Write to MH i2c: E2 08 00 13 06 80 09 00 00 00 00 00 00 8B [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [08:24:54]RAPDU: 90 00 [08:24:54]wFMCommunicate OK [08:24:54]SAM_PROTO_ClearQueue done [08:24:54]KKMCreateOFDPacket [08:24:54]OFDProtocolAddRootSTLVToBuf [08:24:54]FM_MakeSignedData [08:24:54]FM_MakeSignedData [08:24:54]SAM_PROTO_SignData [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 0D 01 02 [08:24:54]Write to MH i2c: E2 08 00 14 06 80 0D 01 02 00 00 00 00 93 [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [08:24:54]RAPDU: 90 00 [08:24:54]wFMCommunicate OK [08:24:54]wFMCommunicate request_size=255 [08:24:54]MH_SAM_APDU [08:24:54]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 2A 00 00 00 F4 03 04 00 D6 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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:24:54]Write to MH i2c: E2 02 01 15 06 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 2A 00 00 00 F4 03 04 00 D6 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 47 [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [08:24:54]RAPDU: 90 00 [08:24:54]wFMCommunicate OK [08:24:54]wFMCommunicate request_size=34 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F6 00 00 35 04 06 00 47 78 1C 84 DD 0B [08:24:54]Write to MH i2c: E2 25 00 16 06 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F6 00 00 35 04 06 00 47 78 1C 84 DD 0B 00 00 DF [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [08:24:54]RAPDU: 90 00 [08:24:54]wFMCommunicate OK [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 0D 03 02 [08:24:54]Write to MH i2c: E2 08 00 17 06 80 0D 03 02 00 00 00 00 98 [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 0B 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 0B 00 17 06 00 26 E9 38 58 CA EF CA F7 90 00 B2 [08:24:54]RAPDU: 26 E9 38 58 CA EF CA F7 90 00 [08:24:54]wFMCommunicate OK [08:24:54]SAM_PROTO_SignData done [08:24:54]FM_MakeSignedData done [08:24:54]CreateOFDProtocolMessage [08:24:54]wFMCommunicate request_size=4 [08:24:54]MH_SAM_APDU [08:24:54]CAPDU: 80 11 00 00 [08:24:54]Write to MH i2c: E2 08 00 18 06 80 11 00 00 00 00 00 00 98 [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:54]Read from MH i2c: E2 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 17 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: E2 17 00 18 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F1 [08:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:24:54]wFMCommunicate OK [08:24:54]CreateOFDProtocolMessage done [08:24:54]OFDSenderStorePacket 63045 [08:24:54]StoreOFDPacket docnum=63045 [08:24: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 27 01 00 00 94 CB 1F 01 E1 7E 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 2A 00 00 00 F4 03 04 00 D6 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 47 78 1C 84 DD 0B 26 E9 38 58 CA EF CA F7 [08:24:54]CheckFolder [08:24:54]dirname=/storage/ofd_packets [08:24:54]CheckFolder done [08:24:54]ProducePacketName [08:24:54]name=ofd_packets/00063045 [08:24:54]NVStorageSaveData ofd_packets/00063045 [08:24:54]File name is /storage/ofd_packets/00063045 [08:24:54]Write 325 bytes [08:24:54]NVStorageSaveData done [08:24:54]OFDSenderStorePacket done [08:24:54]KKMCreateOFDPacket done [08:24:54]NVStorageSaveData kkm_last_timestamp [08:24:54]File name is /storage/kkm_last_timestamp [08:24:54]Write 4 bytes [08:24:54]NVStorageSaveData done [08:24:54]ExternCall_PrintAddStr [08:24:54]wPrintStart [08:24:54]Write to MH i2c: 01 00 00 19 06 1F [08:24:54]Write i2c OK [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: 01 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: 01 07 00 [08:24:54]MH_I2C_Read... [08:24:54]Read from MH i2c: 01 07 00 19 06 00 00 00 00 00 FF 0F 34 [08:24:54]RasterBufferAndPrint [08:24:54]line Счет N : (3)47355 [08:24:54]line ИНН: 02508201610067 [08:24:54]line Контрольно-Кассовый Чек [08:24:54]line ПРОДАЖА [08:24:54]line Товар: 48743587 [08:24:54]line Сигареты Winston XStyle Silver [08:24:54]line 1.000 * 144.00 [08:24:54]line = 144.00 [08:24:54]line НДС 12% НСП 1% [08:24:54]line > о реализуемом товаре [08:24:54]line ИТОГО: 144.00 [08:24:54]line НСП 1% : 1.27 [08:24:54]line НДС 12% : 15.29 [08:24:54]line Наличными: 144.00 [08:24:54]line Безнал.: 0.00 [08:24:54]line Место: АЗС № 86 "Партнер Нефть" [08:24:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:24:54]line СНО: Общий режим [08:24:54]line Чек 42 21.10.2024 08:24 [08:24:54]line Смена: 544 ФФД: 1.0 [08:24:54]line ЗНМ: 0300000154 [08:24:54]line РНМ: 0000000000091619 [08:24:54]line Версия ККМ: 001 [08:24:54]line ФМ: 0000000000874676 [08:24:54]line ФД: 63045 [08:24:54]line ФПД: 78581200117003 [08:24:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082454&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63045&fm=78581200117003&tin=02508201610067®Number=0000000000091619&sum=14400 [08:24:55]OFD Sender: Processing packet 63045 [packets to send 232, broken 231] [08:24:55]ProducePacketName [08:24:55]name=ofd_packets/00063045 [08:24:55]OFD Sender: To server: pG, [08:24:55]CommunicateWithHost lk.salyk.kg:30040 [08:24:55]ConnectInit lk.salyk.kg [08:24:55]line 0 [08:24:55]written 0, free lines is 4095 [08:24:55]Connected sock=10 [08:24: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 27 01 00 00 94 CB 1F 01 E1 7E 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 2A 00 00 00 F4 03 04 00 D6 0F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 47 78 1C 84 DD 0B 26 E9 38 58 CA EF CA F7 [08:24:55]Write to MH i2c: 01 00 00 42 06 48 [08:24:55]Write i2c OK [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: 01 [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: 01 07 00 [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FE 0C 59 [08:24:55]RasterBufferAndPrint [08:24:55]line [08:24:55]line [08:24:55]line [08:24:55]line [08:24:55]line [08:24:55]written 0, free lines is 3331 [08:24:55]MH_Cut [08:24:55]Write to MH i2c: D1 01 00 49 06 01 21 [08:24:55]Write i2c OK [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: D1 [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: D1 01 00 [08:24:55]MH_I2C_Read... [08:24:55]Read from MH i2c: D1 01 00 49 06 00 20 [08:24:55]Write to MH i2c: 01 00 00 4A 06 50 [08:24:55]Write i2c OK [08:24:55]MH_I2C_Read... [08:24: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 D5 70 47 00 85 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 45 F6 00 00 F4 03 04 00 D4 B9 15 67 B6 04 01 00 00 E5 2D 92 95 43 97 88 A9 [08:24:55]CommunicateWithHost err = 0 [08:24:55]CheckOFDResponse [08:24:55]1017 (14) - 77093643461234 [08:24:55]1041 (16) - 0000000000874676 [08:24:55]1040 (4) - 63045 [08:24:55]1012 (4) - 21.10.2024 02:17 [08:24:55]1206 (1) - 0 [08:24:55]OFD Sender: Remove packet 63045 [08:24:55]ProducePacketName [08:24:55]name=ofd_packets/00063045 [08:24:55]NVStorageDeleteData [08:24:56]OFD Sender: No OFD packet to send [08:24:56]*** Cut start [08:24:56]*** Partial cut [08:24:56]*** CUTSNS_PIN = 1 [08:24:56]*** CUTSNS_PIN = 0 [08:24:56]*** Brake cut motor [08:24:56]Read from MH i2c: 01 [08:24:56]MH_I2C_Read... [08:24:56]*** Stop cut motor [08:24:56]*** Cut end [08:24:56]Read from MH i2c: 01 07 00 [08:24:56]MH_I2C_Read... [08:24:56]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [08:24:56]process_action close_receipt done [08:24:56]requested_data is exist [08:24:56]produce_requested_data [08:24:56]requested_item fm.sn is exist - process it [08:24:56]wFMCommunicate request_size=4 [08:24:56]MH_SAM_APDU [08:24:56]CAPDU: 80 11 00 00 [08:24:56]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [08:24:56]Write i2c OK [08:24:56]MH_I2C_Read... [08:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:56]Read from MH i2c: E2 [08:24:56]MH_I2C_Read... [08:24:56]Read from MH i2c: E2 17 00 [08:24:56]MH_I2C_Read... [08:24:56]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [08:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:24:56]wFMCommunicate OK [08:24:56]requested_item fd.num is exist - process it [08:24:56]SAM_PROTO_GetFieldsCounters [08:24:56]wFMCommunicate request_size=4 [08:24:56]MH_SAM_APDU [08:24:56]CAPDU: 80 13 00 00 [08:24:56]Write to MH i2c: E2 08 00 4C 06 80 13 00 00 00 00 00 00 CE [08:24:56]Write i2c OK [08:24:56]MH_I2C_Read... [08:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:57]Read from MH i2c: E2 [08:24:57]MH_I2C_Read... [08:24:57]Read from MH i2c: E2 62 00 [08:24:57]MH_I2C_Read... [08:24:57]Read from MH i2c: E2 62 00 4C 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 45 F6 00 00 0E 04 04 00 20 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 D1 [08:24: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 45 F6 00 00 0E 04 04 00 20 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 [08:24:57]wFMCommunicate OK [08:24:57]SAM_PROTO_GetFieldsCounters done [08:24:57]requested_item shift.num is exist - process it [08:24:57]requested_item shift.opened is exist - process it [08:24:57]req_shift_opened [08:24:57]FM_GetShiftState [08:24:57]SAM_PROTO_GetShiftState [08:24:57]wFMCommunicate request_size=4 [08:24:57]MH_SAM_APDU [08:24:57]CAPDU: 80 13 01 00 [08:24:57]Write to MH i2c: E2 08 00 4D 06 80 13 01 00 00 00 00 00 D0 [08:24:57]Write i2c OK [08:24:57]MH_I2C_Read... [08:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:57]Read from MH i2c: E2 [08:24:57]MH_I2C_Read... [08:24:57]Read from MH i2c: E2 0E 00 [08:24:57]MH_I2C_Read... [08:24:57]Read from MH i2c: E2 0E 00 4D 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 30 [08:24:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:24:57]wFMCommunicate OK [08:24:57]SAM_PROTO_GetShiftState done [08:24:57]FM_GetShiftState done [08:24:57]req_shift_opened done [08:24:57]requested_item shift.open_date is exist - process it [08:24:57]req_shift_open_date [08:24:57]req_shift_open_date done [08:24:57]produce_requested_data done [08:24:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63045,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:24:57]process_action_free close_receipt [08:24:57]json_value_free [08:24:57]json_value_free done [08:24:57]process_json_proto returns [08:24:57]Send response to host [08:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63045,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:24:57]free response buf [08:24:57]execute_script done [08:24:57]execute_script returns [08:24:57]free content buf [08:24:57]Sock 9.Close socket [08:24:57]Sock 9.Thread stoped [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:29]accept exits with 7 [08:31:29]New connection [08:31:29]New thread 3067055460 created [08:31:29]Thread 3067198820 joined [08:31:29]Waiting for new connection... [08:31:29] Sock 7.Parse request [08:31:29]Sock 7.Check first char [08:31:29]Sock 7.First char is OK [08:31:29]request: POST /json_proto HTTP/1.0 [08:31:29]Method: POST [08:31:29]URL: /json_proto [08:31:29]Method is POST - this is cgi request [08:31:29]url: /json_proto [08:31:29]query_string will be loaded in cgi processing [08:31:29]execute_cgi json_proto POST (null) [08:31:29]execute_cgi path=json_proto method=POST [08:31:29]POST find Content-Length [08:31:29]Host: 172.17.42.132:8080 [08:31:29]Content-Length: 1144 [08:31:29]Content-Type: application/json [08:31:29] [08:31:29]POST finish read [08:31:29]Found Content-Length = 1144 [08:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47356", "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": "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:29]execute_script... [08:31:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47356", "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": "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": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:29]POST & json_proto [08:31:29]process_json_proto [08:31:29]json parsed OK: [08:31:29]protocol is kg_v1.0 [08:31:29]action value=close_receipt [08:31:29]process_action close_receipt [08:31:29]cmd_close_receipt [08:31:29]MH_GetDate [08:31:29]Write to MH i2c: F0 00 00 4E 06 43 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 09 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 09 00 4E 06 00 62 11 16 67 4C DF 56 66 23 [08:31:29]GetLastDocTimeStamp 1729499094 [08:31:29]current date 1729499490 [08:31:29]FM_GetShiftState [08:31:29]SAM_PROTO_GetShiftState [08:31:29]wFMCommunicate request_size=4 [08:31:29]MH_SAM_APDU [08:31:29]CAPDU: 80 13 01 00 [08:31:29]Write to MH i2c: E2 08 00 4F 06 80 13 01 00 00 00 00 00 D2 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:29]Read from MH i2c: E2 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: E2 0E 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: E2 0E 00 4F 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 32 [08:31:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:31:29]wFMCommunicate OK [08:31:29]SAM_PROTO_GetShiftState done [08:31:29]FM_GetShiftState done [08:31:29]opened in 1729469755 [08:31:29]opened+sec_in_day 1729556155 [08:31:29]quantity*price = 13000 [08:31:29]sum+1 = 13001 [08:31:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.43 НДС 12% : 29.09 Наличными: 274.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 43 21.10.2024 08:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63046 ФПД: 178264807134872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083130&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63046&fm=178264807134872&tin=02508201610067®Number=0000000000091619&sum=27400 0 [08:31:30]StoreToDocumentArchive [08:31:30]shift 544 fd 63046 [08:31:30]save to /storage/0544/doc_00063046 [08:31:30]save last doc name /storage/0544/doc_00063046 to /storage/kkm_last_doc_name [08:31:30]save OK [08:31:30]Clear old archive folders... [08:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=495 [08:31:30]tlvbuf is 018341E0 [08:31:30]SAM_PROTO_ClearQueue [08:31:30]wFMCommunicate request_size=4 [08:31:30]MH_SAM_APDU [08:31:30]CAPDU: 80 09 00 00 [08:31:30]Write to MH i2c: E2 08 00 5C 06 80 09 00 00 00 00 00 00 D4 [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:30]Read from MH i2c: E2 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 03 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [08:31:30]RAPDU: 90 00 [08:31:30]wFMCommunicate OK [08:31:30]SAM_PROTO_ClearQueue done [08:31:30]KKMCreateOFDPacket [08:31:30]OFDProtocolAddRootSTLVToBuf [08:31:30]FM_MakeSignedData [08:31:30]FM_MakeSignedData [08:31:30]SAM_PROTO_SignData [08:31:30]wFMCommunicate request_size=4 [08:31:30]MH_SAM_APDU [08:31:30]CAPDU: 80 0D 01 02 [08:31:30]Write to MH i2c: E2 08 00 5D 06 80 0D 01 02 00 00 00 00 DC [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:30]Read from MH i2c: E2 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 03 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [08:31:30]RAPDU: 90 00 [08:31:30]wFMCommunicate OK [08:31:30]wFMCommunicate request_size=255 [08:31:30]MH_SAM_APDU [08:31:30]CAPDU: 80 0D 02 02 FA 03 00 EF 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 [08:31:30]Write to MH i2c: E2 02 01 5E 06 80 0D 02 02 FA 00 03 00 EF 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 00 00 AC [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=254 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 F9 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 5D 0B 00 00 00 00 07 04 06 00 08 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 2B 00 00 00 F4 03 04 00 62 11 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A2 21 82 81 56 98 [08:31:31]Write to MH i2c: E2 01 01 5F 06 80 0D 02 02 F9 00 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 5D 0B 00 00 00 00 07 04 06 00 08 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 2B 00 00 00 F4 03 04 00 62 11 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A2 21 82 81 56 98 00 00 0E [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 03 02 [08:31:31]Write to MH i2c: E2 08 00 60 06 80 0D 03 02 00 00 00 00 E1 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 60 06 00 A4 C3 6B 08 A8 D5 8A B9 90 00 7C [08:31:31]RAPDU: A4 C3 6B 08 A8 D5 8A B9 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_SignData done [08:31:31]FM_MakeSignedData done [08:31:31]CreateOFDProtocolMessage [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 11 00 00 [08:31:31]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3A [08:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:31:31]wFMCommunicate OK [08:31:31]CreateOFDProtocolMessage done [08:31:31]OFDSenderStorePacket 63046 [08:31:31]StoreOFDPacket docnum=63046 [08:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 03 02 00 00 D1 44 FB 01 9B 86 5A 03 01 00 03 00 EF 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 5D 0B 00 00 00 00 07 04 06 00 08 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 2B 00 00 00 F4 03 04 00 62 11 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A2 21 82 81 56 98 A4 C3 6B 08 A8 D5 8A B9 [08:31:31]CheckFolder [08:31:31]dirname=/storage/ofd_packets [08:31:31]CheckFolder done [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00063046 [08:31:31]NVStorageSaveData ofd_packets/00063046 [08:31:31]File name is /storage/ofd_packets/00063046 [08:31:31]Write 545 bytes [08:31:31]NVStorageSaveData done [08:31:31]OFDSenderStorePacket done [08:31:31]KKMCreateOFDPacket done [08:31:31]NVStorageSaveData kkm_last_timestamp [08:31:31]File name is /storage/kkm_last_timestamp [08:31:31]Write 4 bytes [08:31:31]NVStorageSaveData done [08:31:31]ExternCall_PrintAddStr [08:31:31]wPrintStart [08:31:31]Write to MH i2c: 01 00 00 62 06 68 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [08:31:31]RasterBufferAndPrint [08:31:31]line Счет N : (3)47356 [08:31:31]line ИНН: 02508201610067 [08:31:31]line Контрольно-Кассовый Чек [08:31:31]line ПРОДАЖА [08:31:31]line Товар: 2000036220012 [08:31:31]line Кофе Капучино XL(GABB TRADE) [08:31:31]line 1.000 * 130.00 [08:31:31]line = 130.00 [08:31:31]line НДС 12% НСП 1% [08:31:31]line > о реализуемом товаре [08:31:31]line Товар: 4780014240406 [08:31:31]line Сигареты Sovereign Blue [08:31:31]line 1.000 * 134.00 [08:31:31]line = 134.00 [08:31:31]line НДС 12% НСП 1% [08:31:31]line > о реализуемом товаре [08:31:31]line Товар: 46226617 [08:31:31]line Mentos ПВ Нежная Мята 6*100*2г [08:31:31]line 1.000 * 10.00 [08:31:31]line = 10.00 [08:31:31]line НДС 12% НСП 1% [08:31:31]line > о реализуемом товаре [08:31:31]line ИТОГО: 274.00 [08:31:31]line НСП 1% : 2.43 [08:31:31]line НДС 12% : 29.09 [08:31:31]line Наличными: 274.00 [08:31:31]line Безнал.: 0.00 [08:31:31]line Место: АЗС № 86 "Партнер Нефть" [08:31:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:31:31]line СНО: Общий режим [08:31:31]line Чек 43 21.10.2024 08:31 [08:31:31]line Смена: 544 ФФД: 1.0 [08:31:31]line ЗНМ: 0300000154 [08:31:31]line РНМ: 0000000000091619 [08:31:31]line Версия ККМ: 001 [08:31:31]line ФМ: 0000000000874676 [08:31:31]line ФД: 63046 [08:31:31]line ФПД: 178264807134872 [08:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083130&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63046&fm=178264807134872&tin=02508201610067®Number=0000000000091619&sum=27400 [08:31:31]OFD Sender: Processing packet 63046 [packets to send 232, broken 231] [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00063046 [08:31:31]OFD Sender: To server: pG, [08:31:31]CommunicateWithHost lk.salyk.kg:30040 [08:31:31]ConnectInit lk.salyk.kg [08:31:31]Connected sock=10 [08:31: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 03 02 00 00 D1 44 FB 01 9B 86 5A 03 01 00 03 00 EF 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 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 5D 0B 00 00 00 00 07 04 06 00 08 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 2B 00 00 00 F4 03 04 00 62 11 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 line 0 [08:31:31]30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F6 00 00 35 04 06 00 A2 21 written 0, free lines is 4095 [08:31:31]82 81 56 98 A4 C3 6B 08 A8 D5 8A B9 [08:31: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 81 47 47 00 1D 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F6 00 00 F4 03 04 00 60 BB 15 67 B6 04 01 00 00 69 A9 42 17 46 1E 22 B3 [08:31:32]CommunicateWithHost err = 0 [08:31:32]CheckOFDResponse [08:31:32]1017 (14) - 77093643461234 [08:31:32]1041 (16) - 0000000000874676 [08:31:32]1040 (4) - 63046 [08:31:32]1012 (4) - 21.10.2024 02:24 [08:31:32]1206 (1) - 0 [08:31:32]OFD Sender: Remove packet 63046 [08:31:32]ProducePacketName [08:31:32]name=ofd_packets/00063046 [08:31:32]NVStorageDeleteData [08:31:32]Write to MH i2c: 01 00 00 98 06 9E [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 5F 0C 10 [08:31:32]RasterBufferAndPrint [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]written 0, free lines is 3173 [08:31:32]MH_Cut [08:31:32]Write to MH i2c: D1 01 00 9F 06 01 77 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 9F 06 00 76 [08:31:32]Write to MH i2c: 01 00 00 A0 06 A6 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]OFD Sender: No OFD packet to send [08:31:33]*** Cut start [08:31:33]*** Partial cut [08:31:33]*** CUTSNS_PIN = 1 [08:31:33]*** CUTSNS_PIN = 0 [08:31:33]*** Brake cut motor [08:31:33]Read from MH i2c: 01 [08:31:33]MH_I2C_Read... [08:31:33]*** Stop cut motor [08:31:33]*** Cut end [08:31:33]Read from MH i2c: 01 07 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 FF 0F BB [08:31:33]process_action close_receipt done [08:31:33]requested_data is exist [08:31:33]produce_requested_data [08:31:33]requested_item fm.sn is exist - process it [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 11 00 00 [08:31:33]Write to MH i2c: E2 08 00 A1 06 80 11 00 00 00 00 00 00 21 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 A1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7A [08:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:31:34]wFMCommunicate OK [08:31:34]requested_item fd.num is exist - process it [08:31:34]SAM_PROTO_GetFieldsCounters [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 13 00 00 [08:31:34]Write to MH i2c: E2 08 00 A2 06 80 13 00 00 00 00 00 00 24 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 62 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 62 00 A2 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 46 F6 00 00 0E 04 04 00 20 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 2B [08:31: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 46 F6 00 00 0E 04 04 00 20 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 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetFieldsCounters done [08:31:34]requested_item shift.num is exist - process it [08:31:34]requested_item shift.opened is exist - process it [08:31:34]req_shift_opened [08:31:34]FM_GetShiftState [08:31:34]SAM_PROTO_GetShiftState [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 13 01 00 [08:31:34]Write to MH i2c: E2 08 00 A3 06 80 13 01 00 00 00 00 00 26 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 A3 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 86 [08:31:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetShiftState done [08:31:34]FM_GetShiftState done [08:31:34]req_shift_opened done [08:31:34]requested_item shift.open_date is exist - process it [08:31:34]req_shift_open_date [08:31:34]req_shift_open_date done [08:31:34]produce_requested_data done [08:31:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63046,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:31:34]process_action_free close_receipt [08:31:34]json_value_free [08:31:34]json_value_free done [08:31:34]process_json_proto returns [08:31:34]Send response to host [08:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63046,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:31:34]free response buf [08:31:34]execute_script done [08:31:34]execute_script returns [08:31:34]free content buf [08:31:34]Sock 7.Close socket [08:31:34]Sock 7.Thread stoped [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:47]accept exits with 9 [08:46:47]New connection [08:46:47]New thread 3067198820 created [08:46:47]Thread 3067055460 joined [08:46:47]Waiting for new connection... [08:46:47] Sock 9.Parse request [08:46:47]Sock 9.Check first char [08:46:47]Sock 9.First char is OK [08:46:47]request: POST /json_proto HTTP/1.0 [08:46:47]Method: POST [08:46:47]URL: /json_proto [08:46:47]Method is POST - this is cgi request [08:46:47]url: /json_proto [08:46:47]query_string will be loaded in cgi processing [08:46:47]execute_cgi json_proto POST (null) [08:46:47]execute_cgi path=json_proto method=POST [08:46:47]POST find Content-Length [08:46:47]Host: 172.17.42.132:8080 [08:46:47]Content-Length: 619 [08:46:47]Content-Type: application/json [08:46:47] [08:46:47]POST finish read [08:46:47]Found Content-Length = 619 [08:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47357", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:47]execute_script... [08:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47357", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:47]POST & json_proto [08:46:47]process_json_proto [08:46:47]json parsed OK: [08:46:47]protocol is kg_v1.0 [08:46:47]action value=close_receipt [08:46:47]process_action close_receipt [08:46:47]cmd_close_receipt [08:46:47]MH_GetDate [08:46:47]Write to MH i2c: F0 00 00 A4 06 99 [08:46:47]Write i2c OK [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: F0 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: F0 09 00 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: F0 09 00 A4 06 00 F8 14 16 67 4C DF 56 66 12 [08:46:47]GetLastDocTimeStamp 1729499490 [08:46:47]current date 1729500408 [08:46:47]FM_GetShiftState [08:46:47]SAM_PROTO_GetShiftState [08:46:47]wFMCommunicate request_size=4 [08:46:47]MH_SAM_APDU [08:46:47]CAPDU: 80 13 01 00 [08:46:47]Write to MH i2c: E2 08 00 A5 06 80 13 01 00 00 00 00 00 28 [08:46:47]Write i2c OK [08:46:47]MH_I2C_Read... [08:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:47]Read from MH i2c: E2 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 A5 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 88 [08:46:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:46:47]wFMCommunicate OK [08:46:47]SAM_PROTO_GetShiftState done [08:46:47]FM_GetShiftState done [08:46:47]opened in 1729469755 [08:46:47]opened+sec_in_day 1729556155 [08:46:47]quantity*price = 40500 [08:46:47]sum+1 = 40501 [08:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 44 21.10.2024 08:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63047 ФПД: 234879367903223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084649&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63047&fm=234879367903223&tin=02508201610067®Number=0000000000091619&sum=40500 0 [08:46:48]StoreToDocumentArchive [08:46:48]shift 544 fd 63047 [08:46:48]save to /storage/0544/doc_00063047 [08:46:48]save last doc name /storage/0544/doc_00063047 to /storage/kkm_last_doc_name [08:46:48]save OK [08:46:48]Clear old archive folders... [08:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:46:48]tlvbuf is 0182E8F0 [08:46:48]SAM_PROTO_ClearQueue [08:46:48]wFMCommunicate request_size=4 [08:46:48]MH_SAM_APDU [08:46:48]CAPDU: 80 09 00 00 [08:46:48]Write to MH i2c: E2 08 00 B2 06 80 09 00 00 00 00 00 00 2A [08:46:48]Write i2c OK [08:46:48]MH_I2C_Read... [08:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:48]Read from MH i2c: E2 [08:46:48]MH_I2C_Read... [08:46:48]Read from MH i2c: E2 03 00 [08:46:48]MH_I2C_Read... [08:46:48]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [08:46:48]RAPDU: 90 00 [08:46:48]wFMCommunicate OK [08:46:48]SAM_PROTO_ClearQueue done [08:46:48]KKMCreateOFDPacket [08:46:48]OFDProtocolAddRootSTLVToBuf [08:46:48]FM_MakeSignedData [08:46:48]FM_MakeSignedData [08:46:48]SAM_PROTO_SignData [08:46:48]wFMCommunicate request_size=4 [08:46:48]MH_SAM_APDU [08:46:48]CAPDU: 80 0D 01 02 [08:46:48]Write to MH i2c: E2 08 00 B3 06 80 0D 01 02 00 00 00 00 32 [08:46:48]Write i2c OK [08:46:48]MH_I2C_Read... [08:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:49]Read from MH i2c: E2 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [08:46:49]RAPDU: 90 00 [08:46:49]wFMCommunicate OK [08:46:49]wFMCommunicate request_size=255 [08:46:49]MH_SAM_APDU [08:46:49]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F9 14 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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:46:49]Write to MH i2c: E2 02 01 B4 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F9 14 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 06 [08:46:49]Write i2c OK [08:46:49]MH_I2C_Read... [08:46:49]OFD Sender: No OFD packet to send [08:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:49]Read from MH i2c: E2 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [08:46:49]RAPDU: 90 00 [08:46:49]wFMCommunicate OK [08:46:49]wFMCommunicate request_size=39 [08:46:49]MH_SAM_APDU [08:46:49]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 47 F6 00 00 35 04 06 00 D5 9F 1D 49 F7 F7 [08:46:49]Write to MH i2c: E2 2A 00 B5 06 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 47 F6 00 00 35 04 06 00 D5 9F 1D 49 F7 F7 00 00 FB [08:46:49]Write i2c OK [08:46:49]MH_I2C_Read... [08:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:49]Read from MH i2c: E2 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 03 00 B5 06 00 90 00 2F [08:46:49]RAPDU: 90 00 [08:46:49]wFMCommunicate OK [08:46:49]wFMCommunicate request_size=4 [08:46:49]MH_SAM_APDU [08:46:49]CAPDU: 80 0D 03 02 [08:46:49]Write to MH i2c: E2 08 00 B6 06 80 0D 03 02 00 00 00 00 37 [08:46:49]Write i2c OK [08:46:49]MH_I2C_Read... [08:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:49]Read from MH i2c: E2 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 0B 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 0B 00 B6 06 00 4C DA F2 E7 94 57 D8 E4 90 00 DE [08:46:49]RAPDU: 4C DA F2 E7 94 57 D8 E4 90 00 [08:46:49]wFMCommunicate OK [08:46:49]SAM_PROTO_SignData done [08:46:49]FM_MakeSignedData done [08:46:49]CreateOFDProtocolMessage [08:46:49]wFMCommunicate request_size=4 [08:46:49]MH_SAM_APDU [08:46:49]CAPDU: 80 11 00 00 [08:46:49]Write to MH i2c: E2 08 00 B7 06 80 11 00 00 00 00 00 00 37 [08:46:49]Write i2c OK [08:46:49]MH_I2C_Read... [08:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:49]Read from MH i2c: E2 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 17 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: E2 17 00 B7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 90 [08:46: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:46:49]wFMCommunicate OK [08:46:49]CreateOFDProtocolMessage done [08:46:49]OFDSenderStorePacket 63047 [08:46:49]StoreOFDPacket docnum=63047 [08:46: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 2C 01 00 00 31 09 24 01 DF 53 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F9 14 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 9F 1D 49 F7 F7 4C DA F2 E7 94 57 D8 E4 [08:46:49]CheckFolder [08:46:49]dirname=/storage/ofd_packets [08:46:49]CheckFolder done [08:46:49]ProducePacketName [08:46:49]name=ofd_packets/00063047 [08:46:49]NVStorageSaveData ofd_packets/00063047 [08:46:49]File name is /storage/ofd_packets/00063047 [08:46:49]Write 330 bytes [08:46:49]NVStorageSaveData done [08:46:49]OFDSenderStorePacket done [08:46:49]KKMCreateOFDPacket done [08:46:49]NVStorageSaveData kkm_last_timestamp [08:46:49]File name is /storage/kkm_last_timestamp [08:46:49]Write 4 bytes [08:46:49]NVStorageSaveData done [08:46:49]ExternCall_PrintAddStr [08:46:49]wPrintStart [08:46:49]Write to MH i2c: 01 00 00 B8 06 BE [08:46:49]Write i2c OK [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: 01 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: 01 07 00 [08:46:49]MH_I2C_Read... [08:46:49]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 FF 0F D3 [08:46:49]RasterBufferAndPrint [08:46:49]line Счет N : (3)47357 [08:46:49]line ИНН: 02508201610067 [08:46:49]line Контрольно-Кассовый Чек [08:46:49]line ПРОДАЖА [08:46:49]line Товар: 4650063110756 [08:46:49]line Масло Gazpromneft Super 10w40 1л [08:46:49]line 1.000 * 405.00 [08:46:49]line = 405.00 [08:46:49]line НДС 12% НСП 1% [08:46:49]line > о реализуемом товаре [08:46:49]line ИТОГО: 405.00 [08:46:49]line НСП 1% : 3.58 [08:46:49]line НДС 12% : 43.01 [08:46:49]line Наличными: 405.00 [08:46:49]line Безнал.: 0.00 [08:46:49]line Место: АЗС № 86 "Партнер Нефть" [08:46:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:46:49]line СНО: Общий режим [08:46:49]line Чек 44 21.10.2024 08:46 [08:46:49]line Смена: 544 ФФД: 1.0 [08:46:49]line ЗНМ: 0300000154 [08:46:49]line РНМ: 0000000000091619 [08:46:49]line Версия ККМ: 001 [08:46:49]line ФМ: 0000000000874676 [08:46:49]line ФД: 63047 [08:46:49]line ФПД: 234879367903223 [08:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084649&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63047&fm=234879367903223&tin=02508201610067®Number=0000000000091619&sum=40500 [08:46:49]line 0 [08:46:49]OFD Sender: Processing packet 63047 [packets to send 232, broken 231] [08:46:49]ProducePacketName [08:46:49]name=ofd_packets/00063047 [08:46:49]OFD Sender: To server: pG, [08:46:49]CommunicateWithHost lk.salyk.kg:30040 [08:46:49]ConnectInit lk.salyk.kg [08:46:49]written 0, free lines is 4095 [08:46:49]Connected sock=7 [08:46: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 2C 01 00 00 31 09 24 01 DF 53 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 F9 14 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 9F 1D 49 F7 F7 4C DA F2 E7 94 57 D8 E4 [08:46:50]Write to MH i2c: 01 00 00 E1 06 E7 [08:46:50]Write i2c OK [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: 01 [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: 01 07 00 [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 0B 0D 06 [08:46:50]RasterBufferAndPrint [08:46:50]line [08:46:50]line [08:46:50]line [08:46:50]line [08:46:50]line [08:46:50]written 0, free lines is 3345 [08:46:50]MH_Cut [08:46:50]Write to MH i2c: D1 01 00 E8 06 01 C0 [08:46:50]Write i2c OK [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: D1 [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: D1 01 00 [08:46:50]MH_I2C_Read... [08:46:50]Read from MH i2c: D1 01 00 E8 06 00 BF [08:46:50]Write to MH i2c: 01 00 00 E9 06 EF [08:46:50]Write i2c OK [08:46:50]MH_I2C_Read... [08:46: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 B0 37 47 00 DC D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F6 00 00 F4 03 04 00 F6 BE 15 67 B6 04 01 00 00 E8 DF 91 D1 2D B0 B6 B5 [08:46:50]CommunicateWithHost err = 0 [08:46:50]CheckOFDResponse [08:46:50]1017 (14) - 77093643461234 [08:46:50]1041 (16) - 0000000000874676 [08:46:50]1040 (4) - 63047 [08:46:50]1012 (4) - 21.10.2024 02:39 [08:46:50]1206 (1) - 0 [08:46:50]OFD Sender: Remove packet 63047 [08:46:50]ProducePacketName [08:46:50]name=ofd_packets/00063047 [08:46:50]NVStorageDeleteData [08:46:50]OFD Sender: No OFD packet to send [08:46:50]*** Cut start [08:46:50]*** Partial cut [08:46:50]*** CUTSNS_PIN = 1 [08:46:50]*** CUTSNS_PIN = 0 [08:46:51]*** Brake cut motor [08:46:51]Read from MH i2c: 01 [08:46:51]MH_I2C_Read... [08:46:51]*** Stop cut motor [08:46:51]*** Cut end [08:46:51]Read from MH i2c: 01 07 00 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [08:46:51]process_action close_receipt done [08:46:51]requested_data is exist [08:46:51]produce_requested_data [08:46:51]requested_item fm.sn is exist - process it [08:46:51]wFMCommunicate request_size=4 [08:46:51]MH_SAM_APDU [08:46:51]CAPDU: 80 11 00 00 [08:46:51]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [08:46:51]Write i2c OK [08:46:51]MH_I2C_Read... [08:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:51]Read from MH i2c: E2 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 17 00 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C3 [08:46: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:46:51]wFMCommunicate OK [08:46:51]requested_item fd.num is exist - process it [08:46:51]SAM_PROTO_GetFieldsCounters [08:46:51]wFMCommunicate request_size=4 [08:46:51]MH_SAM_APDU [08:46:51]CAPDU: 80 13 00 00 [08:46:51]Write to MH i2c: E2 08 00 EB 06 80 13 00 00 00 00 00 00 6D [08:46:51]Write i2c OK [08:46:51]MH_I2C_Read... [08:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:51]Read from MH i2c: E2 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 62 00 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 62 00 EB 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 47 F6 00 00 0E 04 04 00 20 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 78 [08:46: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 47 F6 00 00 0E 04 04 00 20 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 [08:46:51]wFMCommunicate OK [08:46:51]SAM_PROTO_GetFieldsCounters done [08:46:51]requested_item shift.num is exist - process it [08:46:51]requested_item shift.opened is exist - process it [08:46:51]req_shift_opened [08:46:51]FM_GetShiftState [08:46:51]SAM_PROTO_GetShiftState [08:46:51]wFMCommunicate request_size=4 [08:46:51]MH_SAM_APDU [08:46:51]CAPDU: 80 13 01 00 [08:46:51]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [08:46:51]Write i2c OK [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 [08:46:51]MH_I2C_Read... [08:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:51]Read from MH i2c: E2 0E 00 [08:46:51]MH_I2C_Read... [08:46:51]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CF [08:46:51]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [08:46:51]wFMCommunicate OK [08:46:51]SAM_PROTO_GetShiftState done [08:46:51]FM_GetShiftState done [08:46:51]req_shift_opened done [08:46:51]requested_item shift.open_date is exist - process it [08:46:51]req_shift_open_date [08:46:51]req_shift_open_date done [08:46:51]produce_requested_data done [08:46:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63047,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [08:46:51]process_action_free close_receipt [08:46:51]json_value_free [08:46:51]json_value_free done [08:46:51]process_json_proto returns [08:46:51]Send response to host [08:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63047,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [08:46:51]free response buf [08:46:51]execute_script done [08:46:51]execute_script returns [08:46:51]free content buf [08:46:51]Sock 9.Close socket [08:46:51]Sock 9.Thread stoped [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]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:29]accept exits with 10 [09:03:29]New connection [09:03:29]New thread 3067055460 created [09:03:29]Thread 3067198820 joined [09:03:29]Waiting for new connection... [09:03:29] Sock 10.Parse request [09:03:29]Sock 10.Check first char [09:03:29]Sock 10.First char is OK [09:03:29]request: POST /json_proto HTTP/1.0 [09:03:29]Method: POST [09:03:29]URL: /json_proto [09:03:29]Method is POST - this is cgi request [09:03:29]url: /json_proto [09:03:29]query_string will be loaded in cgi processing [09:03:29]execute_cgi json_proto POST (null) [09:03:29]execute_cgi path=json_proto method=POST [09:03:29]POST find Content-Length [09:03:29]Host: 172.17.42.132:8080 [09:03:29]Content-Length: 1019 [09:03:29]Content-Type: application/json [09:03:29] [09:03:29]POST finish read [09:03:29]Found Content-Length = 1019 [09:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47358", "tax_sys" : 0, "items" : [ { "code": "4870240014565", "name": "\u041D\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u043C\u044B\u0435 \u0442\u0430\u0431\u0430\u0447\u043D\u044B\u0435 \u043F\u0430\u043B\u043E\u0447\u043A\u0438 IQOS TEREA ", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]execute_script... [09:03: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)47358", "tax_sys" : 0, "items" : [ { "code": "4870240014565", "name": "\u041D\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u043C\u044B\u0435 \u0442\u0430\u0431\u0430\u0447\u043D\u044B\u0435 \u043F\u0430\u043B\u043E\u0447\u043A\u0438 IQOS TEREA ", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]POST & json_proto [09:03:29]process_json_proto [09:03:29]json parsed OK: [09:03:29]protocol is kg_v1.0 [09:03:29]action value=close_receipt [09:03:29]process_action close_receipt [09:03:29]cmd_close_receipt [09:03:29]MH_GetDate [09:03:29]Write to MH i2c: F0 00 00 ED 06 E2 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 ED 06 00 E3 18 16 67 4C DF 56 66 4A [09:03:29]GetLastDocTimeStamp 1729500409 [09:03:29]current date 1729501411 [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 0E 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D1 [09:03:30]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:03:30]wFMCommunicate OK [09:03:30]SAM_PROTO_GetShiftState done [09:03:30]FM_GetShiftState done [09:03:30]opened in 1729469755 [09:03:30]opened+sec_in_day 1729556155 [09:03:30]quantity*price = 15100 [09:03:30]sum+1 = 15101 [09:03:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.22 НДС 12% : 26.54 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 45 21.10.2024 09:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63048 ФПД: 235131987137820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090331&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63048&fm=235131987137820&tin=02508201610067®Number=0000000000091619&sum=25000 0 [09:03:31]StoreToDocumentArchive [09:03:31]shift 544 fd 63048 [09:03:31]save to /storage/0544/doc_00063048 [09:03:31]save last doc name /storage/0544/doc_00063048 to /storage/kkm_last_doc_name [09:03:31]save OK [09:03:31]Clear old archive folders... [09:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=432 [09:03:31]tlvbuf is 018BAD80 [09:03:31]SAM_PROTO_ClearQueue [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 09 00 00 [09:03:31]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_ClearQueue done [09:03:31]KKMCreateOFDPacket [09:03:31]OFDProtocolAddRootSTLVToBuf [09:03:31]FM_MakeSignedData [09:03:31]FM_MakeSignedData [09:03:31]SAM_PROTO_SignData [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 01 02 [09:03:31]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=255 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 02 02 FA 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 [09:03:31]Write to MH i2c: E2 02 01 FD 06 80 0D 02 02 FA 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 00 00 1A [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=191 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 02 02 BA 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 18 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 D9 EE 91 95 1C [09:03:31]Write to MH i2c: E2 C2 00 FE 06 80 0D 02 02 BA 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 18 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 D9 EE 91 95 1C 00 00 FC [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 03 02 [09:03:31]Write to MH i2c: E2 08 00 FF 06 80 0D 03 02 00 00 00 00 80 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 FF 06 00 4F 9E 16 56 AC 96 40 3C 90 00 98 [09:03:31]RAPDU: 4F 9E 16 56 AC 96 40 3C 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_SignData done [09:03:31]FM_MakeSignedData done [09:03:31]CreateOFDProtocolMessage [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 11 00 00 [09:03:31]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DA [09:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:03:31]wFMCommunicate OK [09:03:31]CreateOFDProtocolMessage done [09:03:31]OFDSenderStorePacket 63048 [09:03:31]StoreOFDPacket docnum=63048 [09:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 C4 01 00 00 EC 4E BC 01 26 6D 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 18 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 D9 EE 91 95 1C 4F 9E 16 56 AC 96 40 3C [09:03:31]CheckFolder [09:03:31]dirname=/storage/ofd_packets [09:03:31]CheckFolder done [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00063048 [09:03:31]NVStorageSaveData ofd_packets/00063048 [09:03:31]File name is /storage/ofd_packets/00063048 [09:03:31]Write 482 bytes [09:03:31]NVStorageSaveData done [09:03:31]OFDSenderStorePacket done [09:03:31]KKMCreateOFDPacket done [09:03:31]NVStorageSaveData kkm_last_timestamp [09:03:31]File name is /storage/kkm_last_timestamp [09:03:31]Write 4 bytes [09:03:31]NVStorageSaveData done [09:03:31]ExternCall_PrintAddStr [09:03:31]wPrintStart [09:03:31]Write to MH i2c: 01 00 00 01 07 08 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [09:03:31]RasterBufferAndPrint [09:03:31]line Счет N : (3)47358 [09:03:31]line ИНН: 02508201610067 [09:03:31]line Контрольно-Кассовый Чек [09:03:32]line ПРОДАЖА [09:03:32]line Товар: 4870240014565 [09:03:32]line Нагреваемые табачные палочки IQOS TEREA [09:03:32]line 1.000 * 151.00 [09:03:32]line = 151.00 [09:03:32]line НДС 12% НСП 1% [09:03:32]line > о реализуемом товаре [09:03:32]line Товар: 4870022003312 [09:03:32]line Gorilla эн нап манго-кокос 0,45 ж/б [09:03:32]line 1.000 * 99.00 [09:03:32]line = 99.00 [09:03:32]line НДС 12% НСП 1% [09:03:32]line > о реализуемом товаре [09:03:32]line ИТОГО: 250.00 [09:03:32]line НСП 1% : 2.22 [09:03:32]line НДС 12% : 26.54 [09:03:32]line Наличными: 250.00 [09:03:32]line Безнал.: 0.00 [09:03:32]line Место: АЗС № 86 "Партнер Нефть" [09:03:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:03:32]line СНО: Общий режим [09:03:32]line Чек 45 21.10.2024 09:03 [09:03:32]line Смена: 544 ФФД: 1.0 [09:03:32]line ЗНМ: 0300000154 [09:03:32]line РНМ: 0000000000091619 [09:03:32]line Версия ККМ: 001 [09:03:32]line ФМ: 0000000000874676 [09:03:32]line ФД: 63048 [09:03:32]line ФПД: 235131987137820 [09:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090331&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63048&fm=235131987137820&tin=02508201610067®Number=0000000000091619&sum=25000 [09:03:32]OFD Sender: Processing packet 63048 [packets to send 232, broken 231] [09:03:32]ProducePacketName [09:03:32]name=ofd_packets/00063048 [09:03:32]OFD Sender: To server: pG, [09:03:32]CommunicateWithHost lk.salyk.kg:30040 [09:03:32]ConnectInit lk.salyk.kg [09:03:32]line 0 [09:03:32]written 0, free lines is 4095 [09:03:32]Connected sock=11 [09:03: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 C4 01 00 00 EC 4E BC 01 26 6D 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 18 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 D9 EE 91 95 1C 4F 9E 16 56 AC 96 40 3C [09:03: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 CB 3D 47 00 BA 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F6 00 00 F4 03 04 00 E1 C2 15 67 B6 04 01 00 00 10 5B 46 08 5D E5 60 DD [09:03:32]CommunicateWithHost err = 0 [09:03:32]CheckOFDResponse [09:03:32]1017 (14) - 77093643461234 [09:03:32]1041 (16) - 0000000000874676 [09:03:32]1040 (4) - 63048 [09:03:32]1012 (4) - 21.10.2024 02:56 [09:03:32]1206 (1) - 0 [09:03:32]OFD Sender: Remove packet 63048 [09:03:32]ProducePacketName [09:03:32]name=ofd_packets/00063048 [09:03:32]NVStorageDeleteData [09:03:32]Write to MH i2c: 01 00 00 31 07 38 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 B6 0C 01 [09:03:32]RasterBufferAndPrint [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]written 0, free lines is 3260 [09:03:32]MH_Cut [09:03:32]Write to MH i2c: D1 01 00 38 07 01 11 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 01 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 01 00 38 07 00 10 [09:03:32]Write to MH i2c: 01 00 00 39 07 40 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:33]OFD Sender: No OFD packet to send [09:03:33]*** Cut start [09:03:33]*** Partial cut [09:03:33]*** CUTSNS_PIN = 1 [09:03:33]*** CUTSNS_PIN = 0 [09:03:33]*** Brake cut motor [09:03:34]Read from MH i2c: 01 [09:03:34]MH_I2C_Read... [09:03:34]*** Stop cut motor [09:03:34]*** Cut end [09:03:34]Read from MH i2c: 01 07 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 FF 0F 55 [09:03:34]process_action close_receipt done [09:03:34]requested_data is exist [09:03:34]produce_requested_data [09:03:34]requested_item fm.sn is exist - process it [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 11 00 00 [09:03:34]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 14 [09:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:03:34]wFMCommunicate OK [09:03:34]requested_item fd.num is exist - process it [09:03:34]SAM_PROTO_GetFieldsCounters [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 13 00 00 [09:03:34]Write to MH i2c: E2 08 00 3B 07 80 13 00 00 00 00 00 00 BE [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 62 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 62 00 3B 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 48 F6 00 00 0E 04 04 00 20 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 CD [09:03: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 48 F6 00 00 0E 04 04 00 20 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 [09:03:34]wFMCommunicate OK [09:03:34]SAM_PROTO_GetFieldsCounters done [09:03:34]requested_item shift.num is exist - process it [09:03:34]requested_item shift.opened is exist - process it [09:03:34]req_shift_opened [09:03:34]FM_GetShiftState [09:03:34]SAM_PROTO_GetShiftState [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 13 01 00 [09:03:34]Write to MH i2c: E2 08 00 3C 07 80 13 01 00 00 00 00 00 C0 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 0E 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 0E 00 3C 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 20 [09:03:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:03:34]wFMCommunicate OK [09:03:34]SAM_PROTO_GetShiftState done [09:03:34]FM_GetShiftState done [09:03:34]req_shift_opened done [09:03:34]requested_item shift.open_date is exist - process it [09:03:34]req_shift_open_date [09:03:34]req_shift_open_date done [09:03:34]produce_requested_data done [09:03:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63048,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [09:03:34]process_action_free close_receipt [09:03:34]json_value_free [09:03:34]json_value_free done [09:03:34]process_json_proto returns [09:03:34]Send response to host [09:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63048,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [09:03:34]free response buf [09:03:34]execute_script done [09:03:34]execute_script returns [09:03:34]free content buf [09:03:34]Sock 10.Close socket [09:03:34]Sock 10.Thread stoped [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18: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:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:08]accept exits with 7 [09:28:08]New connection [09:28:08]New thread 3067198820 created [09:28:08]Thread 3067055460 joined [09:28:08]Waiting for new connection... [09:28:08] Sock 7.Parse request [09:28:08]Sock 7.Check first char [09:28:08]Sock 7.First char is OK [09:28:08]request: POST /json_proto HTTP/1.0 [09:28:08]Method: POST [09:28:08]URL: /json_proto [09:28:08]Method is POST - this is cgi request [09:28:08]url: /json_proto [09:28:08]query_string will be loaded in cgi processing [09:28:08]execute_cgi json_proto POST (null) [09:28:08]execute_cgi path=json_proto method=POST [09:28:08]POST find Content-Length [09:28:08]Host: 172.17.42.132:8080 [09:28:08]Content-Length: 674 [09:28:08]Content-Type: application/json [09:28:08] [09:28:08]POST finish read [09:28:08]Found Content-Length = 674 [09:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47359", "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" ] } } [09:28:08]execute_script... [09:28: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)47359", "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" ] } } [09:28:08]POST & json_proto [09:28:08]process_json_proto [09:28:08]json parsed OK: [09:28:08]protocol is kg_v1.0 [09:28:08]action value=close_receipt [09:28:08]process_action close_receipt [09:28:08]cmd_close_receipt [09:28:08]MH_GetDate [09:28:08]Write to MH i2c: F0 00 00 3D 07 33 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: F0 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: F0 09 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: F0 09 00 3D 07 00 A9 1E 16 67 4C DF 56 66 67 [09:28:08]GetLastDocTimeStamp 1729501411 [09:28:08]current date 1729502889 [09:28:08]FM_GetShiftState [09:28:08]SAM_PROTO_GetShiftState [09:28:08]wFMCommunicate request_size=4 [09:28:08]MH_SAM_APDU [09:28:08]CAPDU: 80 13 01 00 [09:28:08]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [09:28:08]Write i2c OK [09:28:08]MH_I2C_Read... [09:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:08]Read from MH i2c: E2 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 0E 00 [09:28:08]MH_I2C_Read... [09:28:08]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 22 [09:28:08]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:28:08]wFMCommunicate OK [09:28:08]SAM_PROTO_GetShiftState done [09:28:08]FM_GetShiftState done [09:28:08]opened in 1729469755 [09:28:08]opened+sec_in_day 1729556155 [09:28:08]quantity*price = 9900 [09:28:08]sum+1 = 9901 [09:28:08]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 СНО: Общий режим Чек 46 21.10.2024 09:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63049 ФПД: 92668219411862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092809&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63049&fm=92668219411862&tin=02508201610067®Number=0000000000091619&sum=9900 0 [09:28:09]StoreToDocumentArchive [09:28:09]shift 544 fd 63049 [09:28:09]save to /storage/0544/doc_00063049 [09:28:09]save last doc name /storage/0544/doc_00063049 to /storage/kkm_last_doc_name [09:28:09]save OK [09:28:09]Clear old archive folders... [09:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:28:09]tlvbuf is 0180ACC0 [09:28:09]SAM_PROTO_ClearQueue [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 09 00 00 [09:28:09]Write to MH i2c: E2 08 00 4B 07 80 09 00 00 00 00 00 00 C4 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 03 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [09:28:09]RAPDU: 90 00 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_ClearQueue done [09:28:09]KKMCreateOFDPacket [09:28:09]OFDProtocolAddRootSTLVToBuf [09:28:09]FM_MakeSignedData [09:28:09]FM_MakeSignedData [09:28:09]SAM_PROTO_SignData [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 0D 01 02 [09:28:09]Write to MH i2c: E2 08 00 4C 07 80 0D 01 02 00 00 00 00 CC [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 03 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [09:28:09]RAPDU: 90 00 [09:28:09]wFMCommunicate OK [09:28:09]wFMCommunicate request_size=255 [09:28:09]MH_SAM_APDU [09:28:09]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 2E 00 00 00 F4 03 04 00 A9 1E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:28:09]Write to MH i2c: E2 02 01 4D 07 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 2E 00 00 00 F4 03 04 00 A9 1E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 68 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [09:28:10]RAPDU: 90 00 [09:28:10]wFMCommunicate OK [09:28:10]wFMCommunicate request_size=53 [09:28:10]MH_SAM_APDU [09:28:10]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 49 F6 00 00 35 04 06 00 54 48 00 4C CD 96 [09:28:10]Write to MH i2c: E2 38 00 4E 07 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 49 F6 00 00 35 04 06 00 54 48 00 4C CD 96 00 00 55 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [09:28:10]RAPDU: 90 00 [09:28:10]wFMCommunicate OK [09:28:10]wFMCommunicate request_size=4 [09:28:10]MH_SAM_APDU [09:28:10]CAPDU: 80 0D 03 02 [09:28:10]Write to MH i2c: E2 08 00 4F 07 80 0D 03 02 00 00 00 00 D1 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 0B 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 0B 00 4F 07 00 B0 51 4B 9E C9 2C AE 65 90 00 C4 [09:28:10]RAPDU: B0 51 4B 9E C9 2C AE 65 90 00 [09:28:10]wFMCommunicate OK [09:28:10]SAM_PROTO_SignData done [09:28:10]FM_MakeSignedData done [09:28:10]CreateOFDProtocolMessage [09:28:10]wFMCommunicate request_size=4 [09:28:10]MH_SAM_APDU [09:28:10]CAPDU: 80 11 00 00 [09:28:10]Write to MH i2c: E2 08 00 50 07 80 11 00 00 00 00 00 00 D1 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 17 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 17 00 50 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2A [09: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 [09:28:10]wFMCommunicate OK [09:28:10]CreateOFDProtocolMessage done [09:28:10]OFDSenderStorePacket 63049 [09:28:10]StoreOFDPacket docnum=63049 [09:28: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 3A 01 00 00 78 8D 32 01 B0 38 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 2E 00 00 00 F4 03 04 00 A9 1E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 54 48 00 4C CD 96 B0 51 4B 9E C9 2C AE 65 [09:28:10]CheckFolder [09:28:10]dirname=/storage/ofd_packets [09:28:10]CheckFolder done [09:28:10]ProducePacketName [09:28:10]name=ofd_packets/00063049 [09:28:10]NVStorageSaveData ofd_packets/00063049 [09:28:10]File name is /storage/ofd_packets/00063049 [09:28:10]Write 344 bytes [09:28:10]NVStorageSaveData done [09:28:10]OFDSenderStorePacket done [09:28:10]KKMCreateOFDPacket done [09:28:10]NVStorageSaveData kkm_last_timestamp [09:28:10]File name is /storage/kkm_last_timestamp [09:28:10]Write 4 bytes [09:28:10]NVStorageSaveData done [09:28:10]ExternCall_PrintAddStr [09:28:10]wPrintStart [09:28:10]Write to MH i2c: 01 00 00 51 07 58 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: 01 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: 01 07 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [09:28:10]RasterBufferAndPrint [09:28:10]line Счет N : (3)47359 [09:28:10]line ИНН: 02508201610067 [09:28:10]line Контрольно-Кассовый Чек [09:28:10]line ПРОДАЖА [09:28:10]line Товар: 4870022003312 [09:28:10]line Gorilla эн нап манго-кокос 0,45 ж/б [09:28:10]line 1.000 * 99.00 [09:28:10]line = 99.00 [09:28:10]line НДС 12% НСП 1% [09:28:10]line > о реализуемом товаре [09:28:10]line ИТОГО: 99.00 [09:28:10]line НСП 1% : 0.88 [09:28:10]line НДС 12% : 10.51 [09:28:10]line Наличными: 99.00 [09:28:10]line Безнал.: 0.00 [09:28:10]line Место: АЗС № 86 "Партнер Нефть" [09:28:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:28:10]line СНО: Общий режим [09:28:10]line Чек 46 21.10.2024 09:28 [09:28:10]line Смена: 544 ФФД: 1.0 [09:28:10]line ЗНМ: 0300000154 [09:28:10]line РНМ: 0000000000091619 [09:28:10]line Версия ККМ: 001 [09:28:10]line ФМ: 0000000000874676 [09:28:10]line ФД: 63049 [09:28:10]line ФПД: 92668219411862 [09:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092809&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63049&fm=92668219411862&tin=02508201610067®Number=0000000000091619&sum=9900 [09:28:10]line 0 [09:28:10]OFD Sender: Processing packet 63049 [packets to send 232, broken 231] [09:28:10]ProducePacketName [09:28:10]name=ofd_packets/00063049 [09:28:10]OFD Sender: To server: pG, [09:28:10]CommunicateWithHost lk.salyk.kg:30040 [09:28:10]ConnectInit lk.salyk.kg [09:28:10]written 0, free lines is 4095 [09:28:10]Connected sock=10 [09:28: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 78 8D 32 01 B0 38 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 2E 00 00 00 F4 03 04 00 A9 1E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 54 48 00 4C CD 96 B0 51 4B 9E C9 2C AE 65 [09:28:11]Write to MH i2c: 01 00 00 7A 07 81 [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 07 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 07 00 7A 07 00 00 00 00 00 FE 0C 92 [09:28:11]RasterBufferAndPrint [09:28:11]line [09:28:11]line [09:28:11]line [09:28:11]line [09:28:11]line [09:28:11]written 0, free lines is 3332 [09:28:11]MH_Cut [09:28:11]Write to MH i2c: D1 01 00 81 07 01 5A [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: D1 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: D1 01 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: D1 01 00 81 07 00 59 [09:28:11]Write to MH i2c: 01 00 00 82 07 89 [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]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 59 A9 47 00 CB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F6 00 00 F4 03 04 00 A7 C8 15 67 B6 04 01 00 00 39 CC 8A E1 68 38 75 1B [09:28:11]CommunicateWithHost err = 0 [09:28:11]CheckOFDResponse [09:28:11]1017 (14) - 77093643461234 [09:28:11]1041 (16) - 0000000000874676 [09:28:11]1040 (4) - 63049 [09:28:11]1012 (4) - 21.10.2024 03:21 [09:28:11]1206 (1) - 0 [09:28:11]OFD Sender: Remove packet 63049 [09:28:11]ProducePacketName [09:28:11]name=ofd_packets/00063049 [09:28:11]NVStorageDeleteData [09:28:11]OFD Sender: No OFD packet to send [09:28:11]*** Cut start [09:28:11]*** Partial cut [09:28:11]*** CUTSNS_PIN = 1 [09:28:11]*** CUTSNS_PIN = 0 [09:28:12]*** Brake cut motor [09:28:12]Read from MH i2c: 01 [09:28:12]MH_I2C_Read... [09:28:12]*** Stop cut motor [09:28:12]*** Cut end [09:28:12]Read from MH i2c: 01 07 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [09:28:12]process_action close_receipt done [09:28:12]requested_data is exist [09:28:12]produce_requested_data [09:28:12]requested_item fm.sn is exist - process it [09:28:12]wFMCommunicate request_size=4 [09:28:12]MH_SAM_APDU [09:28:12]CAPDU: 80 11 00 00 [09:28:12]Write to MH i2c: E2 08 00 83 07 80 11 00 00 00 00 00 00 04 [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:12]Read from MH i2c: E2 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 17 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 17 00 83 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5D [09:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:28:12]wFMCommunicate OK [09:28:12]requested_item fd.num is exist - process it [09:28:12]SAM_PROTO_GetFieldsCounters [09:28:12]wFMCommunicate request_size=4 [09:28:12]MH_SAM_APDU [09:28:12]CAPDU: 80 13 00 00 [09:28:12]Write to MH i2c: E2 08 00 84 07 80 13 00 00 00 00 00 00 07 [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:12]Read from MH i2c: E2 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 62 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 62 00 84 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 49 F6 00 00 0E 04 04 00 20 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 1A [09:28: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 49 F6 00 00 0E 04 04 00 20 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 [09:28:12]wFMCommunicate OK [09:28:12]SAM_PROTO_GetFieldsCounters done [09:28:12]requested_item shift.num is exist - process it [09:28:12]requested_item shift.opened is exist - process it [09:28:12]req_shift_opened [09:28:12]FM_GetShiftState [09:28:12]SAM_PROTO_GetShiftState [09:28:12]wFMCommunicate request_size=4 [09:28:12]MH_SAM_APDU [09:28:12]CAPDU: 80 13 01 00 [09:28:12]Write to MH i2c: E2 08 00 85 07 80 13 01 00 00 00 00 00 09 [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:12]Read from MH i2c: E2 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 0E 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: E2 0E 00 85 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 69 [09:28:12]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:28:12]wFMCommunicate OK [09:28:12]SAM_PROTO_GetShiftState done [09:28:12]FM_GetShiftState done [09:28:12]req_shift_opened done [09:28:12]requested_item shift.open_date is exist - process it [09:28:12]req_shift_open_date [09:28:12]req_shift_open_date done [09:28:12]produce_requested_data done [09:28:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63049,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [09:28:12]process_action_free close_receipt [09:28:12]json_value_free [09:28:12]json_value_free done [09:28:12]process_json_proto returns [09:28:12]Send response to host [09:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63049,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [09:28:12]free response buf [09:28:12]execute_script done [09:28:12]execute_script returns [09:28:12]free content buf [09:28:12]Sock 7.Close socket [09:28:12]Sock 7.Thread stoped [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:36]accept exits with 9 [09:39:36]New connection [09:39:36]New thread 3067055460 created [09:39:36]Thread 3067198820 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 9.Parse request [09:39:36]Sock 9.Check first char [09:39:36]Sock 9.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.42.132:8080 [09:39:36]Content-Length: 895 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 895 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47360", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]execute_script... [09:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47360", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 86 07 7C [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 86 07 00 5A 21 16 67 4C DF 56 66 64 [09:39:36]GetLastDocTimeStamp 1729502889 [09:39:36]current date 1729503578 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 87 07 80 13 01 00 00 00 00 00 0B [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 87 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 6B [09:39:36]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1729469755 [09:39:36]opened+sec_in_day 1729556155 [09:39:36]quantity*price = 12500 [09:39:36]sum+1 = 12501 [09:39:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 47 21.10.2024 09:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63050 ФПД: 140579798012603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093938&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63050&fm=140579798012603&tin=02508201610067®Number=0000000000091619&sum=25500 0 [09:39:37]StoreToDocumentArchive [09:39:37]shift 544 fd 63050 [09:39:37]save to /storage/0544/doc_00063050 [09:39:37]save last doc name /storage/0544/doc_00063050 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=390 [09:39:37]tlvbuf is 01833D60 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 94 07 80 09 00 00 00 00 00 00 0D [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 94 07 00 90 00 0F [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 95 07 80 0D 01 02 00 00 00 00 15 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 95 07 00 90 00 10 [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [09:39:37]Write to MH i2c: E2 02 01 96 07 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 70 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=149 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 5A 21 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7F DB 48 EC 52 BB [09:39:38]Write to MH i2c: E2 98 00 97 07 80 0D 02 02 90 00 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 5A 21 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7F DB 48 EC 52 BB 00 00 0F [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 03 02 [09:39:38]Write to MH i2c: E2 08 00 98 07 80 0D 03 02 00 00 00 00 1A [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 98 07 00 D7 F7 6D 7A 68 52 CF 96 90 00 EF [09:39:38]RAPDU: D7 F7 6D 7A 68 52 CF 96 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_SignData done [09:39:38]FM_MakeSignedData done [09:39:38]CreateOFDProtocolMessage [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 11 00 00 [09:39:38]Write to MH i2c: E2 08 00 99 07 80 11 00 00 00 00 00 00 1A [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 99 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [09: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 [09:39:38]wFMCommunicate OK [09:39:38]CreateOFDProtocolMessage done [09:39:38]OFDSenderStorePacket 63050 [09:39:38]StoreOFDPacket docnum=63050 [09:39: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 9A 01 00 00 16 43 92 01 39 2B 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 5A 21 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7F DB 48 EC 52 BB D7 F7 6D 7A 68 52 CF 96 [09:39:38]CheckFolder [09:39:38]dirname=/storage/ofd_packets [09:39:38]CheckFolder done [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00063050 [09:39:38]NVStorageSaveData ofd_packets/00063050 [09:39:38]File name is /storage/ofd_packets/00063050 [09:39:38]Write 440 bytes [09:39:38]NVStorageSaveData done [09:39:38]OFDSenderStorePacket done [09:39:38]KKMCreateOFDPacket done [09:39:38]NVStorageSaveData kkm_last_timestamp [09:39:38]File name is /storage/kkm_last_timestamp [09:39:38]Write 4 bytes [09:39:38]NVStorageSaveData done [09:39:38]ExternCall_PrintAddStr [09:39:38]wPrintStart [09:39:38]Write to MH i2c: 01 00 00 9A 07 A1 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 FF 0F B6 [09:39:38]RasterBufferAndPrint [09:39:38]line Счет N : (3)47360 [09:39:38]line ИНН: 02508201610067 [09:39:38]line Контрольно-Кассовый Чек [09:39:38]line ПРОДАЖА [09:39:38]line Товар: 2000036190018 [09:39:38]line Кофе Американо XL(GABB TRADE) [09:39:38]line 1.000 * 125.00 [09:39:38]line = 125.00 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line Товар: 2000036230011 [09:39:38]line Кофе Латте XL(GABB TRADE) [09:39:38]line 1.000 * 130.00 [09:39:38]line = 130.00 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line ИТОГО: 255.00 [09:39:38]line НСП 1% : 2.26 [09:39:38]line НДС 12% : 27.07 [09:39:38]line Наличными: 255.00 [09:39:38]line Безнал.: 0.00 [09:39:38]line Место: АЗС № 86 "Партнер Нефть" [09:39:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:39:38]line СНО: Общий режим [09:39:38]line Чек 47 21.10.2024 09:39 [09:39:38]line Смена: 544 ФФД: 1.0 [09:39:38]line ЗНМ: 0300000154 [09:39:38]line РНМ: 0000000000091619 [09:39:38]line Версия ККМ: 001 [09:39:38]line ФМ: 0000000000874676 [09:39:38]line ФД: 63050 [09:39:38]line ФПД: 140579798012603 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093938&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63050&fm=140579798012603&tin=02508201610067®Number=0000000000091619&sum=25500 [09:39:38]line 0 [09:39:38]OFD Sender: Processing packet 63050 [packets to send 232, broken 231] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00063050 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]written 0, free lines is 4095 [09:39:39]Connected sock=7 [09:39: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 9A 01 00 00 16 43 92 01 39 2B 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 5A 21 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7F DB 48 EC 52 BB D7 F7 6D 7A 68 52 CF 96 [09:39: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 D4 B8 47 00 21 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 58 CB 15 67 B6 04 01 00 00 48 DB FB 97 CD 7B 84 54 [09:39:39]CommunicateWithHost err = 0 [09:39:39]CheckOFDResponse [09:39:39]1017 (14) - 77093643461234 [09:39:39]1041 (16) - 0000000000874676 [09:39:39]1040 (4) - 63050 [09:39:39]1012 (4) - 21.10.2024 03:32 [09:39:39]1206 (1) - 0 [09:39:39]OFD Sender: Remove packet 63050 [09:39:39]ProducePacketName [09:39:39]name=ofd_packets/00063050 [09:39:39]NVStorageDeleteData [09:39:39]Write to MH i2c: 01 00 00 C9 07 D0 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 C9 07 00 00 00 00 00 D6 0C B9 [09:39:39]RasterBufferAndPrint [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]written 0, free lines is 3295 [09:39:39]MH_Cut [09:39:39]Write to MH i2c: D1 01 00 D0 07 01 A9 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 D0 07 00 A8 [09:39:39]Write to MH i2c: 01 00 00 D1 07 D8 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]OFD Sender: No OFD packet to send [09:39:39]*** Cut start [09:39:39]*** Partial cut [09:39:39]*** CUTSNS_PIN = 1 [09:39:40]*** CUTSNS_PIN = 0 [09:39:40]*** Brake cut motor [09:39:40]Read from MH i2c: 01 [09:39:40]MH_I2C_Read... [09:39:40]*** Stop cut motor [09:39:40]*** Cut end [09:39:40]Read from MH i2c: 01 07 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 FF 0F ED [09:39:40]process_action close_receipt done [09:39:40]requested_data is exist [09:39:40]produce_requested_data [09:39:40]requested_item fm.sn is exist - process it [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 11 00 00 [09:39:40]Write to MH i2c: E2 08 00 D2 07 80 11 00 00 00 00 00 00 53 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 D2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AC [09:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:39:40]wFMCommunicate OK [09:39:40]requested_item fd.num is exist - process it [09:39:40]SAM_PROTO_GetFieldsCounters [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 00 00 [09:39:40]Write to MH i2c: E2 08 00 D3 07 80 13 00 00 00 00 00 00 56 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 D3 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 4A F6 00 00 0E 04 04 00 20 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 6D [09:39: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 4A F6 00 00 0E 04 04 00 20 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 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 D4 07 80 13 01 00 00 00 00 00 58 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 D4 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 B8 [09:39:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63050,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63050,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 9.Close socket [09:39:40]Sock 9.Thread stoped [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:50]accept exits with 10 [09:49:50]New connection [09:49:50]New thread 3067198820 created [09:49:50]Thread 3067055460 joined [09:49:50]Waiting for new connection... [09:49:50] Sock 10.Parse request [09:49:50]Sock 10.Check first char [09:49:50]Sock 10.First char is OK [09:49:50]request: POST /json_proto HTTP/1.0 [09:49:50]Method: POST [09:49:50]URL: /json_proto [09:49:50]Method is POST - this is cgi request [09:49:50]url: /json_proto [09:49:50]query_string will be loaded in cgi processing [09:49:50]execute_cgi json_proto POST (null) [09:49:50]execute_cgi path=json_proto method=POST [09:49:50]POST find Content-Length [09:49:50]Host: 172.17.42.132:8080 [09:49:50]Content-Length: 1167 [09:49:50]Content-Type: application/json [09:49:50] [09:49:50]POST finish read [09:49:50]Found Content-Length = 1167 [09:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47361", "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 304.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:50]execute_script... [09:49: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)47361", "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 304.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:50]POST & json_proto [09:49:50]process_json_proto [09:49:50]json parsed OK: [09:49:50]protocol is kg_v1.0 [09:49:50]action value=close_receipt [09:49:50]process_action close_receipt [09:49:50]cmd_close_receipt [09:49:50]MH_GetDate [09:49:50]Write to MH i2c: F0 00 00 D5 07 CB [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 09 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 09 00 D5 07 00 C0 23 16 67 4C DF 56 66 1B [09:49:50]GetLastDocTimeStamp 1729503578 [09:49:50]current date 1729504192 [09:49:50]FM_GetShiftState [09:49:50]SAM_PROTO_GetShiftState [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 13 01 00 [09:49:50]Write to MH i2c: E2 08 00 D6 07 80 13 01 00 00 00 00 00 5A [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 D6 07 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BA [09:49:50]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_GetShiftState done [09:49:50]FM_GetShiftState done [09:49:50]opened in 1729469755 [09:49:50]opened+sec_in_day 1729556155 [09:49:50]quantity*price = 10400 [09:49:50]sum+1 = 10401 [09:49:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 304.00 НСП 1% : 2.69 НДС 12% : 32.28 Наличными: 304.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 48 21.10.2024 09:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63051 ФПД: 196503936562445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63051&fm=196503936562445&tin=02508201610067®Number=0000000000091619&sum=30400 0 [09:49:51]StoreToDocumentArchive [09:49:51]shift 544 fd 63051 [09:49:51]save to /storage/0544/doc_00063051 [09:49:51]save last doc name /storage/0544/doc_00063051 to /storage/kkm_last_doc_name [09:49:51]save OK [09:49:51]Clear old archive folders... [09:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=494 [09:49:51]tlvbuf is 01916880 [09:49:51]SAM_PROTO_ClearQueue [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 09 00 00 [09:49:51]Write to MH i2c: E2 08 00 E3 07 80 09 00 00 00 00 00 00 5C [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_ClearQueue done [09:49:52]KKMCreateOFDPacket [09:49:52]OFDProtocolAddRootSTLVToBuf [09:49:52]FM_MakeSignedData [09:49:52]FM_MakeSignedData [09:49:52]SAM_PROTO_SignData [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 01 02 [09:49:52]Write to MH i2c: E2 08 00 E4 07 80 0D 01 02 00 00 00 00 64 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=255 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 FA 03 00 EE 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 [09:49:52]Write to MH i2c: E2 02 01 E5 07 80 0D 02 02 FA 00 03 00 EE 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 00 00 C9 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=253 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 F8 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C0 23 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 B8 23 55 F5 0D [09:49:52]Write to MH i2c: E2 00 01 E6 07 80 0D 02 02 F8 00 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C0 23 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 B8 23 55 F5 0D 00 00 F3 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 03 02 [09:49:52]Write to MH i2c: E2 08 00 E7 07 80 0D 03 02 00 00 00 00 69 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0B 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0B 00 E7 07 00 C8 FA 4C 70 15 20 42 B4 90 00 13 [09:49:52]RAPDU: C8 FA 4C 70 15 20 42 B4 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_SignData done [09:49:52]FM_MakeSignedData done [09:49:52]CreateOFDProtocolMessage [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 11 00 00 [09:49:52]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C2 [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:49:53]wFMCommunicate OK [09:49:53]CreateOFDProtocolMessage done [09:49:53]OFDSenderStorePacket 63051 [09:49:53]StoreOFDPacket docnum=63051 [09:49: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 02 02 00 00 20 69 FA 01 28 B8 5A 03 01 00 03 00 EE 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C0 23 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 B8 23 55 F5 0D C8 FA 4C 70 15 20 42 B4 [09:49:53]CheckFolder [09:49:53]dirname=/storage/ofd_packets [09:49:53]CheckFolder done [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00063051 [09:49:53]NVStorageSaveData ofd_packets/00063051 [09:49:53]File name is /storage/ofd_packets/00063051 [09:49:53]Write 544 bytes [09:49:53]NVStorageSaveData done [09:49:53]OFDSenderStorePacket done [09:49:53]KKMCreateOFDPacket done [09:49:53]NVStorageSaveData kkm_last_timestamp [09:49:53]File name is /storage/kkm_last_timestamp [09:49:53]Write 4 bytes [09:49:53]NVStorageSaveData done [09:49:53]ExternCall_PrintAddStr [09:49:53]wPrintStart [09:49:53]Write to MH i2c: 01 00 00 E9 07 F0 [09:49:53]OFD Sender: Processing packet 63051 [packets to send 232, broken 231] [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00063051 [09:49:53]OFD Sender: To server: pG, [09:49:53]CommunicateWithHost lk.salyk.kg:30040 [09:49:53]ConnectInit lk.salyk.kg [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 E9 07 00 00 00 00 00 FF 0F 05 [09:49:53]RasterBufferAndPrint [09:49:53]line Счет N : (3)47361 [09:49:53]line ИНН: 02508201610067 [09:49:53]line Контрольно-Кассовый Чек [09:49:53]line ПРОДАЖА [09:49:53]line Товар: 4870202522015 [09:49:53]line Напиток Maxi Чай Грушевый 1,2л [09:49:53]line 1.000 * 104.00 [09:49:53]line = 104.00 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line Товар: 4700000160358 [09:49:53]line Вода Легенда 1л [09:49:53]line 1.000 * 50.00 [09:49:53]line = 50.00 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line Товар: 4640030091645 [09:49:53]line Сигареты ESSE Exchange M [09:49:53]line 1.000 * 150.00 [09:49:53]line = 150.00 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line ИТОГО: 304.00 [09:49:53]line НСП 1% : 2.69 [09:49:53]line НДС 12% : 32.28 [09:49:53]line Наличными: 304.00 [09:49:53]line Безнал.: 0.00 [09:49:53]line Место: АЗС № 86 "Партнер Нефть" [09:49:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:49:53]line СНО: Общий режим [09:49:53]line Чек 48 21.10.2024 09:49 [09:49:53]line Смена: 544 ФФД: 1.0 [09:49:53]line ЗНМ: 0300000154 [09:49:53]line РНМ: 0000000000091619 [09:49:53]line Версия ККМ: 001 [09:49:53]line ФМ: 0000000000874676 [09:49:53]line ФД: 63051 [09:49:53]line ФПД: 196503936562445 [09:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63051&fm=196503936562445&tin=02508201610067®Number=0000000000091619&sum=30400 [09:49:53]line 0 [09:49:53]written 0, free lines is 4095 [09:49:53]Connected sock=9 [09:49: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 02 02 00 00 20 69 FA 01 28 B8 5A 03 01 00 03 00 EE 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C0 23 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 B8 23 55 F5 0D C8 FA 4C 70 15 20 42 B4 [09:49: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 C3 AA 47 00 7E 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 4B F6 00 00 F4 03 04 00 BE CD 15 67 B6 04 01 00 00 26 EE 2D 7D F2 1D 03 51 [09:49:53]CommunicateWithHost err = 0 [09:49:53]CheckOFDResponse [09:49:53]1017 (14) - 77093643461234 [09:49:53]1041 (16) - 0000000000874676 [09:49:53]1040 (4) - 63051 [09:49:53]1012 (4) - 21.10.2024 03:42 [09:49:53]1206 (1) - 0 [09:49:53]OFD Sender: Remove packet 63051 [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00063051 [09:49:53]NVStorageDeleteData [09:49:53]Write to MH i2c: 01 00 00 1E 08 26 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 62 0C 9B [09:49:53]RasterBufferAndPrint [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]written 0, free lines is 3179 [09:49:53]MH_Cut [09:49:53]Write to MH i2c: D1 01 00 25 08 01 FF [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 25 08 00 FE [09:49:53]Write to MH i2c: 01 00 00 26 08 2E [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:54]OFD Sender: No OFD packet to send [09:49:54]*** Cut start [09:49:54]*** Partial cut [09:49:54]*** CUTSNS_PIN = 1 [09:49:54]*** CUTSNS_PIN = 0 [09:49:54]*** Brake cut motor [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]*** Stop cut motor [09:49:55]*** Cut end [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FF 0F 43 [09:49:55]process_action close_receipt done [09:49:55]requested_data is exist [09:49:55]produce_requested_data [09:49:55]requested_item fm.sn is exist - process it [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 11 00 00 [09:49:55]Write to MH i2c: E2 08 00 27 08 80 11 00 00 00 00 00 00 A9 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 27 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 02 [09:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:49:55]wFMCommunicate OK [09:49:55]requested_item fd.num is exist - process it [09:49:55]SAM_PROTO_GetFieldsCounters [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 00 00 [09:49:55]Write to MH i2c: E2 08 00 28 08 80 13 00 00 00 00 00 00 AC [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 28 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 4B F6 00 00 0E 04 04 00 20 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 C7 [09:49: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 4B F6 00 00 0E 04 04 00 20 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 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetFieldsCounters done [09:49:55]requested_item shift.num is exist - process it [09:49:55]requested_item shift.opened is exist - process it [09:49:55]req_shift_opened [09:49:55]FM_GetShiftState [09:49:55]SAM_PROTO_GetShiftState [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 01 00 [09:49:55]Write to MH i2c: E2 08 00 29 08 80 13 01 00 00 00 00 00 AE [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 29 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 0E [09:49:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetShiftState done [09:49:55]FM_GetShiftState done [09:49:55]req_shift_opened done [09:49:55]requested_item shift.open_date is exist - process it [09:49:55]req_shift_open_date [09:49:55]req_shift_open_date done [09:49:55]produce_requested_data done [09:49:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63051,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [09:49:55]process_action_free close_receipt [09:49:55]json_value_free [09:49:55]json_value_free done [09:49:55]process_json_proto returns [09:49:55]Send response to host [09:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63051,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [09:49:55]free response buf [09:49:55]execute_script done [09:49:55]execute_script returns [09:49:55]free content buf [09:49:55]Sock 10.Close socket [09:49:55]Sock 10.Thread stoped [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:02]accept exits with 7 [10:06:02]New connection [10:06:02]New thread 3067055460 created [10:06:02]Thread 3067198820 joined [10:06:02]Waiting for new connection... [10:06:02] Sock 7.Parse request [10:06:02]Sock 7.Check first char [10:06:02]Sock 7.First char is OK [10:06:02]request: POST /json_proto HTTP/1.0 [10:06:02]Method: POST [10:06:02]URL: /json_proto [10:06:02]Method is POST - this is cgi request [10:06:02]url: /json_proto [10:06:02]query_string will be loaded in cgi processing [10:06:02]execute_cgi json_proto POST (null) [10:06:02]execute_cgi path=json_proto method=POST [10:06:02]POST find Content-Length [10:06:02]Host: 172.17.42.132:8080 [10:06:02]Content-Length: 622 [10:06:02]Content-Type: application/json [10:06:02] [10:06:02]POST finish read [10:06:02]Found Content-Length = 622 [10:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47362", "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" ] } } [10:06:02]execute_script... [10:06: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)47362", "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" ] } } [10:06:02]POST & json_proto [10:06:02]process_json_proto [10:06:02]json parsed OK: [10:06:02]protocol is kg_v1.0 [10:06:02]action value=close_receipt [10:06:02]process_action close_receipt [10:06:02]cmd_close_receipt [10:06:02]MH_GetDate [10:06:02]Write to MH i2c: F0 00 00 2A 08 21 [10:06:02]Write i2c OK [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: F0 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: F0 09 00 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: F0 09 00 2A 08 00 8B 27 16 67 4C DF 56 66 40 [10:06:02]GetLastDocTimeStamp 1729504192 [10:06:02]current date 1729505163 [10:06:02]FM_GetShiftState [10:06:02]SAM_PROTO_GetShiftState [10:06:02]wFMCommunicate request_size=4 [10:06:02]MH_SAM_APDU [10:06:02]CAPDU: 80 13 01 00 [10:06:02]Write to MH i2c: E2 08 00 2B 08 80 13 01 00 00 00 00 00 B0 [10:06:02]Write i2c OK [10:06:02]MH_I2C_Read... [10:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:02]Read from MH i2c: E2 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: E2 0E 00 [10:06:02]MH_I2C_Read... [10:06:02]Read from MH i2c: E2 0E 00 2B 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 10 [10:06:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:06:02]wFMCommunicate OK [10:06:02]SAM_PROTO_GetShiftState done [10:06:02]FM_GetShiftState done [10:06:02]opened in 1729469755 [10:06:02]opened+sec_in_day 1729556155 [10:06:02]quantity*price = 14400 [10:06:02]sum+1 = 14401 [10:06:02]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 СНО: Общий режим Чек 49 21.10.2024 10:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63052 ФПД: 278847796180150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100603&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63052&fm=278847796180150&tin=02508201610067®Number=0000000000091619&sum=14400 0 [10:06:03]StoreToDocumentArchive [10:06:03]shift 544 fd 63052 [10:06:03]save to /storage/0544/doc_00063052 [10:06:03]save last doc name /storage/0544/doc_00063052 to /storage/kkm_last_doc_name [10:06:03]save OK [10:06:03]Clear old archive folders... [10:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:06:03]tlvbuf is 01908A50 [10:06:03]SAM_PROTO_ClearQueue [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 09 00 00 [10:06:03]Write to MH i2c: E2 08 00 38 08 80 09 00 00 00 00 00 00 B2 [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [10:06:03]RAPDU: 90 00 [10:06:03]wFMCommunicate OK [10:06:03]SAM_PROTO_ClearQueue done [10:06:03]KKMCreateOFDPacket [10:06:03]OFDProtocolAddRootSTLVToBuf [10:06:03]FM_MakeSignedData [10:06:03]FM_MakeSignedData [10:06:03]SAM_PROTO_SignData [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 0D 01 02 [10:06:03]Write to MH i2c: E2 08 00 39 08 80 0D 01 02 00 00 00 00 BA [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [10:06:03]RAPDU: 90 00 [10:06:03]wFMCommunicate OK [10:06:03]wFMCommunicate request_size=255 [10:06:03]MH_SAM_APDU [10:06: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 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 31 00 00 00 F4 03 04 00 8B 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [10:06:03]Write to MH i2c: E2 02 01 3A 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 31 00 00 00 F4 03 04 00 8B 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 42 [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [10:06:03]RAPDU: 90 00 [10:06:03]wFMCommunicate OK [10:06:03]wFMCommunicate request_size=34 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4C F6 00 00 35 04 06 00 FD 9C 4F D6 74 B6 [10:06:03]Write to MH i2c: E2 25 00 3B 08 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4C F6 00 00 35 04 06 00 FD 9C 4F D6 74 B6 00 00 AE [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [10:06:03]RAPDU: 90 00 [10:06:03]wFMCommunicate OK [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 0D 03 02 [10:06:03]Write to MH i2c: E2 08 00 3C 08 80 0D 03 02 00 00 00 00 BF [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0B 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0B 00 3C 08 00 F8 9F DB D0 32 98 7D 67 90 00 B0 [10:06:03]RAPDU: F8 9F DB D0 32 98 7D 67 90 00 [10:06:03]wFMCommunicate OK [10:06:03]SAM_PROTO_SignData done [10:06:03]FM_MakeSignedData done [10:06:03]CreateOFDProtocolMessage [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 11 00 00 [10:06:03]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 18 [10:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:06:04]wFMCommunicate OK [10:06:04]CreateOFDProtocolMessage done [10:06:04]OFDSenderStorePacket 63052 [10:06:04]StoreOFDPacket docnum=63052 [10:06: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 79 2C 1F 01 FF 2B 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 31 00 00 00 F4 03 04 00 8B 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 FD 9C 4F D6 74 B6 F8 9F DB D0 32 98 7D 67 [10:06:04]CheckFolder [10:06:04]dirname=/storage/ofd_packets [10:06:04]CheckFolder done [10:06:04]ProducePacketName [10:06:04]name=ofd_packets/00063052 [10:06:04]NVStorageSaveData ofd_packets/00063052 [10:06:04]File name is /storage/ofd_packets/00063052 [10:06:04]Write 325 bytes [10:06:04]NVStorageSaveData done [10:06:04]OFDSenderStorePacket done [10:06:04]KKMCreateOFDPacket done [10:06:04]NVStorageSaveData kkm_last_timestamp [10:06:04]File name is /storage/kkm_last_timestamp [10:06:04]Write 4 bytes [10:06:04]NVStorageSaveData done [10:06:04]ExternCall_PrintAddStr [10:06:04]wPrintStart [10:06:04]Write to MH i2c: 01 00 00 3E 08 46 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 FF 0F 5B [10:06:04]RasterBufferAndPrint [10:06:04]line Счет N : (3)47362 [10:06:04]line ИНН: 02508201610067 [10:06:04]line Контрольно-Кассовый Чек [10:06:04]line ПРОДАЖА [10:06:04]line Товар: 48743587 [10:06:04]line Сигареты Winston XStyle Silver [10:06:04]line 1.000 * 144.00 [10:06:04]line = 144.00 [10:06:04]line НДС 12% НСП 1% [10:06:04]line > о реализуемом товаре [10:06:04]line ИТОГО: 144.00 [10:06:04]line НСП 1% : 1.27 [10:06:04]line НДС 12% : 15.29 [10:06:04]line Наличными: 144.00 [10:06:04]line Безнал.: 0.00 [10:06:04]line Место: АЗС № 86 "Партнер Нефть" [10:06:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:06:04]line СНО: Общий режим [10:06:04]line Чек 49 21.10.2024 10:06 [10:06:04]line Смена: 544 ФФД: 1.0 [10:06:04]line ЗНМ: 0300000154 [10:06:04]line РНМ: 0000000000091619 [10:06:04]line Версия ККМ: 001 [10:06:04]line ФМ: 0000000000874676 [10:06:04]line ФД: 63052 [10:06:04]line ФПД: 278847796180150 [10:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100603&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63052&fm=278847796180150&tin=02508201610067®Number=0000000000091619&sum=14400 [10:06:04]OFD Sender: Processing packet 63052 [packets to send 232, broken 231] [10:06:04]ProducePacketName [10:06:04]name=ofd_packets/00063052 [10:06:04]OFD Sender: To server: pG, [10:06:04]CommunicateWithHost lk.salyk.kg:30040 [10:06:04]ConnectInit lk.salyk.kg [10:06:04]line 0 [10:06:04]written 0, free lines is 4095 [10:06:04]Connected sock=10 [10:06: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 79 2C 1F 01 FF 2B 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 31 00 00 00 F4 03 04 00 8B 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 FD 9C 4F D6 74 B6 F8 9F DB D0 32 98 7D 67 [10:06:04]Write to MH i2c: 01 00 00 67 08 6F [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 F5 0C 77 [10:06:04]RasterBufferAndPrint [10:06:04]line [10:06:04]line [10:06:04]line [10:06:04]line [10:06:04]line [10:06:04]written 0, free lines is 3324 [10:06:04]MH_Cut [10:06:04]Write to MH i2c: D1 01 00 6E 08 01 48 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: D1 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: D1 01 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: D1 01 00 6E 08 00 47 [10:06:04]Write to MH i2c: 01 00 00 6F 08 77 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06: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 63 2E 47 00 D7 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 4C F6 00 00 F4 03 04 00 89 D1 15 67 B6 04 01 00 00 C8 16 95 C5 17 2F A1 F9 [10:06:04]CommunicateWithHost err = 0 [10:06:04]CheckOFDResponse [10:06:04]1017 (14) - 77093643461234 [10:06:04]1041 (16) - 0000000000874676 [10:06:04]1040 (4) - 63052 [10:06:04]1012 (4) - 21.10.2024 03:59 [10:06:04]1206 (1) - 0 [10:06:04]OFD Sender: Remove packet 63052 [10:06:04]ProducePacketName [10:06:04]name=ofd_packets/00063052 [10:06:04]NVStorageDeleteData [10:06:05]OFD Sender: No OFD packet to send [10:06:05]*** Cut start [10:06:05]*** Partial cut [10:06:05]*** CUTSNS_PIN = 1 [10:06:05]*** CUTSNS_PIN = 0 [10:06:05]*** Brake cut motor [10:06:06]Read from MH i2c: 01 [10:06:06]MH_I2C_Read... [10:06:06]*** Stop cut motor [10:06:06]*** Cut end [10:06:06]Read from MH i2c: 01 07 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 FF 0F 8C [10:06:06]process_action close_receipt done [10:06:06]requested_data is exist [10:06:06]produce_requested_data [10:06:06]requested_item fm.sn is exist - process it [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 11 00 00 [10:06:06]Write to MH i2c: E2 08 00 70 08 80 11 00 00 00 00 00 00 F2 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:06]Read from MH i2c: E2 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 17 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 17 00 70 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [10:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:06:06]wFMCommunicate OK [10:06:06]requested_item fd.num is exist - process it [10:06:06]SAM_PROTO_GetFieldsCounters [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 13 00 00 [10:06:06]Write to MH i2c: E2 08 00 71 08 80 13 00 00 00 00 00 00 F5 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:06]Read from MH i2c: E2 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 62 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 62 00 71 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 4C F6 00 00 0E 04 04 00 20 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 14 [10:06: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 4C F6 00 00 0E 04 04 00 20 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 [10:06:06]wFMCommunicate OK [10:06:06]SAM_PROTO_GetFieldsCounters done [10:06:06]requested_item shift.num is exist - process it [10:06:06]requested_item shift.opened is exist - process it [10:06:06]req_shift_opened [10:06:06]FM_GetShiftState [10:06:06]SAM_PROTO_GetShiftState [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 13 01 00 [10:06:06]Write to MH i2c: E2 08 00 72 08 80 13 01 00 00 00 00 00 F7 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:06]Read from MH i2c: E2 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 0E 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 0E 00 72 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 57 [10:06:06]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:06:06]wFMCommunicate OK [10:06:06]SAM_PROTO_GetShiftState done [10:06:06]FM_GetShiftState done [10:06:06]req_shift_opened done [10:06:06]requested_item shift.open_date is exist - process it [10:06:06]req_shift_open_date [10:06:06]req_shift_open_date done [10:06:06]produce_requested_data done [10:06:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63052,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:06:06]process_action_free close_receipt [10:06:06]json_value_free [10:06:06]json_value_free done [10:06:06]process_json_proto returns [10:06:06]Send response to host [10:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63052,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:06:06]free response buf [10:06:06]execute_script done [10:06:06]execute_script returns [10:06:06]free content buf [10:06:06]Sock 7.Close socket [10:06:06]Sock 7.Thread stoped [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]accept exits with 9 [10:06:25]New connection [10:06:25]New thread 3067198820 created [10:06:25]Thread 3067055460 joined [10:06:25]Waiting for new connection... [10:06:25] Sock 9.Parse request [10:06:25]Sock 9.Check first char [10:06:25]Sock 9.First char is OK [10:06:25]request: POST /json_proto HTTP/1.0 [10:06:25]Method: POST [10:06:25]URL: /json_proto [10:06:25]Method is POST - this is cgi request [10:06:25]url: /json_proto [10:06:25]query_string will be loaded in cgi processing [10:06:25]execute_cgi json_proto POST (null) [10:06:25]execute_cgi path=json_proto method=POST [10:06:25]POST find Content-Length [10:06:25]Host: 172.17.42.132:8080 [10:06:25]Content-Length: 619 [10:06:25]Content-Type: application/json [10:06:25] [10:06:25]POST finish read [10:06:25]Found Content-Length = 619 [10:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47363", "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" ] } } [10:06:25]execute_script... [10:06: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)47363", "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" ] } } [10:06:25]POST & json_proto [10:06:25]process_json_proto [10:06:25]json parsed OK: [10:06:25]protocol is kg_v1.0 [10:06:25]action value=close_receipt [10:06:25]process_action close_receipt [10:06:25]cmd_close_receipt [10:06:25]MH_GetDate [10:06:25]Write to MH i2c: F0 00 00 73 08 6A [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 09 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 09 00 73 08 00 A2 27 16 67 4C DF 56 66 A0 [10:06:25]GetLastDocTimeStamp 1729505163 [10:06:25]current date 1729505186 [10:06:25]FM_GetShiftState [10:06:25]SAM_PROTO_GetShiftState [10:06:25]wFMCommunicate request_size=4 [10:06:25]MH_SAM_APDU [10:06:25]CAPDU: 80 13 01 00 [10:06:25]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:25]Read from MH i2c: E2 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 59 [10:06:25]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:06:25]wFMCommunicate OK [10:06:25]SAM_PROTO_GetShiftState done [10:06:25]FM_GetShiftState done [10:06:25]opened in 1729469755 [10:06:25]opened+sec_in_day 1729556155 [10:06:25]quantity*price = 13900 [10:06:25]sum+1 = 13901 [10:06:25]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 СНО: Общий режим Чек 50 21.10.2024 10:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63053 ФПД: 240228198445898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100626&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63053&fm=240228198445898&tin=02508201610067®Number=0000000000091619&sum=13900 0 [10:06:26]StoreToDocumentArchive [10:06:26]shift 544 fd 63053 [10:06:26]save to /storage/0544/doc_00063053 [10:06:26]save last doc name /storage/0544/doc_00063053 to /storage/kkm_last_doc_name [10:06:26]save OK [10:06:26]Clear old archive folders... [10:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:06:26]tlvbuf is 01908740 [10:06:26]SAM_PROTO_ClearQueue [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 09 00 00 [10:06:26]Write to MH i2c: E2 08 00 81 08 80 09 00 00 00 00 00 00 FB [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_ClearQueue done [10:06:26]KKMCreateOFDPacket [10:06:26]OFDProtocolAddRootSTLVToBuf [10:06:26]FM_MakeSignedData [10:06:26]FM_MakeSignedData [10:06:26]SAM_PROTO_SignData [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 01 02 [10:06:26]Write to MH i2c: E2 08 00 82 08 80 0D 01 02 00 00 00 00 03 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=255 [10:06:26]MH_SAM_APDU [10:06:26]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 32 00 00 00 F4 03 04 00 A2 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [10:06:26]Write to MH i2c: E2 02 01 83 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 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 32 00 00 00 F4 03 04 00 A2 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 CF [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=31 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 4D F6 00 00 35 04 06 00 DA 7C 7C 6E F3 4A [10:06:26]Write to MH i2c: E2 22 00 84 08 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 4D F6 00 00 35 04 06 00 DA 7C 7C 6E F3 4A 00 00 F7 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 03 02 [10:06:26]Write to MH i2c: E2 08 00 85 08 80 0D 03 02 00 00 00 00 08 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0B 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0B 00 85 08 00 F8 E1 0A 4A F7 F8 93 B9 90 00 71 [10:06:26]RAPDU: F8 E1 0A 4A F7 F8 93 B9 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_SignData done [10:06:26]FM_MakeSignedData done [10:06:26]CreateOFDProtocolMessage [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 11 00 00 [10:06:26]Write to MH i2c: E2 08 00 86 08 80 11 00 00 00 00 00 00 08 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 17 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 17 00 86 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 61 [10:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:06:26]wFMCommunicate OK [10:06:26]CreateOFDProtocolMessage done [10:06:26]OFDSenderStorePacket 63053 [10:06:26]StoreOFDPacket docnum=63053 [10:06:26]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 F3 AA 1C 01 4D 75 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 32 00 00 00 F4 03 04 00 A2 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 7C 7C 6E F3 4A F8 E1 0A 4A F7 F8 93 B9 [10:06:26]CheckFolder [10:06:26]dirname=/storage/ofd_packets [10:06:26]CheckFolder done [10:06:26]ProducePacketName [10:06:26]name=ofd_packets/00063053 [10:06:26]NVStorageSaveData ofd_packets/00063053 [10:06:26]File name is /storage/ofd_packets/00063053 [10:06:26]Write 322 bytes [10:06:26]NVStorageSaveData done [10:06:26]OFDSenderStorePacket done [10:06:26]KKMCreateOFDPacket done [10:06:26]NVStorageSaveData kkm_last_timestamp [10:06:26]File name is /storage/kkm_last_timestamp [10:06:26]Write 4 bytes [10:06:26]NVStorageSaveData done [10:06:26]ExternCall_PrintAddStr [10:06:26]wPrintStart [10:06:26]Write to MH i2c: 01 00 00 87 08 8F [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 FF 0F A4 [10:06:26]RasterBufferAndPrint [10:06:26]line Счет N : (3)47363 [10:06:26]line ИНН: 02508201610067 [10:06:26]line Контрольно-Кассовый Чек [10:06:26]line ПРОДАЖА [10:06:26]line Товар: 48745000 [10:06:26]line Сигареты Winston Purple Mix [10:06:26]line 1.000 * 139.00 [10:06:26]line = 139.00 [10:06:26]line НДС 12% НСП 1% [10:06:26]line > о реализуемом товаре [10:06:26]line ИТОГО: 139.00 [10:06:26]line НСП 1% : 1.23 [10:06:26]line НДС 12% : 14.76 [10:06:26]line Наличными: 139.00 [10:06:26]line Безнал.: 0.00 [10:06:26]line Место: АЗС № 86 "Партнер Нефть" [10:06:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:06:26]line СНО: Общий режим [10:06:26]line Чек 50 21.10.2024 10:06 [10:06:26]line Смена: 544 ФФД: 1.0 [10:06:26]line ЗНМ: 0300000154 [10:06:26]line РНМ: 0000000000091619 [10:06:26]line Версия ККМ: 001 [10:06:26]line ФМ: 0000000000874676 [10:06:26]line ФД: 63053 [10:06:26]line ФПД: 240228198445898 [10:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100626&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63053&fm=240228198445898&tin=02508201610067®Number=0000000000091619&sum=13900 [10:06:26]line 0 [10:06:26]written 0, free lines is 4095 [10:06:26]OFD Sender: Processing packet 63053 [packets to send 232, broken 231] [10:06:26]ProducePacketName [10:06:26]name=ofd_packets/00063053 [10:06:26]OFD Sender: To server: pG, [10:06:26]CommunicateWithHost lk.salyk.kg:30040 [10:06:26]ConnectInit lk.salyk.kg [10:06:27]Connected sock=10 [10:06: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 24 01 00 00 F3 AA 1C 01 4D 75 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 32 00 00 00 F4 03 04 00 A2 27 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 7C 7C 6E F3 4A F8 E1 0A 4A F7 F8 93 B9 [10:06:27]Write to MH i2c: 01 00 00 AF 08 B7 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 14 0D DF [10:06:27]RasterBufferAndPrint [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]written 0, free lines is 3354 [10:06:27]MH_Cut [10:06:27]Write to MH i2c: D1 01 00 B6 08 01 90 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 01 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 01 00 B6 08 00 8F [10:06:27]Write to MH i2c: 01 00 00 B7 08 BF [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]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 7C 47 00 4A 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F6 00 00 F4 03 04 00 A0 D1 15 67 B6 04 01 00 00 93 FE C9 AB A9 55 9D B8 [10:06:27]CommunicateWithHost err = 0 [10:06:27]CheckOFDResponse [10:06:27]1017 (14) - 77093643461234 [10:06:27]1041 (16) - 0000000000874676 [10:06:27]1040 (4) - 63053 [10:06:27]1012 (4) - 21.10.2024 03:59 [10:06:27]1206 (1) - 0 [10:06:27]OFD Sender: Remove packet 63053 [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00063053 [10:06:27]NVStorageDeleteData [10:06:28]OFD Sender: No OFD packet to send [10:06:28]*** Cut start [10:06:28]*** Partial cut [10:06:28]*** CUTSNS_PIN = 1 [10:06:28]*** CUTSNS_PIN = 0 [10:06:28]*** Brake cut motor [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]*** Stop cut motor [10:06:28]*** Cut end [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [10:06:28]process_action close_receipt done [10:06:28]requested_data is exist [10:06:28]produce_requested_data [10:06:28]requested_item fm.sn is exist - process it [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 11 00 00 [10:06:28]Write to MH i2c: E2 08 00 B8 08 80 11 00 00 00 00 00 00 3A [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 B8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 93 [10:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:06:28]wFMCommunicate OK [10:06:28]requested_item fd.num is exist - process it [10:06:28]SAM_PROTO_GetFieldsCounters [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 13 00 00 [10:06:28]Write to MH i2c: E2 08 00 B9 08 80 13 00 00 00 00 00 00 3D [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 62 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 62 00 B9 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 4D F6 00 00 0E 04 04 00 20 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 60 [10:06: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 4D F6 00 00 0E 04 04 00 20 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 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_GetFieldsCounters done [10:06:28]requested_item shift.num is exist - process it [10:06:28]requested_item shift.opened is exist - process it [10:06:28]req_shift_opened [10:06:28]FM_GetShiftState [10:06:28]SAM_PROTO_GetShiftState [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 13 01 00 [10:06:28]Write to MH i2c: E2 08 00 BA 08 80 13 01 00 00 00 00 00 3F [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 BA 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 9F [10:06:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_GetShiftState done [10:06:28]FM_GetShiftState done [10:06:28]req_shift_opened done [10:06:28]requested_item shift.open_date is exist - process it [10:06:28]req_shift_open_date [10:06:28]req_shift_open_date done [10:06:28]produce_requested_data done [10:06:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63053,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:06:28]process_action_free close_receipt [10:06:28]json_value_free [10:06:28]json_value_free done [10:06:28]process_json_proto returns [10:06:28]Send response to host [10:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63053,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:06:28]free response buf [10:06:28]execute_script done [10:06:28]execute_script returns [10:06:28]free content buf [10:06:28]Sock 9.Close socket [10:06:28]Sock 9.Thread stoped [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:57]accept exits with 7 [10:08:57]New connection [10:08:57]New thread 3067055460 created [10:08:57]Thread 3067198820 joined [10:08:57]Waiting for new connection... [10:08:57] Sock 7.Parse request [10:08:57]Sock 7.Check first char [10:08:57]Sock 7.First char is OK [10:08:57]request: POST /json_proto HTTP/1.0 [10:08:57]Method: POST [10:08:57]URL: /json_proto [10:08:57]Method is POST - this is cgi request [10:08:57]url: /json_proto [10:08:57]query_string will be loaded in cgi processing [10:08:57]execute_cgi json_proto POST (null) [10:08:57]execute_cgi path=json_proto method=POST [10:08:57]POST find Content-Length [10:08:57]Host: 172.17.42.132:8080 [10:08:57]Content-Length: 1244 [10:08:57]Content-Type: application/json [10:08:57] [10:08:57]POST finish read [10:08:57]Found Content-Length = 1244 [10:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47364", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 84.25, "quantity" : 1.000, "sum" : 84.25, "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" : 148.67, "quantity" : 1.000, "sum" : 148.67, "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" : 350.87 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:57]execute_script... [10:08: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)47364", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 84.25, "quantity" : 1.000, "sum" : 84.25, "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" : 148.67, "quantity" : 1.000, "sum" : 148.67, "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" : 350.87 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:57]POST & json_proto [10:08:57]process_json_proto [10:08:57]json parsed OK: [10:08:57]protocol is kg_v1.0 [10:08:57]action value=close_receipt [10:08:57]process_action close_receipt [10:08:57]cmd_close_receipt [10:08:57]MH_GetDate [10:08:57]Write to MH i2c: F0 00 00 BB 08 B2 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 09 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 09 00 BB 08 00 3B 28 16 67 4C DF 56 66 82 [10:08:57]GetLastDocTimeStamp 1729505186 [10:08:57]current date 1729505339 [10:08:57]FM_GetShiftState [10:08:57]SAM_PROTO_GetShiftState [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 13 01 00 [10:08:57]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A1 [10:08:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_GetShiftState done [10:08:57]FM_GetShiftState done [10:08:57]opened in 1729469755 [10:08:57]opened+sec_in_day 1729556155 [10:08:57]quantity*price = 11795 [10:08:57]sum+1 = 11796 [10:08:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870227272957 Лимонад Sunbel Тархун 1л 1.000 * 84.25 = 84.25 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 148.67 = 148.67 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.87 НСП 1% : 3.11 НДС 12% : 37.27 Наличными: 0.00 Безнал.: 350.87 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 51 21.10.2024 10:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63054 ФПД: 151613581741154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100859&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63054&fm=151613581741154&tin=02508201610067®Number=0000000000091619&sum=35087 0 [10:08:58]StoreToDocumentArchive [10:08:58]shift 544 fd 63054 [10:08:58]save to /storage/0544/doc_00063054 [10:08:58]save last doc name /storage/0544/doc_00063054 to /storage/kkm_last_doc_name [10:08:58]save OK [10:08:58]Clear old archive folders... [10:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=480 [10:08:58]tlvbuf is 0182B100 [10:08:58]SAM_PROTO_ClearQueue [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 09 00 00 [10:08:58]Write to MH i2c: E2 08 00 C9 08 80 09 00 00 00 00 00 00 43 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_ClearQueue done [10:08:58]KKMCreateOFDPacket [10:08:58]OFDProtocolAddRootSTLVToBuf [10:08:58]FM_MakeSignedData [10:08:58]FM_MakeSignedData [10:08:58]SAM_PROTO_SignData [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 01 02 [10:08:58]Write to MH i2c: E2 08 00 CA 08 80 0D 01 02 00 00 00 00 4B [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=255 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 02 02 FA 03 00 E0 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 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 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E9 20 00 00 00 00 13 04 06 00 E9 20 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 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 [10:08:59]Write to MH i2c: E2 02 01 CB 08 80 0D 02 02 FA 00 03 00 E0 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 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 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E9 20 00 00 00 00 13 04 06 00 E9 20 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 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 00 00 14 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:59]Read from MH i2c: E2 03 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [10:08:59]RAPDU: 90 00 [10:08:59]wFMCommunicate OK [10:08:59]wFMCommunicate request_size=239 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 0D 02 02 EA 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 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B 28 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 E4 49 AE CC 62 [10:08:59]Write to MH i2c: E2 F2 00 CC 08 80 0D 02 02 EA 00 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 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B 28 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 E4 49 AE CC 62 00 00 53 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 CC 08 00 90 00 48 [10:08:59]RAPDU: 90 00 [10:08:59]wFMCommunicate OK [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 0D 03 02 [10:08:59]Write to MH i2c: E2 08 00 CD 08 80 0D 03 02 00 00 00 00 50 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 0B 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 0B 00 CD 08 00 E7 18 C9 C7 38 07 09 14 90 00 3C [10:08:59]RAPDU: E7 18 C9 C7 38 07 09 14 90 00 [10:08:59]wFMCommunicate OK [10:08:59]SAM_PROTO_SignData done [10:08:59]FM_MakeSignedData done [10:08:59]CreateOFDProtocolMessage [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 11 00 00 [10:08:59]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A9 [10:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:08:59]wFMCommunicate OK [10:08:59]CreateOFDProtocolMessage done [10:08:59]OFDSenderStorePacket 63054 [10:08:59]StoreOFDPacket docnum=63054 [10:08: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 F4 01 00 00 CF 8F EC 01 ED FB 5A 03 01 00 03 00 E0 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 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 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E9 20 00 00 00 00 13 04 06 00 E9 20 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 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 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B 28 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 E4 49 AE CC 62 E7 18 C9 C7 38 07 09 14 [10:08:59]CheckFolder [10:08:59]dirname=/storage/ofd_packets [10:08:59]CheckFolder done [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00063054 [10:08:59]NVStorageSaveData ofd_packets/00063054 [10:08:59]File name is /storage/ofd_packets/00063054 [10:08:59]Write 530 bytes [10:08:59]NVStorageSaveData done [10:08:59]OFDSenderStorePacket done [10:08:59]KKMCreateOFDPacket done [10:08:59]NVStorageSaveData kkm_last_timestamp [10:08:59]File name is /storage/kkm_last_timestamp [10:08:59]Write 4 bytes [10:08:59]NVStorageSaveData done [10:08:59]ExternCall_PrintAddStr [10:08:59]wPrintStart [10:08:59]Write to MH i2c: 01 00 00 CF 08 D7 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [10:08:59]RasterBufferAndPrint [10:08:59]line Счет N : (3)47364 [10:08:59]line ИНН: 02508201610067 [10:08:59]line Контрольно-Кассовый Чек [10:08:59]line ПРОДАЖА [10:08:59]line Товар: 4870001570071 [10:08:59]line Напиток Pepsi 1л [10:08:59]line 1.000 * 117.95 [10:08:59]line = 117.95 [10:08:59]line НДС 12% НСП 1% [10:08:59]line > о реализуемом товаре [10:08:59]line Товар: 4870227272957 [10:08:59]line Лимонад Sunbel Тархун 1л [10:08:59]line 1.000 * 84.25 [10:08:59]line = 84.25 [10:08:59]line НДС 12% НСП 1% [10:08:59]line > о реализуемом товаре [10:08:59]line Товар: 4640030091645 [10:08:59]line Сигареты ESSE Exchange M [10:08:59]line 1.000 * 148.67 [10:08:59]line = 148.67 [10:08:59]line НДС 12% НСП 1% [10:08:59]line > о реализуемом товаре [10:08:59]line ИТОГО: 350.87 [10:08:59]line НСП 1% : 3.11 [10:08:59]line НДС 12% : 37.27 [10:08:59]line Наличными: 0.00 [10:08:59]line Безнал.: 350.87 [10:08:59]line Место: АЗС № 86 "Партнер Нефть" [10:08:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:08:59]line СНО: Общий режим [10:08:59]line Чек 51 21.10.2024 10:08 [10:08:59]line Смена: 544 ФФД: 1.0 [10:08:59]line ЗНМ: 0300000154 [10:08:59]line РНМ: 0000000000091619 [10:08:59]line Версия ККМ: 001 [10:08:59]line Платежная система: Mbank [10:08:59]line ФМ: 0000000000874676 [10:08:59]line ФД: 63054 [10:08:59]line ФПД: 151613581741154 [10:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100859&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63054&fm=151613581741154&tin=02508201610067®Number=0000000000091619&sum=35087 [10:08:59]line 0 [10:08:59]OFD Sender: Processing packet 63054 [packets to send 232, broken 231] [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00063054 [10:08:59]OFD Sender: To server: pG, [10:08:59]CommunicateWithHost lk.salyk.kg:30040 [10:08:59]ConnectInit lk.salyk.kg [10:08:59]written 0, free lines is 4095 [10:09:00]Connected sock=10 [10:09: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 F4 01 00 00 CF 8F EC 01 ED FB 5A 03 01 00 03 00 E0 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 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 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E9 20 00 00 00 00 13 04 06 00 E9 20 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 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 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B 28 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 E4 49 AE CC 62 E7 18 C9 C7 38 07 09 14 [10:09: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 67 02 47 00 6E 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 4E F6 00 00 F4 03 04 00 39 D2 15 67 B6 04 01 00 00 24 72 CA 51 8E 42 9E BA [10:09:00]CommunicateWithHost err = 0 [10:09:00]CheckOFDResponse [10:09:00]1017 (14) - 77093643461234 [10:09:00]1041 (16) - 0000000000874676 [10:09:00]1040 (4) - 63054 [10:09:00]1012 (4) - 21.10.2024 04:02 [10:09:00]1206 (1) - 0 [10:09:00]OFD Sender: Remove packet 63054 [10:09:00]ProducePacketName [10:09:00]name=ofd_packets/00063054 [10:09:00]NVStorageDeleteData [10:09:00]Write to MH i2c: 01 00 00 04 09 0D [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 83 0C A3 [10:09:00]RasterBufferAndPrint [10:09:00]line [10:09:00]line [10:09:00]line [10:09:00]line [10:09:00]line [10:09:00]written 0, free lines is 3212 [10:09:00]MH_Cut [10:09:00]Write to MH i2c: D1 01 00 0B 09 01 E6 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: D1 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: D1 01 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: D1 01 00 0B 09 00 E5 [10:09:00]Write to MH i2c: 01 00 00 0C 09 15 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]OFD Sender: No OFD packet to send [10:09:01]*** Cut start [10:09:01]*** Partial cut [10:09:01]*** CUTSNS_PIN = 1 [10:09:01]*** CUTSNS_PIN = 0 [10:09:01]*** Brake cut motor [10:09:01]Read from MH i2c: 01 [10:09:01]MH_I2C_Read... [10:09:01]*** Stop cut motor [10:09:01]Read from MH i2c: 01 07 00 [10:09:01]MH_I2C_Read... [10:09:01]*** Cut end [10:09:01]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [10:09:01]process_action close_receipt done [10:09:01]requested_data is exist [10:09:01]produce_requested_data [10:09:01]requested_item fm.sn is exist - process it [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 11 00 00 [10:09:01]Write to MH i2c: E2 08 00 0D 09 80 11 00 00 00 00 00 00 90 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 0D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E9 [10:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:09:01]wFMCommunicate OK [10:09:01]requested_item fd.num is exist - process it [10:09:01]SAM_PROTO_GetFieldsCounters [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 00 00 [10:09:01]Write to MH i2c: E2 08 00 0E 09 80 13 00 00 00 00 00 00 93 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 62 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 62 00 0E 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 4E F6 00 00 0E 04 04 00 20 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 BA [10:09: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 4E F6 00 00 0E 04 04 00 20 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 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_GetFieldsCounters done [10:09:02]requested_item shift.num is exist - process it [10:09:02]requested_item shift.opened is exist - process it [10:09:02]req_shift_opened [10:09:02]FM_GetShiftState [10:09:02]SAM_PROTO_GetShiftState [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 13 01 00 [10:09:02]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F5 [10:09:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_GetShiftState done [10:09:02]FM_GetShiftState done [10:09:02]req_shift_opened done [10:09:02]requested_item shift.open_date is exist - process it [10:09:02]req_shift_open_date [10:09:02]req_shift_open_date done [10:09:02]produce_requested_data done [10:09:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63054,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:09:02]process_action_free close_receipt [10:09:02]json_value_free [10:09:02]json_value_free done [10:09:02]process_json_proto returns [10:09:02]Send response to host [10:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63054,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:09:02]free response buf [10:09:02]execute_script done [10:09:02]execute_script returns [10:09:02]free content buf [10:09:02]Sock 7.Close socket [10:09:02]Sock 7.Thread stoped [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:37]accept exits with 9 [10:13:37]New connection [10:13:37]New thread 3067198820 created [10:13:37]Thread 3067055460 joined [10:13:37]Waiting for new connection... [10:13:37] Sock 9.Parse request [10:13:37]Sock 9.Check first char [10:13:37]Sock 9.First char is OK [10:13:37]request: POST /json_proto HTTP/1.0 [10:13:37]Method: POST [10:13:37]URL: /json_proto [10:13:37]Method is POST - this is cgi request [10:13:37]url: /json_proto [10:13:37]query_string will be loaded in cgi processing [10:13:37]execute_cgi json_proto POST (null) [10:13:37]execute_cgi path=json_proto method=POST [10:13:37]POST find Content-Length [10:13:37]Host: 172.17.42.132:8080 [10:13:37]Content-Length: 1320 [10:13:37]Content-Type: application/json [10:13:37] [10:13:37]POST finish read [10:13:37]Found Content-Length = 1320 [10:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47365", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:37]execute_script... [10:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47365", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:37]POST & json_proto [10:13:37]process_json_proto [10:13:37]json parsed OK: [10:13:37]protocol is kg_v1.0 [10:13:37]action value=close_receipt [10:13:37]process_action close_receipt [10:13:37]cmd_close_receipt [10:13:37]MH_GetDate [10:13:37]Write to MH i2c: F0 00 00 10 09 08 [10:13:37]Write i2c OK [10:13:37]MH_I2C_Read... [10:13:37]Read from MH i2c: F0 [10:13:37]MH_I2C_Read... [10:13:37]Read from MH i2c: F0 09 00 [10:13:37]MH_I2C_Read... [10:13:37]Read from MH i2c: F0 09 00 10 09 00 53 29 16 67 4C DF 56 66 F1 [10:13:37]GetLastDocTimeStamp 1729505339 [10:13:37]current date 1729505619 [10:13:37]FM_GetShiftState [10:13:37]SAM_PROTO_GetShiftState [10:13:37]wFMCommunicate request_size=4 [10:13:37]MH_SAM_APDU [10:13:37]CAPDU: 80 13 01 00 [10:13:37]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [10:13:37]Write i2c OK [10:13:37]MH_I2C_Read... [10:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:37]Read from MH i2c: E2 [10:13:37]MH_I2C_Read... [10:13:37]Read from MH i2c: E2 0E 00 [10:13:37]MH_I2C_Read... [10:13:37]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F7 [10:13:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:13:37]wFMCommunicate OK [10:13:37]SAM_PROTO_GetShiftState done [10:13:37]FM_GetShiftState done [10:13:37]opened in 1729469755 [10:13:37]opened+sec_in_day 1729556155 [10:13:37]quantity*price = 6500 [10:13:37]sum+1 = 6501 [10:13:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.33 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 52 21.10.2024 10:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63055 ФПД: 170770772553957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63055&fm=170770772553957&tin=02508201610067®Number=0000000000091619&sum=13500 0 [10:13:38]StoreToDocumentArchive [10:13:38]shift 544 fd 63055 [10:13:38]save to /storage/0544/doc_00063055 [10:13:38]save last doc name /storage/0544/doc_00063055 to /storage/kkm_last_doc_name [10:13:38]save OK [10:13:38]Clear old archive folders... [10:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=547 [10:13:38]tlvbuf is 01915DB0 [10:13:38]SAM_PROTO_ClearQueue [10:13:38]wFMCommunicate request_size=4 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 09 00 00 [10:13:38]Write to MH i2c: E2 08 00 1E 09 80 09 00 00 00 00 00 00 99 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]SAM_PROTO_ClearQueue done [10:13:38]KKMCreateOFDPacket [10:13:38]OFDProtocolAddRootSTLVToBuf [10:13:38]FM_MakeSignedData [10:13:38]FM_MakeSignedData [10:13:38]SAM_PROTO_SignData [10:13:38]wFMCommunicate request_size=4 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 0D 01 02 [10:13:38]Write to MH i2c: E2 08 00 1F 09 80 0D 01 02 00 00 00 00 A1 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]wFMCommunicate request_size=255 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 0D 02 02 FA 03 00 23 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 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 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 [10:13:39]Write to MH i2c: E2 02 01 20 09 80 0D 02 02 FA 00 03 00 23 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 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 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 00 8E [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [10:13:39]RAPDU: 90 00 [10:13:39]wFMCommunicate OK [10:13:39]wFMCommunicate request_size=255 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 0D 02 02 FA 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [10:13:39]Write to MH i2c: E2 02 01 21 09 80 0D 02 02 FA 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 4B [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [10:13:39]RAPDU: 90 00 [10:13:39]wFMCommunicate OK [10:13:39]wFMCommunicate request_size=56 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 9B 50 AB 3C 70 E5 [10:13:39]Write to MH i2c: E2 3B 00 22 09 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 9B 50 AB 3C 70 E5 00 00 A3 [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [10:13:39]RAPDU: 90 00 [10:13:39]wFMCommunicate OK [10:13:39]wFMCommunicate request_size=4 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 0D 03 02 [10:13:39]Write to MH i2c: E2 08 00 23 09 80 0D 03 02 00 00 00 00 A7 [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:40]Read from MH i2c: E2 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0B 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0B 00 23 09 00 F9 B2 40 0C 69 C3 C5 27 90 00 B7 [10:13:40]RAPDU: F9 B2 40 0C 69 C3 C5 27 90 00 [10:13:40]wFMCommunicate OK [10:13:40]SAM_PROTO_SignData done [10:13:40]FM_MakeSignedData done [10:13:40]CreateOFDProtocolMessage [10:13:40]wFMCommunicate request_size=4 [10:13:40]MH_SAM_APDU [10:13:40]CAPDU: 80 11 00 00 [10:13:40]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:40]Read from MH i2c: E2 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 17 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 00 [10:13:40]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:40]wFMCommunicate OK [10:13:40]CreateOFDProtocolMessage done [10:13:40]OFDSenderStorePacket 63055 [10:13:40]StoreOFDPacket docnum=63055 [10:13: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 37 02 00 00 2D 94 2F 02 97 4F 5A 03 01 00 03 00 23 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 9B 50 AB 3C 70 E5 F9 B2 40 0C 69 C3 C5 27 [10:13:40]CheckFolder [10:13:40]dirname=/storage/ofd_packets [10:13:40]CheckFolder done [10:13:40]ProducePacketName [10:13:40]name=ofd_packets/00063055 [10:13:40]NVStorageSaveData ofd_packets/00063055 [10:13:40]File name is /storage/ofd_packets/00063055 [10:13:40]Write 597 bytes [10:13:40]NVStorageSaveData done [10:13:40]OFDSenderStorePacket done [10:13:40]KKMCreateOFDPacket done [10:13:40]NVStorageSaveData kkm_last_timestamp [10:13:40]File name is /storage/kkm_last_timestamp [10:13:40]Write 4 bytes [10:13:40]NVStorageSaveData done [10:13:40]ExternCall_PrintAddStr [10:13:40]wPrintStart [10:13:40]Write to MH i2c: 01 00 00 25 09 2E [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [10:13:40]RasterBufferAndPrint [10:13:40]line Счет N : (3)47365 [10:13:40]line ИНН: 02508201610067 [10:13:40]line Контрольно-Кассовый Чек [10:13:40]line ПРОДАЖА [10:13:40]line Товар: 4870001571023 [10:13:40]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [10:13:40]line 1.000 * 65.00 [10:13:40]line = 65.00 [10:13:40]line НДС 12% НСП 1% [10:13:40]line > о реализуемом товаре [10:13:40]line Товар: 4700000160792 [10:13:40]line Снек Курут классический (круглый) [10:13:40]line 1.000 * 60.00 [10:13:40]line = 60.00 [10:13:40]line НДС 12% НСП 1% [10:13:40]line > о реализуемом товаре [10:13:40]line Товар: 46226617 [10:13:40]line Mentos ПВ Нежная Мята 6*100*2г [10:13:40]line 1.000 * 10.00 [10:13:40]line = 10.00 [10:13:40]line НДС 12% НСП 1% [10:13:40]line > о реализуемом товаре [10:13:40]line ИТОГО: 135.00 [10:13:40]line НСП 1% : 1.19 [10:13:40]line НДС 12% : 14.33 [10:13:40]line Наличными: 135.00 [10:13:40]line Безнал.: 0.00 [10:13:40]line Место: АЗС № 86 "Партнер Нефть" [10:13:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:13:40]line СНО: Общий режим [10:13:40]line Чек 52 21.10.2024 10:13 [10:13:40]line Смена: 544 ФФД: 1.0 [10:13:40]line ЗНМ: 0300000154 [10:13:40]line РНМ: 0000000000091619 [10:13:40]line Версия ККМ: 001 [10:13:40]line ФМ: 0000000000874676 [10:13:40]line ФД: 63055 [10:13:40]line ФПД: 170770772553957 [10:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63055&fm=170770772553957&tin=02508201610067®Number=0000000000091619&sum=13500 [10:13:40]line 0 [10:13:40]OFD Sender: Processing packet 63055 [packets to send 232, broken 231] [10:13:40]ProducePacketName [10:13:40]name=ofd_packets/00063055 [10:13:40]OFD Sender: To server: pG, [10:13:40]CommunicateWithHost lk.salyk.kg:30040 [10:13:40]ConnectInit lk.salyk.kg [10:13:40]written 0, free lines is 4095 [10:13:40]Connected sock=11 [10:13:40]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 37 02 00 00 2D 94 2F 02 97 4F 5A 03 01 00 03 00 23 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 30 2C 35 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 9B 50 AB 3C 70 E5 F9 B2 40 0C 69 C3 C5 27 [10:13: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 29 57 47 00 A7 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F6 00 00 F4 03 04 00 51 D3 15 67 B6 04 01 00 00 95 BA 5D 0A ED 00 FE 09 [10:13:40]CommunicateWithHost err = 0 [10:13:40]CheckOFDResponse [10:13:40]1017 (14) - 77093643461234 [10:13:40]1041 (16) - 0000000000874676 [10:13:40]1040 (4) - 63055 [10:13:40]1012 (4) - 21.10.2024 04:06 [10:13:40]1206 (1) - 0 [10:13:40]OFD Sender: Remove packet 63055 [10:13:40]ProducePacketName [10:13:40]name=ofd_packets/00063055 [10:13:40]NVStorageDeleteData [10:13:40]Write to MH i2c: 01 00 00 5C 09 65 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: 01 07 00 [10:13:40]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 3C 0C B4 [10:13:41]RasterBufferAndPrint [10:13:41]line [10:13:41]line [10:13:41]line [10:13:41]line [10:13:41]line [10:13:41]written 0, free lines is 3142 [10:13:41]MH_Cut [10:13:41]Write to MH i2c: D1 01 00 63 09 01 3E [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: D1 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: D1 01 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: D1 01 00 63 09 00 3D [10:13:41]Write to MH i2c: 01 00 00 64 09 6D [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]OFD Sender: No OFD packet to send [10:13:41]*** Cut start [10:13:41]*** Partial cut [10:13:41]*** CUTSNS_PIN = 1 [10:13:41]*** CUTSNS_PIN = 0 [10:13:42]*** Brake cut motor [10:13:42]Read from MH i2c: 01 [10:13:42]MH_I2C_Read... [10:13:42]*** Stop cut motor [10:13:42]*** Cut end [10:13:42]Read from MH i2c: 01 07 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 FF 0F 82 [10:13:42]process_action close_receipt done [10:13:42]requested_data is exist [10:13:42]produce_requested_data [10:13:42]requested_item fm.sn is exist - process it [10:13:42]wFMCommunicate request_size=4 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 11 00 00 [10:13:42]Write to MH i2c: E2 08 00 65 09 80 11 00 00 00 00 00 00 E8 [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 17 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 17 00 65 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 41 [10:13:42]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:42]wFMCommunicate OK [10:13:42]requested_item fd.num is exist - process it [10:13:42]SAM_PROTO_GetFieldsCounters [10:13:42]wFMCommunicate request_size=4 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 13 00 00 [10:13:42]Write to MH i2c: E2 08 00 66 09 80 13 00 00 00 00 00 00 EB [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 62 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 62 00 66 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 4F F6 00 00 0E 04 04 00 20 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 16 [10:13: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 4F F6 00 00 0E 04 04 00 20 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 [10:13:42]wFMCommunicate OK [10:13:42]SAM_PROTO_GetFieldsCounters done [10:13:42]requested_item shift.num is exist - process it [10:13:42]requested_item shift.opened is exist - process it [10:13:42]req_shift_opened [10:13:42]FM_GetShiftState [10:13:42]SAM_PROTO_GetShiftState [10:13:42]wFMCommunicate request_size=4 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 13 01 00 [10:13:42]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 0E 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 4D [10:13:42]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:13:42]wFMCommunicate OK [10:13:42]SAM_PROTO_GetShiftState done [10:13:42]FM_GetShiftState done [10:13:42]req_shift_opened done [10:13:42]requested_item shift.open_date is exist - process it [10:13:42]req_shift_open_date [10:13:42]req_shift_open_date done [10:13:42]produce_requested_data done [10:13:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63055,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:13:42]process_action_free close_receipt [10:13:42]json_value_free [10:13:42]json_value_free done [10:13:42]process_json_proto returns [10:13:42]Send response to host [10:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63055,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:13:42]free response buf [10:13:42]execute_script done [10:13:42]execute_script returns [10:13:42]free content buf [10:13:42]Sock 9.Close socket [10:13:42]Sock 9.Thread stoped [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:09]accept exits with 7 [10:16:09]New connection [10:16:09]New thread 3067055460 created [10:16:09]Thread 3067198820 joined [10:16:09]Waiting for new connection... [10:16:09] Sock 7.Parse request [10:16:09]Sock 7.Check first char [10:16:09]Sock 7.First char is OK [10:16:09]request: POST /json_proto HTTP/1.0 [10:16:09]Method: POST [10:16:09]URL: /json_proto [10:16:09]Method is POST - this is cgi request [10:16:09]url: /json_proto [10:16:09]query_string will be loaded in cgi processing [10:16:09]execute_cgi json_proto POST (null) [10:16:09]execute_cgi path=json_proto method=POST [10:16:09]POST find Content-Length [10:16:09]Host: 172.17.42.132:8080 [10:16:09]Content-Length: 1230 [10:16:09]Content-Type: application/json [10:16:09] [10:16:09]POST finish read [10:16:09]Found Content-Length = 1230 [10:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47366", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:09]execute_script... [10:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47366", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:09]POST & json_proto [10:16:09]process_json_proto [10:16:09]json parsed OK: [10:16:09]protocol is kg_v1.0 [10:16:09]action value=close_receipt [10:16:09]process_action close_receipt [10:16:09]cmd_close_receipt [10:16:09]MH_GetDate [10:16:09]Write to MH i2c: F0 00 00 68 09 60 [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 09 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 09 00 68 09 00 EB 29 16 67 4C DF 56 66 E1 [10:16:09]GetLastDocTimeStamp 1729505619 [10:16:09]current date 1729505771 [10:16:09]FM_GetShiftState [10:16:09]SAM_PROTO_GetShiftState [10:16:09]wFMCommunicate request_size=4 [10:16:09]MH_SAM_APDU [10:16:09]CAPDU: 80 13 01 00 [10:16:09]Write to MH i2c: E2 08 00 69 09 80 13 01 00 00 00 00 00 EF [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:09]Read from MH i2c: E2 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: E2 0E 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: E2 0E 00 69 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 4F [10:16:09]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:16:09]wFMCommunicate OK [10:16:09]SAM_PROTO_GetShiftState done [10:16:09]FM_GetShiftState done [10:16:09]opened in 1729469755 [10:16:09]opened+sec_in_day 1729556155 [10:16:09]quantity*price = 19000 [10:16:09]sum+1 = 19001 [10:16:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.33 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 53 21.10.2024 10:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63056 ФПД: 26884510333652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63056&fm=26884510333652&tin=02508201610067®Number=0000000000091619&sum=29500 0 [10:16:10]StoreToDocumentArchive [10:16:10]shift 544 fd 63056 [10:16:10]save to /storage/0544/doc_00063056 [10:16:10]save last doc name /storage/0544/doc_00063056 to /storage/kkm_last_doc_name [10:16:10]save OK [10:16:10]Clear old archive folders... [10:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=532 [10:16:10]tlvbuf is 0190C8A0 [10:16:10]SAM_PROTO_ClearQueue [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 09 00 00 [10:16:10]Write to MH i2c: E2 08 00 76 09 80 09 00 00 00 00 00 00 F1 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]SAM_PROTO_ClearQueue done [10:16:10]KKMCreateOFDPacket [10:16:10]OFDProtocolAddRootSTLVToBuf [10:16:10]FM_MakeSignedData [10:16:10]FM_MakeSignedData [10:16:10]SAM_PROTO_SignData [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 01 02 [10:16:10]Write to MH i2c: E2 08 00 77 09 80 0D 01 02 00 00 00 00 F9 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]wFMCommunicate request_size=255 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 02 02 FA 03 00 14 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 [10:16:11]Write to MH i2c: E2 02 01 78 09 80 0D 02 02 FA 00 03 00 14 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 00 00 B1 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 78 09 00 90 00 F5 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=255 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 EB 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [10:16:11]Write to MH i2c: E2 02 01 79 09 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 EB 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 F9 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=41 [10:16:11]MH_SAM_APDU [10:16:11]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 50 F6 00 00 35 04 06 00 18 73 89 B0 3A D4 [10:16:11]Write to MH i2c: E2 2C 00 7A 09 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 50 F6 00 00 35 04 06 00 18 73 89 B0 3A D4 00 00 EA [10:16:11]OFD Sender: No OFD packet to send [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 03 02 [10:16:11]Write to MH i2c: E2 08 00 7B 09 80 0D 03 02 00 00 00 00 FF [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0B 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0B 00 7B 09 00 9F 78 41 3A FD 0E AF C6 90 00 12 [10:16:11]RAPDU: 9F 78 41 3A FD 0E AF C6 90 00 [10:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_SignData done [10:16:11]FM_MakeSignedData done [10:16:11]CreateOFDProtocolMessage [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 11 00 00 [10:16:11]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 17 00 [10:16:11]MH_I2C_Read... [10:16:11]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 [10:16: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:16:11]wFMCommunicate OK [10:16:11]CreateOFDProtocolMessage done [10:16:11]OFDSenderStorePacket 63056 [10:16:11]StoreOFDPacket docnum=63056 [10:16: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 28 02 00 00 90 14 20 02 8C 8F 5A 03 01 00 03 00 14 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 EB 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 18 73 89 B0 3A D4 9F 78 41 3A FD 0E AF C6 [10:16:11]CheckFolder [10:16:11]dirname=/storage/ofd_packets [10:16:11]CheckFolder done [10:16:11]ProducePacketName [10:16:11]name=ofd_packets/00063056 [10:16:11]NVStorageSaveData ofd_packets/00063056 [10:16:11]File name is /storage/ofd_packets/00063056 [10:16:11]Write 582 bytes [10:16:11]NVStorageSaveData done [10:16:11]OFDSenderStorePacket done [10:16:11]KKMCreateOFDPacket done [10:16:11]NVStorageSaveData kkm_last_timestamp [10:16:11]File name is /storage/kkm_last_timestamp [10:16:11]Write 4 bytes [10:16:11]NVStorageSaveData done [10:16:11]ExternCall_PrintAddStr [10:16:11]wPrintStart [10:16:11]Write to MH i2c: 01 00 00 7D 09 86 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 FF 0F 9B [10:16:11]RasterBufferAndPrint [10:16:11]line Счет N : (3)47366 [10:16:11]line ИНН: 02508201610067 [10:16:11]line Контрольно-Кассовый Чек [10:16:11]line ПРОДАЖА [10:16:11]line Товар: 4700000480050 [10:16:11]line Напиток Nitro Energy эн green ж/б 0,45л [10:16:11]line 2.000 * 95.00 [10:16:11]line = 190.00 [10:16:11]line НДС 12% НСП 1% [10:16:11]line > о реализуемом товаре [10:16:11]line Товар: 4700000480364 [10:16:11]line Напиток энерг Nitro экзотик 0.45 ж/б [10:16:11]line 1.000 * 95.00 [10:16:11]line = 95.00 [10:16:11]line НДС 12% НСП 1% [10:16:11]line > о реализуемом товаре [10:16:11]line Товар: 46226617 [10:16:11]line Mentos ПВ Нежная Мята 6*100*2г [10:16:11]line 1.000 * 10.00 [10:16:11]line = 10.00 [10:16:11]line НДС 12% НСП 1% [10:16:11]line > о реализуемом товаре [10:16:11]line ИТОГО: 295.00 [10:16:11]line НСП 1% : 2.61 [10:16:11]line НДС 12% : 31.33 [10:16:11]line Наличными: 295.00 [10:16:11]line Безнал.: 0.00 [10:16:11]line Место: АЗС № 86 "Партнер Нефть" [10:16:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:16:11]line СНО: Общий режим [10:16:11]line Чек 53 21.10.2024 10:16 [10:16:11]line Смена: 544 ФФД: 1.0 [10:16:11]line ЗНМ: 0300000154 [10:16:11]line РНМ: 0000000000091619 [10:16:11]line Версия ККМ: 001 [10:16:11]line ФМ: 0000000000874676 [10:16:11]line ФД: 63056 [10:16:11]line ФПД: 26884510333652 [10:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63056&fm=26884510333652&tin=02508201610067®Number=0000000000091619&sum=29500 [10:16:12]OFD Sender: Processing packet 63056 [packets to send 232, broken 231] [10:16:12]ProducePacketName [10:16:12]name=ofd_packets/00063056 [10:16:12]OFD Sender: To server: pG, [10:16:12]CommunicateWithHost lk.salyk.kg:30040 [10:16:12]ConnectInit lk.salyk.kg [10:16:12]line 0 [10:16:12]written 0, free lines is 4095 [10:16:12]Connected sock=10 [10:16: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 28 02 00 00 90 14 20 02 8C 8F 5A 03 01 00 03 00 14 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 EB 29 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 18 73 89 B0 3A D4 9F 78 41 3A FD 0E AF C6 [10:16: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 12 0C 47 00 74 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 50 F6 00 00 F4 03 04 00 E9 D3 15 67 B6 04 01 00 00 7D F6 42 E9 FA 02 5E 21 [10:16:12]CommunicateWithHost err = 0 [10:16:12]CheckOFDResponse [10:16:12]1017 (14) - 77093643461234 [10:16:12]1041 (16) - 0000000000874676 [10:16:12]1040 (4) - 63056 [10:16:12]1012 (4) - 21.10.2024 04:09 [10:16:12]1206 (1) - 0 [10:16:12]OFD Sender: Remove packet 63056 [10:16:12]ProducePacketName [10:16:12]name=ofd_packets/00063056 [10:16:12]NVStorageDeleteData [10:16:12]Write to MH i2c: 01 00 00 B4 09 BD [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 07 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 4E 0C 1E [10:16:12]RasterBufferAndPrint [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]written 0, free lines is 3159 [10:16:12]MH_Cut [10:16:12]Write to MH i2c: D1 01 00 BB 09 01 96 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 01 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 01 00 BB 09 00 95 [10:16:12]Write to MH i2c: 01 00 00 BC 09 C5 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:13]OFD Sender: No OFD packet to send [10:16:13]*** Cut start [10:16:13]*** Partial cut [10:16:13]*** CUTSNS_PIN = 1 [10:16:13]*** CUTSNS_PIN = 0 [10:16:13]*** Brake cut motor [10:16:14]Read from MH i2c: 01 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 07 00 [10:16:14]MH_I2C_Read... [10:16:14]*** Stop cut motor [10:16:14]*** Cut end [10:16:14]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FF 0F DA [10:16:14]process_action close_receipt done [10:16:14]requested_data is exist [10:16:14]produce_requested_data [10:16:14]requested_item fm.sn is exist - process it [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 11 00 00 [10:16:14]Write to MH i2c: E2 08 00 BD 09 80 11 00 00 00 00 00 00 40 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 17 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 17 00 BD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [10:16: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:16:14]wFMCommunicate OK [10:16:14]requested_item fd.num is exist - process it [10:16:14]SAM_PROTO_GetFieldsCounters [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 13 00 00 [10:16:14]Write to MH i2c: E2 08 00 BE 09 80 13 00 00 00 00 00 00 43 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 62 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 62 00 BE 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 50 F6 00 00 0E 04 04 00 20 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 72 [10:16: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 50 F6 00 00 0E 04 04 00 20 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 [10:16:14]wFMCommunicate OK [10:16:14]SAM_PROTO_GetFieldsCounters done [10:16:14]requested_item shift.num is exist - process it [10:16:14]requested_item shift.opened is exist - process it [10:16:14]req_shift_opened [10:16:14]FM_GetShiftState [10:16:14]SAM_PROTO_GetShiftState [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 13 01 00 [10:16:14]Write to MH i2c: E2 08 00 BF 09 80 13 01 00 00 00 00 00 45 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0E 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0E 00 BF 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A5 [10:16:14]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:16:14]wFMCommunicate OK [10:16:14]SAM_PROTO_GetShiftState done [10:16:14]FM_GetShiftState done [10:16:14]req_shift_opened done [10:16:14]requested_item shift.open_date is exist - process it [10:16:14]req_shift_open_date [10:16:14]req_shift_open_date done [10:16:14]produce_requested_data done [10:16:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63056,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:16:14]process_action_free close_receipt [10:16:14]json_value_free [10:16:14]json_value_free done [10:16:14]process_json_proto returns [10:16:14]Send response to host [10:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63056,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:16:14]free response buf [10:16:14]execute_script done [10:16:14]execute_script returns [10:16:14]free content buf [10:16:14]Sock 7.Close socket [10:16:14]Sock 7.Thread stoped [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:24]accept exits with 9 [10:19:24]New connection [10:19:24]New thread 3067198820 created [10:19:24]Thread 3067055460 joined [10:19:24]Waiting for new connection... [10:19:24] Sock 9.Parse request [10:19:24]Sock 9.Check first char [10:19:24]Sock 9.First char is OK [10:19:24]request: POST /json_proto HTTP/1.0 [10:19:24]Method: POST [10:19:24]URL: /json_proto [10:19:24]Method is POST - this is cgi request [10:19:24]url: /json_proto [10:19:24]query_string will be loaded in cgi processing [10:19:24]execute_cgi json_proto POST (null) [10:19:24]execute_cgi path=json_proto method=POST [10:19:24]POST find Content-Length [10:19:24]Host: 172.17.42.132:8080 [10:19:24]Content-Length: 1185 [10:19:24]Content-Type: application/json [10:19:24] [10:19:24]POST finish read [10:19:24]Found Content-Length = 1185 [10:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47367", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001572372", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:24]execute_script... [10:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47367", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001572372", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:24]POST & json_proto [10:19:24]process_json_proto [10:19:24]json parsed OK: [10:19:24]protocol is kg_v1.0 [10:19:24]action value=close_receipt [10:19:24]process_action close_receipt [10:19:24]cmd_close_receipt [10:19:24]MH_GetDate [10:19:24]Write to MH i2c: F0 00 00 C0 09 B8 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: F0 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: F0 09 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: F0 09 00 C0 09 00 AE 2A 16 67 4C DF 56 66 FD [10:19:24]GetLastDocTimeStamp 1729505771 [10:19:24]current date 1729505966 [10:19:24]FM_GetShiftState [10:19:24]SAM_PROTO_GetShiftState [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 13 01 00 [10:19:24]Write to MH i2c: E2 08 00 C1 09 80 13 01 00 00 00 00 00 47 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 0E 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 0E 00 C1 09 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A7 [10:19:24]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:19:24]wFMCommunicate OK [10:19:24]SAM_PROTO_GetShiftState done [10:19:24]FM_GetShiftState done [10:19:24]opened in 1729469755 [10:19:24]opened+sec_in_day 1729556155 [10:19:24]quantity*price = 3000 [10:19:24]sum+1 = 3001 [10:19:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001572372 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 54 21.10.2024 10:19 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63057 ФПД: 158145042417327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101926&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63057&fm=158145042417327&tin=02508201610067®Number=0000000000091619&sum=18000 0 [10:19:25]StoreToDocumentArchive [10:19:25]shift 544 fd 63057 [10:19:25]save to /storage/0544/doc_00063057 [10:19:25]save last doc name /storage/0544/doc_00063057 to /storage/kkm_last_doc_name [10:19:25]save OK [10:19:25]Clear old archive folders... [10:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=510 [10:19:25]tlvbuf is 0180ACD0 [10:19:25]SAM_PROTO_ClearQueue [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 09 00 00 [10:19:25]Write to MH i2c: E2 08 00 CE 09 80 09 00 00 00 00 00 00 49 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [10:19:25]RAPDU: 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_ClearQueue done [10:19:25]KKMCreateOFDPacket [10:19:25]OFDProtocolAddRootSTLVToBuf [10:19:25]FM_MakeSignedData [10:19:25]FM_MakeSignedData [10:19:25]SAM_PROTO_SignData [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 0D 01 02 [10:19:25]Write to MH i2c: E2 08 00 CF 09 80 0D 01 02 00 00 00 00 51 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [10:19:25]RAPDU: 90 00 [10:19:25]wFMCommunicate OK [10:19:25]wFMCommunicate request_size=255 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 38 37 30 30 30 31 35 37 32 33 37 32 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 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 6A 00 8A 04 08 00 34 36 32 [10:19:25]Write to MH i2c: E2 02 01 D0 09 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 38 37 30 30 30 31 35 37 32 33 37 32 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 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 6A 00 8A 04 08 00 34 36 32 00 00 A8 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=255 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 02 02 FA 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 2A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 [10:19:26]Write to MH i2c: E2 02 01 D1 09 80 0D 02 02 FA 00 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 2A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 57 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=19 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 02 02 0E 51 F6 00 00 35 04 06 00 8F D5 03 13 86 AF [10:19:26]Write to MH i2c: E2 16 00 D2 09 80 0D 02 02 0E 00 51 F6 00 00 35 04 06 00 8F D5 03 13 86 AF 00 00 A6 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 03 02 [10:19:26]Write to MH i2c: E2 08 00 D3 09 80 0D 03 02 00 00 00 00 57 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0B 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0B 00 D3 09 00 55 B9 4C 14 D1 B1 4A BE 90 00 50 [10:19:26]RAPDU: 55 B9 4C 14 D1 B1 4A BE 90 00 [10:19:26]wFMCommunicate OK [10:19:26]SAM_PROTO_SignData done [10:19:26]FM_MakeSignedData done [10:19:26]CreateOFDProtocolMessage [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 11 00 00 [10:19:26]Write to MH i2c: E2 08 00 D4 09 80 11 00 00 00 00 00 00 57 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 D4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B0 [10:19:26]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:26]wFMCommunicate OK [10:19:26]CreateOFDProtocolMessage done [10:19:26]OFDSenderStorePacket 63057 [10:19:26]StoreOFDPacket docnum=63057 [10:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 12 02 00 00 AC 72 0A 02 68 0C 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 38 37 30 30 30 31 35 37 32 33 37 32 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 2A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8F D5 03 13 86 AF 55 B9 4C 14 D1 B1 4A BE [10:19:26]CheckFolder [10:19:26]dirname=/storage/ofd_packets [10:19:26]CheckFolder done [10:19:26]ProducePacketName [10:19:26]name=ofd_packets/00063057 [10:19:26]NVStorageSaveData ofd_packets/00063057 [10:19:26]File name is /storage/ofd_packets/00063057 [10:19:26]Write 560 bytes [10:19:26]NVStorageSaveData done [10:19:26]OFDSenderStorePacket done [10:19:26]KKMCreateOFDPacket done [10:19:26]NVStorageSaveData kkm_last_timestamp [10:19:26]File name is /storage/kkm_last_timestamp [10:19:26]Write 4 bytes [10:19:26]NVStorageSaveData done [10:19:26]ExternCall_PrintAddStr [10:19:26]wPrintStart [10:19:26]Write to MH i2c: 01 00 00 D5 09 DE [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 07 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [10:19:26]RasterBufferAndPrint [10:19:26]line Счет N : (3)47367 [10:19:26]line ИНН: 02508201610067 [10:19:26]line Контрольно-Кассовый Чек [10:19:26]line ПРОДАЖА [10:19:26]line Товар: 4700000310173 [10:19:26]line Вода Адыгене 0,5л б/г [10:19:26]line 1.000 * 30.00 [10:19:26]line = 30.00 [10:19:26]line НДС 12% НСП 1% [10:19:26]line > о реализуемом товаре [10:19:26]line Товар: 4870001572372 [10:19:26]line Напиток Lipton IceTea 1л лимон Regular [10:19:26]line 1.000 * 130.00 [10:19:26]line = 130.00 [10:19:26]line НДС 12% НСП 1% [10:19:26]line > о реализуемом товаре [10:19:26]line Товар: 46226617 [10:19:26]line Mentos ПВ Нежная Мята 6*100*2г [10:19:26]line 2.000 * 10.00 [10:19:26]line = 20.00 [10:19:26]line НДС 12% НСП 1% [10:19:26]line > о реализуемом товаре [10:19:26]line ИТОГО: 180.00 [10:19:26]line НСП 1% : 1.59 [10:19:26]line НДС 12% : 19.11 [10:19:26]line Наличными: 180.00 [10:19:26]line Безнал.: 0.00 [10:19:26]line Место: АЗС № 86 "Партнер Нефть" [10:19:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:19:26]line СНО: Общий режим [10:19:26]line Чек 54 21.10.2024 10:19 [10:19:26]line Смена: 544 ФФД: 1.0 [10:19:26]line ЗНМ: 0300000154 [10:19:26]line РНМ: 0000000000091619 [10:19:26]line Версия ККМ: 001 [10:19:26]line ФМ: 0000000000874676 [10:19:26]line ФД: 63057 [10:19:26]line ФПД: 158145042417327 [10:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101926&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63057&fm=158145042417327&tin=02508201610067®Number=0000000000091619&sum=18000 [10:19:26]line 0 [10:19:26]written 0, free lines is 4095 [10:19:27]OFD Sender: Processing packet 63057 [packets to send 232, broken 231] [10:19:27]ProducePacketName [10:19:27]name=ofd_packets/00063057 [10:19:27]OFD Sender: To server: pG, [10:19:27]CommunicateWithHost lk.salyk.kg:30040 [10:19:27]ConnectInit lk.salyk.kg [10:19:27]Connected sock=10 [10:19: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 12 02 00 00 AC 72 0A 02 68 0C 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 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 38 37 30 30 30 31 35 37 32 33 37 32 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 2A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8F D5 03 13 86 AF 55 B9 4C 14 D1 B1 4A BE [10:19:27]Write to MH i2c: 01 00 00 0B 0A 15 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 50 0C 78 [10:19:27]RasterBufferAndPrint [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]written 0, free lines is 3158 [10:19:27]MH_Cut [10:19:27]Write to MH i2c: D1 01 00 12 0A 01 EE [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 01 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 01 00 12 0A 00 ED [10:19:27]Write to MH i2c: 01 00 00 13 0A 1D [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]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 ED D2 47 00 6F 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F6 00 00 F4 03 04 00 AC D4 15 67 B6 04 01 00 00 D6 65 58 BB 5C 10 CC 2B [10:19:27]CommunicateWithHost err = 0 [10:19:27]CheckOFDResponse [10:19:27]1017 (14) - 77093643461234 [10:19:27]1041 (16) - 0000000000874676 [10:19:27]1040 (4) - 63057 [10:19:27]1012 (4) - 21.10.2024 04:12 [10:19:27]1206 (1) - 0 [10:19:27]OFD Sender: Remove packet 63057 [10:19:27]ProducePacketName [10:19:27]name=ofd_packets/00063057 [10:19:27]NVStorageDeleteData [10:19:28]OFD Sender: No OFD packet to send [10:19:28]*** Cut start [10:19:28]*** Partial cut [10:19:28]*** CUTSNS_PIN = 1 [10:19:28]*** CUTSNS_PIN = 0 [10:19:28]*** Brake cut motor [10:19:28]Read from MH i2c: 01 [10:19:28]MH_I2C_Read... [10:19:28]*** Stop cut motor [10:19:28]*** Cut end [10:19:28]Read from MH i2c: 01 07 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 07 00 13 0A 00 00 00 00 00 FF 0F 32 [10:19:28]process_action close_receipt done [10:19:28]requested_data is exist [10:19:28]produce_requested_data [10:19:28]requested_item fm.sn is exist - process it [10:19:28]wFMCommunicate request_size=4 [10:19:28]MH_SAM_APDU [10:19:28]CAPDU: 80 11 00 00 [10:19:28]Write to MH i2c: E2 08 00 14 0A 80 11 00 00 00 00 00 00 98 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 14 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F1 [10:19:29]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:29]wFMCommunicate OK [10:19:29]requested_item fd.num is exist - process it [10:19:29]SAM_PROTO_GetFieldsCounters [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 13 00 00 [10:19:29]Write to MH i2c: E2 08 00 15 0A 80 13 00 00 00 00 00 00 9B [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 62 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 62 00 15 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 51 F6 00 00 0E 04 04 00 20 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 CE [10:19: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 51 F6 00 00 0E 04 04 00 20 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 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_GetFieldsCounters done [10:19:29]requested_item shift.num is exist - process it [10:19:29]requested_item shift.opened is exist - process it [10:19:29]req_shift_opened [10:19:29]FM_GetShiftState [10:19:29]SAM_PROTO_GetShiftState [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 13 01 00 [10:19:29]Write to MH i2c: E2 08 00 16 0A 80 13 01 00 00 00 00 00 9D [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0E 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0E 00 16 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 FD [10:19:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_GetShiftState done [10:19:29]FM_GetShiftState done [10:19:29]req_shift_opened done [10:19:29]requested_item shift.open_date is exist - process it [10:19:29]req_shift_open_date [10:19:29]req_shift_open_date done [10:19:29]produce_requested_data done [10:19:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63057,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:19:29]process_action_free close_receipt [10:19:29]json_value_free [10:19:29]json_value_free done [10:19:29]process_json_proto returns [10:19:29]Send response to host [10:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63057,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:19:29]free response buf [10:19:29]execute_script done [10:19:29]execute_script returns [10:19:29]free content buf [10:19:29]Sock 9.Close socket [10:19:29]Sock 9.Thread stoped [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:10]accept exits with 7 [10:27:10]New connection [10:27:10]New thread 3067055460 created [10:27:10]Thread 3067198820 joined [10:27:10]Waiting for new connection... [10:27:10] Sock 7.Parse request [10:27:10]Sock 7.Check first char [10:27:10]Sock 7.First char is OK [10:27:10]request: POST /json_proto HTTP/1.0 [10:27:10]Method: POST [10:27:10]URL: /json_proto [10:27:10]Method is POST - this is cgi request [10:27:10]url: /json_proto [10:27:10]query_string will be loaded in cgi processing [10:27:10]execute_cgi json_proto POST (null) [10:27:10]execute_cgi path=json_proto method=POST [10:27:10]POST find Content-Length [10:27:10]Host: 172.17.42.132:8080 [10:27:10]Content-Length: 631 [10:27:10]Content-Type: application/json [10:27:10] [10:27:10]POST finish read [10:27:10]Found Content-Length = 631 [10:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47368", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:10]execute_script... [10:27: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)47368", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:10]POST & json_proto [10:27:10]process_json_proto [10:27:10]json parsed OK: [10:27:10]protocol is kg_v1.0 [10:27:10]action value=close_receipt [10:27:10]process_action close_receipt [10:27:10]cmd_close_receipt [10:27:10]MH_GetDate [10:27:10]Write to MH i2c: F0 00 00 17 0A 10 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: F0 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: F0 09 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: F0 09 00 17 0A 00 80 2C 16 67 4C DF 56 66 29 [10:27:10]GetLastDocTimeStamp 1729505966 [10:27:10]current date 1729506432 [10:27:10]FM_GetShiftState [10:27:10]SAM_PROTO_GetShiftState [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 13 01 00 [10:27:10]Write to MH i2c: E2 08 00 18 0A 80 13 01 00 00 00 00 00 9F [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0E 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0E 00 18 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 FF [10:27:10]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_GetShiftState done [10:27:10]FM_GetShiftState done [10:27:10]opened in 1729469755 [10:27:10]opened+sec_in_day 1729556155 [10:27:10]quantity*price = 6000 [10:27:10]sum+1 = 6001 [10:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 55 21.10.2024 10:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63058 ФПД: 20119726103076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102712&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63058&fm=20119726103076&tin=02508201610067®Number=0000000000091619&sum=6000 0 [10:27:11]StoreToDocumentArchive [10:27:11]shift 544 fd 63058 [10:27:11]save to /storage/0544/doc_00063058 [10:27:11]save last doc name /storage/0544/doc_00063058 to /storage/kkm_last_doc_name [10:27:11]save OK [10:27:11]Clear old archive folders... [10:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:27:11]tlvbuf is 018C1240 [10:27:11]SAM_PROTO_ClearQueue [10:27:11]wFMCommunicate request_size=4 [10:27:11]MH_SAM_APDU [10:27:11]CAPDU: 80 09 00 00 [10:27:11]Write to MH i2c: E2 08 00 25 0A 80 09 00 00 00 00 00 00 A1 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:11]Read from MH i2c: E2 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: E2 03 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [10:27:11]RAPDU: 90 00 [10:27:11]wFMCommunicate OK [10:27:11]SAM_PROTO_ClearQueue done [10:27:11]KKMCreateOFDPacket [10:27:11]OFDProtocolAddRootSTLVToBuf [10:27:11]FM_MakeSignedData [10:27:11]FM_MakeSignedData [10:27:11]SAM_PROTO_SignData [10:27:11]wFMCommunicate request_size=4 [10:27:11]MH_SAM_APDU [10:27:11]CAPDU: 80 0D 01 02 [10:27:11]Write to MH i2c: E2 08 00 26 0A 80 0D 01 02 00 00 00 00 A9 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:11]Read from MH i2c: E2 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: E2 03 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [10:27:11]RAPDU: 90 00 [10:27:11]wFMCommunicate OK [10:27:11]wFMCommunicate request_size=255 [10:27:11]MH_SAM_APDU [10:27:11]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 80 2C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:27:11]Write to MH i2c: E2 02 01 27 0A 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 80 2C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 82 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 03 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 03 00 27 0A 00 90 00 A5 [10:27:12]RAPDU: 90 00 [10:27:12]wFMCommunicate OK [10:27:12]wFMCommunicate request_size=30 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 52 F6 00 00 35 04 06 00 12 4C 7D 20 9A 24 [10:27:12]Write to MH i2c: E2 21 00 28 0A 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 52 F6 00 00 35 04 06 00 12 4C 7D 20 9A 24 00 00 AC [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 03 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 03 00 28 0A 00 90 00 A6 [10:27:12]RAPDU: 90 00 [10:27:12]wFMCommunicate OK [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 0D 03 02 [10:27:12]Write to MH i2c: E2 08 00 29 0A 80 0D 03 02 00 00 00 00 AE [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0B 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0B 00 29 0A 00 26 32 96 BC FF 82 A7 CD 90 00 4E [10:27:12]RAPDU: 26 32 96 BC FF 82 A7 CD 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_SignData done [10:27:12]FM_MakeSignedData done [10:27:12]CreateOFDProtocolMessage [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 11 00 00 [10:27:12]Write to MH i2c: E2 08 00 2A 0A 80 11 00 00 00 00 00 00 AE [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 2A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 07 [10:27: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:27:12]wFMCommunicate OK [10:27:12]CreateOFDProtocolMessage done [10:27:12]OFDSenderStorePacket 63058 [10:27:12]StoreOFDPacket docnum=63058 [10:27: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 23 01 00 00 E3 B4 1B 01 9A 6F 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 80 2C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 12 4C 7D 20 9A 24 26 32 96 BC FF 82 A7 CD [10:27:12]CheckFolder [10:27:12]dirname=/storage/ofd_packets [10:27:12]CheckFolder done [10:27:12]ProducePacketName [10:27:12]name=ofd_packets/00063058 [10:27:12]NVStorageSaveData ofd_packets/00063058 [10:27:12]File name is /storage/ofd_packets/00063058 [10:27:12]Write 321 bytes [10:27:12]NVStorageSaveData done [10:27:12]OFDSenderStorePacket done [10:27:12]KKMCreateOFDPacket done [10:27:12]NVStorageSaveData kkm_last_timestamp [10:27:12]File name is /storage/kkm_last_timestamp [10:27:12]Write 4 bytes [10:27:12]NVStorageSaveData done [10:27:12]ExternCall_PrintAddStr [10:27:12]wPrintStart [10:27:12]Write to MH i2c: 01 00 00 2B 0A 35 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 FF 0F 4A [10:27:12]RasterBufferAndPrint [10:27:12]line Счет N : (3)47368 [10:27:12]line ИНН: 02508201610067 [10:27:12]line Контрольно-Кассовый Чек [10:27:12]line ПРОДАЖА [10:27:12]line Товар: 4700025313937 [10:27:12]line ВОДКА МЯГКАЯ 0,1л [10:27:12]line 1.000 * 60.00 [10:27:12]line = 60.00 [10:27:12]line НДС 12% НСП 1% [10:27:12]line > о реализуемом товаре [10:27:12]line ИТОГО: 60.00 [10:27:12]line НСП 1% : 0.53 [10:27:12]line НДС 12% : 6.37 [10:27:12]line Наличными: 60.00 [10:27:12]line Безнал.: 0.00 [10:27:12]line Место: АЗС № 86 "Партнер Нефть" [10:27:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:27:12]line СНО: Общий режим [10:27:12]line Чек 55 21.10.2024 10:27 [10:27:12]line Смена: 544 ФФД: 1.0 [10:27:12]line ЗНМ: 0300000154 [10:27:12]line РНМ: 0000000000091619 [10:27:12]line Версия ККМ: 001 [10:27:12]line ФМ: 0000000000874676 [10:27:12]line ФД: 63058 [10:27:12]line ФПД: 20119726103076 [10:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102712&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63058&fm=20119726103076&tin=02508201610067®Number=0000000000091619&sum=6000 [10:27:12]line 0 [10:27:12]written 0, free lines is 4095 [10:27:12]OFD Sender: Processing packet 63058 [packets to send 232, broken 231] [10:27:12]ProducePacketName [10:27:12]name=ofd_packets/00063058 [10:27:12]OFD Sender: To server: pG, [10:27:12]CommunicateWithHost lk.salyk.kg:30040 [10:27:12]ConnectInit lk.salyk.kg [10:27:12]Write to MH i2c: 01 00 00 53 0A 5D [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 04 0D 75 [10:27:12]RasterBufferAndPrint [10:27:12]line [10:27:12]line [10:27:12]line [10:27:12]line [10:27:12]line [10:27:12]written 0, free lines is 3338 [10:27:12]MH_Cut [10:27:12]Write to MH i2c: D1 01 00 5A 0A 01 36 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: D1 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: D1 01 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: D1 01 00 5A 0A 00 35 [10:27:12]Write to MH i2c: 01 00 00 5B 0A 65 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]Connected sock=10 [10:27: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 23 01 00 00 E3 B4 1B 01 9A 6F 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 80 2C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 12 4C 7D 20 9A 24 26 32 96 BC FF 82 A7 CD [10:27: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 59 27 47 00 32 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 7E D6 15 67 B6 04 01 00 00 A2 80 56 66 77 10 8A A7 [10:27:13]CommunicateWithHost err = 0 [10:27:13]CheckOFDResponse [10:27:13]1017 (14) - 77093643461234 [10:27:13]1041 (16) - 0000000000874676 [10:27:13]1040 (4) - 63058 [10:27:13]1012 (4) - 21.10.2024 04:20 [10:27:13]1206 (1) - 0 [10:27:13]OFD Sender: Remove packet 63058 [10:27:13]ProducePacketName [10:27:13]name=ofd_packets/00063058 [10:27:13]NVStorageDeleteData [10:27:13]*** Cut start [10:27:13]*** Partial cut [10:27:13]*** CUTSNS_PIN = 1 [10:27:13]*** CUTSNS_PIN = 0 [10:27:13]OFD Sender: No OFD packet to send [10:27:13]*** Brake cut motor [10:27:14]Read from MH i2c: 01 [10:27:14]MH_I2C_Read... [10:27:14]*** Stop cut motor [10:27:14]*** Cut end [10:27:14]Read from MH i2c: 01 07 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 FF 0F 7A [10:27:14]process_action close_receipt done [10:27:14]requested_data is exist [10:27:14]produce_requested_data [10:27:14]requested_item fm.sn is exist - process it [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 11 00 00 [10:27:14]Write to MH i2c: E2 08 00 5C 0A 80 11 00 00 00 00 00 00 E0 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 17 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 17 00 5C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 39 [10:27: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:27:14]wFMCommunicate OK [10:27:14]requested_item fd.num is exist - process it [10:27:14]SAM_PROTO_GetFieldsCounters [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 13 00 00 [10:27:14]Write to MH i2c: E2 08 00 5D 0A 80 13 00 00 00 00 00 00 E3 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 62 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 62 00 5D 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 52 F6 00 00 0E 04 04 00 20 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 1A [10:27: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 52 F6 00 00 0E 04 04 00 20 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 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_GetFieldsCounters done [10:27:14]requested_item shift.num is exist - process it [10:27:14]requested_item shift.opened is exist - process it [10:27:14]req_shift_opened [10:27:14]FM_GetShiftState [10:27:14]SAM_PROTO_GetShiftState [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 13 01 00 [10:27:14]Write to MH i2c: E2 08 00 5E 0A 80 13 01 00 00 00 00 00 E5 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 5E 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 45 [10:27:14]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_GetShiftState done [10:27:14]FM_GetShiftState done [10:27:14]req_shift_opened done [10:27:14]requested_item shift.open_date is exist - process it [10:27:14]req_shift_open_date [10:27:14]req_shift_open_date done [10:27:14]produce_requested_data done [10:27:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63058,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:27:14]process_action_free close_receipt [10:27:14]json_value_free [10:27:14]json_value_free done [10:27:14]process_json_proto returns [10:27:14]Send response to host [10:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63058,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:27:14]free response buf [10:27:14]execute_script done [10:27:14]execute_script returns [10:27:14]free content buf [10:27:14]Sock 7.Close socket [10:27:14]Sock 7.Thread stoped [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:22]accept exits with 9 [10:31:22]New connection [10:31:22]New thread 3067198820 created [10:31:22]Thread 3067055460 joined [10:31:22]Waiting for new connection... [10:31:22] Sock 9.Parse request [10:31:22]Sock 9.Check first char [10:31:22]Sock 9.First char is OK [10:31:22]request: POST /json_proto HTTP/1.0 [10:31:22]Method: POST [10:31:22]URL: /json_proto [10:31:22]Method is POST - this is cgi request [10:31:22]url: /json_proto [10:31:22]query_string will be loaded in cgi processing [10:31:22]execute_cgi json_proto POST (null) [10:31:22]execute_cgi path=json_proto method=POST [10:31:22]POST find Content-Length [10:31:22]Host: 172.17.42.132:8080 [10:31:22]Content-Length: 620 [10:31:22]Content-Type: application/json [10:31:22] [10:31:22]POST finish read [10:31:22]Found Content-Length = 620 [10:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47369", "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" ] } } [10:31:22]execute_script... [10:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47369", "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" ] } } [10:31:22]POST & json_proto [10:31:22]process_json_proto [10:31:22]json parsed OK: [10:31:22]protocol is kg_v1.0 [10:31:22]action value=close_receipt [10:31:22]process_action close_receipt [10:31:22]cmd_close_receipt [10:31:22]MH_GetDate [10:31:22]Write to MH i2c: F0 00 00 5F 0A 58 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 5F 0A 00 7B 2D 16 67 4C DF 56 66 6D [10:31:22]GetLastDocTimeStamp 1729506432 [10:31:22]current date 1729506683 [10:31:22]FM_GetShiftState [10:31:22]SAM_PROTO_GetShiftState [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 13 01 00 [10:31:22]Write to MH i2c: E2 08 00 60 0A 80 13 01 00 00 00 00 00 E7 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 60 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 47 [10:31:22]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_GetShiftState done [10:31:22]FM_GetShiftState done [10:31:22]opened in 1729469755 [10:31:22]opened+sec_in_day 1729556155 [10:31:22]quantity*price = 14400 [10:31:22]sum+1 = 14401 [10:31:22]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 СНО: Общий режим Чек 56 21.10.2024 10:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63059 ФПД: 41612471730663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63059&fm=41612471730663&tin=02508201610067®Number=0000000000091619&sum=14400 0 [10:31:23]StoreToDocumentArchive [10:31:23]shift 544 fd 63059 [10:31:23]save to /storage/0544/doc_00063059 [10:31:23]save last doc name /storage/0544/doc_00063059 to /storage/kkm_last_doc_name [10:31:23]save OK [10:31:23]Clear old archive folders... [10:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:31:23]tlvbuf is 0180A540 [10:31:23]SAM_PROTO_ClearQueue [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 09 00 00 [10:31:23]Write to MH i2c: E2 08 00 6D 0A 80 09 00 00 00 00 00 00 E9 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_ClearQueue done [10:31:23]KKMCreateOFDPacket [10:31:23]OFDProtocolAddRootSTLVToBuf [10:31:23]FM_MakeSignedData [10:31:23]FM_MakeSignedData [10:31:23]SAM_PROTO_SignData [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 01 02 [10:31:23]Write to MH i2c: E2 08 00 6E 0A 80 0D 01 02 00 00 00 00 F1 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=255 [10:31:23]MH_SAM_APDU [10:31:23]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 38 00 00 00 F4 03 04 00 7B 2D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [10:31:23]Write to MH i2c: E2 02 01 6F 0A 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 38 00 00 00 F4 03 04 00 7B 2D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 DB [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=32 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F6 00 00 35 04 06 00 25 D8 A8 98 81 E7 [10:31:23]Write to MH i2c: E2 23 00 70 0A 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F6 00 00 35 04 06 00 25 D8 A8 98 81 E7 00 00 45 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 03 02 [10:31:23]Write to MH i2c: E2 08 00 71 0A 80 0D 03 02 00 00 00 00 F6 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0B 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0B 00 71 0A 00 63 1C 46 EF 11 3C 61 0B 90 00 64 [10:31:23]RAPDU: 63 1C 46 EF 11 3C 61 0B 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_SignData done [10:31:23]FM_MakeSignedData done [10:31:23]CreateOFDProtocolMessage [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 11 00 00 [10:31:23]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 17 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4F [10:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:31:23]wFMCommunicate OK [10:31:23]CreateOFDProtocolMessage done [10:31:23]OFDSenderStorePacket 63059 [10:31:23]StoreOFDPacket docnum=63059 [10:31: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 25 01 00 00 38 59 1D 01 58 A8 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 38 00 00 00 F4 03 04 00 7B 2D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 25 D8 A8 98 81 E7 63 1C 46 EF 11 3C 61 0B [10:31:23]CheckFolder [10:31:23]dirname=/storage/ofd_packets [10:31:23]CheckFolder done [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00063059 [10:31:23]NVStorageSaveData ofd_packets/00063059 [10:31:23]File name is /storage/ofd_packets/00063059 [10:31:23]Write 323 bytes [10:31:23]NVStorageSaveData done [10:31:23]OFDSenderStorePacket done [10:31:23]KKMCreateOFDPacket done [10:31:23]NVStorageSaveData kkm_last_timestamp [10:31:23]File name is /storage/kkm_last_timestamp [10:31:23]Write 4 bytes [10:31:23]NVStorageSaveData done [10:31:23]ExternCall_PrintAddStr [10:31:23]wPrintStart [10:31:23]Write to MH i2c: 01 00 00 73 0A 7D [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 FF 0F 92 [10:31:23]RasterBufferAndPrint [10:31:23]line Счет N : (3)47369 [10:31:23]line ИНН: 02508201610067 [10:31:23]line Контрольно-Кассовый Чек [10:31:23]line ПРОДАЖА [10:31:23]line Товар: 48743570 [10:31:23]line Сигареты Winston XStyle Blue [10:31:23]line 1.000 * 144.00 [10:31:23]line = 144.00 [10:31:23]line НДС 12% НСП 1% [10:31:23]line > о реализуемом товаре [10:31:23]line ИТОГО: 144.00 [10:31:23]line НСП 1% : 1.27 [10:31:23]line НДС 12% : 15.29 [10:31:23]line Наличными: 144.00 [10:31:23]line Безнал.: 0.00 [10:31:23]line Место: АЗС № 86 "Партнер Нефть" [10:31:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:31:23]line СНО: Общий режим [10:31:23]line Чек 56 21.10.2024 10:31 [10:31:23]line Смена: 544 ФФД: 1.0 [10:31:23]line ЗНМ: 0300000154 [10:31:23]line РНМ: 0000000000091619 [10:31:23]line Версия ККМ: 001 [10:31:23]line ФМ: 0000000000874676 [10:31:23]line ФД: 63059 [10:31:23]line ФПД: 41612471730663 [10:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63059&fm=41612471730663&tin=02508201610067®Number=0000000000091619&sum=14400 [10:31:24]OFD Sender: Processing packet 63059 [packets to send 232, broken 231] [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00063059 [10:31:24]OFD Sender: To server: pG, [10:31:24]CommunicateWithHost lk.salyk.kg:30040 [10:31:24]ConnectInit lk.salyk.kg [10:31:24]line 0 [10:31:24]written 0, free lines is 4095 [10:31:24]Connected sock=10 [10:31: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 25 01 00 00 38 59 1D 01 58 A8 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 38 00 00 00 F4 03 04 00 7B 2D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 25 D8 A8 98 81 E7 63 1C 46 EF 11 3C 61 0B [10:31:24]Write to MH i2c: 01 00 00 9B 0A A5 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 10 0D C9 [10:31:24]RasterBufferAndPrint [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]written 0, free lines is 3350 [10:31:24]MH_Cut [10:31:24]Write to MH i2c: D1 01 00 A2 0A 01 7E [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 01 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 01 00 A2 0A 00 7D [10:31:24]Write to MH i2c: 01 00 00 A3 0A AD [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31: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 18 A5 47 00 A7 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 79 D7 15 67 B6 04 01 00 00 84 CF 02 47 69 96 5F AF [10:31:24]CommunicateWithHost err = 0 [10:31:24]CheckOFDResponse [10:31:24]1017 (14) - 77093643461234 [10:31:24]1041 (16) - 0000000000874676 [10:31:24]1040 (4) - 63059 [10:31:24]1012 (4) - 21.10.2024 04:24 [10:31:24]1206 (1) - 0 [10:31:24]OFD Sender: Remove packet 63059 [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00063059 [10:31:24]NVStorageDeleteData [10:31:25]OFD Sender: No OFD packet to send [10:31:25]*** Cut start [10:31:25]*** Partial cut [10:31:25]*** CUTSNS_PIN = 1 [10:31:25]*** CUTSNS_PIN = 0 [10:31:25]*** Brake cut motor [10:31:25]Read from MH i2c: 01 [10:31:25]MH_I2C_Read... [10:31:25]*** Stop cut motor [10:31:25]*** Cut end [10:31:25]Read from MH i2c: 01 07 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [10:31:25]process_action close_receipt done [10:31:25]requested_data is exist [10:31:25]produce_requested_data [10:31:25]requested_item fm.sn is exist - process it [10:31:25]wFMCommunicate request_size=4 [10:31:25]MH_SAM_APDU [10:31:25]CAPDU: 80 11 00 00 [10:31:25]Write to MH i2c: E2 08 00 A4 0A 80 11 00 00 00 00 00 00 28 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:25]Read from MH i2c: E2 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 17 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 17 00 A4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 81 [10:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:31:25]wFMCommunicate OK [10:31:25]requested_item fd.num is exist - process it [10:31:25]SAM_PROTO_GetFieldsCounters [10:31:25]wFMCommunicate request_size=4 [10:31:25]MH_SAM_APDU [10:31:25]CAPDU: 80 13 00 00 [10:31:25]Write to MH i2c: E2 08 00 A5 0A 80 13 00 00 00 00 00 00 2B [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 A5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 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 F6 00 00 0E 04 04 00 20 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 66 [10:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetFieldsCounters done [10:31:26]requested_item shift.num is exist - process it [10:31:26]requested_item shift.opened is exist - process it [10:31:26]req_shift_opened [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 A6 0A 80 13 01 00 00 00 00 00 2D [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 A6 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8D [10:31:26]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]req_shift_opened done [10:31:26]requested_item shift.open_date is exist - process it [10:31:26]req_shift_open_date [10:31:26]req_shift_open_date done [10:31:26]produce_requested_data done [10:31:26]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63059,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:31:26]process_action_free close_receipt [10:31:26]json_value_free [10:31:26]json_value_free done [10:31:26]process_json_proto returns [10:31:26]Send response to host [10:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63059,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:31:26]free response buf [10:31:26]execute_script done [10:31:26]execute_script returns [10:31:26]free content buf [10:31:26]Sock 9.Close socket [10:31:26]Sock 9.Thread stoped [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:16]accept exits with 7 [10:41:16]New connection [10:41:16]New thread 3067055460 created [10:41:16]Thread 3067198820 joined [10:41:16]Waiting for new connection... [10:41:16] Sock 7.Parse request [10:41:16]Sock 7.Check first char [10:41:16]Sock 7.First char is OK [10:41:16]request: POST /json_proto HTTP/1.0 [10:41:16]Method: POST [10:41:16]URL: /json_proto [10:41:16]Method is POST - this is cgi request [10:41:16]url: /json_proto [10:41:16]query_string will be loaded in cgi processing [10:41:16]execute_cgi json_proto POST (null) [10:41:16]execute_cgi path=json_proto method=POST [10:41:16]POST find Content-Length [10:41:16]Host: 172.17.42.132:8080 [10:41:16]Content-Length: 645 [10:41:16]Content-Type: application/json [10:41:16] [10:41:16]POST finish read [10:41:16]Found Content-Length = 645 [10:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47370", "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" ] } } [10:41:16]execute_script... [10:41: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)47370", "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" ] } } [10:41:16]POST & json_proto [10:41:16]process_json_proto [10:41:16]json parsed OK: [10:41:16]protocol is kg_v1.0 [10:41:16]action value=close_receipt [10:41:16]process_action close_receipt [10:41:16]cmd_close_receipt [10:41:16]MH_GetDate [10:41:16]Write to MH i2c: F0 00 00 A7 0A A0 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 09 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: F0 09 00 A7 0A 00 CD 2F 16 67 4C DF 56 66 09 [10:41:16]GetLastDocTimeStamp 1729506683 [10:41:16]current date 1729507277 [10:41:16]FM_GetShiftState [10:41:16]SAM_PROTO_GetShiftState [10:41:16]wFMCommunicate request_size=4 [10:41:16]MH_SAM_APDU [10:41:16]CAPDU: 80 13 01 00 [10:41:16]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0E 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8F [10:41:16]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:41:16]wFMCommunicate OK [10:41:16]SAM_PROTO_GetShiftState done [10:41:16]FM_GetShiftState done [10:41:16]opened in 1729469755 [10:41:16]opened+sec_in_day 1729556155 [10:41:16]quantity*price = 13000 [10:41:16]sum+1 = 13001 [10:41:16]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 СНО: Общий режим Чек 57 21.10.2024 10:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63060 ФПД: 168502822539910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104117&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63060&fm=168502822539910&tin=02508201610067®Number=0000000000091619&sum=13000 0 [10:41:17]StoreToDocumentArchive [10:41:17]shift 544 fd 63060 [10:41:17]save to /storage/0544/doc_00063060 [10:41:17]save last doc name /storage/0544/doc_00063060 to /storage/kkm_last_doc_name [10:41:17]save OK [10:41:17]Clear old archive folders... [10:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:41:17]tlvbuf is 0180A150 [10:41:17]SAM_PROTO_ClearQueue [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 09 00 00 [10:41:17]Write to MH i2c: E2 08 00 B5 0A 80 09 00 00 00 00 00 00 31 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [10:41:17]RAPDU: 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_ClearQueue done [10:41:17]KKMCreateOFDPacket [10:41:17]OFDProtocolAddRootSTLVToBuf [10:41:17]FM_MakeSignedData [10:41:17]FM_MakeSignedData [10:41:17]SAM_PROTO_SignData [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 0D 01 02 [10:41:17]Write to MH i2c: E2 08 00 B6 0A 80 0D 01 02 00 00 00 00 39 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [10:41:17]RAPDU: 90 00 [10:41:17]wFMCommunicate OK [10:41:17]wFMCommunicate request_size=255 [10:41:17]MH_SAM_APDU [10:41: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 39 00 00 00 F4 03 04 00 CD 2F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [10:41:17]Write to MH i2c: E2 02 01 B7 0A 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 39 00 00 00 F4 03 04 00 CD 2F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [10:41:17]RAPDU: 90 00 [10:41:17]wFMCommunicate OK [10:41:17]wFMCommunicate request_size=41 [10:41:17]MH_SAM_APDU [10:41: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 54 F6 00 00 35 04 06 00 99 40 9E E1 92 86 [10:41:17]Write to MH i2c: E2 2C 00 B8 0A 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 54 F6 00 00 35 04 06 00 99 40 9E E1 92 86 00 00 CB [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [10:41:17]RAPDU: 90 00 [10:41:17]wFMCommunicate OK [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 0D 03 02 [10:41:17]Write to MH i2c: E2 08 00 B9 0A 80 0D 03 02 00 00 00 00 3E [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0B 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0B 00 B9 0A 00 C6 63 3C 72 83 14 D6 BE 90 00 41 [10:41:17]RAPDU: C6 63 3C 72 83 14 D6 BE 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_SignData done [10:41:17]FM_MakeSignedData done [10:41:17]CreateOFDProtocolMessage [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 11 00 00 [10:41:17]Write to MH i2c: E2 08 00 BA 0A 80 11 00 00 00 00 00 00 3E [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 BA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 97 [10:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:41:17]wFMCommunicate OK [10:41:17]CreateOFDProtocolMessage done [10:41:17]OFDSenderStorePacket 63060 [10:41:17]StoreOFDPacket docnum=63060 [10:41: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 A9 FF 26 01 62 21 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 39 00 00 00 F4 03 04 00 CD 2F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 99 40 9E E1 92 86 C6 63 3C 72 83 14 D6 BE [10:41:17]CheckFolder [10:41:17]dirname=/storage/ofd_packets [10:41:17]CheckFolder done [10:41:17]ProducePacketName [10:41:17]name=ofd_packets/00063060 [10:41:17]NVStorageSaveData ofd_packets/00063060 [10:41:17]File name is /storage/ofd_packets/00063060 [10:41:17]Write 332 bytes [10:41:17]NVStorageSaveData done [10:41:17]OFDSenderStorePacket done [10:41:17]KKMCreateOFDPacket done [10:41:17]NVStorageSaveData kkm_last_timestamp [10:41:17]File name is /storage/kkm_last_timestamp [10:41:17]Write 4 bytes [10:41:17]NVStorageSaveData done [10:41:17]ExternCall_PrintAddStr [10:41:17]wPrintStart [10:41:17]Write to MH i2c: 01 00 00 BB 0A C5 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 FF 0F DA [10:41:17]RasterBufferAndPrint [10:41:17]line Счет N : (3)47370 [10:41:17]line ИНН: 02508201610067 [10:41:17]line Контрольно-Кассовый Чек [10:41:17]line ПРОДАЖА [10:41:17]line Товар: 2000036220012 [10:41:17]line Кофе Капучино XL(GABB TRADE) [10:41:17]line 1.000 * 130.00 [10:41:17]line = 130.00 [10:41:17]line НДС 12% НСП 1% [10:41:17]line > о реализуемом товаре [10:41:17]line ИТОГО: 130.00 [10:41:17]line НСП 1% : 1.15 [10:41:17]line НДС 12% : 13.80 [10:41:17]line Наличными: 130.00 [10:41:17]line Безнал.: 0.00 [10:41:17]line Место: АЗС № 86 "Партнер Нефть" [10:41:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:41:17]line СНО: Общий режим [10:41:17]line Чек 57 21.10.2024 10:41 [10:41:17]line Смена: 544 ФФД: 1.0 [10:41:17]line ЗНМ: 0300000154 [10:41:17]line РНМ: 0000000000091619 [10:41:17]line Версия ККМ: 001 [10:41:17]line ФМ: 0000000000874676 [10:41:17]line ФД: 63060 [10:41:17]line ФПД: 168502822539910 [10:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104117&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63060&fm=168502822539910&tin=02508201610067®Number=0000000000091619&sum=13000 [10:41:18]line 0 [10:41:18]OFD Sender: Processing packet 63060 [packets to send 232, broken 231] [10:41:18]ProducePacketName [10:41:18]name=ofd_packets/00063060 [10:41:18]OFD Sender: To server: pG, [10:41:18]CommunicateWithHost lk.salyk.kg:30040 [10:41:18]ConnectInit lk.salyk.kg [10:41:18]written 0, free lines is 4095 [10:41:18]Connected sock=10 [10:41: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 A9 FF 26 01 62 21 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 39 00 00 00 F4 03 04 00 CD 2F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 99 40 9E E1 92 86 C6 63 3C 72 83 14 D6 BE [10:41:18]Write to MH i2c: 01 00 00 E4 0A EE [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: 01 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: 01 07 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 08 0D 0A [10:41:18]RasterBufferAndPrint [10:41:18]line [10:41:18]line [10:41:18]line [10:41:18]line [10:41:18]line [10:41:18]written 0, free lines is 3342 [10:41:18]MH_Cut [10:41:18]Write to MH i2c: D1 01 00 EB 0A 01 C7 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: D1 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: D1 01 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: D1 01 00 EB 0A 00 C6 [10:41:18]Write to MH i2c: 01 00 00 EC 0A F6 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41: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 59 27 47 00 74 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F6 00 00 F4 03 04 00 CB D9 15 67 B6 04 01 00 00 CE 34 5B 56 9E 85 5D F2 [10:41:18]CommunicateWithHost err = 0 [10:41:18]CheckOFDResponse [10:41:18]1017 (14) - 77093643461234 [10:41:18]1041 (16) - 0000000000874676 [10:41:18]1040 (4) - 63060 [10:41:18]1012 (4) - 21.10.2024 04:34 [10:41:18]1206 (1) - 0 [10:41:18]OFD Sender: Remove packet 63060 [10:41:18]ProducePacketName [10:41:18]name=ofd_packets/00063060 [10:41:18]NVStorageDeleteData [10:41:19]OFD Sender: No OFD packet to send [10:41:19]*** Cut start [10:41:19]*** Partial cut [10:41:19]*** CUTSNS_PIN = 1 [10:41:19]*** CUTSNS_PIN = 0 [10:41:19]*** Brake cut motor [10:41:19]Read from MH i2c: 01 [10:41:19]MH_I2C_Read... [10:41:19]*** Stop cut motor [10:41:19]*** Cut end [10:41:19]Read from MH i2c: 01 07 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [10:41:19]process_action close_receipt done [10:41:19]requested_data is exist [10:41:19]produce_requested_data [10:41:19]requested_item fm.sn is exist - process it [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 11 00 00 [10:41:19]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 17 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CA [10:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:41:19]wFMCommunicate OK [10:41:19]requested_item fd.num is exist - process it [10:41:19]SAM_PROTO_GetFieldsCounters [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 13 00 00 [10:41:19]Write to MH i2c: E2 08 00 EE 0A 80 13 00 00 00 00 00 00 74 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:20]Read from MH i2c: E2 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 62 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 62 00 EE 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 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 F6 00 00 0E 04 04 00 20 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 B3 [10:41: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 54 F6 00 00 0E 04 04 00 20 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 [10:41:20]wFMCommunicate OK [10:41:20]SAM_PROTO_GetFieldsCounters done [10:41:20]requested_item shift.num is exist - process it [10:41:20]requested_item shift.opened is exist - process it [10:41:20]req_shift_opened [10:41:20]FM_GetShiftState [10:41:20]SAM_PROTO_GetShiftState [10:41:20]wFMCommunicate request_size=4 [10:41:20]MH_SAM_APDU [10:41:20]CAPDU: 80 13 01 00 [10:41:20]Write to MH i2c: E2 08 00 EF 0A 80 13 01 00 00 00 00 00 76 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:20]Read from MH i2c: E2 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0E 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0E 00 EF 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D6 [10:41:20]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:41:20]wFMCommunicate OK [10:41:20]SAM_PROTO_GetShiftState done [10:41:20]FM_GetShiftState done [10:41:20]req_shift_opened done [10:41:20]requested_item shift.open_date is exist - process it [10:41:20]req_shift_open_date [10:41:20]req_shift_open_date done [10:41:20]produce_requested_data done [10:41:20]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63060,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:41:20]process_action_free close_receipt [10:41:20]json_value_free [10:41:20]json_value_free done [10:41:20]process_json_proto returns [10:41:20]Send response to host [10:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63060,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:41:20]free response buf [10:41:20]execute_script done [10:41:20]execute_script returns [10:41:20]free content buf [10:41:20]Sock 7.Close socket [10:41:20]Sock 7.Thread stoped [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:47]accept exits with 9 [10:42:47]New connection [10:42:47]New thread 3067198820 created [10:42:47]Thread 3067055460 joined [10:42:47]Waiting for new connection... [10:42:47] Sock 9.Parse request [10:42:47]Sock 9.Check first char [10:42:47]Sock 9.First char is OK [10:42:47]request: POST /json_proto HTTP/1.0 [10:42:47]Method: POST [10:42:47]URL: /json_proto [10:42:47]Method is POST - this is cgi request [10:42:47]url: /json_proto [10:42:47]query_string will be loaded in cgi processing [10:42:47]execute_cgi json_proto POST (null) [10:42:47]execute_cgi path=json_proto method=POST [10:42:47]POST find Content-Length [10:42:47]Host: 172.17.42.132:8080 [10:42:47]Content-Length: 1225 [10:42:47]Content-Type: application/json [10:42:47] [10:42:47]POST finish read [10:42:47]Found Content-Length = 1225 [10:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47371", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" ] } } [10:42:47]execute_script... [10:42: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)47371", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" ] } } [10:42:47]POST & json_proto [10:42:47]process_json_proto [10:42:47]json parsed OK: [10:42:47]protocol is kg_v1.0 [10:42:47]action value=close_receipt [10:42:47]process_action close_receipt [10:42:47]cmd_close_receipt [10:42:47]MH_GetDate [10:42:47]Write to MH i2c: F0 00 00 F0 0A E9 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: F0 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: F0 09 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: F0 09 00 F0 0A 00 29 30 16 67 4C DF 56 66 AF [10:42:47]GetLastDocTimeStamp 1729507277 [10:42:47]current date 1729507369 [10:42:47]FM_GetShiftState [10:42:47]SAM_PROTO_GetShiftState [10:42:47]wFMCommunicate request_size=4 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 13 01 00 [10:42:47]Write to MH i2c: E2 08 00 F1 0A 80 13 01 00 00 00 00 00 78 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 0E 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 0E 00 F1 0A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D8 [10:42:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:42:47]wFMCommunicate OK [10:42:47]SAM_PROTO_GetShiftState done [10:42:47]FM_GetShiftState done [10:42:47]opened in 1729469755 [10:42:47]opened+sec_in_day 1729556155 [10:42:47]quantity*price = 5400 [10:42:47]sum+1 = 5401 [10:42:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 249.00 НСП 1% : 2.20 НДС 12% : 26.43 Наличными: 249.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 58 21.10.2024 10:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63061 ФПД: 161091654582143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104249&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63061&fm=161091654582143&tin=02508201610067®Number=0000000000091619&sum=24900 0 [10:42:48]StoreToDocumentArchive [10:42:48]shift 544 fd 63061 [10:42:48]save to /storage/0544/doc_00063061 [10:42:48]save last doc name /storage/0544/doc_00063061 to /storage/kkm_last_doc_name [10:42:48]save OK [10:42:48]Clear old archive folders... [10:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=514 [10:42:48]tlvbuf is 018FF0C0 [10:42:48]SAM_PROTO_ClearQueue [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 09 00 00 [10:42:48]Write to MH i2c: E2 08 00 FE 0A 80 09 00 00 00 00 00 00 7A [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:48]Read from MH i2c: E2 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 03 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [10:42:48]RAPDU: 90 00 [10:42:48]wFMCommunicate OK [10:42:48]SAM_PROTO_ClearQueue done [10:42:48]KKMCreateOFDPacket [10:42:48]OFDProtocolAddRootSTLVToBuf [10:42:48]FM_MakeSignedData [10:42:48]FM_MakeSignedData [10:42:48]SAM_PROTO_SignData [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 0D 01 02 [10:42:48]Write to MH i2c: E2 08 00 FF 0A 80 0D 01 02 00 00 00 00 82 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:48]Read from MH i2c: E2 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 03 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [10:42:48]RAPDU: 90 00 [10:42:48]wFMCommunicate OK [10:42:48]wFMCommunicate request_size=255 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 0D 02 02 FA 03 00 02 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 6E 00 8A 04 0D 00 32 30 30 [10:42:48]Write to MH i2c: E2 02 01 00 0B 80 0D 02 02 FA 00 03 00 02 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 6E 00 8A 04 0D 00 32 30 30 00 00 0C [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]OFD Sender: No OFD packet to send [10:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [10:42:49]RAPDU: 90 00 [10:42:49]wFMCommunicate OK [10:42:49]wFMCommunicate request_size=255 [10:42:49]MH_SAM_APDU [10:42:49]CAPDU: 80 0D 02 02 FA 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 53 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 3A 00 00 00 F4 03 04 00 29 30 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 [10:42:49]Write to MH i2c: E2 02 01 01 0B 80 0D 02 02 FA 00 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 53 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 3A 00 00 00 F4 03 04 00 29 30 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 00 00 D2 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [10:42:49]RAPDU: 90 00 [10:42:49]wFMCommunicate OK [10:42:49]wFMCommunicate request_size=23 [10:42:49]MH_SAM_APDU [10:42:49]CAPDU: 80 0D 02 02 12 10 04 04 00 55 F6 00 00 35 04 06 00 92 83 12 D8 FF 7F [10:42:49]Write to MH i2c: E2 1A 00 02 0B 80 0D 02 02 12 00 10 04 04 00 55 F6 00 00 35 04 06 00 92 83 12 D8 FF 7F 00 00 CA [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [10:42:49]RAPDU: 90 00 [10:42:49]wFMCommunicate OK [10:42:49]wFMCommunicate request_size=4 [10:42:49]MH_SAM_APDU [10:42:49]CAPDU: 80 0D 03 02 [10:42:49]Write to MH i2c: E2 08 00 03 0B 80 0D 03 02 00 00 00 00 89 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0B 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0B 00 03 0B 00 02 00 25 C3 73 70 D7 46 90 00 74 [10:42:49]RAPDU: 02 00 25 C3 73 70 D7 46 90 00 [10:42:49]wFMCommunicate OK [10:42:49]SAM_PROTO_SignData done [10:42:49]FM_MakeSignedData done [10:42:49]CreateOFDProtocolMessage [10:42:49]wFMCommunicate request_size=4 [10:42:49]MH_SAM_APDU [10:42:49]CAPDU: 80 11 00 00 [10:42:49]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 17 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 17 00 04 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E2 [10:42: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:42:49]wFMCommunicate OK [10:42:49]CreateOFDProtocolMessage done [10:42:49]OFDSenderStorePacket 63061 [10:42:49]StoreOFDPacket docnum=63061 [10:42: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 16 02 00 00 42 C2 0E 02 94 B9 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 53 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 3A 00 00 00 F4 03 04 00 29 30 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 92 83 12 D8 FF 7F 02 00 25 C3 73 70 D7 46 [10:42:49]CheckFolder [10:42:49]dirname=/storage/ofd_packets [10:42:49]CheckFolder done [10:42:49]ProducePacketName [10:42:49]name=ofd_packets/00063061 [10:42:49]NVStorageSaveData ofd_packets/00063061 [10:42:49]File name is /storage/ofd_packets/00063061 [10:42:49]Write 564 bytes [10:42:49]NVStorageSaveData done [10:42:49]OFDSenderStorePacket done [10:42:49]KKMCreateOFDPacket done [10:42:49]NVStorageSaveData kkm_last_timestamp [10:42:49]File name is /storage/kkm_last_timestamp [10:42:49]Write 4 bytes [10:42:49]NVStorageSaveData done [10:42:49]ExternCall_PrintAddStr [10:42:49]wPrintStart [10:42:49]Write to MH i2c: 01 00 00 05 0B 10 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: 01 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: 01 07 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [10:42:49]RasterBufferAndPrint [10:42:49]line Счет N : (3)47371 [10:42:49]line ИНН: 02508201610067 [10:42:49]line Контрольно-Кассовый Чек [10:42:49]line ПРОДАЖА [10:42:49]line Товар: 4011100977952 [10:42:49]line Шок Батончик Твикс 55г [10:42:49]line 1.000 * 54.00 [10:42:49]line = 54.00 [10:42:49]line НДС 12% НСП 1% [10:42:49]line > о реализуемом товаре [10:42:49]line Товар: 5449000189325 [10:42:49]line Холодный чай Fuse персик 0,5л [10:42:49]line 1.000 * 75.00 [10:42:49]line = 75.00 [10:42:49]line НДС 12% НСП 1% [10:42:49]line > о реализуемом товаре [10:42:49]line Товар: 2000034250011 [10:42:49]line Горячий шоколад (GABB trade) [10:42:49]line 1.000 * 120.00 [10:42:49]line = 120.00 [10:42:49]line НДС 12% НСП 1% [10:42:49]line > о реализуемом товаре [10:42:49]line ИТОГО: 249.00 [10:42:49]line НСП 1% : 2.20 [10:42:49]line НДС 12% : 26.43 [10:42:49]line Наличными: 249.00 [10:42:49]line Безнал.: 0.00 [10:42:49]line Место: АЗС № 86 "Партнер Нефть" [10:42:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:42:49]line СНО: Общий режим [10:42:49]line Чек 58 21.10.2024 10:42 [10:42:49]line Смена: 544 ФФД: 1.0 [10:42:49]line ЗНМ: 0300000154 [10:42:49]line РНМ: 0000000000091619 [10:42:49]line Версия ККМ: 001 [10:42:49]line ФМ: 0000000000874676 [10:42:49]line ФД: 63061 [10:42:49]line ФПД: 161091654582143 [10:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104249&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63061&fm=161091654582143&tin=02508201610067®Number=0000000000091619&sum=24900 [10:42:49]line 0 [10:42:50]written 0, free lines is 4095 [10:42:50]OFD Sender: Processing packet 63061 [packets to send 232, broken 231] [10:42:50]ProducePacketName [10:42:50]name=ofd_packets/00063061 [10:42:50]OFD Sender: To server: pG, [10:42:50]CommunicateWithHost lk.salyk.kg:30040 [10:42:50]ConnectInit lk.salyk.kg [10:42:50]Write to MH i2c: 01 00 00 3B 0B 46 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 47 0C A0 [10:42:50]RasterBufferAndPrint [10:42:50]line [10:42:50]line [10:42:50]line [10:42:50]line [10:42:50]line [10:42:50]written 0, free lines is 3149 [10:42:50]MH_Cut [10:42:50]Write to MH i2c: D1 01 00 42 0B 01 1F [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: D1 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: D1 01 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: D1 01 00 42 0B 00 1E [10:42:50]Write to MH i2c: 01 00 00 43 0B 4E [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:51]*** Cut start [10:42:51]*** Partial cut [10:42:51]*** CUTSNS_PIN = 1 [10:42:51]*** CUTSNS_PIN = 0 [10:42:51]*** Brake cut motor [10:42:52]Read from MH i2c: 01 [10:42:52]MH_I2C_Read... [10:42:52]*** Stop cut motor [10:42:52]*** Cut end [10:42:52]Read from MH i2c: 01 07 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 FF 0F 63 [10:42:52]process_action close_receipt done [10:42:52]requested_data is exist [10:42:52]produce_requested_data [10:42:52]requested_item fm.sn is exist - process it [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 11 00 00 [10:42:52]Write to MH i2c: E2 08 00 44 0B 80 11 00 00 00 00 00 00 C9 [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 17 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 17 00 44 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 22 [10:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:42:52]wFMCommunicate OK [10:42:52]requested_item fd.num is exist - process it [10:42:52]SAM_PROTO_GetFieldsCounters [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 13 00 00 [10:42:52]Write to MH i2c: E2 08 00 45 0B 80 13 00 00 00 00 00 00 CC [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 62 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 62 00 45 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 55 F6 00 00 0E 04 04 00 20 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 0F [10:42: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 55 F6 00 00 0E 04 04 00 20 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 [10:42:52]wFMCommunicate OK [10:42:52]SAM_PROTO_GetFieldsCounters done [10:42:52]requested_item shift.num is exist - process it [10:42:52]requested_item shift.opened is exist - process it [10:42:52]req_shift_opened [10:42:52]FM_GetShiftState [10:42:52]SAM_PROTO_GetShiftState [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 13 01 00 [10:42:52]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2E [10:42:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [10:42:52]wFMCommunicate OK [10:42:52]SAM_PROTO_GetShiftState done [10:42:52]FM_GetShiftState done [10:42:52]req_shift_opened done [10:42:52]requested_item shift.open_date is exist - process it [10:42:52]req_shift_open_date [10:42:52]req_shift_open_date done [10:42:52]produce_requested_data done [10:42:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63061,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [10:42:52]process_action_free close_receipt [10:42:52]json_value_free [10:42:52]json_value_free done [10:42:52]process_json_proto returns [10:42:52]Send response to host [10:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63061,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [10:42:52]free response buf [10:42:52]execute_script done [10:42:52]execute_script returns [10:42:52]free content buf [10:42:52]Sock 9.Close socket [10:42:52]Sock 9.Thread stoped [10:45:02]ConnectInit Can't connect to host [10:45:02]CommunicateWithHost connect error [10:45:02]CommunicateWithHost err = -1 [10:45:02]OFD Sender: Server communicate error [10:45:07]OFD Sender: Processing packet 63061 [packets to send 232, broken 231] [10:45:07]ProducePacketName [10:45:07]name=ofd_packets/00063061 [10:45:07]OFD Sender: To server: pG, [10:45:07]CommunicateWithHost lk.salyk.kg:30040 [10:45:07]ConnectInit lk.salyk.kg [10:45:07]Connected sock=9 [10:45: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 16 02 00 00 42 C2 0E 02 94 B9 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 53 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 3A 00 00 00 F4 03 04 00 29 30 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 92 83 12 D8 FF 7F 02 00 25 C3 73 70 D7 46 [10:45: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 02 26 47 00 38 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 55 F6 00 00 F4 03 04 00 B1 DA 15 67 B6 04 01 00 00 A8 86 77 C8 2A A7 46 3A [10:45:08]CommunicateWithHost err = 0 [10:45:08]CheckOFDResponse [10:45:08]1017 (14) - 77093643461234 [10:45:08]1041 (16) - 0000000000874676 [10:45:08]1040 (4) - 63061 [10:45:08]1012 (4) - 21.10.2024 04:38 [10:45:08]1206 (1) - 0 [10:45:08]OFD Sender: Remove packet 63061 [10:45:08]ProducePacketName [10:45:08]name=ofd_packets/00063061 [10:45:08]NVStorageDeleteData [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:25]ConnectInit Can't connect to host [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]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:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:55]accept exits with 7 [11:22:55]New connection [11:22:55]New thread 3067055460 created [11:22:55] Sock 7.Parse request [11:22:55]Thread 3067198820 joined [11:22:55]Sock 7.Check first char [11:22:55]Waiting for new connection... [11:22:55]Sock 7.First char is OK [11:22:55]request: POST /json_proto HTTP/1.0 [11:22:55]Method: POST [11:22:55]URL: /json_proto [11:22:55]Method is POST - this is cgi request [11:22:55]url: /json_proto [11:22:55]query_string will be loaded in cgi processing [11:22:55]execute_cgi json_proto POST (null) [11:22:55]execute_cgi path=json_proto method=POST [11:22:55]POST find Content-Length [11:22:55]Host: 172.17.42.132:8080 [11:22:55]Content-Length: 644 [11:22:55]Content-Type: application/json [11:22:55] [11:22:55]POST finish read [11:22:55]Found Content-Length = 644 [11:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47372", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:55]execute_script... [11:22: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)47372", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:55]POST & json_proto [11:22:55]process_json_proto [11:22:55]json parsed OK: [11:22:55]protocol is kg_v1.0 [11:22:55]action value=close_receipt [11:22:55]process_action close_receipt [11:22:55]cmd_close_receipt [11:22:55]MH_GetDate [11:22:55]Write to MH i2c: F0 00 00 47 0B 41 [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: F0 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: F0 09 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: F0 09 00 47 0B 00 91 39 16 67 4C DF 56 66 78 [11:22:55]GetLastDocTimeStamp 1729507369 [11:22:55]current date 1729509777 [11:22:55]FM_GetShiftState [11:22:55]SAM_PROTO_GetShiftState [11:22:55]wFMCommunicate request_size=4 [11:22:55]MH_SAM_APDU [11:22:55]CAPDU: 80 13 01 00 [11:22:55]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:55]Read from MH i2c: E2 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 0E 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 30 [11:22:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:22:55]wFMCommunicate OK [11:22:55]SAM_PROTO_GetShiftState done [11:22:55]FM_GetShiftState done [11:22:55]opened in 1729469755 [11:22:55]opened+sec_in_day 1729556155 [11:22:55]quantity*price = 6000 [11:22:55]sum+1 = 6001 [11:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 59 21.10.2024 11:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63062 ФПД: 243089196044894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112257&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63062&fm=243089196044894&tin=02508201610067®Number=0000000000091619&sum=6000 0 [11:22:56]StoreToDocumentArchive [11:22:56]shift 544 fd 63062 [11:22:56]save to /storage/0544/doc_00063062 [11:22:56]save last doc name /storage/0544/doc_00063062 to /storage/kkm_last_doc_name [11:22:56]save OK [11:22:56]Clear old archive folders... [11:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:22:56]tlvbuf is B6F91730 [11:22:56]SAM_PROTO_ClearQueue [11:22:56]wFMCommunicate request_size=4 [11:22:56]MH_SAM_APDU [11:22:56]CAPDU: 80 09 00 00 [11:22:56]Write to MH i2c: E2 08 00 55 0B 80 09 00 00 00 00 00 00 D2 [11:22:56]Write i2c OK [11:22:56]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [11:22:57]RAPDU: 90 00 [11:22:57]wFMCommunicate OK [11:22:57]SAM_PROTO_ClearQueue done [11:22:57]KKMCreateOFDPacket [11:22:57]OFDProtocolAddRootSTLVToBuf [11:22:57]FM_MakeSignedData [11:22:57]FM_MakeSignedData [11:22:57]SAM_PROTO_SignData [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 0D 01 02 [11:22:57]Write to MH i2c: E2 08 00 56 0B 80 0D 01 02 00 00 00 00 DA [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [11:22:57]RAPDU: 90 00 [11:22:57]wFMCommunicate OK [11:22:57]wFMCommunicate request_size=255 [11:22:57]MH_SAM_APDU [11:22:57]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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 39 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [11:22:57]Write to MH i2c: E2 02 01 57 0B 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 39 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 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 BA [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]OFD Sender: No OFD packet to send [11:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [11:22:57]RAPDU: 90 00 [11:22:57]wFMCommunicate OK [11:22:57]wFMCommunicate request_size=35 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F6 00 00 35 04 06 00 DD 16 9D 2D D2 5E [11:22:57]Write to MH i2c: E2 26 00 58 0B 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F6 00 00 35 04 06 00 DD 16 9D 2D D2 5E 00 00 0F [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [11:22:57]RAPDU: 90 00 [11:22:57]wFMCommunicate OK [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 0D 03 02 [11:22:57]Write to MH i2c: E2 08 00 59 0B 80 0D 03 02 00 00 00 00 DF [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0B 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0B 00 59 0B 00 FB 38 DD F2 04 1E 4E BB 90 00 0D [11:22:57]RAPDU: FB 38 DD F2 04 1E 4E BB 90 00 [11:22:57]wFMCommunicate OK [11:22:57]SAM_PROTO_SignData done [11:22:57]FM_MakeSignedData done [11:22:57]CreateOFDProtocolMessage [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 11 00 00 [11:22:57]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 17 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 38 [11:22: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:22:57]wFMCommunicate OK [11:22:57]CreateOFDProtocolMessage done [11:22:57]OFDSenderStorePacket 63062 [11:22:57]StoreOFDPacket docnum=63062 [11:22: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 28 01 00 00 D1 3F 20 01 63 57 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 39 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DD 16 9D 2D D2 5E FB 38 DD F2 04 1E 4E BB [11:22:57]CheckFolder [11:22:57]dirname=/storage/ofd_packets [11:22:57]CheckFolder done [11:22:57]ProducePacketName [11:22:57]name=ofd_packets/00063062 [11:22:57]NVStorageSaveData ofd_packets/00063062 [11:22:57]File name is /storage/ofd_packets/00063062 [11:22:57]Write 326 bytes [11:22:57]NVStorageSaveData done [11:22:57]OFDSenderStorePacket done [11:22:57]KKMCreateOFDPacket done [11:22:57]NVStorageSaveData kkm_last_timestamp [11:22:57]File name is /storage/kkm_last_timestamp [11:22:57]Write 4 bytes [11:22:57]NVStorageSaveData done [11:22:57]ExternCall_PrintAddStr [11:22:57]wPrintStart [11:22:57]Write to MH i2c: 01 00 00 5B 0B 66 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: 01 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: 01 07 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 FF 0F 7B [11:22:57]RasterBufferAndPrint [11:22:57]line Счет N : (3)47372 [11:22:57]line ИНН: 02508201610067 [11:22:57]line Контрольно-Кассовый Чек [11:22:57]line ПРОДАЖА [11:22:57]line Товар: 4700000310043 [11:22:57]line Вода Жалалабат 27 1л [11:22:57]line 1.000 * 60.00 [11:22:57]line = 60.00 [11:22:57]line НДС 12% НСП 1% [11:22:57]line > о реализуемом товаре [11:22:57]line ИТОГО: 60.00 [11:22:57]line НСП 1% : 0.53 [11:22:57]line НДС 12% : 6.37 [11:22:57]line Наличными: 60.00 [11:22:57]line Безнал.: 0.00 [11:22:57]line Место: АЗС № 86 "Партнер Нефть" [11:22:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:22:57]line СНО: Общий режим [11:22:57]line Чек 59 21.10.2024 11:22 [11:22:57]line Смена: 544 ФФД: 1.0 [11:22:57]line ЗНМ: 0300000154 [11:22:57]line РНМ: 0000000000091619 [11:22:57]line Версия ККМ: 001 [11:22:57]line ФМ: 0000000000874676 [11:22:57]line ФД: 63062 [11:22:57]line ФПД: 243089196044894 [11:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112257&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63062&fm=243089196044894&tin=02508201610067®Number=0000000000091619&sum=6000 [11:22:57]line 0 [11:22:57]OFD Sender: Processing packet 63062 [packets to send 232, broken 231] [11:22:57]ProducePacketName [11:22:57]name=ofd_packets/00063062 [11:22:57]OFD Sender: To server: pG, [11:22:57]CommunicateWithHost lk.salyk.kg:30040 [11:22:57]ConnectInit lk.salyk.kg [11:22:57]written 0, free lines is 4095 [11:22:58]Connected sock=10 [11:22: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 28 01 00 00 D1 3F 20 01 63 57 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 39 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DD 16 9D 2D D2 5E FB 38 DD F2 04 1E 4E BB [11:22:58]Write to MH i2c: 01 00 00 83 0B 8E [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: 01 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: 01 07 00 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 20 0D C2 [11:22:58]RasterBufferAndPrint [11:22:58]line [11:22:58]line [11:22:58]line [11:22:58]line [11:22:58]line [11:22:58]written 0, free lines is 3366 [11:22:58]MH_Cut [11:22:58]Write to MH i2c: D1 01 00 8A 0B 01 67 [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: D1 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: D1 01 00 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: D1 01 00 8A 0B 00 66 [11:22:58]Write to MH i2c: 01 00 00 8B 0B 96 [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22: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 94 43 47 00 6A FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F6 00 00 F4 03 04 00 8F E3 15 67 B6 04 01 00 00 81 9D 83 7B B5 F2 05 03 [11:22:58]CommunicateWithHost err = 0 [11:22:58]CheckOFDResponse [11:22:58]1017 (14) - 77093643461234 [11:22:58]1041 (16) - 0000000000874676 [11:22:58]1040 (4) - 63062 [11:22:58]1012 (4) - 21.10.2024 05:15 [11:22:58]1206 (1) - 0 [11:22:58]OFD Sender: Remove packet 63062 [11:22:58]ProducePacketName [11:22:58]name=ofd_packets/00063062 [11:22:58]NVStorageDeleteData [11:22:58]*** Cut start [11:22:58]*** Partial cut [11:22:58]*** CUTSNS_PIN = 1 [11:22:58]*** CUTSNS_PIN = 0 [11:22:59]OFD Sender: No OFD packet to send [11:22:59]*** Brake cut motor [11:22:59]Read from MH i2c: 01 [11:22:59]MH_I2C_Read... [11:22:59]*** Stop cut motor [11:22:59]*** Cut end [11:22:59]Read from MH i2c: 01 07 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [11:22:59]process_action close_receipt done [11:22:59]requested_data is exist [11:22:59]produce_requested_data [11:22:59]requested_item fm.sn is exist - process it [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 11 00 00 [11:22:59]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 17 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6A [11:22: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:22:59]wFMCommunicate OK [11:22:59]requested_item fd.num is exist - process it [11:22:59]SAM_PROTO_GetFieldsCounters [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 13 00 00 [11:22:59]Write to MH i2c: E2 08 00 8D 0B 80 13 00 00 00 00 00 00 14 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 62 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 62 00 8D 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 56 F6 00 00 0E 04 04 00 20 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 5B [11:22: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 56 F6 00 00 0E 04 04 00 20 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 [11:22:59]wFMCommunicate OK [11:22:59]SAM_PROTO_GetFieldsCounters done [11:22:59]requested_item shift.num is exist - process it [11:22:59]requested_item shift.opened is exist - process it [11:22:59]req_shift_opened [11:22:59]FM_GetShiftState [11:22:59]SAM_PROTO_GetShiftState [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 13 01 00 [11:22:59]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 0E 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 76 [11:22:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:22:59]wFMCommunicate OK [11:22:59]SAM_PROTO_GetShiftState done [11:22:59]FM_GetShiftState done [11:22:59]req_shift_opened done [11:22:59]requested_item shift.open_date is exist - process it [11:22:59]req_shift_open_date [11:22:59]req_shift_open_date done [11:22:59]produce_requested_data done [11:22:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63062,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:22:59]process_action_free close_receipt [11:22:59]json_value_free [11:22:59]json_value_free done [11:22:59]process_json_proto returns [11:22:59]Send response to host [11:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63062,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:22:59]free response buf [11:22:59]execute_script done [11:22:59]execute_script returns [11:22:59]free content buf [11:22:59]Sock 7.Close socket [11:22:59]Sock 7.Thread stoped [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]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:32]accept exits with 9 [11:26:32]New connection [11:26:32]New thread 3067198820 created [11:26:32]Thread 3067055460 joined [11:26:32]Waiting for new connection... [11:26:32] Sock 9.Parse request [11:26:32]Sock 9.Check first char [11:26:32]Sock 9.First char is OK [11:26:32]request: POST /json_proto HTTP/1.0 [11:26:32]Method: POST [11:26:32]URL: /json_proto [11:26:32]Method is POST - this is cgi request [11:26:32]url: /json_proto [11:26:32]query_string will be loaded in cgi processing [11:26:32]execute_cgi json_proto POST (null) [11:26:32]execute_cgi path=json_proto method=POST [11:26:32]POST find Content-Length [11:26:32]Host: 172.17.42.132:8080 [11:26:32]Content-Length: 1439 [11:26:32]Content-Type: application/json [11:26:32] [11:26:32]POST finish read [11:26:32]Found Content-Length = 1439 [11:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47373", "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 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 5.000, "sum" : 695.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 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1020.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:32]execute_script... [11:26: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)47373", "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 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 5.000, "sum" : 695.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 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1020.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:32]POST & json_proto [11:26:32]process_json_proto [11:26:32]json parsed OK: [11:26:32]protocol is kg_v1.0 [11:26:32]action value=close_receipt [11:26:32]process_action close_receipt [11:26:32]cmd_close_receipt [11:26:32]MH_GetDate [11:26:32]Write to MH i2c: F0 00 00 8F 0B 89 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: F0 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: F0 09 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: F0 09 00 8F 0B 00 6A 3A 16 67 4C DF 56 66 9A [11:26:32]GetLastDocTimeStamp 1729509777 [11:26:32]current date 1729509994 [11:26:32]FM_GetShiftState [11:26:32]SAM_PROTO_GetShiftState [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 13 01 00 [11:26:32]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0E 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 78 [11:26:32]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_GetShiftState done [11:26:32]FM_GetShiftState done [11:26:32]opened in 1729469755 [11:26:32]opened+sec_in_day 1729556155 [11:26:32]quantity*price = 11500 [11:26:32]sum+1 = 11501 [11:26:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 5.000 * 139.00 = 695.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005024 Миндаль Mike жареный соленый 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1020.00 НСП 1% : 9.03 НДС 12% : 108.31 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 60 21.10.2024 11:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63063 ФПД: 240095087629434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63063&fm=240095087629434&tin=02508201610067®Number=0000000000091619&sum=102000 0 [11:26:33]StoreToDocumentArchive [11:26:33]shift 544 fd 63063 [11:26:33]save to /storage/0544/doc_00063063 [11:26:33]save last doc name /storage/0544/doc_00063063 to /storage/kkm_last_doc_name [11:26:33]save OK [11:26:33]Clear old archive folders... [11:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=619 [11:26:33]tlvbuf is 0182B330 [11:26:33]SAM_PROTO_ClearQueue [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 09 00 00 [11:26:33]Write to MH i2c: E2 08 00 9D 0B 80 09 00 00 00 00 00 00 1A [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [11:26:33]RAPDU: 90 00 [11:26:33]wFMCommunicate OK [11:26:33]SAM_PROTO_ClearQueue done [11:26:33]KKMCreateOFDPacket [11:26:33]OFDProtocolAddRootSTLVToBuf [11:26:33]FM_MakeSignedData [11:26:33]FM_MakeSignedData [11:26:33]SAM_PROTO_SignData [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 0D 01 02 [11:26:33]Write to MH i2c: E2 08 00 9E 0B 80 0D 01 02 00 00 00 00 22 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [11:26:33]RAPDU: 90 00 [11:26:33]wFMCommunicate OK [11:26:33]wFMCommunicate request_size=255 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 0D 02 02 FA 03 00 6B 02 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 7C 0F 01 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 [11:26:33]Write to MH i2c: E2 02 01 9F 0B 80 0D 02 02 FA 00 03 00 6B 02 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 7C 0F 01 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 00 00 56 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]wFMCommunicate request_size=255 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 0D 02 02 FA 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [11:26:34]Write to MH i2c: E2 02 01 A0 0B 80 0D 02 02 FA 00 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 7B [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]OFD Sender: No OFD packet to send [11:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]wFMCommunicate request_size=128 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 0D 02 02 7B F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 5D 7E 69 14 7A [11:26:34]Write to MH i2c: E2 83 00 A1 0B 80 0D 02 02 7B 00 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 5D 7E 69 14 7A 00 00 49 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [11:26:34]RAPDU: 90 00 [11:26:34]wFMCommunicate OK [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 0D 03 02 [11:26:34]Write to MH i2c: E2 08 00 A2 0B 80 0D 03 02 00 00 00 00 28 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0B 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0B 00 A2 0B 00 46 0E 50 95 8F 6A 6E 8B 90 00 54 [11:26:34]RAPDU: 46 0E 50 95 8F 6A 6E 8B 90 00 [11:26:34]wFMCommunicate OK [11:26:34]SAM_PROTO_SignData done [11:26:34]FM_MakeSignedData done [11:26:34]CreateOFDProtocolMessage [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 11 00 00 [11:26:34]Write to MH i2c: E2 08 00 A3 0B 80 11 00 00 00 00 00 00 28 [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 17 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 17 00 A3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 81 [11:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:26:34]wFMCommunicate OK [11:26:34]CreateOFDProtocolMessage done [11:26:34]OFDSenderStorePacket 63063 [11:26:34]StoreOFDPacket docnum=63063 [11:26: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 7F 02 00 00 B8 8C 77 02 74 D9 5A 03 01 00 03 00 6B 02 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 7C 0F 01 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 5D 7E 69 14 7A 46 0E 50 95 8F 6A 6E 8B [11:26:34]CheckFolder [11:26:34]dirname=/storage/ofd_packets [11:26:34]CheckFolder done [11:26:34]ProducePacketName [11:26:34]name=ofd_packets/00063063 [11:26:34]NVStorageSaveData ofd_packets/00063063 [11:26:34]File name is /storage/ofd_packets/00063063 [11:26:34]Write 669 bytes [11:26:34]NVStorageSaveData done [11:26:34]OFDSenderStorePacket done [11:26:34]KKMCreateOFDPacket done [11:26:34]NVStorageSaveData kkm_last_timestamp [11:26:34]File name is /storage/kkm_last_timestamp [11:26:34]Write 4 bytes [11:26:34]NVStorageSaveData done [11:26:34]ExternCall_PrintAddStr [11:26:34]wPrintStart [11:26:34]Write to MH i2c: 01 00 00 A4 0B AF [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [11:26:34]RasterBufferAndPrint [11:26:34]line Счет N : (3)47373 [11:26:34]line ИНН: 02508201610067 [11:26:34]line Контрольно-Кассовый Чек [11:26:34]line ПРОДАЖА [11:26:34]line Товар: 2000036210013 [11:26:34]line Кофе Капучино (GABB TRADE) [11:26:34]line 1.000 * 115.00 [11:26:34]line = 115.00 [11:26:34]line НДС 12% НСП 1% [11:26:34]line > о реализуемом товаре [11:26:34]line Товар: 48745291 [11:26:34]line Сигареты Parliament SOHO NYC COMPACT BLU [11:26:34]line 5.000 * 139.00 [11:26:34]line = 695.00 [11:26:34]line НДС 12% НСП 1% [11:26:34]line > о реализуемом товаре [11:26:35]line Товар: 4870001570057 [11:26:35]line Напиток Pepsi 0,5л [11:26:35]line 1.000 * 80.00 [11:26:35]line = 80.00 [11:26:35]line НДС 12% НСП 1% [11:26:35]line > о реализуемом товаре [11:26:35]line Товар: 4700321005024 [11:26:35]line Миндаль Mike жареный соленый 50г [11:26:35]line 1.000 * 130.00 [11:26:35]line = 130.00 [11:26:35]line НДС 12% НСП 1% [11:26:35]line > о реализуемом товаре [11:26:35]line ИТОГО: 1020.00 [11:26:35]line НСП 1% : 9.03 [11:26:35]line НДС 12% : 108.31 [11:26:35]line Наличными: 1020.00 [11:26:35]line Безнал.: 0.00 [11:26:35]line Место: АЗС № 86 "Партнер Нефть" [11:26:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:26:35]line СНО: Общий режим [11:26:35]line Чек 60 21.10.2024 11:26 [11:26:35]line Смена: 544 ФФД: 1.0 [11:26:35]line ЗНМ: 0300000154 [11:26:35]line РНМ: 0000000000091619 [11:26:35]line Версия ККМ: 001 [11:26:35]line ФМ: 0000000000874676 [11:26:35]line ФД: 63063 [11:26:35]line ФПД: 240095087629434 [11:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63063&fm=240095087629434&tin=02508201610067®Number=0000000000091619&sum=102000 [11:26:35]line 0 [11:26:35]OFD Sender: Processing packet 63063 [packets to send 232, broken 231] [11:26:35]ProducePacketName [11:26:35]name=ofd_packets/00063063 [11:26:35]OFD Sender: To server: pG, [11:26:35]CommunicateWithHost lk.salyk.kg:30040 [11:26:35]ConnectInit lk.salyk.kg [11:26:35]written 0, free lines is 4095 [11:26:35]Connected sock=10 [11:26: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 7F 02 00 00 B8 8C 77 02 74 D9 5A 03 01 00 03 00 6B 02 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 7C 0F 01 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 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 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 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 2A 00 00 00 00 07 04 06 00 70 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 DA 5D 7E 69 14 7A 46 0E 50 95 8F 6A 6E 8B [11:26: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 1C A2 47 00 B0 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F6 00 00 F4 03 04 00 68 E4 15 67 B6 04 01 00 00 91 6F D8 C4 C9 5B 59 15 [11:26:35]CommunicateWithHost err = 0 [11:26:35]CheckOFDResponse [11:26:35]1017 (14) - 77093643461234 [11:26:35]1041 (16) - 0000000000874676 [11:26:35]1040 (4) - 63063 [11:26:35]1012 (4) - 21.10.2024 05:19 [11:26:35]1206 (1) - 0 [11:26:35]OFD Sender: Remove packet 63063 [11:26:35]ProducePacketName [11:26:35]name=ofd_packets/00063063 [11:26:35]NVStorageDeleteData [11:26:35]Write to MH i2c: 01 00 00 E0 0B EB [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: 01 07 00 E0 0B 00 00 00 00 00 20 0C 1E [11:26:35]RasterBufferAndPrint [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]line [11:26:35]written 0, free lines is 3112 [11:26:35]MH_Cut [11:26:35]Write to MH i2c: D1 01 00 E7 0B 01 C4 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 01 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: D1 01 00 E7 0B 00 C3 [11:26:35]Write to MH i2c: 01 00 00 E8 0B F3 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:36]OFD Sender: No OFD packet to send [11:26:36]*** Cut start [11:26:36]*** Partial cut [11:26:36]*** CUTSNS_PIN = 1 [11:26:36]*** CUTSNS_PIN = 0 [11:26:36]*** Brake cut motor [11:26:37]Read from MH i2c: 01 [11:26:37]MH_I2C_Read... [11:26:37]*** Stop cut motor [11:26:37]*** Cut end [11:26:37]Read from MH i2c: 01 07 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [11:26:37]process_action close_receipt done [11:26:37]requested_data is exist [11:26:37]produce_requested_data [11:26:37]requested_item fm.sn is exist - process it [11:26:37]wFMCommunicate request_size=4 [11:26:37]MH_SAM_APDU [11:26:37]CAPDU: 80 11 00 00 [11:26:37]Write to MH i2c: E2 08 00 E9 0B 80 11 00 00 00 00 00 00 6E [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:37]Read from MH i2c: E2 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 17 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 17 00 E9 0B 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:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:26:37]wFMCommunicate OK [11:26:37]requested_item fd.num is exist - process it [11:26:37]SAM_PROTO_GetFieldsCounters [11:26:37]wFMCommunicate request_size=4 [11:26:37]MH_SAM_APDU [11:26:37]CAPDU: 80 13 00 00 [11:26:37]Write to MH i2c: E2 08 00 EA 0B 80 13 00 00 00 00 00 00 71 [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:37]Read from MH i2c: E2 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 62 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 62 00 EA 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 57 F6 00 00 0E 04 04 00 20 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 BC [11:26: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 57 F6 00 00 0E 04 04 00 20 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 [11:26:37]wFMCommunicate OK [11:26:37]SAM_PROTO_GetFieldsCounters done [11:26:37]requested_item shift.num is exist - process it [11:26:37]requested_item shift.opened is exist - process it [11:26:37]req_shift_opened [11:26:37]FM_GetShiftState [11:26:37]SAM_PROTO_GetShiftState [11:26:37]wFMCommunicate request_size=4 [11:26:37]MH_SAM_APDU [11:26:37]CAPDU: 80 13 01 00 [11:26:37]Write to MH i2c: E2 08 00 EB 0B 80 13 01 00 00 00 00 00 73 [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:37]Read from MH i2c: E2 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 0E 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: E2 0E 00 EB 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D3 [11:26:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:26:37]wFMCommunicate OK [11:26:37]SAM_PROTO_GetShiftState done [11:26:37]FM_GetShiftState done [11:26:37]req_shift_opened done [11:26:37]requested_item shift.open_date is exist - process it [11:26:37]req_shift_open_date [11:26:37]req_shift_open_date done [11:26:37]produce_requested_data done [11:26:37]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63063,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:26:37]process_action_free close_receipt [11:26:37]json_value_free [11:26:37]json_value_free done [11:26:37]process_json_proto returns [11:26:37]Send response to host [11:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63063,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:26:37]free response buf [11:26:37]execute_script done [11:26:37]execute_script returns [11:26:37]free content buf [11:26:37]Sock 9.Close socket [11:26:37]Sock 9.Thread stoped [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:43]accept exits with 7 [11:27:43]New connection [11:27:43]New thread 3067055460 created [11:27:43]Thread 3067198820 joined [11:27:43]Waiting for new connection... [11:27:43] Sock 7.Parse request [11:27:43]Sock 7.Check first char [11:27:43]Sock 7.First char is OK [11:27:43]request: POST /json_proto HTTP/1.0 [11:27:43]Method: POST [11:27:43]URL: /json_proto [11:27:43]Method is POST - this is cgi request [11:27:43]url: /json_proto [11:27:43]query_string will be loaded in cgi processing [11:27:43]execute_cgi json_proto POST (null) [11:27:43]execute_cgi path=json_proto method=POST [11:27:43]POST find Content-Length [11:27:43]Host: 172.17.42.132:8080 [11:27:43]Content-Length: 636 [11:27:43]Content-Type: application/json [11:27:43] [11:27:43]POST finish read [11:27:43]Found Content-Length = 636 [11:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47374", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:43]execute_script... [11:27:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47374", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:43]POST & json_proto [11:27:43]process_json_proto [11:27:43]json parsed OK: [11:27:43]protocol is kg_v1.0 [11:27:43]action value=close_receipt [11:27:43]process_action close_receipt [11:27:43]cmd_close_receipt [11:27:43]MH_GetDate [11:27:43]Write to MH i2c: F0 00 00 EC 0B E6 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: F0 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: F0 09 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: F0 09 00 EC 0B 00 B1 3A 16 67 4C DF 56 66 3E [11:27:43]GetLastDocTimeStamp 1729509994 [11:27:43]current date 1729510065 [11:27:43]FM_GetShiftState [11:27:43]SAM_PROTO_GetShiftState [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 13 01 00 [11:27:43]Write to MH i2c: E2 08 00 ED 0B 80 13 01 00 00 00 00 00 75 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0E 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0E 00 ED 0B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D5 [11:27:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_GetShiftState done [11:27:43]FM_GetShiftState done [11:27:43]opened in 1729469755 [11:27:43]opened+sec_in_day 1729556155 [11:27:43]quantity*price = 7000 [11:27:43]sum+1 = 7001 [11:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 61 21.10.2024 11:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63064 ФПД: 211173800966514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112745&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63064&fm=211173800966514&tin=02508201610067®Number=0000000000091619&sum=7000 0 [11:27:44]StoreToDocumentArchive [11:27:44]shift 544 fd 63064 [11:27:44]save to /storage/0544/doc_00063064 [11:27:44]save last doc name /storage/0544/doc_00063064 to /storage/kkm_last_doc_name [11:27:44]save OK [11:27:44]Clear old archive folders... [11:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:27:44]tlvbuf is 0190B7C0 [11:27:44]SAM_PROTO_ClearQueue [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 09 00 00 [11:27:44]Write to MH i2c: E2 08 00 FA 0B 80 09 00 00 00 00 00 00 77 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 FA 0B 00 90 00 79 [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_ClearQueue done [11:27:44]KKMCreateOFDPacket [11:27:44]OFDProtocolAddRootSTLVToBuf [11:27:44]FM_MakeSignedData [11:27:44]FM_MakeSignedData [11:27:44]SAM_PROTO_SignData [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 0D 01 02 [11:27:44]Write to MH i2c: E2 08 00 FB 0B 80 0D 01 02 00 00 00 00 7F [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 FB 0B 00 90 00 7A [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]wFMCommunicate request_size=255 [11:27:44]MH_SAM_APDU [11:27:44]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 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 B1 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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:27:44]Write to MH i2c: E2 02 01 FC 0B 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 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 B1 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 49 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 03 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 03 00 FC 0B 00 90 00 7B [11:27:45]RAPDU: 90 00 [11:27:45]wFMCommunicate OK [11:27:45]wFMCommunicate request_size=31 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 58 F6 00 00 35 04 06 00 C0 0F BB 64 79 72 [11:27:45]Write to MH i2c: E2 22 00 FD 0B 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 58 F6 00 00 35 04 06 00 C0 0F BB 64 79 72 00 00 DA [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 03 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [11:27:45]RAPDU: 90 00 [11:27:45]wFMCommunicate OK [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 0D 03 02 [11:27:45]Write to MH i2c: E2 08 00 FE 0B 80 0D 03 02 00 00 00 00 84 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0B 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0B 00 FE 0B 00 05 21 05 B5 23 B8 C5 85 90 00 8A [11:27:45]RAPDU: 05 21 05 B5 23 B8 C5 85 90 00 [11:27:45]wFMCommunicate OK [11:27:45]SAM_PROTO_SignData done [11:27:45]FM_MakeSignedData done [11:27:45]CreateOFDProtocolMessage [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 11 00 00 [11:27:45]Write to MH i2c: E2 08 00 FF 0B 80 11 00 00 00 00 00 00 84 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 FF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DD [11:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:27:45]wFMCommunicate OK [11:27:45]CreateOFDProtocolMessage done [11:27:45]OFDSenderStorePacket 63064 [11:27:45]StoreOFDPacket docnum=63064 [11:27:45]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 C2 2A 1C 01 45 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 B1 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C0 0F BB 64 79 72 05 21 05 B5 23 B8 C5 85 [11:27:45]CheckFolder [11:27:45]dirname=/storage/ofd_packets [11:27:45]CheckFolder done [11:27:45]ProducePacketName [11:27:45]name=ofd_packets/00063064 [11:27:45]NVStorageSaveData ofd_packets/00063064 [11:27:45]File name is /storage/ofd_packets/00063064 [11:27:45]Write 322 bytes [11:27:45]NVStorageSaveData done [11:27:45]OFDSenderStorePacket done [11:27:45]KKMCreateOFDPacket done [11:27:45]NVStorageSaveData kkm_last_timestamp [11:27:45]File name is /storage/kkm_last_timestamp [11:27:45]Write 4 bytes [11:27:45]NVStorageSaveData done [11:27:45]ExternCall_PrintAddStr [11:27:45]wPrintStart [11:27:45]Write to MH i2c: 01 00 00 00 0C 0C [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 00 0C 00 00 00 00 00 FF 0F 21 [11:27:45]RasterBufferAndPrint [11:27:45]line Счет N : (3)47374 [11:27:45]line ИНН: 02508201610067 [11:27:45]line Контрольно-Кассовый Чек [11:27:45]line ПРОДАЖА [11:27:45]line Товар: 4630007400358 [11:27:45]line Семечки ДЖИНН 70г [11:27:45]line 1.000 * 70.00 [11:27:45]line = 70.00 [11:27:45]line НДС 12% НСП 1% [11:27:45]line > о реализуемом товаре [11:27:45]line ИТОГО: 70.00 [11:27:45]line НСП 1% : 0.62 [11:27:45]line НДС 12% : 7.43 [11:27:45]line Наличными: 70.00 [11:27:45]line Безнал.: 0.00 [11:27:45]line Место: АЗС № 86 "Партнер Нефть" [11:27:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:27:45]line СНО: Общий режим [11:27:45]line Чек 61 21.10.2024 11:27 [11:27:45]line Смена: 544 ФФД: 1.0 [11:27:45]line ЗНМ: 0300000154 [11:27:45]line РНМ: 0000000000091619 [11:27:45]line Версия ККМ: 001 [11:27:45]line ФМ: 0000000000874676 [11:27:45]line ФД: 63064 [11:27:45]line ФПД: 211173800966514 [11:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112745&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63064&fm=211173800966514&tin=02508201610067®Number=0000000000091619&sum=7000 [11:27:45]OFD Sender: Processing packet 63064 [packets to send 232, broken 231] [11:27:45]ProducePacketName [11:27:45]name=ofd_packets/00063064 [11:27:45]OFD Sender: To server: pG, [11:27:45]CommunicateWithHost lk.salyk.kg:30040 [11:27:45]ConnectInit lk.salyk.kg [11:27:45]line 0 [11:27:45]written 0, free lines is 4095 [11:27:46]Connected sock=11 [11:27:46]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 C2 2A 1C 01 45 D0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 B1 3A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C0 0F BB 64 79 72 05 21 05 B5 23 B8 C5 85 [11:27:46]Write to MH i2c: 01 00 00 28 0C 34 [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 07 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 1A 0D 62 [11:27:46]RasterBufferAndPrint [11:27:46]line [11:27:46]line [11:27:46]line [11:27:46]line [11:27:46]line [11:27:46]written 0, free lines is 3360 [11:27:46]MH_Cut [11:27:46]Write to MH i2c: D1 01 00 2F 0C 01 0D [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: D1 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: D1 01 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: D1 01 00 2F 0C 00 0C [11:27:46]Write to MH i2c: 01 00 00 30 0C 3C [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27: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 28 65 47 00 2C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F6 00 00 F4 03 04 00 AF E4 15 67 B6 04 01 00 00 15 91 6B 50 57 D0 12 23 [11:27:46]CommunicateWithHost err = 0 [11:27:46]CheckOFDResponse [11:27:46]1017 (14) - 77093643461234 [11:27:46]1041 (16) - 0000000000874676 [11:27:46]1040 (4) - 63064 [11:27:46]1012 (4) - 21.10.2024 05:20 [11:27:46]1206 (1) - 0 [11:27:46]OFD Sender: Remove packet 63064 [11:27:46]ProducePacketName [11:27:46]name=ofd_packets/00063064 [11:27:46]NVStorageDeleteData [11:27:46]*** Cut start [11:27:46]*** Partial cut [11:27:46]*** CUTSNS_PIN = 1 [11:27:46]*** CUTSNS_PIN = 0 [11:27:47]OFD Sender: No OFD packet to send [11:27:47]*** Brake cut motor [11:27:47]Read from MH i2c: 01 [11:27:47]MH_I2C_Read... [11:27:47]*** Stop cut motor [11:27:47]*** Cut end [11:27:47]Read from MH i2c: 01 07 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 FF 0F 51 [11:27:47]process_action close_receipt done [11:27:47]requested_data is exist [11:27:47]produce_requested_data [11:27:47]requested_item fm.sn is exist - process it [11:27:47]wFMCommunicate request_size=4 [11:27:47]MH_SAM_APDU [11:27:47]CAPDU: 80 11 00 00 [11:27:47]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:47]Read from MH i2c: E2 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 17 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 17 00 31 0C 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:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:27:47]wFMCommunicate OK [11:27:47]requested_item fd.num is exist - process it [11:27:47]SAM_PROTO_GetFieldsCounters [11:27:47]wFMCommunicate request_size=4 [11:27:47]MH_SAM_APDU [11:27:47]CAPDU: 80 13 00 00 [11:27:47]Write to MH i2c: E2 08 00 32 0C 80 13 00 00 00 00 00 00 BA [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:47]Read from MH i2c: E2 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 62 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 62 00 32 0C 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 F6 00 00 0E 04 04 00 20 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 09 [11:27:47]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 F6 00 00 0E 04 04 00 20 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 [11:27:47]wFMCommunicate OK [11:27:47]SAM_PROTO_GetFieldsCounters done [11:27:47]requested_item shift.num is exist - process it [11:27:47]requested_item shift.opened is exist - process it [11:27:47]req_shift_opened [11:27:47]FM_GetShiftState [11:27:47]SAM_PROTO_GetShiftState [11:27:47]wFMCommunicate request_size=4 [11:27:47]MH_SAM_APDU [11:27:47]CAPDU: 80 13 01 00 [11:27:47]Write to MH i2c: E2 08 00 33 0C 80 13 01 00 00 00 00 00 BC [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:47]Read from MH i2c: E2 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 0E 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 0E 00 33 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 1C [11:27:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:27:47]wFMCommunicate OK [11:27:47]SAM_PROTO_GetShiftState done [11:27:47]FM_GetShiftState done [11:27:47]req_shift_opened done [11:27:47]requested_item shift.open_date is exist - process it [11:27:47]req_shift_open_date [11:27:47]req_shift_open_date done [11:27:47]produce_requested_data done [11:27:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63064,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:27:47]process_action_free close_receipt [11:27:47]json_value_free [11:27:47]json_value_free done [11:27:47]process_json_proto returns [11:27:47]Send response to host [11:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63064,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:27:47]free response buf [11:27:47]execute_script done [11:27:47]execute_script returns [11:27:47]free content buf [11:27:47]Sock 7.Close socket [11:27:47]Sock 7.Thread stoped [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:03]accept exits with 9 [11:29:03]New connection [11:29:03]New thread 3067198820 created [11:29:03]Thread 3067055460 joined [11:29:03]Waiting for new connection... [11:29:03] Sock 9.Parse request [11:29:03]Sock 9.Check first char [11:29:03]Sock 9.First char is OK [11:29:03]request: POST /json_proto HTTP/1.0 [11:29:03]Method: POST [11:29:03]URL: /json_proto [11:29:03]Method is POST - this is cgi request [11:29:03]url: /json_proto [11:29:03]query_string will be loaded in cgi processing [11:29:03]execute_cgi json_proto POST (null) [11:29:03]execute_cgi path=json_proto method=POST [11:29:03]POST find Content-Length [11:29:03]Host: 172.17.42.132:8080 [11:29:03]Content-Length: 1275 [11:29:03]Content-Type: application/json [11:29:03] [11:29:03]POST finish read [11:29:03]Found Content-Length = 1275 [11:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47375", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "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" : 2.000, "sum" : 279.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 9.91, "quantity" : 1.000, "sum" : 9.91, "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" : 438.08 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:03]execute_script... [11:29: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)47375", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "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" : 2.000, "sum" : 279.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 9.91, "quantity" : 1.000, "sum" : 9.91, "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" : 438.08 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:03]POST & json_proto [11:29:03]process_json_proto [11:29:03]json parsed OK: [11:29:03]protocol is kg_v1.0 [11:29:03]action value=close_receipt [11:29:03]process_action close_receipt [11:29:03]cmd_close_receipt [11:29:03]MH_GetDate [11:29:03]Write to MH i2c: F0 00 00 34 0C 2F [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 34 0C 00 01 3B 16 67 4C DF 56 66 D8 [11:29:03]GetLastDocTimeStamp 1729510065 [11:29:03]current date 1729510145 [11:29:03]FM_GetShiftState [11:29:03]SAM_PROTO_GetShiftState [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 13 01 00 [11:29:03]Write to MH i2c: E2 08 00 35 0C 80 13 01 00 00 00 00 00 BE [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 35 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 1E [11:29:03]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_GetShiftState done [11:29:03]FM_GetShiftState done [11:29:03]opened in 1729469755 [11:29:03]opened+sec_in_day 1729556155 [11:29:03]quantity*price = 14867 [11:29:03]sum+1 = 14868 [11:29:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870216765088 Нагр.Таб.Палоч. HEETS Purple Wave 2.000 * 139.75 = 279.50 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 9.91 = 9.91 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 438.08 НСП 1% : 3.88 НДС 12% : 46.52 Наличными: 0.00 Безнал.: 438.08 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 62 21.10.2024 11:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63065 ФПД: 213410598982146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112905&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63065&fm=213410598982146&tin=02508201610067®Number=0000000000091619&sum=43808 0 [11:29:04]StoreToDocumentArchive [11:29:04]shift 544 fd 63065 [11:29:04]save to /storage/0544/doc_00063065 [11:29:04]save last doc name /storage/0544/doc_00063065 to /storage/kkm_last_doc_name [11:29:04]save OK [11:29:04]Clear old archive folders... [11:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=501 [11:29:04]tlvbuf is 01829960 [11:29:04]SAM_PROTO_ClearQueue [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 09 00 00 [11:29:04]Write to MH i2c: E2 08 00 42 0C 80 09 00 00 00 00 00 00 C0 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 42 0C 00 90 00 C2 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_ClearQueue done [11:29:04]KKMCreateOFDPacket [11:29:04]OFDProtocolAddRootSTLVToBuf [11:29:04]FM_MakeSignedData [11:29:04]FM_MakeSignedData [11:29:04]SAM_PROTO_SignData [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 01 02 [11:29:04]Write to MH i2c: E2 08 00 43 0C 80 0D 01 02 00 00 00 00 C8 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 43 0C 00 90 00 C3 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=255 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 FA 03 00 F5 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 13 3A 00 00 00 00 13 04 06 00 13 3A 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 D0 07 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 2E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 [11:29:04]Write to MH i2c: E2 02 01 44 0C 80 0D 02 02 FA 00 03 00 F5 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 13 3A 00 00 00 00 13 04 06 00 13 3A 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 D0 07 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 2E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 00 00 61 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 44 0C 00 90 00 C4 [11:29:05]RAPDU: 90 00 [11:29:05]wFMCommunicate OK [11:29:05]wFMCommunicate request_size=255 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 0D 02 02 FA 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 01 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C2 [11:29:05]Write to MH i2c: E2 02 01 45 0C 80 0D 02 02 FA 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 01 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C2 00 00 75 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 45 0C 00 90 00 C5 [11:29:05]RAPDU: 90 00 [11:29:05]wFMCommunicate OK [11:29:05]wFMCommunicate request_size=10 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 0D 02 02 05 18 86 F1 92 02 [11:29:05]Write to MH i2c: E2 0D 00 46 0C 80 0D 02 02 05 00 18 86 F1 92 02 00 00 F9 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [11:29:05]RAPDU: 90 00 [11:29:05]wFMCommunicate OK [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 0D 03 02 [11:29:05]Write to MH i2c: E2 08 00 47 0C 80 0D 03 02 00 00 00 00 CE [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0B 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0B 00 47 0C 00 1D 86 51 5D 76 C8 1B 92 90 00 0B [11:29:05]RAPDU: 1D 86 51 5D 76 C8 1B 92 90 00 [11:29:05]wFMCommunicate OK [11:29:05]SAM_PROTO_SignData done [11:29:05]FM_MakeSignedData done [11:29:05]CreateOFDProtocolMessage [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 11 00 00 [11:29:05]Write to MH i2c: E2 08 00 48 0C 80 11 00 00 00 00 00 00 CE [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 48 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [11:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:29:05]wFMCommunicate OK [11:29:05]CreateOFDProtocolMessage done [11:29:05]OFDSenderStorePacket 63065 [11:29:05]StoreOFDPacket docnum=63065 [11:29: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 09 02 00 00 EB 05 01 02 C8 4F 5A 03 01 00 03 00 F5 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 13 3A 00 00 00 00 13 04 06 00 13 3A 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 D0 07 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 2E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 01 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C2 18 86 F1 92 02 1D 86 51 5D 76 C8 1B 92 [11:29:05]CheckFolder [11:29:05]dirname=/storage/ofd_packets [11:29:05]CheckFolder done [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00063065 [11:29:05]NVStorageSaveData ofd_packets/00063065 [11:29:05]File name is /storage/ofd_packets/00063065 [11:29:05]Write 551 bytes [11:29:05]NVStorageSaveData done [11:29:05]OFDSenderStorePacket done [11:29:05]KKMCreateOFDPacket done [11:29:05]NVStorageSaveData kkm_last_timestamp [11:29:05]File name is /storage/kkm_last_timestamp [11:29:05]Write 4 bytes [11:29:05]NVStorageSaveData done [11:29:05]ExternCall_PrintAddStr [11:29:05]wPrintStart [11:29:05]Write to MH i2c: 01 00 00 49 0C 55 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [11:29:05]RasterBufferAndPrint [11:29:05]line Счет N : (3)47375 [11:29:05]line ИНН: 02508201610067 [11:29:05]line Контрольно-Кассовый Чек [11:29:05]line ПРОДАЖА [11:29:05]line Товар: 4640030091645 [11:29:05]line Сигареты ESSE Exchange M [11:29:05]line 1.000 * 148.67 [11:29:05]line = 148.67 [11:29:05]line НДС 12% НСП 1% [11:29:05]line > о реализуемом товаре [11:29:05]line Товар: 4870216765088 [11:29:05]line Нагр.Таб.Палоч. HEETS Purple Wave [11:29:05]line 2.000 * 139.75 [11:29:05]line = 279.50 [11:29:05]line НДС 12% НСП 1% [11:29:05]line > о реализуемом товаре [11:29:05]line Товар: 46226617 [11:29:05]line Mentos ПВ Нежная Мята 6*100*2г [11:29:05]line 1.000 * 9.91 [11:29:05]line = 9.91 [11:29:05]line НДС 12% НСП 1% [11:29:05]line > о реализуемом товаре [11:29:05]line ИТОГО: 438.08 [11:29:05]line НСП 1% : 3.88 [11:29:05]line НДС 12% : 46.52 [11:29:05]line Наличными: 0.00 [11:29:05]line Безнал.: 438.08 [11:29:05]line Место: АЗС № 86 "Партнер Нефть" [11:29:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:29:05]line СНО: Общий режим [11:29:05]line Чек 62 21.10.2024 11:29 [11:29:05]line Смена: 544 ФФД: 1.0 [11:29:05]line ЗНМ: 0300000154 [11:29:05]line РНМ: 0000000000091619 [11:29:05]line Версия ККМ: 001 [11:29:05]line Платежная система: Mbank [11:29:05]line ФМ: 0000000000874676 [11:29:05]line ФД: 63065 [11:29:05]line ФПД: 213410598982146 [11:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112905&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63065&fm=213410598982146&tin=02508201610067®Number=0000000000091619&sum=43808 [11:29:05]line 0 [11:29:05]written 0, free lines is 4095 [11:29:05]OFD Sender: Processing packet 63065 [packets to send 232, broken 231] [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00063065 [11:29:05]OFD Sender: To server: pG, [11:29:05]CommunicateWithHost lk.salyk.kg:30040 [11:29:05]ConnectInit lk.salyk.kg [11:29:05]Connected sock=10 [11:29: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 09 02 00 00 EB 05 01 02 C8 4F 5A 03 01 00 03 00 F5 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 13 3A 00 00 00 00 13 04 06 00 13 3A 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 D0 07 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 2E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 01 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C2 18 86 F1 92 02 1D 86 51 5D 76 C8 1B 92 [11:29:06]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 C1 47 00 C8 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 59 F6 00 00 F4 03 04 00 FF E4 15 67 B6 04 01 00 00 03 D3 01 1D E6 DD 05 7B [11:29:06]CommunicateWithHost err = 0 [11:29:06]CheckOFDResponse [11:29:06]1017 (14) - 77093643461234 [11:29:06]1041 (16) - 0000000000874676 [11:29:06]1040 (4) - 63065 [11:29:06]1012 (4) - 21.10.2024 05:22 [11:29:06]1206 (1) - 0 [11:29:06]OFD Sender: Remove packet 63065 [11:29:06]ProducePacketName [11:29:06]name=ofd_packets/00063065 [11:29:06]NVStorageDeleteData [11:29:06]Write to MH i2c: 01 00 00 80 0C 8C [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 73 0C 12 [11:29:06]RasterBufferAndPrint [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]written 0, free lines is 3196 [11:29:06]MH_Cut [11:29:06]Write to MH i2c: D1 01 00 87 0C 01 65 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 01 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 01 00 87 0C 00 64 [11:29:06]Write to MH i2c: 01 00 00 88 0C 94 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]OFD Sender: No OFD packet to send [11:29:06]*** Cut start [11:29:06]*** Partial cut [11:29:06]*** CUTSNS_PIN = 1 [11:29:06]*** CUTSNS_PIN = 0 [11:29:07]*** Brake cut motor [11:29:07]Read from MH i2c: 01 [11:29:07]MH_I2C_Read... [11:29:07]*** Stop cut motor [11:29:07]*** Cut end [11:29:07]Read from MH i2c: 01 07 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 FF 0F A9 [11:29:07]process_action close_receipt done [11:29:07]requested_data is exist [11:29:07]produce_requested_data [11:29:07]requested_item fm.sn is exist - process it [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 11 00 00 [11:29:07]Write to MH i2c: E2 08 00 89 0C 80 11 00 00 00 00 00 00 0F [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 17 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 17 00 89 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 68 [11:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:29:07]wFMCommunicate OK [11:29:07]requested_item fd.num is exist - process it [11:29:07]SAM_PROTO_GetFieldsCounters [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 00 00 [11:29:07]Write to MH i2c: E2 08 00 8A 0C 80 13 00 00 00 00 00 00 12 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 62 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 62 00 8A 0C 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 F6 00 00 0E 04 04 00 20 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 65 [11:29: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 59 F6 00 00 0E 04 04 00 20 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 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetFieldsCounters done [11:29:07]requested_item shift.num is exist - process it [11:29:07]requested_item shift.opened is exist - process it [11:29:07]req_shift_opened [11:29:07]FM_GetShiftState [11:29:07]SAM_PROTO_GetShiftState [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 01 00 [11:29:07]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 74 [11:29:07]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetShiftState done [11:29:07]FM_GetShiftState done [11:29:07]req_shift_opened done [11:29:07]requested_item shift.open_date is exist - process it [11:29:07]req_shift_open_date [11:29:07]req_shift_open_date done [11:29:07]produce_requested_data done [11:29:07]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63065,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:29:07]process_action_free close_receipt [11:29:07]json_value_free [11:29:07]json_value_free done [11:29:07]process_json_proto returns [11:29:07]Send response to host [11:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63065,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:29:07]free response buf [11:29:07]execute_script done [11:29:07]execute_script returns [11:29:07]free content buf [11:29:07]Sock 9.Close socket [11:29:07]Sock 9.Thread stoped [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:34]accept exits with 7 [11:31:34]New connection [11:31:34]New thread 3067055460 created [11:31:34]Thread 3067198820 joined [11:31:34]Waiting for new connection... [11:31:34] Sock 7.Parse request [11:31:34]Sock 7.Check first char [11:31:34]Sock 7.First char is OK [11:31:34]request: POST /json_proto HTTP/1.0 [11:31:34]Method: POST [11:31:34]URL: /json_proto [11:31:34]Method is POST - this is cgi request [11:31:34]url: /json_proto [11:31:34]query_string will be loaded in cgi processing [11:31:34]execute_cgi json_proto POST (null) [11:31:34]execute_cgi path=json_proto method=POST [11:31:34]POST find Content-Length [11:31:34]Host: 172.17.42.132:8080 [11:31:34]Content-Length: 620 [11:31:34]Content-Type: application/json [11:31:34] [11:31:34]POST finish read [11:31:34]Found Content-Length = 620 [11:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47376", "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" ] } } [11:31:34]execute_script... [11:31: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)47376", "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" ] } } [11:31:34]POST & json_proto [11:31:34]process_json_proto [11:31:34]json parsed OK: [11:31:34]protocol is kg_v1.0 [11:31:34]action value=close_receipt [11:31:34]process_action close_receipt [11:31:34]cmd_close_receipt [11:31:34]MH_GetDate [11:31:34]Write to MH i2c: F0 00 00 8C 0C 87 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 09 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: F0 09 00 8C 0C 00 98 3B 16 67 4C DF 56 66 C7 [11:31:34]GetLastDocTimeStamp 1729510145 [11:31:34]current date 1729510296 [11:31:34]FM_GetShiftState [11:31:34]SAM_PROTO_GetShiftState [11:31:34]wFMCommunicate request_size=4 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 13 01 00 [11:31:34]Write to MH i2c: E2 08 00 8D 0C 80 13 01 00 00 00 00 00 16 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0E 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0E 00 8D 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 76 [11:31:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:31:34]wFMCommunicate OK [11:31:34]SAM_PROTO_GetShiftState done [11:31:34]FM_GetShiftState done [11:31:34]opened in 1729469755 [11:31:34]opened+sec_in_day 1729556155 [11:31:34]quantity*price = 14400 [11:31:34]sum+1 = 14401 [11:31:34]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 СНО: Общий режим Чек 63 21.10.2024 11:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63066 ФПД: 57733591853312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113136&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63066&fm=57733591853312&tin=02508201610067®Number=0000000000091619&sum=14400 0 [11:31:35]StoreToDocumentArchive [11:31:35]shift 544 fd 63066 [11:31:35]save to /storage/0544/doc_00063066 [11:31:35]save last doc name /storage/0544/doc_00063066 to /storage/kkm_last_doc_name [11:31:35]save OK [11:31:35]Clear old archive folders... [11:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:31:35]tlvbuf is B6F948E0 [11:31:35]SAM_PROTO_ClearQueue [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 09 00 00 [11:31:35]Write to MH i2c: E2 08 00 9A 0C 80 09 00 00 00 00 00 00 18 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]SAM_PROTO_ClearQueue done [11:31:35]KKMCreateOFDPacket [11:31:35]OFDProtocolAddRootSTLVToBuf [11:31:35]FM_MakeSignedData [11:31:35]FM_MakeSignedData [11:31:35]SAM_PROTO_SignData [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 0D 01 02 [11:31:35]Write to MH i2c: E2 08 00 9B 0C 80 0D 01 02 00 00 00 00 20 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:35]Read from MH i2c: E2 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: E2 03 00 9B 0C 00 90 00 1B [11:31:35]RAPDU: 90 00 [11:31:35]wFMCommunicate OK [11:31:35]wFMCommunicate request_size=255 [11:31:35]MH_SAM_APDU [11:31:35]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 3F 00 00 00 F4 03 04 00 98 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:31:35]Write to MH i2c: E2 02 01 9C 0C 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 3F 00 00 00 F4 03 04 00 98 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 3C [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 03 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 03 00 9C 0C 00 90 00 1C [11:31:36]RAPDU: 90 00 [11:31:36]wFMCommunicate OK [11:31:36]wFMCommunicate request_size=32 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F6 00 00 35 04 06 00 34 82 26 3B E9 00 [11:31:36]Write to MH i2c: E2 23 00 9D 0C 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F6 00 00 35 04 06 00 34 82 26 3B E9 00 00 00 D6 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 03 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [11:31:36]RAPDU: 90 00 [11:31:36]wFMCommunicate OK [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 0D 03 02 [11:31:36]Write to MH i2c: E2 08 00 9E 0C 80 0D 03 02 00 00 00 00 25 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0B 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0B 00 9E 0C 00 AA B4 6F 66 10 DC EA 65 90 00 94 [11:31:36]RAPDU: AA B4 6F 66 10 DC EA 65 90 00 [11:31:36]wFMCommunicate OK [11:31:36]SAM_PROTO_SignData done [11:31:36]FM_MakeSignedData done [11:31:36]CreateOFDProtocolMessage [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 11 00 00 [11:31:36]Write to MH i2c: E2 08 00 9F 0C 80 11 00 00 00 00 00 00 25 [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 9F 0C 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:31: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:31:36]wFMCommunicate OK [11:31:36]CreateOFDProtocolMessage done [11:31:36]OFDSenderStorePacket 63066 [11:31:36]StoreOFDPacket docnum=63066 [11:31: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 25 01 00 00 47 EF 1D 01 DD 24 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 3F 00 00 00 F4 03 04 00 98 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 34 82 26 3B E9 00 AA B4 6F 66 10 DC EA 65 [11:31:36]CheckFolder [11:31:36]dirname=/storage/ofd_packets [11:31:36]CheckFolder done [11:31:36]ProducePacketName [11:31:36]name=ofd_packets/00063066 [11:31:36]NVStorageSaveData ofd_packets/00063066 [11:31:36]File name is /storage/ofd_packets/00063066 [11:31:36]Write 323 bytes [11:31:36]NVStorageSaveData done [11:31:36]OFDSenderStorePacket done [11:31:36]KKMCreateOFDPacket done [11:31:36]NVStorageSaveData kkm_last_timestamp [11:31:36]File name is /storage/kkm_last_timestamp [11:31:36]Write 4 bytes [11:31:36]NVStorageSaveData done [11:31:36]ExternCall_PrintAddStr [11:31:36]wPrintStart [11:31:36]Write to MH i2c: 01 00 00 A0 0C AC [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 07 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 07 00 A0 0C 00 00 00 00 00 FF 0F C1 [11:31:36]RasterBufferAndPrint [11:31:36]line Счет N : (3)47376 [11:31:36]line ИНН: 02508201610067 [11:31:36]line Контрольно-Кассовый Чек [11:31:36]line ПРОДАЖА [11:31:36]line Товар: 48743570 [11:31:36]line Сигареты Winston XStyle Blue [11:31:36]line 1.000 * 144.00 [11:31:36]line = 144.00 [11:31:36]line НДС 12% НСП 1% [11:31:36]line > о реализуемом товаре [11:31:36]line ИТОГО: 144.00 [11:31:36]line НСП 1% : 1.27 [11:31:36]line НДС 12% : 15.29 [11:31:36]line Наличными: 144.00 [11:31:36]line Безнал.: 0.00 [11:31:36]line Место: АЗС № 86 "Партнер Нефть" [11:31:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:31:36]line СНО: Общий режим [11:31:36]line Чек 63 21.10.2024 11:31 [11:31:36]line Смена: 544 ФФД: 1.0 [11:31:36]line ЗНМ: 0300000154 [11:31:36]line РНМ: 0000000000091619 [11:31:36]line Версия ККМ: 001 [11:31:36]line ФМ: 0000000000874676 [11:31:36]line ФД: 63066 [11:31:36]line ФПД: 57733591853312 [11:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113136&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63066&fm=57733591853312&tin=02508201610067®Number=0000000000091619&sum=14400 [11:31:36]OFD Sender: Processing packet 63066 [packets to send 232, broken 231] [11:31:36]ProducePacketName [11:31:36]name=ofd_packets/00063066 [11:31:36]OFD Sender: To server: pG, [11:31:36]CommunicateWithHost lk.salyk.kg:30040 [11:31:36]ConnectInit lk.salyk.kg [11:31:36]line 0 [11:31:36]written 0, free lines is 4095 [11:31:37]Connected sock=10 [11:31: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 25 01 00 00 47 EF 1D 01 DD 24 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 3F 00 00 00 F4 03 04 00 98 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 34 82 26 3B E9 00 AA B4 6F 66 10 DC EA 65 [11:31:37]Write to MH i2c: 01 00 00 C8 0C D4 [11:31:37]Write i2c OK [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: 01 [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: 01 07 00 [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: 01 07 00 C8 0C 00 00 00 00 00 1D 0D 05 [11:31:37]RasterBufferAndPrint [11:31:37]line [11:31:37]line [11:31:37]line [11:31:37]line [11:31:37]line [11:31:37]written 0, free lines is 3362 [11:31:37]MH_Cut [11:31:37]Write to MH i2c: D1 01 00 CF 0C 01 AD [11:31:37]Write i2c OK [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: D1 [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: D1 01 00 [11:31:37]MH_I2C_Read... [11:31:37]Read from MH i2c: D1 01 00 CF 0C 00 AC [11:31:37]Write to MH i2c: 01 00 00 D0 0C DC [11:31:37]Write i2c OK [11:31:37]MH_I2C_Read... [11:31: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 FB E6 47 00 D0 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F6 00 00 F4 03 04 00 96 E5 15 67 B6 04 01 00 00 74 5B 17 FE 73 0E 3D 10 [11:31:37]CommunicateWithHost err = 0 [11:31:37]CheckOFDResponse [11:31:37]1017 (14) - 77093643461234 [11:31:37]1041 (16) - 0000000000874676 [11:31:37]1040 (4) - 63066 [11:31:37]1012 (4) - 21.10.2024 05:24 [11:31:37]1206 (1) - 0 [11:31:37]OFD Sender: Remove packet 63066 [11:31:37]ProducePacketName [11:31:37]name=ofd_packets/00063066 [11:31:37]NVStorageDeleteData [11:31:37]*** Cut start [11:31:37]*** Partial cut [11:31:37]*** CUTSNS_PIN = 1 [11:31:37]*** CUTSNS_PIN = 0 [11:31:37]OFD Sender: No OFD packet to send [11:31:38]*** Brake cut motor [11:31:38]Read from MH i2c: 01 [11:31:38]MH_I2C_Read... [11:31:38]*** Stop cut motor [11:31:38]*** Cut end [11:31:38]Read from MH i2c: 01 07 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [11:31:38]process_action close_receipt done [11:31:38]requested_data is exist [11:31:38]produce_requested_data [11:31:38]requested_item fm.sn is exist - process it [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 11 00 00 [11:31:38]Write to MH i2c: E2 08 00 D1 0C 80 11 00 00 00 00 00 00 57 [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 17 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 17 00 D1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B0 [11:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:31:38]wFMCommunicate OK [11:31:38]requested_item fd.num is exist - process it [11:31:38]SAM_PROTO_GetFieldsCounters [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 13 00 00 [11:31:38]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 62 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 62 00 D2 0C 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 F6 00 00 0E 04 04 00 20 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 B1 [11:31: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 5A F6 00 00 0E 04 04 00 20 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 [11:31:38]wFMCommunicate OK [11:31:38]SAM_PROTO_GetFieldsCounters done [11:31:38]requested_item shift.num is exist - process it [11:31:38]requested_item shift.opened is exist - process it [11:31:38]req_shift_opened [11:31:38]FM_GetShiftState [11:31:38]SAM_PROTO_GetShiftState [11:31:38]wFMCommunicate request_size=4 [11:31:38]MH_SAM_APDU [11:31:38]CAPDU: 80 13 01 00 [11:31:38]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [11:31:38]Write i2c OK [11:31:38]MH_I2C_Read... [11:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:38]Read from MH i2c: E2 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 0E 00 [11:31:38]MH_I2C_Read... [11:31:38]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BC [11:31:38]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:31:38]wFMCommunicate OK [11:31:38]SAM_PROTO_GetShiftState done [11:31:38]FM_GetShiftState done [11:31:38]req_shift_opened done [11:31:38]requested_item shift.open_date is exist - process it [11:31:38]req_shift_open_date [11:31:38]req_shift_open_date done [11:31:38]produce_requested_data done [11:31:38]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63066,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:31:38]process_action_free close_receipt [11:31:38]json_value_free [11:31:38]json_value_free done [11:31:38]process_json_proto returns [11:31:38]Send response to host [11:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63066,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:31:38]free response buf [11:31:38]execute_script done [11:31:38]execute_script returns [11:31:38]free content buf [11:31:38]Sock 7.Close socket [11:31:38]Sock 7.Thread stoped [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:13]accept exits with 9 [11:33:13]New connection [11:33:13]New thread 3067198820 created [11:33:13]Thread 3067055460 joined [11:33:13]Waiting for new connection... [11:33:13] Sock 9.Parse request [11:33:13]Sock 9.Check first char [11:33:13]Sock 9.First char is OK [11:33:13]request: POST /json_proto HTTP/1.0 [11:33:13]Method: POST [11:33:13]URL: /json_proto [11:33:13]Method is POST - this is cgi request [11:33:13]url: /json_proto [11:33:13]query_string will be loaded in cgi processing [11:33:13]execute_cgi json_proto POST (null) [11:33:13]execute_cgi path=json_proto method=POST [11:33:13]POST find Content-Length [11:33:13]Host: 172.17.42.132:8080 [11:33:13]Content-Length: 792 [11:33:13]Content-Type: application/json [11:33:13] [11:33:13]POST finish read [11:33:13]Found Content-Length = 792 [11:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47377", "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" ] } } [11:33:13]execute_script... [11:33:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47377", "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" ] } } [11:33:13]POST & json_proto [11:33:13]process_json_proto [11:33:13]json parsed OK: [11:33:13]protocol is kg_v1.0 [11:33:13]action value=close_receipt [11:33:13]process_action close_receipt [11:33:13]cmd_close_receipt [11:33:13]MH_GetDate [11:33:13]Write to MH i2c: F0 00 00 D4 0C CF [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: F0 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: F0 09 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: F0 09 00 D4 0C 00 FB 3B 16 67 4C DF 56 66 72 [11:33:13]GetLastDocTimeStamp 1729510296 [11:33:13]current date 1729510395 [11:33:13]FM_GetShiftState [11:33:13]SAM_PROTO_GetShiftState [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 13 01 00 [11:33:13]Write to MH i2c: E2 08 00 D5 0C 80 13 01 00 00 00 00 00 5E [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 0E 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 0E 00 D5 0C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BE [11:33:13]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:33:13]wFMCommunicate OK [11:33:13]SAM_PROTO_GetShiftState done [11:33:13]FM_GetShiftState done [11:33:13]opened in 1729469755 [11:33:13]opened+sec_in_day 1729556155 [11:33:13]quantity*price = 9812 [11:33:13]sum+1 = 9813 [11:33:13]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 СНО: Общий режим Чек 64 21.10.2024 11:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63067 ФПД: 13840027913302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113315&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63067&fm=13840027913302&tin=02508201610067®Number=0000000000091619&sum=9812 0 [11:33:14]StoreToDocumentArchive [11:33:14]shift 544 fd 63067 [11:33:14]save to /storage/0544/doc_00063067 [11:33:14]save last doc name /storage/0544/doc_00063067 to /storage/kkm_last_doc_name [11:33:14]save OK [11:33:14]Clear old archive folders... [11:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:33:14]tlvbuf is B6EE4130 [11:33:14]SAM_PROTO_ClearQueue [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 09 00 00 [11:33:14]Write to MH i2c: E2 08 00 E2 0C 80 09 00 00 00 00 00 00 60 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]SAM_PROTO_ClearQueue done [11:33:14]KKMCreateOFDPacket [11:33:14]OFDProtocolAddRootSTLVToBuf [11:33:14]FM_MakeSignedData [11:33:14]FM_MakeSignedData [11:33:14]SAM_PROTO_SignData [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 0D 01 02 [11:33:14]Write to MH i2c: E2 08 00 E3 0C 80 0D 01 02 00 00 00 00 68 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [11:33:14]RAPDU: 90 00 [11:33:14]wFMCommunicate OK [11:33:14]wFMCommunicate request_size=255 [11:33:14]MH_SAM_APDU [11:33:14]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 40 00 00 00 F4 03 04 00 FB 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:33:14]Write to MH i2c: E2 02 01 E4 0C 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 40 00 00 00 F4 03 04 00 FB 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 6F [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 03 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [11:33:15]RAPDU: 90 00 [11:33:15]wFMCommunicate OK [11:33:15]wFMCommunicate request_size=52 [11:33:15]MH_SAM_APDU [11:33:15]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 5B F6 00 00 35 04 06 00 0C 96 61 F2 8C 56 [11:33:15]Write to MH i2c: E2 37 00 E5 0C 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 5B F6 00 00 35 04 06 00 0C 96 61 F2 8C 56 00 00 5D [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 03 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [11:33:15]RAPDU: 90 00 [11:33:15]wFMCommunicate OK [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 0D 03 02 [11:33:15]Write to MH i2c: E2 08 00 E6 0C 80 0D 03 02 00 00 00 00 6D [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0B 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0B 00 E6 0C 00 28 36 EA 05 1A F7 7F 6F 90 00 BA [11:33:15]RAPDU: 28 36 EA 05 1A F7 7F 6F 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_SignData done [11:33:15]FM_MakeSignedData done [11:33:15]CreateOFDProtocolMessage [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 11 00 00 [11:33:15]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 17 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C6 [11:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:33:15]wFMCommunicate OK [11:33:15]CreateOFDProtocolMessage done [11:33:15]OFDSenderStorePacket 63067 [11:33:15]StoreOFDPacket docnum=63067 [11:33:15]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 F6 B4 31 01 10 91 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 40 00 00 00 F4 03 04 00 FB 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0C 96 61 F2 8C 56 28 36 EA 05 1A F7 7F 6F [11:33:15]CheckFolder [11:33:15]dirname=/storage/ofd_packets [11:33:15]CheckFolder done [11:33:15]ProducePacketName [11:33:15]name=ofd_packets/00063067 [11:33:15]NVStorageSaveData ofd_packets/00063067 [11:33:15]File name is /storage/ofd_packets/00063067 [11:33:15]Write 343 bytes [11:33:15]NVStorageSaveData done [11:33:15]OFDSenderStorePacket done [11:33:15]KKMCreateOFDPacket done [11:33:15]NVStorageSaveData kkm_last_timestamp [11:33:15]File name is /storage/kkm_last_timestamp [11:33:15]Write 4 bytes [11:33:15]NVStorageSaveData done [11:33:15]ExternCall_PrintAddStr [11:33:15]wPrintStart [11:33:15]Write to MH i2c: 01 00 00 E8 0C F4 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 07 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [11:33:15]RasterBufferAndPrint [11:33:15]line Счет N : (3)47377 [11:33:15]line ИНН: 02508201610067 [11:33:15]line Контрольно-Кассовый Чек [11:33:15]line ПРОДАЖА [11:33:15]line Товар: 4870022003305 [11:33:15]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:33:15]line 1.000 * 98.12 [11:33:15]line = 98.12 [11:33:15]line НДС 12% НСП 1% [11:33:15]line > о реализуемом товаре [11:33:15]line ИТОГО: 98.12 [11:33:15]line НСП 1% : 0.87 [11:33:15]line НДС 12% : 10.42 [11:33:15]line Наличными: 0.00 [11:33:15]line Безнал.: 98.12 [11:33:15]line Место: АЗС № 86 "Партнер Нефть" [11:33:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:33:15]line СНО: Общий режим [11:33:15]line Чек 64 21.10.2024 11:33 [11:33:15]line Смена: 544 ФФД: 1.0 [11:33:15]line ЗНМ: 0300000154 [11:33:15]line РНМ: 0000000000091619 [11:33:15]line Версия ККМ: 001 [11:33:15]line Платежная система: Mbank [11:33:15]line ФМ: 0000000000874676 [11:33:15]line ФД: 63067 [11:33:15]line ФПД: 13840027913302 [11:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113315&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63067&fm=13840027913302&tin=02508201610067®Number=0000000000091619&sum=9812 [11:33:15]OFD Sender: Processing packet 63067 [packets to send 232, broken 231] [11:33:15]ProducePacketName [11:33:15]name=ofd_packets/00063067 [11:33:15]OFD Sender: To server: pG, [11:33:15]CommunicateWithHost lk.salyk.kg:30040 [11:33:15]ConnectInit lk.salyk.kg [11:33:15]line 0 [11:33:15]written 0, free lines is 4095 [11:33:16]Connected sock=11 [11:33: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 39 01 00 00 F6 B4 31 01 10 91 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 40 00 00 00 F4 03 04 00 FB 3B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0C 96 61 F2 8C 56 28 36 EA 05 1A F7 7F 6F [11:33:16]Write to MH i2c: 01 00 00 12 0D 1F [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 07 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 07 00 12 0D 00 00 00 00 00 04 0D 37 [11:33:16]RasterBufferAndPrint [11:33:16]line [11:33:16]line [11:33:16]line [11:33:16]line [11:33:16]line [11:33:16]written 0, free lines is 3338 [11:33:16]MH_Cut [11:33:16]Write to MH i2c: D1 01 00 19 0D 01 F8 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: D1 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: D1 01 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: D1 01 00 19 0D 00 F7 [11:33:16]Write to MH i2c: 01 00 00 1A 0D 27 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]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 A4 47 00 DE 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5B F6 00 00 F4 03 04 00 F9 E5 15 67 B6 04 01 00 00 59 B3 20 CD C2 D1 F2 6C [11:33:16]CommunicateWithHost err = 0 [11:33:16]CheckOFDResponse [11:33:16]1017 (14) - 77093643461234 [11:33:16]1041 (16) - 0000000000874676 [11:33:16]1040 (4) - 63067 [11:33:16]1012 (4) - 21.10.2024 05:26 [11:33:16]1206 (1) - 0 [11:33:16]OFD Sender: Remove packet 63067 [11:33:16]ProducePacketName [11:33:16]name=ofd_packets/00063067 [11:33:16]NVStorageDeleteData [11:33:16]*** Cut start [11:33:16]*** Partial cut [11:33:16]*** CUTSNS_PIN = 1 [11:33:16]OFD Sender: No OFD packet to send [11:33:16]*** CUTSNS_PIN = 0 [11:33:17]*** Brake cut motor [11:33:17]Read from MH i2c: 01 [11:33:17]MH_I2C_Read... [11:33:17]*** Stop cut motor [11:33:17]*** Cut end [11:33:17]Read from MH i2c: 01 07 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 1A 0D 00 00 00 00 00 FF 0F 3C [11:33:17]process_action close_receipt done [11:33:17]requested_data is exist [11:33:17]produce_requested_data [11:33:17]requested_item fm.sn is exist - process it [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 11 00 00 [11:33:17]Write to MH i2c: E2 08 00 1B 0D 80 11 00 00 00 00 00 00 A2 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 1B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [11: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 [11:33:17]wFMCommunicate OK [11:33:17]requested_item fd.num is exist - process it [11:33:17]SAM_PROTO_GetFieldsCounters [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 13 00 00 [11:33:17]Write to MH i2c: E2 08 00 1C 0D 80 13 00 00 00 00 00 00 A5 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 62 00 1C 0D 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 F6 00 00 0E 04 04 00 20 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 00 [11:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetFieldsCounters done [11:33:17]requested_item shift.num is exist - process it [11:33:17]requested_item shift.opened is exist - process it [11:33:17]req_shift_opened [11:33:17]FM_GetShiftState [11:33:17]SAM_PROTO_GetShiftState [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 13 01 00 [11:33:17]Write to MH i2c: E2 08 00 1D 0D 80 13 01 00 00 00 00 00 A7 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0E 00 1D 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 07 [11:33:17]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_GetShiftState done [11:33:17]FM_GetShiftState done [11:33:17]req_shift_opened done [11:33:17]requested_item shift.open_date is exist - process it [11:33:17]req_shift_open_date [11:33:17]req_shift_open_date done [11:33:17]produce_requested_data done [11:33:17]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63067,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:33:17]process_action_free close_receipt [11:33:17]json_value_free [11:33:17]json_value_free done [11:33:17]process_json_proto returns [11:33:17]Send response to host [11:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63067,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:33:17]free response buf [11:33:17]execute_script done [11:33:17]execute_script returns [11:33:17]free content buf [11:33:17]Sock 9.Close socket [11:33:17]Sock 9.Thread stoped [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]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: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:53]ConnectInit Can't connect to host [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:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:15]accept exits with 7 [11:55:15]New connection [11:55:15]New thread 3067055460 created [11:55:15]Thread 3067198820 joined [11:55:15]Waiting for new connection... [11:55:15] Sock 7.Parse request [11:55:15]Sock 7.Check first char [11:55:15]Sock 7.First char is OK [11:55:15]request: POST /json_proto HTTP/1.0 [11:55:15]Method: POST [11:55:15]URL: /json_proto [11:55:15]Method is POST - this is cgi request [11:55:15]url: /json_proto [11:55:15]query_string will be loaded in cgi processing [11:55:15]execute_cgi json_proto POST (null) [11:55:15]execute_cgi path=json_proto method=POST [11:55:15]POST find Content-Length [11:55:15]Host: 172.17.42.132:8080 [11:55:15]Content-Length: 661 [11:55:15]Content-Type: application/json [11:55:15] [11:55:15]POST finish read [11:55:15]Found Content-Length = 661 [11:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47378", "tax_sys" : 0, "items" : [ { "code": "4600682039990", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:15]execute_script... [11:55:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47378", "tax_sys" : 0, "items" : [ { "code": "4600682039990", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:15]POST & json_proto [11:55:15]process_json_proto [11:55:15]json parsed OK: [11:55:15]protocol is kg_v1.0 [11:55:15]action value=close_receipt [11:55:15]process_action close_receipt [11:55:15]cmd_close_receipt [11:55:15]MH_GetDate [11:55:15]Write to MH i2c: F0 00 00 1E 0D 1A [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 09 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: F0 09 00 1E 0D 00 25 41 16 67 4C DF 56 66 ED [11:55:15]GetLastDocTimeStamp 1729510395 [11:55:15]current date 1729511717 [11:55:15]FM_GetShiftState [11:55:15]SAM_PROTO_GetShiftState [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 13 01 00 [11:55:15]Write to MH i2c: E2 08 00 1F 0D 80 13 01 00 00 00 00 00 A9 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0E 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 0E 00 1F 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 09 [11:55:15]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:55:15]wFMCommunicate OK [11:55:15]SAM_PROTO_GetShiftState done [11:55:15]FM_GetShiftState done [11:55:15]opened in 1729469755 [11:55:15]opened+sec_in_day 1729556155 [11:55:15]quantity*price = 19000 [11:55:15]sum+1 = 19001 [11:55:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 65 21.10.2024 11:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63068 ФПД: 12677126524475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115517&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63068&fm=12677126524475&tin=02508201610067®Number=0000000000091619&sum=19000 0 [11:55:16]StoreToDocumentArchive [11:55:16]shift 544 fd 63068 [11:55:16]save to /storage/0544/doc_00063068 [11:55:16]save last doc name /storage/0544/doc_00063068 to /storage/kkm_last_doc_name [11:55:16]save OK [11:55:16]Clear old archive folders... [11:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=295 [11:55:16]tlvbuf is 018FEF60 [11:55:16]SAM_PROTO_ClearQueue [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 09 00 00 [11:55:16]Write to MH i2c: E2 08 00 2C 0D 80 09 00 00 00 00 00 00 AB [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [11:55:16]RAPDU: 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_ClearQueue done [11:55:16]KKMCreateOFDPacket [11:55:16]OFDProtocolAddRootSTLVToBuf [11:55:16]FM_MakeSignedData [11:55:16]FM_MakeSignedData [11:55:16]SAM_PROTO_SignData [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 0D 01 02 [11:55:16]Write to MH i2c: E2 08 00 2D 0D 80 0D 01 02 00 00 00 00 B3 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [11:55:16]RAPDU: 90 00 [11:55:16]wFMCommunicate OK [11:55:16]wFMCommunicate request_size=255 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:55:16]Write to MH i2c: E2 02 01 2E 0D 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 8A [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [11:55:16]RAPDU: 90 00 [11:55:16]wFMCommunicate OK [11:55:16]wFMCommunicate request_size=54 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0B 87 9F 9F 8E 3B [11:55:16]Write to MH i2c: E2 39 00 2F 0D 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0B 87 9F 9F 8E 3B 00 00 CF [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 03 02 [11:55:17]Write to MH i2c: E2 08 00 30 0D 80 0D 03 02 00 00 00 00 B8 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 30 0D 00 7C 30 77 9B 9E 91 C6 27 90 00 93 [11:55:17]RAPDU: 7C 30 77 9B 9E 91 C6 27 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_SignData done [11:55:17]FM_MakeSignedData done [11:55:17]CreateOFDProtocolMessage [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 11 00 00 [11:55:17]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 11 [11:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:55:17]wFMCommunicate OK [11:55:17]CreateOFDProtocolMessage done [11:55:17]OFDSenderStorePacket 63068 [11:55:17]StoreOFDPacket docnum=63068 [11:55: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 3B 01 00 00 5A 79 33 01 73 8A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0B 87 9F 9F 8E 3B 7C 30 77 9B 9E 91 C6 27 [11:55:17]CheckFolder [11:55:17]dirname=/storage/ofd_packets [11:55:17]CheckFolder done [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00063068 [11:55:17]NVStorageSaveData ofd_packets/00063068 [11:55:17]File name is /storage/ofd_packets/00063068 [11:55:17]Write 345 bytes [11:55:17]NVStorageSaveData done [11:55:17]OFDSenderStorePacket done [11:55:17]KKMCreateOFDPacket done [11:55:17]NVStorageSaveData kkm_last_timestamp [11:55:17]File name is /storage/kkm_last_timestamp [11:55:17]Write 4 bytes [11:55:17]NVStorageSaveData done [11:55:17]ExternCall_PrintAddStr [11:55:17]wPrintStart [11:55:17]Write to MH i2c: 01 00 00 32 0D 3F [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 FF 0F 54 [11:55:17]RasterBufferAndPrint [11:55:17]line Счет N : (3)47378 [11:55:17]line ИНН: 02508201610067 [11:55:17]line Контрольно-Кассовый Чек [11:55:17]line ПРОДАЖА [11:55:17]line Товар: 4600682039990 [11:55:17]line Напиток безалк Flash Up Bubble Gum 0,45 [11:55:17]line 2.000 * 95.00 [11:55:17]line = 190.00 [11:55:17]line НДС 12% НСП 1% [11:55:17]line > о реализуемом товаре [11:55:17]line ИТОГО: 190.00 [11:55:17]line НСП 1% : 1.68 [11:55:17]line НДС 12% : 20.18 [11:55:17]line Наличными: 190.00 [11:55:17]line Безнал.: 0.00 [11:55:17]line Место: АЗС № 86 "Партнер Нефть" [11:55:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:55:17]line СНО: Общий режим [11:55:17]line Чек 65 21.10.2024 11:55 [11:55:17]line Смена: 544 ФФД: 1.0 [11:55:17]line ЗНМ: 0300000154 [11:55:17]line РНМ: 0000000000091619 [11:55:17]line Версия ККМ: 001 [11:55:17]line ФМ: 0000000000874676 [11:55:17]line ФД: 63068 [11:55:17]line ФПД: 12677126524475 [11:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115517&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63068&fm=12677126524475&tin=02508201610067®Number=0000000000091619&sum=19000 [11:55:17]line 0 [11:55:17]OFD Sender: Processing packet 63068 [packets to send 232, broken 231] [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00063068 [11:55:17]OFD Sender: To server: pG, [11:55:17]CommunicateWithHost lk.salyk.kg:30040 [11:55:17]ConnectInit lk.salyk.kg [11:55:17]written 0, free lines is 4095 [11:55:17]Connected sock=10 [11:55:17]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 3B 01 00 00 5A 79 33 01 73 8A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 39 39 39 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 0B 87 9F 9F 8E 3B 7C 30 77 9B 9E 91 C6 27 [11:55:17]Write to MH i2c: 01 00 00 5B 0D 68 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 17 0D 93 [11:55:17]RasterBufferAndPrint [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]written 0, free lines is 3357 [11:55:17]MH_Cut [11:55:17]Write to MH i2c: D1 01 00 62 0D 01 41 [11:55: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 AD 0D 47 00 65 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F6 00 00 F4 03 04 00 23 EB 15 67 B6 04 01 00 00 68 91 A0 E8 52 76 49 24 [11:55:17]CommunicateWithHost err = 0 [11:55:17]CheckOFDResponse [11:55:17]1017 (14) - 77093643461234 [11:55:17]1041 (16) - 0000000000874676 [11:55:17]1040 (4) - 63068 [11:55:17]1012 (4) - 21.10.2024 05:48 [11:55:17]1206 (1) - 0 [11:55:17]OFD Sender: Remove packet 63068 [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00063068 [11:55:17]NVStorageDeleteData [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 01 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 01 00 62 0D 00 40 [11:55:17]Write to MH i2c: 01 00 00 63 0D 70 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:18]OFD Sender: No OFD packet to send [11:55:18]*** Cut start [11:55:18]*** Partial cut [11:55:18]*** CUTSNS_PIN = 1 [11:55:18]*** CUTSNS_PIN = 0 [11:55:18]*** Brake cut motor [11:55:19]Read from MH i2c: 01 [11:55:19]MH_I2C_Read... [11:55:19]*** Stop cut motor [11:55:19]*** Cut end [11:55:19]Read from MH i2c: 01 07 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [11:55:19]process_action close_receipt done [11:55:19]requested_data is exist [11:55:19]produce_requested_data [11:55:19]requested_item fm.sn is exist - process it [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 11 00 00 [11:55:19]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 44 [11:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:55:19]wFMCommunicate OK [11:55:19]requested_item fd.num is exist - process it [11:55:19]SAM_PROTO_GetFieldsCounters [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 00 00 [11:55:19]Write to MH i2c: E2 08 00 65 0D 80 13 00 00 00 00 00 00 EE [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 65 0D 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 F6 00 00 0E 04 04 00 20 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 4D [11:55: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 5C F6 00 00 0E 04 04 00 20 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 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetFieldsCounters done [11:55:19]requested_item shift.num is exist - process it [11:55:19]requested_item shift.opened is exist - process it [11:55:19]req_shift_opened [11:55:19]FM_GetShiftState [11:55:19]SAM_PROTO_GetShiftState [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 01 00 [11:55:19]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 50 [11:55:19]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetShiftState done [11:55:19]FM_GetShiftState done [11:55:19]req_shift_opened done [11:55:19]requested_item shift.open_date is exist - process it [11:55:19]req_shift_open_date [11:55:19]req_shift_open_date done [11:55:19]produce_requested_data done [11:55:19]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63068,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [11:55:19]process_action_free close_receipt [11:55:19]json_value_free [11:55:19]json_value_free done [11:55:19]process_json_proto returns [11:55:19]Send response to host [11:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63068,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [11:55:19]free response buf [11:55:19]execute_script done [11:55:19]execute_script returns [11:55:19]free content buf [11:55:19]Sock 7.Close socket [11:55:19]Sock 7.Thread stoped [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:39]accept exits with 9 [12:04:39]New connection [12:04:39]New thread 3067198820 created [12:04:39]Thread 3067055460 joined [12:04:39]Waiting for new connection... [12:04:39] Sock 9.Parse request [12:04:39]Sock 9.Check first char [12:04:39]Sock 9.First char is OK [12:04:39]request: POST /json_proto HTTP/1.0 [12:04:39]Method: POST [12:04:39]URL: /json_proto [12:04:39]Method is POST - this is cgi request [12:04:39]url: /json_proto [12:04:39]query_string will be loaded in cgi processing [12:04:39]execute_cgi json_proto POST (null) [12:04:39]execute_cgi path=json_proto method=POST [12:04:39]POST find Content-Length [12:04:39]Host: 172.17.42.132:8080 [12:04:39]Content-Length: 1263 [12:04:39]Content-Type: application/json [12:04:39] [12:04:39]POST finish read [12:04:39]Found Content-Length = 1263 [12:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47379", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:39]execute_script... [12:04: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)47379", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:39]POST & json_proto [12:04:39]process_json_proto [12:04:39]json parsed OK: [12:04:39]protocol is kg_v1.0 [12:04:39]action value=close_receipt [12:04:39]process_action close_receipt [12:04:39]cmd_close_receipt [12:04:39]MH_GetDate [12:04:39]Write to MH i2c: F0 00 00 67 0D 63 [12:04:39]Write i2c OK [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: F0 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: F0 09 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: F0 09 00 67 0D 00 59 43 16 67 4C DF 56 66 6C [12:04:39]GetLastDocTimeStamp 1729511717 [12:04:39]current date 1729512281 [12:04:39]FM_GetShiftState [12:04:39]SAM_PROTO_GetShiftState [12:04:39]wFMCommunicate request_size=4 [12:04:39]MH_SAM_APDU [12:04:39]CAPDU: 80 13 01 00 [12:04:39]Write to MH i2c: E2 08 00 68 0D 80 13 01 00 00 00 00 00 F2 [12:04:39]Write i2c OK [12:04:39]MH_I2C_Read... [12:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:39]Read from MH i2c: E2 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 0E 00 [12:04:39]MH_I2C_Read... [12:04:39]Read from MH i2c: E2 0E 00 68 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 52 [12:04:39]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:04:39]wFMCommunicate OK [12:04:39]SAM_PROTO_GetShiftState done [12:04:39]FM_GetShiftState done [12:04:39]opened in 1729469755 [12:04:39]opened+sec_in_day 1729556155 [12:04:39]quantity*price = 30000 [12:04:39]sum+1 = 30001 [12:04:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 3.000 * 70.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 640.00 НСП 1% : 5.66 НДС 12% : 67.96 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 66 21.10.2024 12:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63069 ФПД: 21578788738134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120442&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63069&fm=21578788738134&tin=02508201610067®Number=0000000000091619&sum=64000 0 [12:04:40]StoreToDocumentArchive [12:04:40]shift 544 fd 63069 [12:04:40]save to /storage/0544/doc_00063069 [12:04:40]save last doc name /storage/0544/doc_00063069 to /storage/kkm_last_doc_name [12:04:40]save OK [12:04:40]Clear old archive folders... [12:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=540 [12:04:40]tlvbuf is 018BFFC0 [12:04:40]SAM_PROTO_ClearQueue [12:04:40]wFMCommunicate request_size=4 [12:04:40]MH_SAM_APDU [12:04:40]CAPDU: 80 09 00 00 [12:04:40]Write to MH i2c: E2 08 00 75 0D 80 09 00 00 00 00 00 00 F4 [12:04:40]Write i2c OK [12:04:40]MH_I2C_Read... [12:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:41]Read from MH i2c: E2 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [12:04:41]RAPDU: 90 00 [12:04:41]wFMCommunicate OK [12:04:41]SAM_PROTO_ClearQueue done [12:04:41]KKMCreateOFDPacket [12:04:41]OFDProtocolAddRootSTLVToBuf [12:04:41]FM_MakeSignedData [12:04:41]FM_MakeSignedData [12:04:41]SAM_PROTO_SignData [12:04:41]wFMCommunicate request_size=4 [12:04:41]MH_SAM_APDU [12:04:41]CAPDU: 80 0D 01 02 [12:04:41]Write to MH i2c: E2 08 00 76 0D 80 0D 01 02 00 00 00 00 FC [12:04:41]Write i2c OK [12:04:41]MH_I2C_Read... [12:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:41]Read from MH i2c: E2 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [12:04:41]RAPDU: 90 00 [12:04:41]wFMCommunicate OK [12:04:41]wFMCommunicate request_size=255 [12:04:41]MH_SAM_APDU [12:04:41]CAPDU: 80 0D 02 02 FA 03 00 1C 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 [12:04:41]Write to MH i2c: E2 02 01 77 0D 80 0D 02 02 FA 00 03 00 1C 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 1F [12:04:41]Write i2c OK [12:04:41]MH_I2C_Read... [12:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:41]Read from MH i2c: E2 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [12:04:41]RAPDU: 90 00 [12:04:41]wFMCommunicate OK [12:04:41]wFMCommunicate request_size=255 [12:04:41]MH_SAM_APDU [12:04:41]CAPDU: 80 0D 02 02 FA 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 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5A 43 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:04:41]Write to MH i2c: E2 02 01 78 0D 80 0D 02 02 FA 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 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5A 43 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 9D [12:04:41]Write i2c OK [12:04:41]MH_I2C_Read... [12:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:41]Read from MH i2c: E2 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 [12:04:41]MH_I2C_Read... [12:04:41]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [12:04:41]RAPDU: 90 00 [12:04:41]wFMCommunicate OK [12:04:41]wFMCommunicate request_size=49 [12:04:41]MH_SAM_APDU [12:04:41]CAPDU: 80 0D 02 02 2C 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 13 A0 34 09 94 56 [12:04:41]Write to MH i2c: E2 34 00 79 0D 80 0D 02 02 2C 00 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 13 A0 34 09 94 56 00 00 61 [12:04:41]Write i2c OK [12:04:41]MH_I2C_Read... [12:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:42]Read from MH i2c: E2 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 03 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [12:04:42]RAPDU: 90 00 [12:04:42]wFMCommunicate OK [12:04:42]wFMCommunicate request_size=4 [12:04:42]MH_SAM_APDU [12:04:42]CAPDU: 80 0D 03 02 [12:04:42]Write to MH i2c: E2 08 00 7A 0D 80 0D 03 02 00 00 00 00 02 [12:04:42]Write i2c OK [12:04:42]MH_I2C_Read... [12:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:42]Read from MH i2c: E2 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 0B 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 0B 00 7A 0D 00 61 29 20 D1 B9 15 35 B7 90 00 38 [12:04:42]RAPDU: 61 29 20 D1 B9 15 35 B7 90 00 [12:04:42]wFMCommunicate OK [12:04:42]SAM_PROTO_SignData done [12:04:42]FM_MakeSignedData done [12:04:42]CreateOFDProtocolMessage [12:04:42]wFMCommunicate request_size=4 [12:04:42]MH_SAM_APDU [12:04:42]CAPDU: 80 11 00 00 [12:04:42]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [12:04:42]Write i2c OK [12:04:42]MH_I2C_Read... [12:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:42]Read from MH i2c: E2 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 17 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5B [12:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:04:42]wFMCommunicate OK [12:04:42]CreateOFDProtocolMessage done [12:04:42]OFDSenderStorePacket 63069 [12:04:42]StoreOFDPacket docnum=63069 [12:04: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 30 02 00 00 9F B1 28 02 87 EE 5A 03 01 00 03 00 1C 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5A 43 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 13 A0 34 09 94 56 61 29 20 D1 B9 15 35 B7 [12:04:42]CheckFolder [12:04:42]dirname=/storage/ofd_packets [12:04:42]CheckFolder done [12:04:42]ProducePacketName [12:04:42]name=ofd_packets/00063069 [12:04:42]NVStorageSaveData ofd_packets/00063069 [12:04:42]File name is /storage/ofd_packets/00063069 [12:04:42]Write 590 bytes [12:04:42]NVStorageSaveData done [12:04:42]OFDSenderStorePacket done [12:04:42]KKMCreateOFDPacket done [12:04:42]NVStorageSaveData kkm_last_timestamp [12:04:42]File name is /storage/kkm_last_timestamp [12:04:42]Write 4 bytes [12:04:42]NVStorageSaveData done [12:04:42]ExternCall_PrintAddStr [12:04:42]wPrintStart [12:04:42]Write to MH i2c: 01 00 00 7C 0D 89 [12:04:42]Write i2c OK [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: 01 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: 01 07 00 [12:04:42]MH_I2C_Read... [12:04:42]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [12:04:42]RasterBufferAndPrint [12:04:42]line Счет N : (3)47379 [12:04:42]line ИНН: 02508201610067 [12:04:42]line Контрольно-Кассовый Чек [12:04:42]line ПРОДАЖА [12:04:42]line Товар: 5449000273680 [12:04:42]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [12:04:42]line 3.000 * 100.00 [12:04:42]line = 300.00 [12:04:42]line НДС 12% НСП 1% [12:04:42]line > о реализуемом товаре [12:04:42]line Товар: 4870002329937 [12:04:42]line Напиток Lipton IceTea 1л персик Regular [12:04:42]line 1.000 * 130.00 [12:04:42]line = 130.00 [12:04:42]line НДС 12% НСП 1% [12:04:42]line > о реализуемом товаре [12:04:42]line Товар: 4607065000868 [12:04:42]line Шок M&M`s с шоколадом 45г [12:04:42]line 3.000 * 70.00 [12:04:42]line = 210.00 [12:04:42]line НДС 12% НСП 1% [12:04:42]line > о реализуемом товаре [12:04:42]line ИТОГО: 640.00 [12:04:42]line НСП 1% : 5.66 [12:04:42]line НДС 12% : 67.96 [12:04:42]line Наличными: 640.00 [12:04:42]line Безнал.: 0.00 [12:04:42]line Место: АЗС № 86 "Партнер Нефть" [12:04:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:04:42]line СНО: Общий режим [12:04:42]line Чек 66 21.10.2024 12:04 [12:04:42]line Смена: 544 ФФД: 1.0 [12:04:42]line ЗНМ: 0300000154 [12:04:42]line РНМ: 0000000000091619 [12:04:42]line Версия ККМ: 001 [12:04:42]line ФМ: 0000000000874676 [12:04:42]line ФД: 63069 [12:04:42]line ФПД: 21578788738134 [12:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120442&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63069&fm=21578788738134&tin=02508201610067®Number=0000000000091619&sum=64000 [12:04:42]line 0 [12:04:42]OFD Sender: Processing packet 63069 [packets to send 232, broken 231] [12:04:42]ProducePacketName [12:04:42]name=ofd_packets/00063069 [12:04:42]OFD Sender: To server: pG, [12:04:42]CommunicateWithHost lk.salyk.kg:30040 [12:04:42]ConnectInit lk.salyk.kg [12:04:42]written 0, free lines is 4095 [12:04:42]Connected sock=10 [12:04: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 30 02 00 00 9F B1 28 02 87 EE 5A 03 01 00 03 00 1C 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 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 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5A 43 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 13 A0 34 09 94 56 61 29 20 D1 B9 15 35 B7 [12:04: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 4C 40 47 00 69 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 5D F6 00 00 F4 03 04 00 58 ED 15 67 B6 04 01 00 00 EF B1 DF 6F 89 14 22 07 [12:04:43]CommunicateWithHost err = 0 [12:04:43]CheckOFDResponse [12:04:43]1017 (14) - 77093643461234 [12:04:43]1041 (16) - 0000000000874676 [12:04:43]1040 (4) - 63069 [12:04:43]1012 (4) - 21.10.2024 05:57 [12:04:43]1206 (1) - 0 [12:04:43]OFD Sender: Remove packet 63069 [12:04:43]ProducePacketName [12:04:43]name=ofd_packets/00063069 [12:04:43]NVStorageDeleteData [12:04:43]Write to MH i2c: 01 00 00 B2 0D BF [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: 01 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: 01 07 00 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: 01 07 00 B2 0D 00 00 00 00 00 8F 0C 61 [12:04:43]RasterBufferAndPrint [12:04:43]line [12:04:43]line [12:04:43]line [12:04:43]line [12:04:43]line [12:04:43]written 0, free lines is 3224 [12:04:43]MH_Cut [12:04:43]Write to MH i2c: D1 01 00 B9 0D 01 98 [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: D1 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: D1 01 00 [12:04:43]MH_I2C_Read... [12:04:43]Read from MH i2c: D1 01 00 B9 0D 00 97 [12:04:43]Write to MH i2c: 01 00 00 BA 0D C7 [12:04:43]Write i2c OK [12:04:43]MH_I2C_Read... [12:04:43]OFD Sender: No OFD packet to send [12:04:43]*** Cut start [12:04:43]*** Partial cut [12:04:43]*** CUTSNS_PIN = 1 [12:04:43]*** CUTSNS_PIN = 0 [12:04:44]*** Brake cut motor [12:04:44]Read from MH i2c: 01 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: 01 07 00 [12:04:44]MH_I2C_Read... [12:04:44]*** Stop cut motor [12:04:44]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 FF 0F DC [12:04:44]process_action close_receipt done [12:04:44]requested_data is exist [12:04:44]produce_requested_data [12:04:44]requested_item fm.sn is exist - process it [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 11 00 00 [12:04:44]Write to MH i2c: E2 08 00 BB 0D 80 11 00 00 00 00 00 00 42 [12:04:44]*** Cut end [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 17 00 BB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9B [12:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:04:44]wFMCommunicate OK [12:04:44]requested_item fd.num is exist - process it [12:04:44]SAM_PROTO_GetFieldsCounters [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 13 00 00 [12:04:44]Write to MH i2c: E2 08 00 BC 0D 80 13 00 00 00 00 00 00 45 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 62 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 62 00 BC 0D 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 F6 00 00 0E 04 04 00 20 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 A8 [12:04: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 5D F6 00 00 0E 04 04 00 20 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:04:44]wFMCommunicate OK [12:04:44]SAM_PROTO_GetFieldsCounters done [12:04:44]requested_item shift.num is exist - process it [12:04:44]requested_item shift.opened is exist - process it [12:04:44]req_shift_opened [12:04:44]FM_GetShiftState [12:04:44]SAM_PROTO_GetShiftState [12:04:44]wFMCommunicate request_size=4 [12:04:44]MH_SAM_APDU [12:04:44]CAPDU: 80 13 01 00 [12:04:44]Write to MH i2c: E2 08 00 BD 0D 80 13 01 00 00 00 00 00 47 [12:04:44]Write i2c OK [12:04:44]MH_I2C_Read... [12:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:44]Read from MH i2c: E2 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0E 00 [12:04:44]MH_I2C_Read... [12:04:44]Read from MH i2c: E2 0E 00 BD 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A7 [12:04:44]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:04:44]wFMCommunicate OK [12:04:44]SAM_PROTO_GetShiftState done [12:04:44]FM_GetShiftState done [12:04:44]req_shift_opened done [12:04:44]requested_item shift.open_date is exist - process it [12:04:44]req_shift_open_date [12:04:44]req_shift_open_date done [12:04:44]produce_requested_data done [12:04:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63069,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:04:44]process_action_free close_receipt [12:04:44]json_value_free [12:04:44]json_value_free done [12:04:44]process_json_proto returns [12:04:44]Send response to host [12:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63069,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:04:44]free response buf [12:04:44]execute_script done [12:04:44]execute_script returns [12:04:44]free content buf [12:04:44]Sock 9.Close socket [12:04:44]Sock 9.Thread stoped [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]accept exits with 7 [12:08:43]New connection [12:08:43]New thread 3067055460 created [12:08:43]Thread 3067198820 joined [12:08:43]Waiting for new connection... [12:08:43] Sock 7.Parse request [12:08:43]Sock 7.Check first char [12:08:43]Sock 7.First char is OK [12:08:43]request: POST /json_proto HTTP/1.0 [12:08:43]Method: POST [12:08:43]URL: /json_proto [12:08:43]Method is POST - this is cgi request [12:08:43]url: /json_proto [12:08:43]query_string will be loaded in cgi processing [12:08:43]execute_cgi json_proto POST (null) [12:08:43]execute_cgi path=json_proto method=POST [12:08:43]POST find Content-Length [12:08:43]Host: 172.17.42.132:8080 [12:08:43]Content-Length: 772 [12:08:43]Content-Type: application/json [12:08:43] [12:08:43]POST finish read [12:08:43]Found Content-Length = 772 [12:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47380", "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:08:43]execute_script... [12:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47380", "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:08:43]POST & json_proto [12:08:43]process_json_proto [12:08:43]json parsed OK: [12:08:43]protocol is kg_v1.0 [12:08:43]action value=close_receipt [12:08:43]process_action close_receipt [12:08:43]cmd_close_receipt [12:08:43]MH_GetDate [12:08:43]Write to MH i2c: F0 00 00 BE 0D BA [12:08:43]Write i2c OK [12:08:43]MH_I2C_Read... [12:08:43]Read from MH i2c: F0 [12:08:43]MH_I2C_Read... [12:08:43]Read from MH i2c: F0 09 00 [12:08:43]MH_I2C_Read... [12:08:43]Read from MH i2c: F0 09 00 BE 0D 00 4D 44 16 67 4C DF 56 66 B8 [12:08:43]GetLastDocTimeStamp 1729512282 [12:08:43]current date 1729512525 [12:08:43]FM_GetShiftState [12:08:43]SAM_PROTO_GetShiftState [12:08:43]wFMCommunicate request_size=4 [12:08:43]MH_SAM_APDU [12:08:43]CAPDU: 80 13 01 00 [12:08:43]Write to MH i2c: E2 08 00 BF 0D 80 13 01 00 00 00 00 00 49 [12:08:43]Write i2c OK [12:08:43]MH_I2C_Read... [12:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:43]Read from MH i2c: E2 [12:08:43]MH_I2C_Read... [12:08:43]Read from MH i2c: E2 0E 00 [12:08:43]MH_I2C_Read... [12:08:43]Read from MH i2c: E2 0E 00 BF 0D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A9 [12:08:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:08:43]wFMCommunicate OK [12:08:43]SAM_PROTO_GetShiftState done [12:08:43]FM_GetShiftState done [12:08:43]opened in 1729469755 [12:08:43]opened+sec_in_day 1729556155 [12:08:43]quantity*price = 12885 [12:08:43]sum+1 = 12886 [12:08:43]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 СНО: Общий режим Чек 67 21.10.2024 12:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63070 ФПД: 73546397709526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120845&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63070&fm=73546397709526&tin=02508201610067®Number=0000000000091619&sum=12885 0 [12:08:44]StoreToDocumentArchive [12:08:44]shift 544 fd 63070 [12:08:44]save to /storage/0544/doc_00063070 [12:08:44]save last doc name /storage/0544/doc_00063070 to /storage/kkm_last_doc_name [12:08:44]save OK [12:08:44]Clear old archive folders... [12:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:08:44]tlvbuf is 0182B1B0 [12:08:44]SAM_PROTO_ClearQueue [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 09 00 00 [12:08:44]Write to MH i2c: E2 08 00 CC 0D 80 09 00 00 00 00 00 00 4B [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]SAM_PROTO_ClearQueue done [12:08:44]KKMCreateOFDPacket [12:08:44]OFDProtocolAddRootSTLVToBuf [12:08:44]FM_MakeSignedData [12:08:44]FM_MakeSignedData [12:08:44]SAM_PROTO_SignData [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 0D 01 02 [12:08:44]Write to MH i2c: E2 08 00 CD 0D 80 0D 01 02 00 00 00 00 53 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 CD 0D 00 90 00 4E [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=255 [12:08:44]MH_SAM_APDU [12:08:44]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 43 00 00 00 F4 03 04 00 4D 44 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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:08:44]Write to MH i2c: E2 02 01 CE 0D 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 43 00 00 00 F4 03 04 00 4D 44 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 FD [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 CE 0D 00 90 00 4F [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=41 [12:08:44]MH_SAM_APDU [12:08:44]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 5E F6 00 00 35 04 06 00 42 E3 DA E8 F4 D6 [12:08:44]Write to MH i2c: E2 2C 00 CF 0D 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 5E F6 00 00 35 04 06 00 42 E3 DA E8 F4 D6 00 00 30 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 CF 0D 00 90 00 50 [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 03 02 [12:08:45]Write to MH i2c: E2 08 00 D0 0D 80 0D 03 02 00 00 00 00 58 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 0B 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 0B 00 D0 0D 00 86 04 7E 57 68 32 8A 12 90 00 EE [12:08:45]RAPDU: 86 04 7E 57 68 32 8A 12 90 00 [12:08:45]wFMCommunicate OK [12:08:45]SAM_PROTO_SignData done [12:08:45]FM_MakeSignedData done [12:08:45]CreateOFDProtocolMessage [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 11 00 00 [12:08:45]Write to MH i2c: E2 08 00 D1 0D 80 11 00 00 00 00 00 00 58 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 17 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 17 00 D1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B1 [12:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:08:45]wFMCommunicate OK [12:08:45]CreateOFDProtocolMessage done [12:08:45]OFDSenderStorePacket 63070 [12:08:45]StoreOFDPacket docnum=63070 [12:08:45]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 CF 50 26 01 0A EA 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 43 00 00 00 F4 03 04 00 4D 44 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 42 E3 DA E8 F4 D6 86 04 7E 57 68 32 8A 12 [12:08:45]CheckFolder [12:08:45]dirname=/storage/ofd_packets [12:08:45]CheckFolder done [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00063070 [12:08:45]NVStorageSaveData ofd_packets/00063070 [12:08:45]File name is /storage/ofd_packets/00063070 [12:08:45]Write 332 bytes [12:08:45]NVStorageSaveData done [12:08:45]OFDSenderStorePacket done [12:08:45]KKMCreateOFDPacket done [12:08:45]NVStorageSaveData kkm_last_timestamp [12:08:45]File name is /storage/kkm_last_timestamp [12:08:45]Write 4 bytes [12:08:45]NVStorageSaveData done [12:08:45]ExternCall_PrintAddStr [12:08:45]wPrintStart [12:08:45]Write to MH i2c: 01 00 00 D2 0D DF [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 D2 0D 00 00 00 00 00 FF 0F F4 [12:08:45]RasterBufferAndPrint [12:08:45]line Счет N : (3)47380 [12:08:45]line ИНН: 02508201610067 [12:08:45]line Контрольно-Кассовый Чек [12:08:45]line ПРОДАЖА [12:08:45]line Товар: 2000036220012 [12:08:45]line Кофе Капучино XL(GABB TRADE) [12:08:45]line 1.000 * 128.85 [12:08:45]line = 128.85 [12:08:45]line НДС 12% НСП 1% [12:08:45]line > о реализуемом товаре [12:08:45]line ИТОГО: 128.85 [12:08:45]line НСП 1% : 1.14 [12:08:45]line НДС 12% : 13.68 [12:08:45]line Наличными: 0.00 [12:08:45]line Безнал.: 128.85 [12:08:45]line Место: АЗС № 86 "Партнер Нефть" [12:08:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:08:45]line СНО: Общий режим [12:08:45]line Чек 67 21.10.2024 12:08 [12:08:45]line Смена: 544 ФФД: 1.0 [12:08:45]line ЗНМ: 0300000154 [12:08:45]line РНМ: 0000000000091619 [12:08:45]line Версия ККМ: 001 [12:08:45]line Платежная система: Mbank [12:08:45]line ФМ: 0000000000874676 [12:08:45]line ФД: 63070 [12:08:45]line ФПД: 73546397709526 [12:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120845&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63070&fm=73546397709526&tin=02508201610067®Number=0000000000091619&sum=12885 [12:08:45]line 0 [12:08:45]OFD Sender: Processing packet 63070 [packets to send 232, broken 231] [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00063070 [12:08:45]OFD Sender: To server: pG, [12:08:45]CommunicateWithHost lk.salyk.kg:30040 [12:08:45]ConnectInit lk.salyk.kg [12:08:45]written 0, free lines is 4095 [12:08:45]Connected sock=10 [12:08: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 2E 01 00 00 CF 50 26 01 0A EA 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 43 00 00 00 F4 03 04 00 4D 44 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 42 E3 DA E8 F4 D6 86 04 7E 57 68 32 8A 12 [12:08:45]Write to MH i2c: 01 00 00 FC 0D 09 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 09 0D 26 [12:08:45]RasterBufferAndPrint [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]written 0, free lines is 3347 [12:08:45]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 ED 47 00 4C B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 4A EE 15 67 B6 04 01 00 00 01 6E B5 DC CC DE 80 B7 [12:08:45]CommunicateWithHost err = 0 [12:08:45]CheckOFDResponse [12:08:45]1017 (14) - 77093643461234 [12:08:45]1041 (16) - 0000000000874676 [12:08:45]1040 (4) - 63070 [12:08:45]1012 (4) - 21.10.2024 06:01 [12:08:45]1206 (1) - 0 [12:08:45]OFD Sender: Remove packet 63070 [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00063070 [12:08:45]NVStorageDeleteData [12:08:45]MH_Cut [12:08:45]Write to MH i2c: D1 01 00 03 0E 01 E3 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 01 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 01 00 03 0E 00 E2 [12:08:45]Write to MH i2c: 01 00 00 04 0E 12 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:46]OFD Sender: No OFD packet to send [12:08:46]*** Cut start [12:08:46]*** Partial cut [12:08:46]*** CUTSNS_PIN = 1 [12:08:46]*** CUTSNS_PIN = 0 [12:08:46]*** Brake cut motor [12:08:47]Read from MH i2c: 01 [12:08:47]MH_I2C_Read... [12:08:47]*** Stop cut motor [12:08:47]*** Cut end [12:08:47]Read from MH i2c: 01 07 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 FF 0F 27 [12:08:47]process_action close_receipt done [12:08:47]requested_data is exist [12:08:47]produce_requested_data [12:08:47]requested_item fm.sn is exist - process it [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 11 00 00 [12:08:47]Write to MH i2c: E2 08 00 05 0E 80 11 00 00 00 00 00 00 8D [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 05 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E6 [12:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:08:47]wFMCommunicate OK [12:08:47]requested_item fd.num is exist - process it [12:08:47]SAM_PROTO_GetFieldsCounters [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 13 00 00 [12:08:47]Write to MH i2c: E2 08 00 06 0E 80 13 00 00 00 00 00 00 90 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 62 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 62 00 06 0E 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 F6 00 00 0E 04 04 00 20 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 F7 [12:08:47]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 F6 00 00 0E 04 04 00 20 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:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetFieldsCounters done [12:08:47]requested_item shift.num is exist - process it [12:08:47]requested_item shift.opened is exist - process it [12:08:47]req_shift_opened [12:08:47]FM_GetShiftState [12:08:47]SAM_PROTO_GetShiftState [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 13 01 00 [12:08:47]Write to MH i2c: E2 08 00 07 0E 80 13 01 00 00 00 00 00 92 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 07 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F2 [12:08:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetShiftState done [12:08:47]FM_GetShiftState done [12:08:47]req_shift_opened done [12:08:47]requested_item shift.open_date is exist - process it [12:08:47]req_shift_open_date [12:08:47]req_shift_open_date done [12:08:47]produce_requested_data done [12:08:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63070,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:08:47]process_action_free close_receipt [12:08:47]json_value_free [12:08:47]json_value_free done [12:08:47]process_json_proto returns [12:08:47]Send response to host [12:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63070,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:08:47]free response buf [12:08:47]execute_script done [12:08:47]execute_script returns [12:08:47]free content buf [12:08:47]Sock 7.Close socket [12:08:47]Sock 7.Thread stoped [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:47]accept exits with 9 [12:15:47]New connection [12:15:47]New thread 3067198820 created [12:15:47]Thread 3067055460 joined [12:15:47]Waiting for new connection... [12:15:47] Sock 9.Parse request [12:15:47]Sock 9.Check first char [12:15:47]Sock 9.First char is OK [12:15:47]request: POST /json_proto HTTP/1.0 [12:15:47]Method: POST [12:15:47]URL: /json_proto [12:15:47]Method is POST - this is cgi request [12:15:47]url: /json_proto [12:15:47]query_string will be loaded in cgi processing [12:15:47]execute_cgi json_proto POST (null) [12:15:47]execute_cgi path=json_proto method=POST [12:15:47]POST find Content-Length [12:15:47]Host: 172.17.42.132:8080 [12:15:47]Content-Length: 676 [12:15:47]Content-Type: application/json [12:15:47] [12:15:47]POST finish read [12:15:47]Found Content-Length = 676 [12:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47381", "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" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:47]execute_script... [12:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47381", "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" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:47]POST & json_proto [12:15:47]process_json_proto [12:15:47]json parsed OK: [12:15:47]protocol is kg_v1.0 [12:15:47]action value=close_receipt [12:15:47]process_action close_receipt [12:15:47]cmd_close_receipt [12:15:47]MH_GetDate [12:15:47]Write to MH i2c: F0 00 00 08 0E 05 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 08 0E 00 F5 45 16 67 4C DF 56 66 AC [12:15:47]GetLastDocTimeStamp 1729512525 [12:15:47]current date 1729512949 [12:15:47]FM_GetShiftState [12:15:47]SAM_PROTO_GetShiftState [12:15:47]wFMCommunicate request_size=4 [12:15:47]MH_SAM_APDU [12:15:47]CAPDU: 80 13 01 00 [12:15:47]Write to MH i2c: E2 08 00 09 0E 80 13 01 00 00 00 00 00 94 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:47]Read from MH i2c: E2 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 09 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F4 [12:15:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:15:47]wFMCommunicate OK [12:15:47]SAM_PROTO_GetShiftState done [12:15:47]FM_GetShiftState done [12:15:47]opened in 1729469755 [12:15:47]opened+sec_in_day 1729556155 [12:15:47]quantity*price = 17800 [12:15:47]sum+1 = 17801 [12:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.57 НДС 12% : 18.90 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 68 21.10.2024 12:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63071 ФПД: 169051476179554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121549&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63071&fm=169051476179554&tin=02508201610067®Number=0000000000091619&sum=17800 0 [12:15:48]StoreToDocumentArchive [12:15:48]shift 544 fd 63071 [12:15:48]save to /storage/0544/doc_00063071 [12:15:48]save last doc name /storage/0544/doc_00063071 to /storage/kkm_last_doc_name [12:15:48]save OK [12:15:48]Clear old archive folders... [12:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=286 [12:15:48]tlvbuf is 018FF250 [12:15:48]SAM_PROTO_ClearQueue [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 09 00 00 [12:15:48]Write to MH i2c: E2 08 00 16 0E 80 09 00 00 00 00 00 00 96 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 16 0E 00 90 00 98 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_ClearQueue done [12:15:48]KKMCreateOFDPacket [12:15:48]OFDProtocolAddRootSTLVToBuf [12:15:48]FM_MakeSignedData [12:15:48]FM_MakeSignedData [12:15:48]SAM_PROTO_SignData [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 01 02 [12:15:48]Write to MH i2c: E2 08 00 17 0E 80 0D 01 02 00 00 00 00 9E [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 17 0E 00 90 00 99 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=255 [12:15:48]MH_SAM_APDU [12:15:48]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 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 62 07 00 00 00 00 07 04 06 00 88 45 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 F5 45 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [12:15:48]Write to MH i2c: E2 02 01 18 0E 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 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 62 07 00 00 00 00 07 04 06 00 88 45 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 F5 45 16 67 0E 04 04 00 20 02 00 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 E0 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 18 0E 00 90 00 9A [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=45 [12:15:48]MH_SAM_APDU [12:15:48]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 5F F6 00 00 35 04 06 00 99 C0 5D 2F BA 62 [12:15:48]Write to MH i2c: E2 30 00 19 0E 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 5F F6 00 00 35 04 06 00 99 C0 5D 2F BA 62 00 00 53 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 03 02 [12:15:48]Write to MH i2c: E2 08 00 1A 0E 80 0D 03 02 00 00 00 00 A3 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0B 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0B 00 1A 0E 00 20 E4 88 37 D3 A3 44 24 90 00 45 [12:15:48]RAPDU: 20 E4 88 37 D3 A3 44 24 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_SignData done [12:15:48]FM_MakeSignedData done [12:15:48]CreateOFDProtocolMessage [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 11 00 00 [12:15:48]Write to MH i2c: E2 08 00 1B 0E 80 11 00 00 00 00 00 00 A3 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 1B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FC [12:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:15:49]wFMCommunicate OK [12:15:49]CreateOFDProtocolMessage done [12:15:49]OFDSenderStorePacket 63071 [12:15:49]StoreOFDPacket docnum=63071 [12:15: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 32 01 00 00 19 CC 2A 01 96 57 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 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 62 07 00 00 00 00 07 04 06 00 88 45 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 F5 45 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 99 C0 5D 2F BA 62 20 E4 88 37 D3 A3 44 24 [12:15:49]CheckFolder [12:15:49]dirname=/storage/ofd_packets [12:15:49]CheckFolder done [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00063071 [12:15:49]NVStorageSaveData ofd_packets/00063071 [12:15:49]File name is /storage/ofd_packets/00063071 [12:15:49]Write 336 bytes [12:15:49]NVStorageSaveData done [12:15:49]OFDSenderStorePacket done [12:15:49]KKMCreateOFDPacket done [12:15:49]NVStorageSaveData kkm_last_timestamp [12:15:49]File name is /storage/kkm_last_timestamp [12:15:49]Write 4 bytes [12:15:49]NVStorageSaveData done [12:15:49]ExternCall_PrintAddStr [12:15:49]wPrintStart [12:15:49]Write to MH i2c: 01 00 00 1C 0E 2A [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 FF 0F 3F [12:15:49]RasterBufferAndPrint [12:15:49]line Счет N : (3)47381 [12:15:49]line ИНН: 02508201610067 [12:15:49]line Контрольно-Кассовый Чек [12:15:49]line ПРОДАЖА [12:15:49]line Товар: 4700040114120 [12:15:49]line Султан чай 1л. чер персик [12:15:49]line 2.000 * 89.00 [12:15:49]line = 178.00 [12:15:49]line НДС 12% НСП 1% [12:15:49]line > о реализуемом товаре [12:15:49]line ИТОГО: 178.00 [12:15:49]line НСП 1% : 1.57 [12:15:49]line НДС 12% : 18.90 [12:15:49]line Наличными: 178.00 [12:15:49]line Безнал.: 0.00 [12:15:49]line Место: АЗС № 86 "Партнер Нефть" [12:15:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:15:49]line СНО: Общий режим [12:15:49]line Чек 68 21.10.2024 12:15 [12:15:49]line Смена: 544 ФФД: 1.0 [12:15:49]line ЗНМ: 0300000154 [12:15:49]line РНМ: 0000000000091619 [12:15:49]line Версия ККМ: 001 [12:15:49]line ФМ: 0000000000874676 [12:15:49]line ФД: 63071 [12:15:49]line ФПД: 169051476179554 [12:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121549&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63071&fm=169051476179554&tin=02508201610067®Number=0000000000091619&sum=17800 [12:15:49]line 0 [12:15:49]OFD Sender: Processing packet 63071 [packets to send 232, broken 231] [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00063071 [12:15:49]OFD Sender: To server: pG, [12:15:49]CommunicateWithHost lk.salyk.kg:30040 [12:15:49]ConnectInit lk.salyk.kg [12:15:49]written 0, free lines is 4095 [12:15:49]Connected sock=10 [12:15: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 32 01 00 00 19 CC 2A 01 96 57 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 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 62 07 00 00 00 00 07 04 06 00 88 45 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 F5 45 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 99 C0 5D 2F BA 62 20 E4 88 37 D3 A3 44 24 [12:15:49]Write to MH i2c: 01 00 00 44 0E 52 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 44 0E 00 00 00 00 00 22 0D 88 [12:15:49]RasterBufferAndPrint [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]written 0, free lines is 3368 [12:15:49]MH_Cut [12:15:49]Write to MH i2c: D1 01 00 4B 0E 01 2B [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 01 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 01 00 4B 0E 00 2A [12:15:49]Write to MH i2c: 01 00 00 4C 0E 5A [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15: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 07 B6 47 00 B5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F6 00 00 F4 03 04 00 F2 EF 15 67 B6 04 01 00 00 9B DD 64 9B 3C 0E 26 5D [12:15:49]CommunicateWithHost err = 0 [12:15:49]CheckOFDResponse [12:15:49]1017 (14) - 77093643461234 [12:15:49]1041 (16) - 0000000000874676 [12:15:49]1040 (4) - 63071 [12:15:49]1012 (4) - 21.10.2024 06:08 [12:15:49]1206 (1) - 0 [12:15:49]OFD Sender: Remove packet 63071 [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00063071 [12:15:49]NVStorageDeleteData [12:15:50]OFD Sender: No OFD packet to send [12:15:50]*** Cut start [12:15:50]*** Partial cut [12:15:50]*** CUTSNS_PIN = 1 [12:15:50]*** CUTSNS_PIN = 0 [12:15:50]*** Brake cut motor [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]*** Stop cut motor [12:15:51]*** Cut end [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 FF 0F 6F [12:15:51]process_action close_receipt done [12:15:51]requested_data is exist [12:15:51]produce_requested_data [12:15:51]requested_item fm.sn is exist - process it [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 11 00 00 [12:15:51]Write to MH i2c: E2 08 00 4D 0E 80 11 00 00 00 00 00 00 D5 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 4D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2E [12:15: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:15:51]wFMCommunicate OK [12:15:51]requested_item fd.num is exist - process it [12:15:51]SAM_PROTO_GetFieldsCounters [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 00 00 [12:15:51]Write to MH i2c: E2 08 00 4E 0E 80 13 00 00 00 00 00 00 D8 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 4E 0E 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 F6 00 00 0E 04 04 00 20 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 43 [12:15: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 5F F6 00 00 0E 04 04 00 20 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 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetFieldsCounters done [12:15:51]requested_item shift.num is exist - process it [12:15:51]requested_item shift.opened is exist - process it [12:15:51]req_shift_opened [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 4F 0E 80 13 01 00 00 00 00 00 DA [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 4F 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 3A [12:15:51]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]req_shift_opened done [12:15:51]requested_item shift.open_date is exist - process it [12:15:51]req_shift_open_date [12:15:51]req_shift_open_date done [12:15:51]produce_requested_data done [12:15:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63071,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:15:51]process_action_free close_receipt [12:15:51]json_value_free [12:15:51]json_value_free done [12:15:51]process_json_proto returns [12:15:51]Send response to host [12:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63071,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:15:51]free response buf [12:15:51]execute_script done [12:15:51]execute_script returns [12:15:51]free content buf [12:15:51]Sock 9.Close socket [12:15:51]Sock 9.Thread stoped [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:50]accept exits with 7 [12:18:50]New connection [12:18:50]New thread 3067055460 created [12:18:50]Thread 3067198820 joined [12:18:50]Waiting for new connection... [12:18:50] Sock 7.Parse request [12:18:50]Sock 7.Check first char [12:18:50]Sock 7.First char is OK [12:18:50]request: POST /json_proto HTTP/1.0 [12:18:50]Method: POST [12:18:50]URL: /json_proto [12:18:50]Method is POST - this is cgi request [12:18:50]url: /json_proto [12:18:50]query_string will be loaded in cgi processing [12:18:50]execute_cgi json_proto POST (null) [12:18:50]execute_cgi path=json_proto method=POST [12:18:50]POST find Content-Length [12:18:50]Host: 172.17.42.132:8080 [12:18:50]Content-Length: 1276 [12:18:50]Content-Type: application/json [12:18:50] [12:18:50]POST finish read [12:18:50]Found Content-Length = 1276 [12:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47382", "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 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "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" : 208.15 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:50]execute_script... [12:18: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)47382", "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 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "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" : 208.15 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:50]POST & json_proto [12:18:50]process_json_proto [12:18:50]json parsed OK: [12:18:50]protocol is kg_v1.0 [12:18:50]action value=close_receipt [12:18:50]process_action close_receipt [12:18:50]cmd_close_receipt [12:18:50]MH_GetDate [12:18:50]Write to MH i2c: F0 00 00 50 0E 4D [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 09 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 09 00 50 0E 00 AC 46 16 67 4C DF 56 66 AC [12:18:50]GetLastDocTimeStamp 1729512949 [12:18:50]current date 1729513132 [12:18:50]FM_GetShiftState [12:18:50]SAM_PROTO_GetShiftState [12:18:50]wFMCommunicate request_size=4 [12:18:50]MH_SAM_APDU [12:18:50]CAPDU: 80 13 01 00 [12:18:50]Write to MH i2c: E2 08 00 51 0E 80 13 01 00 00 00 00 00 DC [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:50]Read from MH i2c: E2 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 0E 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 0E 00 51 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 3C [12:18:50]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:18:50]wFMCommunicate OK [12:18:50]SAM_PROTO_GetShiftState done [12:18:50]FM_GetShiftState done [12:18:50]opened in 1729469755 [12:18:50]opened+sec_in_day 1729556155 [12:18:50]quantity*price = 3965 [12:18:50]sum+1 = 3966 [12:18:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001353 Вода Боржоми 0,5л ПЭТ 1.000 * 118.94 = 118.94 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 49.56 = 49.56 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.15 НСП 1% : 1.84 НДС 12% : 22.10 Наличными: 0.00 Безнал.: 208.15 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 69 21.10.2024 12:18 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63072 ФПД: 44903812344210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121853&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63072&fm=44903812344210&tin=02508201610067®Number=0000000000091619&sum=20815 0 [12:18:51]StoreToDocumentArchive [12:18:51]shift 544 fd 63072 [12:18:51]save to /storage/0544/doc_00063072 [12:18:51]save last doc name /storage/0544/doc_00063072 to /storage/kkm_last_doc_name [12:18:51]save OK [12:18:51]Clear old archive folders... [12:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=478 [12:18:51]tlvbuf is 01901DF0 [12:18:51]SAM_PROTO_ClearQueue [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 09 00 00 [12:18:51]Write to MH i2c: E2 08 00 5E 0E 80 09 00 00 00 00 00 00 DE [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 5E 0E 00 90 00 E0 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_ClearQueue done [12:18:52]KKMCreateOFDPacket [12:18:52]OFDProtocolAddRootSTLVToBuf [12:18:52]FM_MakeSignedData [12:18:52]FM_MakeSignedData [12:18:52]SAM_PROTO_SignData [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 01 02 [12:18:52]Write to MH i2c: E2 08 00 5F 0E 80 0D 01 02 00 00 00 00 E6 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=255 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 FA 03 00 DE 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 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 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 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 [12:18:52]Write to MH i2c: E2 02 01 60 0E 80 0D 02 02 FA 00 03 00 DE 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 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 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 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 00 00 42 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 60 0E 00 90 00 E2 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=237 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 E8 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 A2 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 AD 46 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 28 D6 FB C8 A9 92 [12:18:52]Write to MH i2c: E2 F0 00 61 0E 80 0D 02 02 E8 00 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 A2 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 AD 46 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 28 D6 FB C8 A9 92 00 00 EA [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 61 0E 00 90 00 E3 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 03 02 [12:18:52]Write to MH i2c: E2 08 00 62 0E 80 0D 03 02 00 00 00 00 EB [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 62 0E 00 06 64 B7 69 74 CB C0 55 90 00 CA [12:18:52]RAPDU: 06 64 B7 69 74 CB C0 55 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_SignData done [12:18:52]FM_MakeSignedData done [12:18:52]CreateOFDProtocolMessage [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 11 00 00 [12:18:52]Write to MH i2c: E2 08 00 63 0E 80 11 00 00 00 00 00 00 EB [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 [12:18:53]MH_I2C_Read... [12:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:53]Read from MH i2c: E2 17 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 17 00 63 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 44 [12:18: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:18:53]wFMCommunicate OK [12:18:53]CreateOFDProtocolMessage done [12:18:53]OFDSenderStorePacket 63072 [12:18:53]StoreOFDPacket docnum=63072 [12:18: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 F2 01 00 00 8B F7 EA 01 DA F0 5A 03 01 00 03 00 DE 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 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 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 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 A2 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 AD 46 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 28 D6 FB C8 A9 92 06 64 B7 69 74 CB C0 55 [12:18:53]CheckFolder [12:18:53]dirname=/storage/ofd_packets [12:18:53]CheckFolder done [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00063072 [12:18:53]NVStorageSaveData ofd_packets/00063072 [12:18:53]File name is /storage/ofd_packets/00063072 [12:18:53]Write 528 bytes [12:18:53]NVStorageSaveData done [12:18:53]OFDSenderStorePacket done [12:18:53]KKMCreateOFDPacket done [12:18:53]NVStorageSaveData kkm_last_timestamp [12:18:53]File name is /storage/kkm_last_timestamp [12:18:53]Write 4 bytes [12:18:53]NVStorageSaveData done [12:18:53]ExternCall_PrintAddStr [12:18:53]wPrintStart [12:18:53]Write to MH i2c: 01 00 00 64 0E 72 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 FF 0F 87 [12:18:53]RasterBufferAndPrint [12:18:53]line Счет N : (3)47382 [12:18:53]line ИНН: 02508201610067 [12:18:53]line Контрольно-Кассовый Чек [12:18:53]line ПРОДАЖА [12:18:53]line Товар: 4700000160211 [12:18:53]line Вода Легенда 0,5л [12:18:53]line 1.000 * 39.65 [12:18:53]line = 39.65 [12:18:53]line НДС 12% НСП 1% [12:18:53]line > о реализуемом товаре [12:18:53]line Товар: 4860019001353 [12:18:53]line Вода Боржоми 0,5л ПЭТ [12:18:53]line 1.000 * 118.94 [12:18:53]line = 118.94 [12:18:53]line НДС 12% НСП 1% [12:18:53]line > о реализуемом товаре [12:18:53]line Товар: 4700000160358 [12:18:53]line Вода Легенда 1л [12:18:53]line 1.000 * 49.56 [12:18:53]line = 49.56 [12:18:53]line НДС 12% НСП 1% [12:18:53]line > о реализуемом товаре [12:18:53]line ИТОГО: 208.15 [12:18:53]line НСП 1% : 1.84 [12:18:53]line НДС 12% : 22.10 [12:18:53]line Наличными: 0.00 [12:18:53]line Безнал.: 208.15 [12:18:53]line Место: АЗС № 86 "Партнер Нефть" [12:18:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:18:53]line СНО: Общий режим [12:18:53]line Чек 69 21.10.2024 12:18 [12:18:53]line Смена: 544 ФФД: 1.0 [12:18:53]line ЗНМ: 0300000154 [12:18:53]line РНМ: 0000000000091619 [12:18:53]line Версия ККМ: 001 [12:18:53]line Платежная система: Mbank [12:18:53]line ФМ: 0000000000874676 [12:18:53]line ФД: 63072 [12:18:53]line ФПД: 44903812344210 [12:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121853&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63072&fm=44903812344210&tin=02508201610067®Number=0000000000091619&sum=20815 [12:18:53]line 0 [12:18:53]written 0, free lines is 4095 [12:18:53]OFD Sender: Processing packet 63072 [packets to send 232, broken 231] [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00063072 [12:18:53]OFD Sender: To server: pG, [12:18:53]CommunicateWithHost lk.salyk.kg:30040 [12:18:53]ConnectInit lk.salyk.kg [12:18:53]Connected sock=10 [12:18: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 F2 01 00 00 8B F7 EA 01 DA F0 5A 03 01 00 03 00 DE 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 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 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 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 A2 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 AD 46 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 28 D6 FB C8 A9 92 06 64 B7 69 74 CB C0 55 [12:18: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 C5 4E 47 00 A2 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 60 F6 00 00 F4 03 04 00 AA F0 15 67 B6 04 01 00 00 BD B1 E4 53 3F BB 28 31 [12:18:53]CommunicateWithHost err = 0 [12:18:53]CheckOFDResponse [12:18:53]1017 (14) - 77093643461234 [12:18:53]1041 (16) - 0000000000874676 [12:18:53]1040 (4) - 63072 [12:18:53]1012 (4) - 21.10.2024 06:11 [12:18:53]1206 (1) - 0 [12:18:53]OFD Sender: Remove packet 63072 [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00063072 [12:18:53]NVStorageDeleteData [12:18:53]Write to MH i2c: 01 00 00 99 0E A7 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 7E 0C 38 [12:18:53]RasterBufferAndPrint [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]written 0, free lines is 3208 [12:18:53]MH_Cut [12:18:53]Write to MH i2c: D1 01 00 A0 0E 01 80 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 A0 0E 00 7F [12:18:53]Write to MH i2c: 01 00 00 A1 0E AF [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:54]OFD Sender: No OFD packet to send [12:18:54]*** Cut start [12:18:54]*** Partial cut [12:18:54]*** CUTSNS_PIN = 1 [12:18:54]*** CUTSNS_PIN = 0 [12:18:54]*** Brake cut motor [12:18:54]Read from MH i2c: 01 [12:18:55]MH_I2C_Read... [12:18:55]*** Stop cut motor [12:18:55]*** Cut end [12:18:55]Read from MH i2c: 01 07 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 FF 0F C4 [12:18:55]process_action close_receipt done [12:18:55]requested_data is exist [12:18:55]produce_requested_data [12:18:55]requested_item fm.sn is exist - process it [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 11 00 00 [12:18:55]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 17 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 83 [12:18: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:18:55]wFMCommunicate OK [12:18:55]requested_item fd.num is exist - process it [12:18:55]SAM_PROTO_GetFieldsCounters [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 00 00 [12:18:55]Write to MH i2c: E2 08 00 A3 0E 80 13 00 00 00 00 00 00 2D [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 A3 0E 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 F6 00 00 0E 04 04 00 20 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 9C [12:18: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 F6 00 00 0E 04 04 00 20 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 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetFieldsCounters done [12:18:55]requested_item shift.num is exist - process it [12:18:55]requested_item shift.opened is exist - process it [12:18:55]req_shift_opened [12:18:55]FM_GetShiftState [12:18:55]SAM_PROTO_GetShiftState [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 01 00 [12:18:55]Write to MH i2c: E2 08 00 A4 0E 80 13 01 00 00 00 00 00 2F [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 A4 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8F [12:18:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetShiftState done [12:18:55]FM_GetShiftState done [12:18:55]req_shift_opened done [12:18:55]requested_item shift.open_date is exist - process it [12:18:55]req_shift_open_date [12:18:55]req_shift_open_date done [12:18:55]produce_requested_data done [12:18:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63072,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:18:55]process_action_free close_receipt [12:18:55]json_value_free [12:18:55]json_value_free done [12:18:55]process_json_proto returns [12:18:55]Send response to host [12:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63072,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:18:55]free response buf [12:18:55]execute_script done [12:18:55]execute_script returns [12:18:55]free content buf [12:18:55]Sock 7.Close socket [12:18:55]Sock 7.Thread stoped [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:23]accept exits with 9 [12:27:23]New connection [12:27:23]New thread 3067198820 created [12:27:23]Thread 3067055460 joined [12:27:23]Waiting for new connection... [12:27:23] Sock 9.Parse request [12:27:23]Sock 9.Check first char [12:27:23]Sock 9.First char is OK [12:27:23]request: POST /json_proto HTTP/1.0 [12:27:23]Method: POST [12:27:23]URL: /json_proto [12:27:23]Method is POST - this is cgi request [12:27:23]url: /json_proto [12:27:23]query_string will be loaded in cgi processing [12:27:23]execute_cgi json_proto POST (null) [12:27:23]execute_cgi path=json_proto method=POST [12:27:23]POST find Content-Length [12:27:23]Host: 172.17.42.132:8080 [12:27:23]Content-Length: 669 [12:27:23]Content-Type: application/json [12:27:23] [12:27:23]POST finish read [12:27:23]Found Content-Length = 669 [12:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47383", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:23]execute_script... [12:27:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47383", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:23]POST & json_proto [12:27:23]process_json_proto [12:27:23]json parsed OK: [12:27:23]protocol is kg_v1.0 [12:27:23]action value=close_receipt [12:27:23]process_action close_receipt [12:27:23]cmd_close_receipt [12:27:23]MH_GetDate [12:27:23]Write to MH i2c: F0 00 00 A5 0E A2 [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: F0 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: F0 09 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: F0 09 00 A5 0E 00 AD 48 16 67 4C DF 56 66 04 [12:27:23]GetLastDocTimeStamp 1729513133 [12:27:23]current date 1729513645 [12:27:23]FM_GetShiftState [12:27:23]SAM_PROTO_GetShiftState [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 13 01 00 [12:27:23]Write to MH i2c: E2 08 00 A6 0E 80 13 01 00 00 00 00 00 31 [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 0E 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 0E 00 A6 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 91 [12:27:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:27:23]wFMCommunicate OK [12:27:23]SAM_PROTO_GetShiftState done [12:27:23]FM_GetShiftState done [12:27:23]opened in 1729469755 [12:27:23]opened+sec_in_day 1729556155 [12:27:23]quantity*price = 34000 [12:27:23]sum+1 = 34001 [12:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 70 21.10.2024 12:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63073 ФПД: 111960652444649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122725&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63073&fm=111960652444649&tin=02508201610067®Number=0000000000091619&sum=34000 0 [12:27:24]StoreToDocumentArchive [12:27:24]shift 544 fd 63073 [12:27:24]save to /storage/0544/doc_00063073 [12:27:24]save last doc name /storage/0544/doc_00063073 to /storage/kkm_last_doc_name [12:27:24]save OK [12:27:24]Clear old archive folders... [12:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:27:24]tlvbuf is 0182A700 [12:27:24]SAM_PROTO_ClearQueue [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 09 00 00 [12:27:24]Write to MH i2c: E2 08 00 B3 0E 80 09 00 00 00 00 00 00 33 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]SAM_PROTO_ClearQueue done [12:27:24]KKMCreateOFDPacket [12:27:24]OFDProtocolAddRootSTLVToBuf [12:27:24]FM_MakeSignedData [12:27:24]FM_MakeSignedData [12:27:24]SAM_PROTO_SignData [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 0D 01 02 [12:27:24]Write to MH i2c: E2 08 00 B4 0E 80 0D 01 02 00 00 00 00 3B [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]wFMCommunicate request_size=255 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AD 48 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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:27:24]Write to MH i2c: E2 02 01 B5 0E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AD 48 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 BB [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]wFMCommunicate request_size=41 [12:27:24]MH_SAM_APDU [12:27:24]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 61 F6 00 00 35 04 06 00 65 D3 DE EA F3 E9 [12:27:24]Write to MH i2c: E2 2C 00 B6 0E 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 61 F6 00 00 35 04 06 00 65 D3 DE EA F3 E9 00 00 46 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]OFD Sender: No OFD packet to send [12:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 0D 03 02 [12:27:24]Write to MH i2c: E2 08 00 B7 0E 80 0D 03 02 00 00 00 00 40 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:25]Read from MH i2c: E2 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 0B 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 0B 00 B7 0E 00 81 40 2B 1E E1 51 D9 F5 90 00 4B [12:27:25]RAPDU: 81 40 2B 1E E1 51 D9 F5 90 00 [12:27:25]wFMCommunicate OK [12:27:25]SAM_PROTO_SignData done [12:27:25]FM_MakeSignedData done [12:27:25]CreateOFDProtocolMessage [12:27:25]wFMCommunicate request_size=4 [12:27:25]MH_SAM_APDU [12:27:25]CAPDU: 80 11 00 00 [12:27:25]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:25]Read from MH i2c: E2 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 17 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [12:27: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:27:25]wFMCommunicate OK [12:27:25]CreateOFDProtocolMessage done [12:27:25]OFDSenderStorePacket 63073 [12:27:25]StoreOFDPacket docnum=63073 [12:27: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 2E 01 00 00 61 76 26 01 2D DE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AD 48 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 D3 DE EA F3 E9 81 40 2B 1E E1 51 D9 F5 [12:27:25]CheckFolder [12:27:25]dirname=/storage/ofd_packets [12:27:25]CheckFolder done [12:27:25]ProducePacketName [12:27:25]name=ofd_packets/00063073 [12:27:25]NVStorageSaveData ofd_packets/00063073 [12:27:25]File name is /storage/ofd_packets/00063073 [12:27:25]Write 332 bytes [12:27:25]NVStorageSaveData done [12:27:25]OFDSenderStorePacket done [12:27:25]KKMCreateOFDPacket done [12:27:25]NVStorageSaveData kkm_last_timestamp [12:27:25]File name is /storage/kkm_last_timestamp [12:27:25]Write 4 bytes [12:27:25]NVStorageSaveData done [12:27:25]ExternCall_PrintAddStr [12:27:25]wPrintStart [12:27:25]Write to MH i2c: 01 00 00 B9 0E C7 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 FF 0F DC [12:27:25]RasterBufferAndPrint [12:27:25]line Счет N : (3)47383 [12:27:25]line ИНН: 02508201610067 [12:27:25]line Контрольно-Кассовый Чек [12:27:25]line ПРОДАЖА [12:27:25]line Товар: 4700000480357 [12:27:25]line Пиво шахтерское 1л ПЭТ [12:27:25]line 2.000 * 170.00 [12:27:25]line = 340.00 [12:27:25]line НДС 12% НСП 1% [12:27:25]line > о реализуемом товаре [12:27:25]line ИТОГО: 340.00 [12:27:25]line НСП 1% : 3.01 [12:27:25]line НДС 12% : 36.11 [12:27:25]line Наличными: 340.00 [12:27:25]line Безнал.: 0.00 [12:27:25]line Место: АЗС № 86 "Партнер Нефть" [12:27:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:27:25]line СНО: Общий режим [12:27:25]line Чек 70 21.10.2024 12:27 [12:27:25]line Смена: 544 ФФД: 1.0 [12:27:25]line ЗНМ: 0300000154 [12:27:25]line РНМ: 0000000000091619 [12:27:25]line Версия ККМ: 001 [12:27:25]line ФМ: 0000000000874676 [12:27:25]line ФД: 63073 [12:27:25]line ФПД: 111960652444649 [12:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122725&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63073&fm=111960652444649&tin=02508201610067®Number=0000000000091619&sum=34000 [12:27:25]OFD Sender: Processing packet 63073 [packets to send 232, broken 231] [12:27:25]ProducePacketName [12:27:25]name=ofd_packets/00063073 [12:27:25]OFD Sender: To server: pG, [12:27:25]CommunicateWithHost lk.salyk.kg:30040 [12:27:25]ConnectInit lk.salyk.kg [12:27:25]line 0 [12:27:25]written 0, free lines is 4095 [12:27:25]Connected sock=10 [12:27: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 2E 01 00 00 61 76 26 01 2D DE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AD 48 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 D3 DE EA F3 E9 81 40 2B 1E E1 51 D9 F5 [12:27:25]Write to MH i2c: 01 00 00 E1 0E EF [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 E1 0E 00 00 00 00 00 14 0D 17 [12:27:25]RasterBufferAndPrint [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]written 0, free lines is 3354 [12:27:25]MH_Cut [12:27:25]Write to MH i2c: D1 01 00 E8 0E 01 C8 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 01 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 01 00 E8 0E 00 C7 [12:27:25]Write to MH i2c: 01 00 00 E9 0E F7 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]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 2C 47 00 28 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 61 F6 00 00 F4 03 04 00 AA F2 15 67 B6 04 01 00 00 42 64 35 06 43 3F E8 38 [12:27:25]CommunicateWithHost err = 0 [12:27:25]CheckOFDResponse [12:27:25]1017 (14) - 77093643461234 [12:27:25]1041 (16) - 0000000000874676 [12:27:25]1040 (4) - 63073 [12:27:25]1012 (4) - 21.10.2024 06:20 [12:27:25]1206 (1) - 0 [12:27:25]OFD Sender: Remove packet 63073 [12:27:25]ProducePacketName [12:27:25]name=ofd_packets/00063073 [12:27:25]NVStorageDeleteData [12:27:26]OFD Sender: No OFD packet to send [12:27:26]*** Cut start [12:27:26]*** Partial cut [12:27:26]*** CUTSNS_PIN = 1 [12:27:26]*** CUTSNS_PIN = 0 [12:27:26]*** Brake cut motor [12:27:27]Read from MH i2c: 01 [12:27:27]MH_I2C_Read... [12:27:27]*** Stop cut motor [12:27:27]*** Cut end [12:27:27]Read from MH i2c: 01 07 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 FF 0F 0C [12:27:27]process_action close_receipt done [12:27:27]requested_data is exist [12:27:27]produce_requested_data [12:27:27]requested_item fm.sn is exist - process it [12:27:27]wFMCommunicate request_size=4 [12:27:27]MH_SAM_APDU [12:27:27]CAPDU: 80 11 00 00 [12:27:27]Write to MH i2c: E2 08 00 EA 0E 80 11 00 00 00 00 00 00 72 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:27]Read from MH i2c: E2 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 17 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 17 00 EA 0E 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:27: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:27:27]wFMCommunicate OK [12:27:27]requested_item fd.num is exist - process it [12:27:27]SAM_PROTO_GetFieldsCounters [12:27:27]wFMCommunicate request_size=4 [12:27:27]MH_SAM_APDU [12:27:27]CAPDU: 80 13 00 00 [12:27:27]Write to MH i2c: E2 08 00 EB 0E 80 13 00 00 00 00 00 00 75 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:27]Read from MH i2c: E2 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 62 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 62 00 EB 0E 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 F6 00 00 0E 04 04 00 20 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 E8 [12:27: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 61 F6 00 00 0E 04 04 00 20 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 [12:27:27]wFMCommunicate OK [12:27:27]SAM_PROTO_GetFieldsCounters done [12:27:27]requested_item shift.num is exist - process it [12:27:27]requested_item shift.opened is exist - process it [12:27:27]req_shift_opened [12:27:27]FM_GetShiftState [12:27:27]SAM_PROTO_GetShiftState [12:27:27]wFMCommunicate request_size=4 [12:27:27]MH_SAM_APDU [12:27:27]CAPDU: 80 13 01 00 [12:27:27]Write to MH i2c: E2 08 00 EC 0E 80 13 01 00 00 00 00 00 77 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:27]Read from MH i2c: E2 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 0E 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 0E 00 EC 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D7 [12:27:27]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:27:27]wFMCommunicate OK [12:27:27]SAM_PROTO_GetShiftState done [12:27:27]FM_GetShiftState done [12:27:27]req_shift_opened done [12:27:27]requested_item shift.open_date is exist - process it [12:27:27]req_shift_open_date [12:27:27]req_shift_open_date done [12:27:27]produce_requested_data done [12:27:27]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63073,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:27:27]process_action_free close_receipt [12:27:27]json_value_free [12:27:27]json_value_free done [12:27:27]process_json_proto returns [12:27:27]Send response to host [12:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63073,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:27:27]free response buf [12:27:27]execute_script done [12:27:27]execute_script returns [12:27:27]free content buf [12:27:27]Sock 9.Close socket [12:27:27]Sock 9.Thread stoped [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:48]accept exits with 7 [12:30:48]New connection [12:30:48]New thread 3067055460 created [12:30:48]Thread 3067198820 joined [12:30:48]Waiting for new connection... [12:30:48] Sock 7.Parse request [12:30:48]Sock 7.Check first char [12:30:48]Sock 7.First char is OK [12:30:48]request: POST /json_proto HTTP/1.0 [12:30:48]Method: POST [12:30:48]URL: /json_proto [12:30:48]Method is POST - this is cgi request [12:30:48]url: /json_proto [12:30:48]query_string will be loaded in cgi processing [12:30:48]execute_cgi json_proto POST (null) [12:30:48]execute_cgi path=json_proto method=POST [12:30:48]POST find Content-Length [12:30:48]Host: 172.17.42.132:8080 [12:30:48]Content-Length: 631 [12:30:48]Content-Type: application/json [12:30:48] [12:30:48]POST finish read [12:30:48]Found Content-Length = 631 [12:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47384", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:48]execute_script... [12:30: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)47384", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:48]POST & json_proto [12:30:48]process_json_proto [12:30:48]json parsed OK: [12:30:48]protocol is kg_v1.0 [12:30:48]action value=close_receipt [12:30:48]process_action close_receipt [12:30:48]cmd_close_receipt [12:30:48]MH_GetDate [12:30:48]Write to MH i2c: F0 00 00 ED 0E EA [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 09 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 09 00 ED 0E 00 7A 49 16 67 4C DF 56 66 1A [12:30:48]GetLastDocTimeStamp 1729513645 [12:30:48]current date 1729513850 [12:30:48]FM_GetShiftState [12:30:48]SAM_PROTO_GetShiftState [12:30:48]wFMCommunicate request_size=4 [12:30:48]MH_SAM_APDU [12:30:48]CAPDU: 80 13 01 00 [12:30:48]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0E 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D9 [12:30:48]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:30:48]wFMCommunicate OK [12:30:48]SAM_PROTO_GetShiftState done [12:30:48]FM_GetShiftState done [12:30:48]opened in 1729469755 [12:30:48]opened+sec_in_day 1729556155 [12:30:48]quantity*price = 6000 [12:30:48]sum+1 = 6001 [12:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 71 21.10.2024 12:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63074 ФПД: 139408382947712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123050&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63074&fm=139408382947712&tin=02508201610067®Number=0000000000091619&sum=6000 0 [12:30:49]StoreToDocumentArchive [12:30:49]shift 544 fd 63074 [12:30:49]save to /storage/0544/doc_00063074 [12:30:49]save last doc name /storage/0544/doc_00063074 to /storage/kkm_last_doc_name [12:30:49]save OK [12:30:49]Clear old archive folders... [12:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:30:49]tlvbuf is B6EFD0E0 [12:30:49]SAM_PROTO_ClearQueue [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 09 00 00 [12:30:49]Write to MH i2c: E2 08 00 FB 0E 80 09 00 00 00 00 00 00 7B [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_ClearQueue done [12:30:49]KKMCreateOFDPacket [12:30:49]OFDProtocolAddRootSTLVToBuf [12:30:49]FM_MakeSignedData [12:30:49]FM_MakeSignedData [12:30:49]SAM_PROTO_SignData [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 01 02 [12:30:49]Write to MH i2c: E2 08 00 FC 0E 80 0D 01 02 00 00 00 00 83 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 FC 0E 00 90 00 7E [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=255 [12:30:49]MH_SAM_APDU [12:30:49]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7A 49 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:30:49]Write to MH i2c: E2 02 01 FD 0E 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7A 49 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 83 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 FD 0E 00 90 00 7F [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=30 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 62 F6 00 00 35 04 06 00 7E CA 8B 24 F1 80 [12:30:49]Write to MH i2c: E2 21 00 FE 0E 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 62 F6 00 00 35 04 06 00 7E CA 8B 24 F1 80 00 00 45 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 FE 0E 00 90 00 80 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 03 02 [12:30:49]Write to MH i2c: E2 08 00 FF 0E 80 0D 03 02 00 00 00 00 88 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 FF 0E 00 29 CB B8 D4 2F 0A C5 41 90 00 48 [12:30:49]RAPDU: 29 CB B8 D4 2F 0A C5 41 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_SignData done [12:30:49]FM_MakeSignedData done [12:30:49]CreateOFDProtocolMessage [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 11 00 00 [12:30:49]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 00 0F 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:30:49]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:49]wFMCommunicate OK [12:30:49]CreateOFDProtocolMessage done [12:30:49]OFDSenderStorePacket 63074 [12:30:49]StoreOFDPacket docnum=63074 [12:30: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 23 01 00 00 28 91 1B 01 29 95 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7A 49 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7E CA 8B 24 F1 80 29 CB B8 D4 2F 0A C5 41 [12:30:49]CheckFolder [12:30:49]dirname=/storage/ofd_packets [12:30:49]CheckFolder done [12:30:49]ProducePacketName [12:30:49]name=ofd_packets/00063074 [12:30:49]NVStorageSaveData ofd_packets/00063074 [12:30:49]File name is /storage/ofd_packets/00063074 [12:30:49]Write 321 bytes [12:30:49]NVStorageSaveData done [12:30:49]OFDSenderStorePacket done [12:30:49]KKMCreateOFDPacket done [12:30:49]NVStorageSaveData kkm_last_timestamp [12:30:49]File name is /storage/kkm_last_timestamp [12:30:49]Write 4 bytes [12:30:49]NVStorageSaveData done [12:30:50]ExternCall_PrintAddStr [12:30:50]wPrintStart [12:30:50]Write to MH i2c: 01 00 00 01 0F 10 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [12:30:50]RasterBufferAndPrint [12:30:50]line Счет N : (3)47384 [12:30:50]line ИНН: 02508201610067 [12:30:50]line Контрольно-Кассовый Чек [12:30:50]line ПРОДАЖА [12:30:50]line Товар: 4700025313937 [12:30:50]line ВОДКА МЯГКАЯ 0,1л [12:30:50]line 1.000 * 60.00 [12:30:50]line = 60.00 [12:30:50]line НДС 12% НСП 1% [12:30:50]line > о реализуемом товаре [12:30:50]line ИТОГО: 60.00 [12:30:50]line НСП 1% : 0.53 [12:30:50]line НДС 12% : 6.37 [12:30:50]line Наличными: 60.00 [12:30:50]line Безнал.: 0.00 [12:30:50]line Место: АЗС № 86 "Партнер Нефть" [12:30:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:30:50]line СНО: Общий режим [12:30:50]line Чек 71 21.10.2024 12:30 [12:30:50]line Смена: 544 ФФД: 1.0 [12:30:50]line ЗНМ: 0300000154 [12:30:50]line РНМ: 0000000000091619 [12:30:50]line Версия ККМ: 001 [12:30:50]line ФМ: 0000000000874676 [12:30:50]line ФД: 63074 [12:30:50]line ФПД: 139408382947712 [12:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123050&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63074&fm=139408382947712&tin=02508201610067®Number=0000000000091619&sum=6000 [12:30:50]OFD Sender: Processing packet 63074 [packets to send 232, broken 231] [12:30:50]ProducePacketName [12:30:50]name=ofd_packets/00063074 [12:30:50]OFD Sender: To server: pG, [12:30:50]CommunicateWithHost lk.salyk.kg:30040 [12:30:50]ConnectInit lk.salyk.kg [12:30:50]line 0 [12:30:50]written 0, free lines is 4095 [12:30:50]Connected sock=10 [12:30: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 23 01 00 00 28 91 1B 01 29 95 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7A 49 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7E CA 8B 24 F1 80 29 CB B8 D4 2F 0A C5 41 [12:30:50]Write to MH i2c: 01 00 00 29 0F 38 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 29 0F 00 00 00 00 00 20 0D 6C [12:30:50]RasterBufferAndPrint [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]written 0, free lines is 3365 [12:30:50]MH_Cut [12:30:50]Write to MH i2c: D1 01 00 30 0F 01 11 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 30 0F 00 10 [12:30:50]Write to MH i2c: 01 00 00 31 0F 40 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30: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 D4 D7 47 00 35 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 62 F6 00 00 F4 03 04 00 77 F3 15 67 B6 04 01 00 00 3B 7E F2 1C 77 E6 67 25 [12:30:50]CommunicateWithHost err = 0 [12:30:50]CheckOFDResponse [12:30:50]1017 (14) - 77093643461234 [12:30:50]1041 (16) - 0000000000874676 [12:30:50]1040 (4) - 63074 [12:30:50]1012 (4) - 21.10.2024 06:23 [12:30:50]1206 (1) - 0 [12:30:50]OFD Sender: Remove packet 63074 [12:30:50]ProducePacketName [12:30:50]name=ofd_packets/00063074 [12:30:50]NVStorageDeleteData [12:30:51]OFD Sender: No OFD packet to send [12:30:51]*** Cut start [12:30:51]*** Partial cut [12:30:51]*** CUTSNS_PIN = 1 [12:30:51]*** CUTSNS_PIN = 0 [12:30:51]*** Brake cut motor [12:30:52]Read from MH i2c: 01 [12:30:52]MH_I2C_Read... [12:30:52]*** Stop cut motor [12:30:52]*** Cut end [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 31 0F 00 00 00 00 00 FF 0F 55 [12:30:52]process_action close_receipt done [12:30:52]requested_data is exist [12:30:52]produce_requested_data [12:30:52]requested_item fm.sn is exist - process it [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 11 00 00 [12:30:52]Write to MH i2c: E2 08 00 32 0F 80 11 00 00 00 00 00 00 BB [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 32 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 14 [12:30: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:30:52]wFMCommunicate OK [12:30:52]requested_item fd.num is exist - process it [12:30:52]SAM_PROTO_GetFieldsCounters [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 13 00 00 [12:30:52]Write to MH i2c: E2 08 00 33 0F 80 13 00 00 00 00 00 00 BE [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 33 0F 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 F6 00 00 0E 04 04 00 20 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 35 [12:30: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 62 F6 00 00 0E 04 04 00 20 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 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetFieldsCounters done [12:30:52]requested_item shift.num is exist - process it [12:30:52]requested_item shift.opened is exist - process it [12:30:52]req_shift_opened [12:30:52]FM_GetShiftState [12:30:52]SAM_PROTO_GetShiftState [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 13 01 00 [12:30:52]Write to MH i2c: E2 08 00 34 0F 80 13 01 00 00 00 00 00 C0 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 34 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 20 [12:30:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetShiftState done [12:30:52]FM_GetShiftState done [12:30:52]req_shift_opened done [12:30:52]requested_item shift.open_date is exist - process it [12:30:52]req_shift_open_date [12:30:52]req_shift_open_date done [12:30:52]produce_requested_data done [12:30:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63074,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:30:52]process_action_free close_receipt [12:30:52]json_value_free [12:30:52]json_value_free done [12:30:52]process_json_proto returns [12:30:52]Send response to host [12:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63074,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:30:52]free response buf [12:30:52]execute_script done [12:30:52]execute_script returns [12:30:52]free content buf [12:30:52]Sock 7.Close socket [12:30:52]Sock 7.Thread stoped [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:24]accept exits with 9 [12:34:24]New connection [12:34:24]New thread 3067198820 created [12:34:24]Thread 3067055460 joined [12:34:24] Sock 9.Parse request [12:34:24]Waiting for new connection... [12:34:24]Sock 9.Check first char [12:34:24]Sock 9.First char is OK [12:34:24]request: POST /json_proto HTTP/1.0 [12:34:24]Method: POST [12:34:24]URL: /json_proto [12:34:24]Method is POST - this is cgi request [12:34:24]url: /json_proto [12:34:24]query_string will be loaded in cgi processing [12:34:24]execute_cgi json_proto POST (null) [12:34:24]execute_cgi path=json_proto method=POST [12:34:24]POST find Content-Length [12:34:24]Host: 172.17.42.132:8080 [12:34:24]Content-Length: 962 [12:34:24]Content-Type: application/json [12:34:24] [12:34:24]POST finish read [12:34:24]Found Content-Length = 962 [12:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47385", "tax_sys" : 0, "items" : [ { "code": "8809010072357", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:24]execute_script... [12:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47385", "tax_sys" : 0, "items" : [ { "code": "8809010072357", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0430 NEW KUMO \u043C\u0438\u043A\u0440\u043E\u0444\u0438\u0431 \u0436\u0435\u043B\u0442\u0430\u044F", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:24]POST & json_proto [12:34:24]process_json_proto [12:34:24]json parsed OK: [12:34:24]protocol is kg_v1.0 [12:34:24]action value=close_receipt [12:34:24]process_action close_receipt [12:34:24]cmd_close_receipt [12:34:24]MH_GetDate [12:34:24]Write to MH i2c: F0 00 00 35 0F 33 [12:34:24]Write i2c OK [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 09 00 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: F0 09 00 35 0F 00 52 4A 16 67 4C DF 56 66 3C [12:34:24]GetLastDocTimeStamp 1729513850 [12:34:24]current date 1729514066 [12:34:24]FM_GetShiftState [12:34:24]SAM_PROTO_GetShiftState [12:34:24]wFMCommunicate request_size=4 [12:34:24]MH_SAM_APDU [12:34:24]CAPDU: 80 13 01 00 [12:34:24]Write to MH i2c: E2 08 00 36 0F 80 13 01 00 00 00 00 00 C2 [12:34:24]Write i2c OK [12:34:24]MH_I2C_Read... [12:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:24]Read from MH i2c: E2 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: E2 0E 00 [12:34:24]MH_I2C_Read... [12:34:24]Read from MH i2c: E2 0E 00 36 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 22 [12:34:24]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:34:24]wFMCommunicate OK [12:34:24]SAM_PROTO_GetShiftState done [12:34:24]FM_GetShiftState done [12:34:24]opened in 1729469755 [12:34:24]opened+sec_in_day 1729556155 [12:34:24]quantity*price = 19000 [12:34:24]sum+1 = 19001 [12:34:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 72 21.10.2024 12:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63075 ФПД: 151674864741274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123426&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63075&fm=151674864741274&tin=02508201610067®Number=0000000000091619&sum=20000 0 [12:34:25]StoreToDocumentArchive [12:34:25]shift 544 fd 63075 [12:34:25]save to /storage/0544/doc_00063075 [12:34:25]save last doc name /storage/0544/doc_00063075 to /storage/kkm_last_doc_name [12:34:25]save OK [12:34:25]Clear old archive folders... [12:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=407 [12:34:25]tlvbuf is 018EF830 [12:34:25]SAM_PROTO_ClearQueue [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 09 00 00 [12:34:25]Write to MH i2c: E2 08 00 43 0F 80 09 00 00 00 00 00 00 C4 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_ClearQueue done [12:34:25]KKMCreateOFDPacket [12:34:25]OFDProtocolAddRootSTLVToBuf [12:34:25]FM_MakeSignedData [12:34:25]FM_MakeSignedData [12:34:25]SAM_PROTO_SignData [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 0D 01 02 [12:34:25]Write to MH i2c: E2 08 00 44 0F 80 0D 01 02 00 00 00 00 CC [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [12:34:25]RAPDU: 90 00 [12:34:25]wFMCommunicate OK [12:34:25]wFMCommunicate request_size=255 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [12:34:25]Write to MH i2c: E2 02 01 45 0F 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 AB [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 45 0F 00 90 00 C8 [12:34:26]RAPDU: 90 00 [12:34:26]wFMCommunicate OK [12:34:26]wFMCommunicate request_size=166 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 0D 02 02 A1 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 48 00 00 00 F4 03 04 00 52 4A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 F2 8E 6F 2B 9A [12:34:26]Write to MH i2c: E2 A9 00 46 0F 80 0D 02 02 A1 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 48 00 00 00 F4 03 04 00 52 4A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 F2 8E 6F 2B 9A 00 00 4F [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 46 0F 00 90 00 C9 [12:34:26]RAPDU: 90 00 [12:34:26]wFMCommunicate OK [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 0D 03 02 [12:34:26]Write to MH i2c: E2 08 00 47 0F 80 0D 03 02 00 00 00 00 D1 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0B 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0B 00 47 0F 00 BC 0C 7D A0 00 1D BF 54 90 00 E7 [12:34:26]RAPDU: BC 0C 7D A0 00 1D BF 54 90 00 [12:34:26]wFMCommunicate OK [12:34:26]SAM_PROTO_SignData done [12:34:26]FM_MakeSignedData done [12:34:26]CreateOFDProtocolMessage [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 11 00 00 [12:34:26]Write to MH i2c: E2 08 00 48 0F 80 11 00 00 00 00 00 00 D1 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 17 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 17 00 48 0F 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:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:34:26]wFMCommunicate OK [12:34:26]CreateOFDProtocolMessage done [12:34:26]OFDSenderStorePacket 63075 [12:34:26]StoreOFDPacket docnum=63075 [12:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AB 01 00 00 C7 3C A3 01 9F EF 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 48 00 00 00 F4 03 04 00 52 4A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 F2 8E 6F 2B 9A BC 0C 7D A0 00 1D BF 54 [12:34:26]CheckFolder [12:34:26]dirname=/storage/ofd_packets [12:34:26]CheckFolder done [12:34:26]ProducePacketName [12:34:26]name=ofd_packets/00063075 [12:34:26]NVStorageSaveData ofd_packets/00063075 [12:34:26]File name is /storage/ofd_packets/00063075 [12:34:26]Write 457 bytes [12:34:26]NVStorageSaveData done [12:34:26]OFDSenderStorePacket done [12:34:26]KKMCreateOFDPacket done [12:34:26]NVStorageSaveData kkm_last_timestamp [12:34:26]File name is /storage/kkm_last_timestamp [12:34:26]Write 4 bytes [12:34:26]NVStorageSaveData done [12:34:26]ExternCall_PrintAddStr [12:34:26]wPrintStart [12:34:26]Write to MH i2c: 01 00 00 49 0F 58 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 07 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 FF 0F 6D [12:34:26]RasterBufferAndPrint [12:34:26]line Счет N : (3)47385 [12:34:26]line ИНН: 02508201610067 [12:34:26]line Контрольно-Кассовый Чек [12:34:26]line ПРОДАЖА [12:34:26]line Товар: 8809010072357 [12:34:26]line Салфетка NEW KUMO микрофиб желтая [12:34:26]line 1.000 * 190.00 [12:34:26]line = 190.00 [12:34:26]line НДС 12% НСП 1% [12:34:26]line > о реализуемом товаре [12:34:26]line Товар: 46226617 [12:34:26]line Mentos ПВ Нежная Мята 6*100*2г [12:34:26]line 1.000 * 10.00 [12:34:26]line = 10.00 [12:34:26]line НДС 12% НСП 1% [12:34:26]line > о реализуемом товаре [12:34:26]line ИТОГО: 200.00 [12:34:26]line НСП 1% : 1.77 [12:34:26]line НДС 12% : 21.24 [12:34:26]line Наличными: 200.00 [12:34:26]line Безнал.: 0.00 [12:34:26]line Место: АЗС № 86 "Партнер Нефть" [12:34:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:34:26]line СНО: Общий режим [12:34:26]line Чек 72 21.10.2024 12:34 [12:34:26]line Смена: 544 ФФД: 1.0 [12:34:26]line ЗНМ: 0300000154 [12:34:26]line РНМ: 0000000000091619 [12:34:26]line Версия ККМ: 001 [12:34:26]line ФМ: 0000000000874676 [12:34:26]line ФД: 63075 [12:34:26]line ФПД: 151674864741274 [12:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123426&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63075&fm=151674864741274&tin=02508201610067®Number=0000000000091619&sum=20000 [12:34:26]OFD Sender: Processing packet 63075 [packets to send 232, broken 231] [12:34:26]ProducePacketName [12:34:26]name=ofd_packets/00063075 [12:34:26]OFD Sender: To server: pG, [12:34:26]CommunicateWithHost lk.salyk.kg:30040 [12:34:26]ConnectInit lk.salyk.kg [12:34:26]line 0 [12:34:26]written 0, free lines is 4095 [12:34:26]Connected sock=10 [12:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AB 01 00 00 C7 3C A3 01 9F EF 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 37 32 33 35 37 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 48 00 00 00 F4 03 04 00 52 4A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 89 F2 8E 6F 2B 9A BC 0C 7D A0 00 1D BF 54 [12:34:27]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 0D 47 00 E3 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 63 F6 00 00 F4 03 04 00 50 F4 15 67 B6 04 01 00 00 72 24 37 8F A3 D6 1A 0D [12:34:27]CommunicateWithHost err = 0 [12:34:27]CheckOFDResponse [12:34:27]1017 (14) - 77093643461234 [12:34:27]1041 (16) - 0000000000874676 [12:34:27]1040 (4) - 63075 [12:34:27]1012 (4) - 21.10.2024 06:27 [12:34:27]1206 (1) - 0 [12:34:27]OFD Sender: Remove packet 63075 [12:34:27]ProducePacketName [12:34:27]name=ofd_packets/00063075 [12:34:27]NVStorageDeleteData [12:34:27]Write to MH i2c: 01 00 00 79 0F 88 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 07 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 AE 0C 49 [12:34:27]RasterBufferAndPrint [12:34:27]line [12:34:27]line [12:34:27]line [12:34:27]line [12:34:27]line [12:34:27]written 0, free lines is 3255 [12:34:27]MH_Cut [12:34:27]Write to MH i2c: D1 01 00 80 0F 01 61 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: D1 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: D1 01 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: D1 01 00 80 0F 00 60 [12:34:27]Write to MH i2c: 01 00 00 81 0F 90 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]OFD Sender: No OFD packet to send [12:34:27]*** Cut start [12:34:27]*** Partial cut [12:34:27]*** CUTSNS_PIN = 1 [12:34:28]*** CUTSNS_PIN = 0 [12:34:28]*** Brake cut motor [12:34:28]Read from MH i2c: 01 [12:34:28]MH_I2C_Read... [12:34:28]*** Stop cut motor [12:34:28]*** Cut end [12:34:28]Read from MH i2c: 01 07 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 FF 0F A5 [12:34:28]process_action close_receipt done [12:34:28]requested_data is exist [12:34:28]produce_requested_data [12:34:28]requested_item fm.sn is exist - process it [12:34:28]wFMCommunicate request_size=4 [12:34:28]MH_SAM_APDU [12:34:28]CAPDU: 80 11 00 00 [12:34:28]Write to MH i2c: E2 08 00 82 0F 80 11 00 00 00 00 00 00 0B [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 17 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 17 00 82 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 64 [12:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:34:28]wFMCommunicate OK [12:34:28]requested_item fd.num is exist - process it [12:34:28]SAM_PROTO_GetFieldsCounters [12:34:28]wFMCommunicate request_size=4 [12:34:28]MH_SAM_APDU [12:34:28]CAPDU: 80 13 00 00 [12:34:28]Write to MH i2c: E2 08 00 83 0F 80 13 00 00 00 00 00 00 0E [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 62 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 62 00 83 0F 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 F6 00 00 0E 04 04 00 20 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 89 [12:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [12:34:28]wFMCommunicate OK [12:34:28]SAM_PROTO_GetFieldsCounters done [12:34:28]requested_item shift.num is exist - process it [12:34:28]requested_item shift.opened is exist - process it [12:34:28]req_shift_opened [12:34:28]FM_GetShiftState [12:34:28]SAM_PROTO_GetShiftState [12:34:28]wFMCommunicate request_size=4 [12:34:28]MH_SAM_APDU [12:34:28]CAPDU: 80 13 01 00 [12:34:28]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 70 [12:34:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:34:28]wFMCommunicate OK [12:34:28]SAM_PROTO_GetShiftState done [12:34:28]FM_GetShiftState done [12:34:28]req_shift_opened done [12:34:28]requested_item shift.open_date is exist - process it [12:34:28]req_shift_open_date [12:34:28]req_shift_open_date done [12:34:28]produce_requested_data done [12:34:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63075,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:34:28]process_action_free close_receipt [12:34:28]json_value_free [12:34:28]json_value_free done [12:34:28]process_json_proto returns [12:34:28]Send response to host [12:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63075,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:34:28]free response buf [12:34:28]execute_script done [12:34:28]execute_script returns [12:34:28]free content buf [12:34:28]Sock 9.Close socket [12:34:28]Sock 9.Thread stoped [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]accept exits with 7 [12:50:39]New connection [12:50:39]New thread 3067055460 created [12:50:39]Thread 3067198820 joined [12:50:39]Waiting for new connection... [12:50:39] Sock 7.Parse request [12:50:39]Sock 7.Check first char [12:50:39]Sock 7.First char is OK [12:50:39]request: POST /json_proto HTTP/1.0 [12:50:39]Method: POST [12:50:39]URL: /json_proto [12:50:39]Method is POST - this is cgi request [12:50:39]url: /json_proto [12:50:39]query_string will be loaded in cgi processing [12:50:39]execute_cgi json_proto POST (null) [12:50:39]execute_cgi path=json_proto method=POST [12:50:39]POST find Content-Length [12:50:39]Host: 172.17.42.132:8080 [12:50:39]Content-Length: 659 [12:50:39]Content-Type: application/json [12:50:39] [12:50:39]POST finish read [12:50:39]Found Content-Length = 659 [12:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47386", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:39]execute_script... [12:50: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)47386", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:39]POST & json_proto [12:50:39]process_json_proto [12:50:39]json parsed OK: [12:50:39]protocol is kg_v1.0 [12:50:39]action value=close_receipt [12:50:39]process_action close_receipt [12:50:39]cmd_close_receipt [12:50:39]MH_GetDate [12:50:39]Write to MH i2c: F0 00 00 85 0F 83 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: F0 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: F0 09 00 [12:50:39]MH_I2C_Read... [12:50:39]OFD Sender: No OFD packet to send [12:50:39]Read from MH i2c: F0 09 00 85 0F 00 21 4E 16 67 4C DF 56 66 5F [12:50:39]GetLastDocTimeStamp 1729514066 [12:50:39]current date 1729515041 [12:50:39]FM_GetShiftState [12:50:39]SAM_PROTO_GetShiftState [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 13 01 00 [12:50:39]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0E 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 72 [12:50:39]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:50:39]wFMCommunicate OK [12:50:39]SAM_PROTO_GetShiftState done [12:50:39]FM_GetShiftState done [12:50:39]opened in 1729469755 [12:50:39]opened+sec_in_day 1729556155 [12:50:39]quantity*price = 15500 [12:50:39]sum+1 = 15501 [12:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 73 21.10.2024 12:50 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63076 ФПД: 9888035065302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125041&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63076&fm=9888035065302&tin=02508201610067®Number=0000000000091619&sum=15500 0 [12:50:40]StoreToDocumentArchive [12:50:40]shift 544 fd 63076 [12:50:40]save to /storage/0544/doc_00063076 [12:50:40]save last doc name /storage/0544/doc_00063076 to /storage/kkm_last_doc_name [12:50:40]save OK [12:50:40]Clear old archive folders... [12:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:50:40]tlvbuf is 018FF120 [12:50:40]SAM_PROTO_ClearQueue [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 09 00 00 [12:50:40]Write to MH i2c: E2 08 00 93 0F 80 09 00 00 00 00 00 00 14 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [12:50:40]RAPDU: 90 00 [12:50:40]wFMCommunicate OK [12:50:40]SAM_PROTO_ClearQueue done [12:50:40]KKMCreateOFDPacket [12:50:40]OFDProtocolAddRootSTLVToBuf [12:50:40]FM_MakeSignedData [12:50:40]FM_MakeSignedData [12:50:40]SAM_PROTO_SignData [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 0D 01 02 [12:50:40]Write to MH i2c: E2 08 00 94 0F 80 0D 01 02 00 00 00 00 1C [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [12:50:40]RAPDU: 90 00 [12:50:40]wFMCommunicate OK [12:50:40]wFMCommunicate request_size=255 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [12:50:40]Write to MH i2c: E2 02 01 95 0F 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 8D [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [12:50:40]RAPDU: 90 00 [12:50:40]wFMCommunicate OK [12:50:40]wFMCommunicate request_size=39 [12:50:40]MH_SAM_APDU [12:50:40]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 64 F6 00 00 35 04 06 00 08 FE 3C D1 4D D6 [12:50:40]Write to MH i2c: E2 2A 00 96 0F 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 64 F6 00 00 35 04 06 00 08 FE 3C D1 4D D6 00 00 70 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [12:50:40]RAPDU: 90 00 [12:50:40]wFMCommunicate OK [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 0D 03 02 [12:50:40]Write to MH i2c: E2 08 00 97 0F 80 0D 03 02 00 00 00 00 21 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 0B 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 0B 00 97 0F 00 6C 52 DA F8 5F 28 D3 F2 90 00 FE [12:50:40]RAPDU: 6C 52 DA F8 5F 28 D3 F2 90 00 [12:50:40]wFMCommunicate OK [12:50:40]SAM_PROTO_SignData done [12:50:40]FM_MakeSignedData done [12:50:40]CreateOFDProtocolMessage [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 11 00 00 [12:50:40]Write to MH i2c: E2 08 00 98 0F 80 11 00 00 00 00 00 00 21 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 17 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 17 00 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7A [12: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 [12:50:40]wFMCommunicate OK [12:50:40]CreateOFDProtocolMessage done [12:50:40]OFDSenderStorePacket 63076 [12:50:40]StoreOFDPacket docnum=63076 [12: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 2C 01 00 00 F5 67 24 01 CB 1E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 08 FE 3C D1 4D D6 6C 52 DA F8 5F 28 D3 F2 [12:50:40]CheckFolder [12:50:40]dirname=/storage/ofd_packets [12:50:40]CheckFolder done [12:50:40]ProducePacketName [12:50:40]name=ofd_packets/00063076 [12:50:40]NVStorageSaveData ofd_packets/00063076 [12:50:40]File name is /storage/ofd_packets/00063076 [12:50:40]Write 330 bytes [12:50:40]NVStorageSaveData done [12:50:40]OFDSenderStorePacket done [12:50:40]KKMCreateOFDPacket done [12:50:40]NVStorageSaveData kkm_last_timestamp [12:50:40]File name is /storage/kkm_last_timestamp [12:50:40]Write 4 bytes [12:50:40]NVStorageSaveData done [12:50:40]ExternCall_PrintAddStr [12:50:40]wPrintStart [12:50:40]Write to MH i2c: 01 00 00 99 0F A8 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [12:50:40]RasterBufferAndPrint [12:50:40]line Счет N : (3)47386 [12:50:40]line ИНН: 02508201610067 [12:50:40]line Контрольно-Кассовый Чек [12:50:40]line ПРОДАЖА [12:50:40]line Товар: 5449000000439 [12:50:40]line Напиток Кока-Кола 1,5л [12:50:40]line 1.000 * 155.00 [12:50:40]line = 155.00 [12:50:40]line НДС 12% НСП 1% [12:50:40]line > о реализуемом товаре [12:50:40]line ИТОГО: 155.00 [12:50:40]line НСП 1% : 1.37 [12:50:40]line НДС 12% : 16.46 [12:50:40]line Наличными: 155.00 [12:50:40]line Безнал.: 0.00 [12:50:40]line Место: АЗС № 86 "Партнер Нефть" [12:50:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:50:40]line СНО: Общий режим [12:50:40]line Чек 73 21.10.2024 12:50 [12:50:40]line Смена: 544 ФФД: 1.0 [12:50:40]line ЗНМ: 0300000154 [12:50:40]line РНМ: 0000000000091619 [12:50:40]line Версия ККМ: 001 [12:50:40]line ФМ: 0000000000874676 [12:50:40]line ФД: 63076 [12:50:40]line ФПД: 9888035065302 [12:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125041&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63076&fm=9888035065302&tin=02508201610067®Number=0000000000091619&sum=15500 [12:50:41]line 0 [12:50:41]OFD Sender: Processing packet 63076 [packets to send 232, broken 231] [12:50:41]ProducePacketName [12:50:41]name=ofd_packets/00063076 [12:50:41]OFD Sender: To server: pG, [12:50:41]CommunicateWithHost lk.salyk.kg:30040 [12:50:41]ConnectInit lk.salyk.kg [12:50:41]written 0, free lines is 4095 [12:50:41]Connected sock=9 [12:50: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 2C 01 00 00 F5 67 24 01 CB 1E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 08 FE 3C D1 4D D6 6C 52 DA F8 5F 28 D3 F2 [12:50:41]Write to MH i2c: 01 00 00 C1 0F D0 [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: 01 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: 01 07 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: 01 07 00 C1 0F 00 00 00 00 00 27 0D 0B [12:50:41]RasterBufferAndPrint [12:50:41]line [12:50:41]line [12:50:41]line [12:50:41]line [12:50:41]line [12:50:41]written 0, free lines is 3373 [12:50:41]MH_Cut [12:50:41]Write to MH i2c: D1 01 00 C8 0F 01 A9 [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: D1 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: D1 01 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: D1 01 00 C8 0F 00 A8 [12:50:41]Write to MH i2c: 01 00 00 C9 0F D8 [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50: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 32 38 47 00 DD 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 64 F6 00 00 F4 03 04 00 1E F8 15 67 B6 04 01 00 00 98 95 04 10 78 88 2C D3 [12:50:41]CommunicateWithHost err = 0 [12:50:41]CheckOFDResponse [12:50:41]1017 (14) - 77093643461234 [12:50:41]1041 (16) - 0000000000874676 [12:50:41]1040 (4) - 63076 [12:50:41]1012 (4) - 21.10.2024 06:43 [12:50:41]1206 (1) - 0 [12:50:41]OFD Sender: Remove packet 63076 [12:50:41]ProducePacketName [12:50:41]name=ofd_packets/00063076 [12:50:41]NVStorageDeleteData [12:50:42]OFD Sender: No OFD packet to send [12:50:42]*** Cut start [12:50:42]*** Partial cut [12:50:42]*** CUTSNS_PIN = 1 [12:50:42]*** CUTSNS_PIN = 0 [12:50:42]*** Brake cut motor [12:50:43]Read from MH i2c: 01 [12:50:43]MH_I2C_Read... [12:50:43]*** Stop cut motor [12:50:43]*** Cut end [12:50:43]Read from MH i2c: 01 07 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 07 00 C9 0F 00 00 00 00 00 FF 0F ED [12:50:43]process_action close_receipt done [12:50:43]requested_data is exist [12:50:43]produce_requested_data [12:50:43]requested_item fm.sn is exist - process it [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 11 00 00 [12:50:43]Write to MH i2c: E2 08 00 CA 0F 80 11 00 00 00 00 00 00 53 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 17 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 17 00 CA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AC [12:50:43]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:43]wFMCommunicate OK [12:50:43]requested_item fd.num is exist - process it [12:50:43]SAM_PROTO_GetFieldsCounters [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 13 00 00 [12:50:43]Write to MH i2c: E2 08 00 CB 0F 80 13 00 00 00 00 00 00 56 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 62 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 62 00 CB 0F 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 F6 00 00 0E 04 04 00 20 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 D5 [12:50: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 64 F6 00 00 0E 04 04 00 20 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 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_GetFieldsCounters done [12:50:43]requested_item shift.num is exist - process it [12:50:43]requested_item shift.opened is exist - process it [12:50:43]req_shift_opened [12:50:43]FM_GetShiftState [12:50:43]SAM_PROTO_GetShiftState [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 13 01 00 [12:50:43]Write to MH i2c: E2 08 00 CC 0F 80 13 01 00 00 00 00 00 58 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 CC 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 B8 [12:50:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_GetShiftState done [12:50:43]FM_GetShiftState done [12:50:43]req_shift_opened done [12:50:43]requested_item shift.open_date is exist - process it [12:50:43]req_shift_open_date [12:50:43]req_shift_open_date done [12:50:43]produce_requested_data done [12:50:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63076,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:50:43]process_action_free close_receipt [12:50:43]json_value_free [12:50:43]json_value_free done [12:50:43]process_json_proto returns [12:50:43]Send response to host [12:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63076,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:50:43]free response buf [12:50:43]execute_script done [12:50:43]execute_script returns [12:50:43]free content buf [12:50:43]Sock 7.Close socket [12:50:43]Sock 7.Thread stoped [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:30]accept exits with 10 [12:53:30]New connection [12:53:30]New thread 3067198820 created [12:53:30]Thread 3067055460 joined [12:53:30]Waiting for new connection... [12:53:30] Sock 10.Parse request [12:53:30]Sock 10.Check first char [12:53:30]Sock 10.First char is OK [12:53:30]request: POST /json_proto HTTP/1.0 [12:53:30]Method: POST [12:53:30]URL: /json_proto [12:53:30]Method is POST - this is cgi request [12:53:30]url: /json_proto [12:53:30]query_string will be loaded in cgi processing [12:53:30]execute_cgi json_proto POST (null) [12:53:30]execute_cgi path=json_proto method=POST [12:53:30]POST find Content-Length [12:53:30]Host: 172.17.42.132:8080 [12:53:30]Content-Length: 919 [12:53:30]Content-Type: application/json [12:53:30] [12:53:30]POST finish read [12:53:30]Found Content-Length = 919 [12:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47387", "tax_sys" : 0, "items" : [ { "code": "4620002448752", "name": "\u041E\u0447\u043A\u0438 \u043F\u043E\u043B\u044F\u0440\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0435", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:30]execute_script... [12:53: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)47387", "tax_sys" : 0, "items" : [ { "code": "4620002448752", "name": "\u041E\u0447\u043A\u0438 \u043F\u043E\u043B\u044F\u0440\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0435", "price" : 600.00, "quantity" : 1.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:30]POST & json_proto [12:53:30]process_json_proto [12:53:30]json parsed OK: [12:53:30]protocol is kg_v1.0 [12:53:30]action value=close_receipt [12:53:30]process_action close_receipt [12:53:30]cmd_close_receipt [12:53:30]MH_GetDate [12:53:30]Write to MH i2c: F0 00 00 CD 0F CB [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: F0 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: F0 09 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: F0 09 00 CD 0F 00 CC 4E 16 67 4C DF 56 66 52 [12:53:30]GetLastDocTimeStamp 1729515041 [12:53:30]current date 1729515212 [12:53:30]FM_GetShiftState [12:53:30]SAM_PROTO_GetShiftState [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 13 01 00 [12:53:30]Write to MH i2c: E2 08 00 CE 0F 80 13 01 00 00 00 00 00 5A [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0E 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0E 00 CE 0F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BA [12:53:30]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_GetShiftState done [12:53:30]FM_GetShiftState done [12:53:30]opened in 1729469755 [12:53:30]opened+sec_in_day 1729556155 [12:53:30]quantity*price = 60000 [12:53:30]sum+1 = 60001 [12:53:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 74 21.10.2024 12:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63077 ФПД: 182622655641953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125332&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63077&fm=182622655641953&tin=02508201610067®Number=0000000000091619&sum=65000 0 [12:53:31]StoreToDocumentArchive [12:53:31]shift 544 fd 63077 [12:53:31]save to /storage/0544/doc_00063077 [12:53:31]save last doc name /storage/0544/doc_00063077 to /storage/kkm_last_doc_name [12:53:31]save OK [12:53:31]Clear old archive folders... [12:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=380 [12:53:31]tlvbuf is 018D46B0 [12:53:31]SAM_PROTO_ClearQueue [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 09 00 00 [12:53:31]Write to MH i2c: E2 08 00 DB 0F 80 09 00 00 00 00 00 00 5C [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [12:53:31]RAPDU: 90 00 [12:53:31]wFMCommunicate OK [12:53:31]SAM_PROTO_ClearQueue done [12:53:31]KKMCreateOFDPacket [12:53:31]OFDProtocolAddRootSTLVToBuf [12:53:31]FM_MakeSignedData [12:53:31]FM_MakeSignedData [12:53:31]SAM_PROTO_SignData [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 0D 01 02 [12:53:31]Write to MH i2c: E2 08 00 DC 0F 80 0D 01 02 00 00 00 00 64 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [12:53:31]RAPDU: 90 00 [12:53:31]wFMCommunicate OK [12:53:31]wFMCommunicate request_size=255 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 32 30 30 30 32 34 34 38 37 35 32 06 04 27 00 D0 9E D1 87 D0 BA D0 B8 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 B8 D0 B7 D0 B0 D1 86 D0 B8 D0 BE D0 BD D0 BD D1 8B D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 [12:53:31]Write to MH i2c: E2 02 01 DD 0F 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 32 30 30 30 32 34 34 38 37 35 32 06 04 27 00 D0 9E D1 87 D0 BA D0 B8 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 B8 D0 B7 D0 B0 D1 86 D0 B8 D0 BE D0 BD D0 BD D1 8B D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 AB [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [12:53:31]RAPDU: 90 00 [12:53:31]wFMCommunicate OK [12:53:31]wFMCommunicate request_size=139 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 CC 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A6 18 26 84 79 61 [12:53:31]Write to MH i2c: E2 8E 00 DE 0F 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 CC 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A6 18 26 84 79 61 00 00 3D [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:32]Read from MH i2c: E2 03 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [12:53:32]RAPDU: 90 00 [12:53:32]wFMCommunicate OK [12:53:32]wFMCommunicate request_size=4 [12:53:32]MH_SAM_APDU [12:53:32]CAPDU: 80 0D 03 02 [12:53:32]Write to MH i2c: E2 08 00 DF 0F 80 0D 03 02 00 00 00 00 69 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 0B 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 0B 00 DF 0F 00 61 90 A1 06 09 1D ED 5A 90 00 6F [12:53:32]RAPDU: 61 90 A1 06 09 1D ED 5A 90 00 [12:53:32]wFMCommunicate OK [12:53:32]SAM_PROTO_SignData done [12:53:32]FM_MakeSignedData done [12:53:32]CreateOFDProtocolMessage [12:53:32]wFMCommunicate request_size=4 [12:53:32]MH_SAM_APDU [12:53:32]CAPDU: 80 11 00 00 [12:53:32]Write to MH i2c: E2 08 00 E0 0F 80 11 00 00 00 00 00 00 69 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 17 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 17 00 E0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C2 [12:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:53:32]wFMCommunicate OK [12:53:32]CreateOFDProtocolMessage done [12:53:32]OFDSenderStorePacket 63077 [12:53:32]StoreOFDPacket docnum=63077 [12:53: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 90 01 00 00 1E 24 88 01 A3 45 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 32 30 30 30 32 34 34 38 37 35 32 06 04 27 00 D0 9E D1 87 D0 BA D0 B8 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 B8 D0 B7 D0 B0 D1 86 D0 B8 D0 BE D0 BD D0 BD D1 8B D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 CC 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A6 18 26 84 79 61 61 90 A1 06 09 1D ED 5A [12:53:32]CheckFolder [12:53:32]dirname=/storage/ofd_packets [12:53:32]CheckFolder done [12:53:32]ProducePacketName [12:53:32]name=ofd_packets/00063077 [12:53:32]NVStorageSaveData ofd_packets/00063077 [12:53:32]File name is /storage/ofd_packets/00063077 [12:53:32]Write 430 bytes [12:53:32]NVStorageSaveData done [12:53:32]OFDSenderStorePacket done [12:53:32]KKMCreateOFDPacket done [12:53:32]NVStorageSaveData kkm_last_timestamp [12:53:32]File name is /storage/kkm_last_timestamp [12:53:32]Write 4 bytes [12:53:32]NVStorageSaveData done [12:53:32]ExternCall_PrintAddStr [12:53:32]wPrintStart [12:53:32]Write to MH i2c: 01 00 00 E1 0F F0 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: 01 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: 01 07 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [12:53:32]RasterBufferAndPrint [12:53:32]line Счет N : (3)47387 [12:53:32]line ИНН: 02508201610067 [12:53:32]line Контрольно-Кассовый Чек [12:53:32]line ПРОДАЖА [12:53:32]line Товар: 4620002448752 [12:53:32]line Очки поляризационные [12:53:32]line 1.000 * 600.00 [12:53:32]line = 600.00 [12:53:32]line НДС 12% НСП 1% [12:53:32]line > о реализуемом товаре [12:53:32]line Товар: 4700000160358 [12:53:32]line Вода Легенда 1л [12:53:32]line 1.000 * 50.00 [12:53:32]line = 50.00 [12:53:32]line НДС 12% НСП 1% [12:53:32]line > о реализуемом товаре [12:53:32]line ИТОГО: 650.00 [12:53:32]line НСП 1% : 5.75 [12:53:32]line НДС 12% : 69.03 [12:53:32]line Наличными: 650.00 [12:53:32]line Безнал.: 0.00 [12:53:32]line Место: АЗС № 86 "Партнер Нефть" [12:53:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:53:32]line СНО: Общий режим [12:53:32]line Чек 74 21.10.2024 12:53 [12:53:32]line Смена: 544 ФФД: 1.0 [12:53:32]line ЗНМ: 0300000154 [12:53:32]line РНМ: 0000000000091619 [12:53:32]line Версия ККМ: 001 [12:53:32]line ФМ: 0000000000874676 [12:53:32]line ФД: 63077 [12:53:32]line ФПД: 182622655641953 [12:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125332&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63077&fm=182622655641953&tin=02508201610067®Number=0000000000091619&sum=65000 [12:53:32]line 0 [12:53:32]OFD Sender: Processing packet 63077 [packets to send 232, broken 231] [12:53:32]ProducePacketName [12:53:32]name=ofd_packets/00063077 [12:53:32]OFD Sender: To server: pG, [12:53:32]CommunicateWithHost lk.salyk.kg:30040 [12:53:32]ConnectInit lk.salyk.kg [12:53:32]written 0, free lines is 4095 [12:53:33]Write to MH i2c: 01 00 00 0F 10 1F [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: 01 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: 01 07 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 C9 0C FB [12:53:33]RasterBufferAndPrint [12:53:33]line [12:53:33]line [12:53:33]line [12:53:33]line [12:53:33]line [12:53:33]written 0, free lines is 3280 [12:53:33]MH_Cut [12:53:33]Write to MH i2c: D1 01 00 16 10 01 F8 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: D1 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: D1 01 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: D1 01 00 16 10 00 F7 [12:53:33]Write to MH i2c: 01 00 00 17 10 27 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** Cut start [12:53:33]*** Partial cut [12:53:33]*** CUTSNS_PIN = 1 [12:53:33]*** CUTSNS_PIN = 0 [12:53:34]*** Brake cut motor [12:53:34]Read from MH i2c: 01 [12:53:34]MH_I2C_Read... [12:53:34]*** Stop cut motor [12:53:34]*** Cut end [12:53:34]Read from MH i2c: 01 07 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 FF 0F 3C [12:53:34]process_action close_receipt done [12:53:34]requested_data is exist [12:53:34]produce_requested_data [12:53:34]requested_item fm.sn is exist - process it [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 11 00 00 [12:53:34]Write to MH i2c: E2 08 00 18 10 80 11 00 00 00 00 00 00 A2 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 17 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 17 00 18 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [12:53: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:53:34]wFMCommunicate OK [12:53:34]requested_item fd.num is exist - process it [12:53:34]SAM_PROTO_GetFieldsCounters [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 13 00 00 [12:53:34]Write to MH i2c: E2 08 00 19 10 80 13 00 00 00 00 00 00 A5 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 62 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 62 00 19 10 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 F6 00 00 0E 04 04 00 20 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 28 [12:53: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 65 F6 00 00 0E 04 04 00 20 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 [12:53:34]wFMCommunicate OK [12:53:34]SAM_PROTO_GetFieldsCounters done [12:53:34]requested_item shift.num is exist - process it [12:53:34]requested_item shift.opened is exist - process it [12:53:34]req_shift_opened [12:53:34]FM_GetShiftState [12:53:34]SAM_PROTO_GetShiftState [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 13 01 00 [12:53:34]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 07 [12:53:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [12:53:34]wFMCommunicate OK [12:53:34]SAM_PROTO_GetShiftState done [12:53:34]FM_GetShiftState done [12:53:34]req_shift_opened done [12:53:34]requested_item shift.open_date is exist - process it [12:53:34]req_shift_open_date [12:53:34]req_shift_open_date done [12:53:34]produce_requested_data done [12:53:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63077,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [12:53:34]process_action_free close_receipt [12:53:34]json_value_free [12:53:34]json_value_free done [12:53:34]process_json_proto returns [12:53:34]Send response to host [12:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63077,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [12:53:34]free response buf [12:53:34]execute_script done [12:53:34]execute_script returns [12:53:34]free content buf [12:53:34]Sock 10.Close socket [12:53:34]Sock 10.Thread stoped [12:55:46]ConnectInit Can't connect to host [12:55:46]CommunicateWithHost connect error [12:55:46]CommunicateWithHost err = -1 [12:55:46]OFD Sender: Server communicate error [12:55:51]OFD Sender: Processing packet 63077 [packets to send 232, broken 231] [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00063077 [12:55:51]OFD Sender: To server: pG, [12:55:51]CommunicateWithHost lk.salyk.kg:30040 [12:55:51]ConnectInit lk.salyk.kg [12:55:51]Connected sock=9 [12:55: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 90 01 00 00 1E 24 88 01 A3 45 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 32 30 30 30 32 34 34 38 37 35 32 06 04 27 00 D0 9E D1 87 D0 BA D0 B8 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 B8 D0 B7 D0 B0 D1 86 D0 B8 D0 BE D0 BD D0 BD D1 8B D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 CC 4E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A6 18 26 84 79 61 61 90 A1 06 09 1D ED 5A [12:55: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 8A E0 47 00 74 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F6 00 00 F4 03 04 00 55 F9 15 67 B6 04 01 00 00 F2 8B 12 AF 5A E2 04 21 [12:55:52]CommunicateWithHost err = 0 [12:55:52]CheckOFDResponse [12:55:52]1017 (14) - 77093643461234 [12:55:52]1041 (16) - 0000000000874676 [12:55:52]1040 (4) - 63077 [12:55:52]1012 (4) - 21.10.2024 06:48 [12:55:52]1206 (1) - 0 [12:55:52]OFD Sender: Remove packet 63077 [12:55:52]ProducePacketName [12:55:52]name=ofd_packets/00063077 [12:55:52]NVStorageDeleteData [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]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:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17: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:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:54]ConnectInit Can't connect to host [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]accept exits with 7 [13:26:15]New connection [13:26:15]New thread 3067055460 created [13:26:15]Thread 3067198820 joined [13:26:15]Waiting for new connection... [13:26:15] Sock 7.Parse request [13:26:15]Sock 7.Check first char [13:26:15]Sock 7.First char is OK [13:26:15]request: POST /json_proto HTTP/1.0 [13:26:15]Method: POST [13:26:15]URL: /json_proto [13:26:15]Method is POST - this is cgi request [13:26:15]url: /json_proto [13:26:15]query_string will be loaded in cgi processing [13:26:15]execute_cgi json_proto POST (null) [13:26:15]execute_cgi path=json_proto method=POST [13:26:15]POST find Content-Length [13:26:15]Host: 172.17.42.132:8080 [13:26:15]Content-Length: 892 [13:26:15]Content-Type: application/json [13:26:15] [13:26:15]POST finish read [13:26:15]Found Content-Length = 892 [13:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47388", "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" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:15]execute_script... [13:26: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)47388", "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" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:15]POST & json_proto [13:26:15]process_json_proto [13:26:15]json parsed OK: [13:26:15]protocol is kg_v1.0 [13:26:15]action value=close_receipt [13:26:15]process_action close_receipt [13:26:15]cmd_close_receipt [13:26:15]MH_GetDate [13:26:15]Write to MH i2c: F0 00 00 1B 10 1A [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 09 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 09 00 1B 10 00 79 56 16 67 4C DF 56 66 56 [13:26:15]GetLastDocTimeStamp 1729515212 [13:26:15]current date 1729517177 [13:26:15]FM_GetShiftState [13:26:15]SAM_PROTO_GetShiftState [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 01 00 [13:26:15]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 09 [13:26:15]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetShiftState done [13:26:15]FM_GetShiftState done [13:26:15]opened in 1729469755 [13:26:15]opened+sec_in_day 1729556155 [13:26:15]quantity*price = 23000 [13:26:15]sum+1 = 23001 [13:26:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.38 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 75 21.10.2024 13:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63078 ФПД: 92187486743182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132617&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63078&fm=92187486743182&tin=02508201610067®Number=0000000000091619&sum=27000 0 [13:26:16]StoreToDocumentArchive [13:26:16]shift 544 fd 63078 [13:26:16]save to /storage/0544/doc_00063078 [13:26:16]save last doc name /storage/0544/doc_00063078 to /storage/kkm_last_doc_name [13:26:16]save OK [13:26:16]Clear old archive folders... [13:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=381 [13:26:16]tlvbuf is 018293C0 [13:26:16]SAM_PROTO_ClearQueue [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 09 00 00 [13:26:16]Write to MH i2c: E2 08 00 29 10 80 09 00 00 00 00 00 00 AB [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [13:26:16]RAPDU: 90 00 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_ClearQueue done [13:26:16]KKMCreateOFDPacket [13:26:16]OFDProtocolAddRootSTLVToBuf [13:26:16]FM_MakeSignedData [13:26:16]FM_MakeSignedData [13:26:16]SAM_PROTO_SignData [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 0D 01 02 [13:26:16]Write to MH i2c: E2 08 00 2A 10 80 0D 01 02 00 00 00 00 B3 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [13:26:16]RAPDU: 90 00 [13:26:16]wFMCommunicate OK [13:26:16]wFMCommunicate request_size=255 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 0D 02 02 FA 03 00 7D 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 [13:26:16]Write to MH i2c: E2 02 01 2B 10 80 0D 02 02 FA 00 03 00 7D 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 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 28 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [13:26:16]RAPDU: 90 00 [13:26:16]wFMCommunicate OK [13:26:16]wFMCommunicate request_size=140 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 0D 02 02 87 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 4B 00 00 00 F4 03 04 00 79 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 53 D8 12 66 6A 8E [13:26:16]Write to MH i2c: E2 8F 00 2C 10 80 0D 02 02 87 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 4B 00 00 00 F4 03 04 00 79 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 53 D8 12 66 6A 8E 00 00 C7 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [13:26:16]RAPDU: 90 00 [13:26:16]wFMCommunicate OK [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 0D 03 02 [13:26:16]Write to MH i2c: E2 08 00 2D 10 80 0D 03 02 00 00 00 00 B8 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0B 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0B 00 2D 10 00 8D 06 0F 24 AE 55 27 6D 90 00 16 [13:26:16]RAPDU: 8D 06 0F 24 AE 55 27 6D 90 00 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_SignData done [13:26:16]FM_MakeSignedData done [13:26:16]CreateOFDProtocolMessage [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 11 00 00 [13:26:16]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 11 [13:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:26:16]wFMCommunicate OK [13:26:16]CreateOFDProtocolMessage done [13:26:16]OFDSenderStorePacket 63078 [13:26:16]StoreOFDPacket docnum=63078 [13:26: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 91 01 00 00 B4 CB 89 01 B7 82 5A 03 01 00 03 00 7D 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 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 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 4B 00 00 00 F4 03 04 00 79 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 53 D8 12 66 6A 8E 8D 06 0F 24 AE 55 27 6D [13:26:16]CheckFolder [13:26:16]dirname=/storage/ofd_packets [13:26:16]CheckFolder done [13:26:16]ProducePacketName [13:26:16]name=ofd_packets/00063078 [13:26:16]NVStorageSaveData ofd_packets/00063078 [13:26:16]File name is /storage/ofd_packets/00063078 [13:26:16]Write 431 bytes [13:26:16]NVStorageSaveData done [13:26:16]OFDSenderStorePacket done [13:26:16]KKMCreateOFDPacket done [13:26:16]NVStorageSaveData kkm_last_timestamp [13:26:16]File name is /storage/kkm_last_timestamp [13:26:16]Write 4 bytes [13:26:16]NVStorageSaveData done [13:26:16]ExternCall_PrintAddStr [13:26:16]wPrintStart [13:26:16]Write to MH i2c: 01 00 00 2F 10 3F [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 07 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [13:26:16]RasterBufferAndPrint [13:26:16]line Счет N : (3)47388 [13:26:16]line ИНН: 02508201610067 [13:26:16]line Контрольно-Кассовый Чек [13:26:16]line ПРОДАЖА [13:26:16]line Товар: 2000036210013 [13:26:16]line Кофе Капучино (GABB TRADE) [13:26:16]line 2.000 * 115.00 [13:26:16]line = 230.00 [13:26:16]line НДС 12% НСП 1% [13:26:16]line > о реализуемом товаре [13:26:17]line Товар: 4700000160211 [13:26:17]line Вода Легенда 0,5л [13:26:17]line 1.000 * 40.00 [13:26:17]line = 40.00 [13:26:17]line НДС 12% НСП 1% [13:26:17]line > о реализуемом товаре [13:26:17]line ИТОГО: 270.00 [13:26:17]line НСП 1% : 2.38 [13:26:17]line НДС 12% : 28.67 [13:26:17]line Наличными: 270.00 [13:26:17]line Безнал.: 0.00 [13:26:17]line Место: АЗС № 86 "Партнер Нефть" [13:26:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:26:17]line СНО: Общий режим [13:26:17]line Чек 75 21.10.2024 13:26 [13:26:17]line Смена: 544 ФФД: 1.0 [13:26:17]line ЗНМ: 0300000154 [13:26:17]line РНМ: 0000000000091619 [13:26:17]line Версия ККМ: 001 [13:26:17]line ФМ: 0000000000874676 [13:26:17]line ФД: 63078 [13:26:17]line ФПД: 92187486743182 [13:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132617&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63078&fm=92187486743182&tin=02508201610067®Number=0000000000091619&sum=27000 [13:26:17]line 0 [13:26:17]OFD Sender: Processing packet 63078 [packets to send 232, broken 231] [13:26:17]ProducePacketName [13:26:17]name=ofd_packets/00063078 [13:26:17]OFD Sender: To server: pG, [13:26:17]CommunicateWithHost lk.salyk.kg:30040 [13:26:17]ConnectInit lk.salyk.kg [13:26:17]written 0, free lines is 4095 [13:26:17]Connected sock=11 [13:26:17]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 91 01 00 00 B4 CB 89 01 B7 82 5A 03 01 00 03 00 7D 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 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 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 4B 00 00 00 F4 03 04 00 79 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 53 D8 12 66 6A 8E 8D 06 0F 24 AE 55 27 6D [13:26:17]Write to MH i2c: 01 00 00 5D 10 6D [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 07 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 D6 0C 56 [13:26:17]RasterBufferAndPrint [13:26:17]line [13:26:17]line [13:26:17]line [13:26:17]line [13:26:17]line [13:26:17]written 0, free lines is 3292 [13:26:17]MH_Cut [13:26:17]Write to MH i2c: D1 01 00 64 10 01 46 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: D1 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: D1 01 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: D1 01 00 64 10 00 45 [13:26:17]Write to MH i2c: 01 00 00 65 10 75 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26: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 5F 42 47 00 9D A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F6 00 00 F4 03 04 00 77 00 16 67 B6 04 01 00 00 E1 24 CC AA D2 22 78 A6 [13:26:17]CommunicateWithHost err = 0 [13:26:17]CheckOFDResponse [13:26:17]1017 (14) - 77093643461234 [13:26:17]1041 (16) - 0000000000874676 [13:26:17]1040 (4) - 63078 [13:26:17]1012 (4) - 21.10.2024 07:19 [13:26:17]1206 (1) - 0 [13:26:17]OFD Sender: Remove packet 63078 [13:26:17]ProducePacketName [13:26:17]name=ofd_packets/00063078 [13:26:17]NVStorageDeleteData [13:26:18]*** Cut start [13:26:18]*** Partial cut [13:26:18]*** CUTSNS_PIN = 1 [13:26:18]OFD Sender: No OFD packet to send [13:26:18]*** CUTSNS_PIN = 0 [13:26:18]*** Brake cut motor [13:26:19]Read from MH i2c: 01 [13:26:19]MH_I2C_Read... [13:26:19]*** Stop cut motor [13:26:19]*** Cut end [13:26:19]Read from MH i2c: 01 07 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [13:26:19]process_action close_receipt done [13:26:19]requested_data is exist [13:26:19]produce_requested_data [13:26:19]requested_item fm.sn is exist - process it [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 11 00 00 [13:26:19]Write to MH i2c: E2 08 00 66 10 80 11 00 00 00 00 00 00 F0 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 17 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 17 00 66 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 49 [13:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:26:19]wFMCommunicate OK [13:26:19]requested_item fd.num is exist - process it [13:26:19]SAM_PROTO_GetFieldsCounters [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 13 00 00 [13:26:19]Write to MH i2c: E2 08 00 67 10 80 13 00 00 00 00 00 00 F3 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 62 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 62 00 67 10 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 F6 00 00 0E 04 04 00 20 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 7A [13:26: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 66 F6 00 00 0E 04 04 00 20 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 [13:26:19]wFMCommunicate OK [13:26:19]SAM_PROTO_GetFieldsCounters done [13:26:19]requested_item shift.num is exist - process it [13:26:19]requested_item shift.opened is exist - process it [13:26:19]req_shift_opened [13:26:19]FM_GetShiftState [13:26:19]SAM_PROTO_GetShiftState [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 13 01 00 [13:26:19]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:19]Read from MH i2c: E2 0E 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 55 [13:26:19]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:26:19]wFMCommunicate OK [13:26:19]SAM_PROTO_GetShiftState done [13:26:19]FM_GetShiftState done [13:26:19]req_shift_opened done [13:26:19]requested_item shift.open_date is exist - process it [13:26:19]req_shift_open_date [13:26:19]req_shift_open_date done [13:26:19]produce_requested_data done [13:26:19]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63078,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:26:19]process_action_free close_receipt [13:26:19]json_value_free [13:26:19]json_value_free done [13:26:19]process_json_proto returns [13:26:19]Send response to host [13:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63078,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:26:19]free response buf [13:26:19]execute_script done [13:26:19]execute_script returns [13:26:19]free content buf [13:26:19]Sock 7.Close socket [13:26:19]Sock 7.Thread stoped [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:39]accept exits with 9 [13:26:39]New connection [13:26:39]New thread 3067198820 created [13:26:39]Thread 3067055460 joined [13:26:39]Waiting for new connection... [13:26:39] Sock 9.Parse request [13:26:39]Sock 9.Check first char [13:26:39]Sock 9.First char is OK [13:26:39]request: POST /json_proto HTTP/1.0 [13:26:39]Method: POST [13:26:39]URL: /json_proto [13:26:39]Method is POST - this is cgi request [13:26:39]url: /json_proto [13:26:39]query_string will be loaded in cgi processing [13:26:39]execute_cgi json_proto POST (null) [13:26:39]execute_cgi path=json_proto method=POST [13:26:39]POST find Content-Length [13:26:39]Host: 172.17.42.132:8080 [13:26:39]Content-Length: 746 [13:26:39]Content-Type: application/json [13:26:39] [13:26:39]POST finish read [13:26:39]Found Content-Length = 746 [13:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47389", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:39]execute_script... [13:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47389", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:39]POST & json_proto [13:26:39]process_json_proto [13:26:39]json parsed OK: [13:26:39]protocol is kg_v1.0 [13:26:39]action value=close_receipt [13:26:39]process_action close_receipt [13:26:39]cmd_close_receipt [13:26:39]MH_GetDate [13:26:39]Write to MH i2c: F0 00 00 69 10 68 [13:26:39]Write i2c OK [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: F0 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: F0 09 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: F0 09 00 69 10 00 92 56 16 67 4C DF 56 66 BD [13:26:39]GetLastDocTimeStamp 1729517177 [13:26:39]current date 1729517202 [13:26:39]FM_GetShiftState [13:26:39]SAM_PROTO_GetShiftState [13:26:39]wFMCommunicate request_size=4 [13:26:39]MH_SAM_APDU [13:26:39]CAPDU: 80 13 01 00 [13:26:39]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [13:26:39]Write i2c OK [13:26:39]MH_I2C_Read... [13:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:39]Read from MH i2c: E2 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 0E 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 57 [13:26:39]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:26:39]wFMCommunicate OK [13:26:39]SAM_PROTO_GetShiftState done [13:26:39]FM_GetShiftState done [13:26:39]opened in 1729469755 [13:26:39]opened+sec_in_day 1729556155 [13:26:39]quantity*price = 59000 [13:26:39]sum+1 = 59001 [13:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 76 21.10.2024 13:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63079 ФПД: 61801207888744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132642&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63079&fm=61801207888744&tin=02508201610067®Number=0000000000091619&sum=59000 0 [13:26:40]StoreToDocumentArchive [13:26:40]shift 544 fd 63079 [13:26:40]save to /storage/0544/doc_00063079 [13:26:40]save last doc name /storage/0544/doc_00063079 to /storage/kkm_last_doc_name [13:26:40]save OK [13:26:40]Clear old archive folders... [13:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=307 [13:26:40]tlvbuf is 01829A70 [13:26:40]SAM_PROTO_ClearQueue [13:26:40]wFMCommunicate request_size=4 [13:26:40]MH_SAM_APDU [13:26:40]CAPDU: 80 09 00 00 [13:26:40]Write to MH i2c: E2 08 00 77 10 80 09 00 00 00 00 00 00 F9 [13:26:40]Write i2c OK [13:26:40]MH_I2C_Read... [13:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:40]Read from MH i2c: E2 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 03 00 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [13:26:40]RAPDU: 90 00 [13:26:40]wFMCommunicate OK [13:26:40]SAM_PROTO_ClearQueue done [13:26:40]KKMCreateOFDPacket [13:26:40]OFDProtocolAddRootSTLVToBuf [13:26:40]FM_MakeSignedData [13:26:40]FM_MakeSignedData [13:26:40]SAM_PROTO_SignData [13:26:40]wFMCommunicate request_size=4 [13:26:40]MH_SAM_APDU [13:26:40]CAPDU: 80 0D 01 02 [13:26:40]Write to MH i2c: E2 08 00 78 10 80 0D 01 02 00 00 00 00 01 [13:26:40]Write i2c OK [13:26:40]MH_I2C_Read... [13:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:40]Read from MH i2c: E2 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 03 00 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [13:26:40]RAPDU: 90 00 [13:26:40]wFMCommunicate OK [13:26:40]wFMCommunicate request_size=255 [13:26:40]MH_SAM_APDU [13:26:40]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 56 16 67 0E 04 04 00 20 02 00 00 B9 04 [13:26:40]Write to MH i2c: E2 02 01 79 10 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 56 16 67 0E 04 04 00 20 02 00 00 B9 04 00 00 5B [13:26:40]Write i2c OK [13:26:40]MH_I2C_Read... [13:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:41]Read from MH i2c: E2 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 03 00 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [13:26:41]RAPDU: 90 00 [13:26:41]wFMCommunicate OK [13:26:41]wFMCommunicate request_size=66 [13:26:41]MH_SAM_APDU [13:26:41]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 38 35 37 0A FB 68 [13:26:41]Write to MH i2c: E2 45 00 7A 10 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 38 35 37 0A FB 68 00 00 CB [13:26:41]Write i2c OK [13:26:41]MH_I2C_Read... [13:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:41]Read from MH i2c: E2 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 03 00 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [13:26:41]RAPDU: 90 00 [13:26:41]wFMCommunicate OK [13:26:41]wFMCommunicate request_size=4 [13:26:41]MH_SAM_APDU [13:26:41]CAPDU: 80 0D 03 02 [13:26:41]Write to MH i2c: E2 08 00 7B 10 80 0D 03 02 00 00 00 00 06 [13:26:41]Write i2c OK [13:26:41]MH_I2C_Read... [13:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:41]Read from MH i2c: E2 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 0B 00 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 0B 00 7B 10 00 E0 7D 48 54 6F 00 CD 75 90 00 B1 [13:26:41]RAPDU: E0 7D 48 54 6F 00 CD 75 90 00 [13:26:41]wFMCommunicate OK [13:26:41]SAM_PROTO_SignData done [13:26:41]FM_MakeSignedData done [13:26:41]CreateOFDProtocolMessage [13:26:41]wFMCommunicate request_size=4 [13:26:41]MH_SAM_APDU [13:26:41]CAPDU: 80 11 00 00 [13:26:41]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [13:26:41]Write i2c OK [13:26:41]MH_I2C_Read... [13:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:41]Read from MH i2c: E2 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 17 00 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5F [13:26: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:26:41]wFMCommunicate OK [13:26:41]CreateOFDProtocolMessage done [13:26:41]OFDSenderStorePacket 63079 [13:26:41]StoreOFDPacket docnum=63079 [13:26: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 47 01 00 00 27 F6 3F 01 AA D2 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 38 35 37 0A FB 68 E0 7D 48 54 6F 00 CD 75 [13:26:41]CheckFolder [13:26:41]dirname=/storage/ofd_packets [13:26:41]CheckFolder done [13:26:41]ProducePacketName [13:26:41]name=ofd_packets/00063079 [13:26:41]NVStorageSaveData ofd_packets/00063079 [13:26:41]File name is /storage/ofd_packets/00063079 [13:26:41]Write 357 bytes [13:26:41]NVStorageSaveData done [13:26:41]OFDSenderStorePacket done [13:26:41]KKMCreateOFDPacket done [13:26:41]NVStorageSaveData kkm_last_timestamp [13:26:41]File name is /storage/kkm_last_timestamp [13:26:41]Write 4 bytes [13:26:41]NVStorageSaveData done [13:26:41]OFD Sender: Processing packet 63079 [packets to send 232, broken 231] [13:26:41]ProducePacketName [13:26:41]name=ofd_packets/00063079 [13:26:41]OFD Sender: To server: pG, [13:26:41]CommunicateWithHost lk.salyk.kg:30040 [13:26:41]ConnectInit lk.salyk.kg [13:26:41]ExternCall_PrintAddStr [13:26:41]wPrintStart [13:26:41]Write to MH i2c: 01 00 00 7D 10 8D [13:26:41]Write i2c OK [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: 01 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: 01 07 00 [13:26:41]MH_I2C_Read... [13:26:41]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [13:26:41]RasterBufferAndPrint [13:26:41]line Счет N : (3)47389 [13:26:41]line ИНН: 02508201610067 [13:26:41]line Контрольно-Кассовый Чек [13:26:41]line ПРОДАЖА [13:26:41]line Товар: 2000029770012 [13:26:41]line Очки солнцезащитные в ассортименте [13:26:41]line 1.000 * 590.00 [13:26:41]line = 590.00 [13:26:41]line НДС 12% НСП 1% [13:26:41]line > о реализуемом товаре [13:26:41]line ИТОГО: 590.00 [13:26:41]line НСП 1% : 5.22 [13:26:41]line НДС 12% : 62.65 [13:26:41]line Наличными: 590.00 [13:26:41]line Безнал.: 0.00 [13:26:41]line Место: АЗС № 86 "Партнер Нефть" [13:26:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:26:41]line СНО: Общий режим [13:26:41]line Чек 76 21.10.2024 13:26 [13:26:41]line Смена: 544 ФФД: 1.0 [13:26:41]line ЗНМ: 0300000154 [13:26:41]line РНМ: 0000000000091619 [13:26:41]line Версия ККМ: 001 [13:26:41]line ФМ: 0000000000874676 [13:26:41]line ФД: 63079 [13:26:41]line ФПД: 61801207888744 [13:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132642&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63079&fm=61801207888744&tin=02508201610067®Number=0000000000091619&sum=59000 [13:26:41]line 0 [13:26:41]written 0, free lines is 4095 [13:26:42]Connected sock=11 [13:26: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 47 01 00 00 27 F6 3F 01 AA D2 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 56 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 38 35 37 0A FB 68 E0 7D 48 54 6F 00 CD 75 [13:26:42]Write to MH i2c: 01 00 00 A6 10 B6 [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 07 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 04 0D CE [13:26:42]RasterBufferAndPrint [13:26:42]line [13:26:42]line [13:26:42]line [13:26:42]line [13:26:42]line [13:26:42]written 0, free lines is 3341 [13:26:42]MH_Cut [13:26:42]Write to MH i2c: D1 01 00 AD 10 01 8F [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: D1 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: D1 01 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: D1 01 00 AD 10 00 8E [13:26:42]Write to MH i2c: 01 00 00 AE 10 BE [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26: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 A8 07 47 00 7A 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F6 00 00 F4 03 04 00 8F 00 16 67 B6 04 01 00 00 09 F0 0B C2 54 CF 22 D3 [13:26:42]CommunicateWithHost err = 0 [13:26:42]CheckOFDResponse [13:26:42]1017 (14) - 77093643461234 [13:26:42]1041 (16) - 0000000000874676 [13:26:42]1040 (4) - 63079 [13:26:42]1012 (4) - 21.10.2024 07:19 [13:26:42]1206 (1) - 0 [13:26:42]OFD Sender: Remove packet 63079 [13:26:42]ProducePacketName [13:26:42]name=ofd_packets/00063079 [13:26:42]NVStorageDeleteData [13:26:42]*** Cut start [13:26:42]*** Partial cut [13:26:42]*** CUTSNS_PIN = 1 [13:26:42]*** CUTSNS_PIN = 0 [13:26:42]OFD Sender: No OFD packet to send [13:26:43]*** Brake cut motor [13:26:43]Read from MH i2c: 01 [13:26:43]MH_I2C_Read... [13:26:43]*** Stop cut motor [13:26:43]*** Cut end [13:26:43]Read from MH i2c: 01 07 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [13:26:43]process_action close_receipt done [13:26:43]requested_data is exist [13:26:43]produce_requested_data [13:26:43]requested_item fm.sn is exist - process it [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 11 00 00 [13:26:43]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 17 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 17 00 AF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 92 [13:26: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:26:43]wFMCommunicate OK [13:26:43]requested_item fd.num is exist - process it [13:26:43]SAM_PROTO_GetFieldsCounters [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 13 00 00 [13:26:43]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 62 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 62 00 B0 10 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 F6 00 00 0E 04 04 00 20 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 C7 [13:26: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 67 F6 00 00 0E 04 04 00 20 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 [13:26:43]wFMCommunicate OK [13:26:43]SAM_PROTO_GetFieldsCounters done [13:26:43]requested_item shift.num is exist - process it [13:26:43]requested_item shift.opened is exist - process it [13:26:43]req_shift_opened [13:26:43]FM_GetShiftState [13:26:43]SAM_PROTO_GetShiftState [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 13 01 00 [13:26:43]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 9E [13:26:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:26:43]wFMCommunicate OK [13:26:43]SAM_PROTO_GetShiftState done [13:26:43]FM_GetShiftState done [13:26:43]req_shift_opened done [13:26:43]requested_item shift.open_date is exist - process it [13:26:43]req_shift_open_date [13:26:43]req_shift_open_date done [13:26:43]produce_requested_data done [13:26:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63079,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:26:43]process_action_free close_receipt [13:26:43]json_value_free [13:26:43]json_value_free done [13:26:43]process_json_proto returns [13:26:43]Send response to host [13:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63079,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:26:43]free response buf [13:26:43]execute_script done [13:26:43]execute_script returns [13:26:43]free content buf [13:26:43]Sock 9.Close socket [13:26:43]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:53]accept exits with 10 [13:35:53]New connection [13:35:53]New thread 3067055460 created [13:35:53]Thread 3067198820 joined [13:35:53]Waiting for new connection... [13:35:53] Sock 10.Parse request [13:35:53]Sock 10.Check first char [13:35:53]Sock 10.First char is OK [13:35:53]request: POST /json_proto HTTP/1.0 [13:35:53]Method: POST [13:35:53]URL: /json_proto [13:35:53]Method is POST - this is cgi request [13:35:53]url: /json_proto [13:35:53]query_string will be loaded in cgi processing [13:35:53]execute_cgi json_proto POST (null) [13:35:53]execute_cgi path=json_proto method=POST [13:35:53]POST find Content-Length [13:35:53]Host: 172.17.42.132:8080 [13:35:53]Content-Length: 644 [13:35:53]Content-Type: application/json [13:35:53] [13:35:53]POST finish read [13:35:53]Found Content-Length = 644 [13:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47390", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:53]execute_script... [13:35: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)47390", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:53]POST & json_proto [13:35:53]process_json_proto [13:35:53]json parsed OK: [13:35:53]protocol is kg_v1.0 [13:35:53]action value=close_receipt [13:35:53]process_action close_receipt [13:35:53]cmd_close_receipt [13:35:53]MH_GetDate [13:35:53]Write to MH i2c: F0 00 00 B2 10 B1 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: F0 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: F0 09 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: F0 09 00 B2 10 00 BC 58 16 67 4C DF 56 66 32 [13:35:53]GetLastDocTimeStamp 1729517202 [13:35:53]current date 1729517756 [13:35:53]FM_GetShiftState [13:35:53]SAM_PROTO_GetShiftState [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 13 01 00 [13:35:53]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 0E 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A0 [13:35:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:35:53]wFMCommunicate OK [13:35:53]SAM_PROTO_GetShiftState done [13:35:53]FM_GetShiftState done [13:35:53]opened in 1729469755 [13:35:53]opened+sec_in_day 1729556155 [13:35:53]quantity*price = 2000 [13:35:53]sum+1 = 2001 [13:35:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 21.10.2024 13:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63080 ФПД: 263975749401125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133556&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63080&fm=263975749401125&tin=02508201610067®Number=0000000000091619&sum=2000 0 [13:35:55]StoreToDocumentArchive [13:35:55]shift 544 fd 63080 [13:35:55]save to /storage/0544/doc_00063080 [13:35:55]save last doc name /storage/0544/doc_00063080 to /storage/kkm_last_doc_name [13:35:55]save OK [13:35:55]Clear old archive folders... [13:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:35:55]tlvbuf is 018BB530 [13:35:55]SAM_PROTO_ClearQueue [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 09 00 00 [13:35:55]Write to MH i2c: E2 08 00 C0 10 80 09 00 00 00 00 00 00 42 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_ClearQueue done [13:35:55]KKMCreateOFDPacket [13:35:55]OFDProtocolAddRootSTLVToBuf [13:35:55]FM_MakeSignedData [13:35:55]FM_MakeSignedData [13:35:55]SAM_PROTO_SignData [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 01 02 [13:35:55]Write to MH i2c: E2 08 00 C1 10 80 0D 01 02 00 00 00 00 4A [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=255 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 BC 58 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [13:35:55]Write to MH i2c: E2 02 01 C2 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 BC 58 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 B2 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=39 [13:35:55]MH_SAM_APDU [13:35:55]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 68 F6 00 00 35 04 06 00 F0 15 A4 C5 BA 25 [13:35:55]Write to MH i2c: E2 2A 00 C3 10 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 68 F6 00 00 35 04 06 00 F0 15 A4 C5 BA 25 00 00 B9 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 03 02 [13:35:55]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0B 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0B 00 C4 10 00 29 3D A1 D8 4C 00 A1 17 90 00 33 [13:35:55]RAPDU: 29 3D A1 D8 4C 00 A1 17 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_SignData done [13:35:55]FM_MakeSignedData done [13:35:55]CreateOFDProtocolMessage [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 11 00 00 [13:35:55]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A8 [13:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:35:55]wFMCommunicate OK [13:35:55]CreateOFDProtocolMessage done [13:35:55]OFDSenderStorePacket 63080 [13:35:55]StoreOFDPacket docnum=63080 [13:35: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 2C 01 00 00 27 8A 24 01 19 74 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 BC 58 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F0 15 A4 C5 BA 25 29 3D A1 D8 4C 00 A1 17 [13:35:55]CheckFolder [13:35:55]dirname=/storage/ofd_packets [13:35:55]CheckFolder done [13:35:55]ProducePacketName [13:35:55]name=ofd_packets/00063080 [13:35:55]NVStorageSaveData ofd_packets/00063080 [13:35:55]File name is /storage/ofd_packets/00063080 [13:35:55]Write 330 bytes [13:35:55]NVStorageSaveData done [13:35:55]OFDSenderStorePacket done [13:35:55]KKMCreateOFDPacket done [13:35:55]NVStorageSaveData kkm_last_timestamp [13:35:55]File name is /storage/kkm_last_timestamp [13:35:55]Write 4 bytes [13:35:55]NVStorageSaveData done [13:35:55]ExternCall_PrintAddStr [13:35:55]wPrintStart [13:35:55]Write to MH i2c: 01 00 00 C6 10 D6 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [13:35:55]RasterBufferAndPrint [13:35:55]line Счет N : (3)47390 [13:35:55]line ИНН: 02508201610067 [13:35:55]line Контрольно-Кассовый Чек [13:35:55]line ПРОДАЖА [13:35:55]line Товар: 46226617 [13:35:55]line Mentos ПВ Нежная Мята 6*100*2г [13:35:55]line 2.000 * 10.00 [13:35:55]line = 20.00 [13:35:55]line НДС 12% НСП 1% [13:35:55]line > о реализуемом товаре [13:35:55]line ИТОГО: 20.00 [13:35:55]line НСП 1% : 0.18 [13:35:55]line НДС 12% : 2.12 [13:35:55]line Наличными: 20.00 [13:35:55]line Безнал.: 0.00 [13:35:55]line Место: АЗС № 86 "Партнер Нефть" [13:35:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:35:55]line СНО: Общий режим [13:35:55]line Чек 77 21.10.2024 13:35 [13:35:55]line Смена: 544 ФФД: 1.0 [13:35:55]line ЗНМ: 0300000154 [13:35:55]line РНМ: 0000000000091619 [13:35:55]line Версия ККМ: 001 [13:35:55]line ФМ: 0000000000874676 [13:35:55]line ФД: 63080 [13:35:55]line ФПД: 263975749401125 [13:35:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133556&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63080&fm=263975749401125&tin=02508201610067®Number=0000000000091619&sum=2000 [13:35:55]line 0 [13:35:55]OFD Sender: Processing packet 63080 [packets to send 232, broken 231] [13:35:55]ProducePacketName [13:35:55]name=ofd_packets/00063080 [13:35:55]OFD Sender: To server: pG, [13:35:55]CommunicateWithHost lk.salyk.kg:30040 [13:35:55]ConnectInit lk.salyk.kg [13:35:55]written 0, free lines is 4095 [13:35:56]Write to MH i2c: 01 00 00 EF 10 FF [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 EF 10 00 00 00 00 00 ED 0C FF [13:35:56]RasterBufferAndPrint [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]written 0, free lines is 3315 [13:35:56]Connected sock=11 [13:35:56]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 27 8A 24 01 19 74 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 BC 58 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F0 15 A4 C5 BA 25 29 3D A1 D8 4C 00 A1 17 [13:35:56]MH_Cut [13:35:56]Write to MH i2c: D1 01 00 F6 10 01 D8 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 01 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 01 00 F6 10 00 D7 [13:35:56]Write to MH i2c: 01 00 00 F7 10 07 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35: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 54 EA 47 00 38 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F6 00 00 F4 03 04 00 B9 02 16 67 B6 04 01 00 00 A1 FB 30 1F 35 41 2A E5 [13:35:56]CommunicateWithHost err = 0 [13:35:56]CheckOFDResponse [13:35:56]1017 (14) - 77093643461234 [13:35:56]1041 (16) - 0000000000874676 [13:35:56]1040 (4) - 63080 [13:35:56]1012 (4) - 21.10.2024 07:28 [13:35:56]1206 (1) - 0 [13:35:56]OFD Sender: Remove packet 63080 [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00063080 [13:35:56]NVStorageDeleteData [13:35:57]*** Cut start [13:35:57]*** Partial cut [13:35:57]*** CUTSNS_PIN = 1 [13:35:57]*** CUTSNS_PIN = 0 [13:35:57]OFD Sender: No OFD packet to send [13:35:57]*** Brake cut motor [13:35:57]Read from MH i2c: 01 [13:35:57]MH_I2C_Read... [13:35:57]*** Stop cut motor [13:35:57]*** Cut end [13:35:57]Read from MH i2c: 01 07 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 FF 0F 1C [13:35:57]process_action close_receipt done [13:35:57]requested_data is exist [13:35:57]produce_requested_data [13:35:57]requested_item fm.sn is exist - process it [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 11 00 00 [13:35:57]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 17 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DB [13:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:35:57]wFMCommunicate OK [13:35:57]requested_item fd.num is exist - process it [13:35:57]SAM_PROTO_GetFieldsCounters [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 13 00 00 [13:35:57]Write to MH i2c: E2 08 00 F9 10 80 13 00 00 00 00 00 00 85 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 62 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 62 00 F9 10 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 F6 00 00 0E 04 04 00 20 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 14 [13:35: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 68 F6 00 00 0E 04 04 00 20 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 [13:35:57]wFMCommunicate OK [13:35:57]SAM_PROTO_GetFieldsCounters done [13:35:57]requested_item shift.num is exist - process it [13:35:57]requested_item shift.opened is exist - process it [13:35:57]req_shift_opened [13:35:57]FM_GetShiftState [13:35:57]SAM_PROTO_GetShiftState [13:35:57]wFMCommunicate request_size=4 [13:35:57]MH_SAM_APDU [13:35:57]CAPDU: 80 13 01 00 [13:35:57]Write to MH i2c: E2 08 00 FA 10 80 13 01 00 00 00 00 00 87 [13:35:57]Write i2c OK [13:35:57]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 0E 00 [13:35:57]MH_I2C_Read... [13:35:57]Read from MH i2c: E2 0E 00 FA 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E7 [13:35:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:35:57]wFMCommunicate OK [13:35:57]SAM_PROTO_GetShiftState done [13:35:57]FM_GetShiftState done [13:35:57]req_shift_opened done [13:35:57]requested_item shift.open_date is exist - process it [13:35:57]req_shift_open_date [13:35:57]req_shift_open_date done [13:35:57]produce_requested_data done [13:35:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63080,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:35:57]process_action_free close_receipt [13:35:57]json_value_free [13:35:57]json_value_free done [13:35:57]process_json_proto returns [13:35:57]Send response to host [13:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63080,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:35:57]free response buf [13:35:57]execute_script done [13:35:57]execute_script returns [13:35:57]free content buf [13:35:57]Sock 10.Close socket [13:35:57]Sock 10.Thread stoped [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:36]accept exits with 7 [13:49:36]New connection [13:49:36]New thread 3067198820 created [13:49:36]Thread 3067055460 joined [13:49:36]Waiting for new connection... [13:49:36] Sock 7.Parse request [13:49:36]Sock 7.Check first char [13:49:36]Sock 7.First char is OK [13:49:36]request: POST /json_proto HTTP/1.0 [13:49:36]Method: POST [13:49:36]URL: /json_proto [13:49:36]Method is POST - this is cgi request [13:49:36]url: /json_proto [13:49:36]query_string will be loaded in cgi processing [13:49:36]execute_cgi json_proto POST (null) [13:49:36]execute_cgi path=json_proto method=POST [13:49:36]POST find Content-Length [13:49:36]Host: 172.17.42.132:8080 [13:49:36]Content-Length: 678 [13:49:36]Content-Type: application/json [13:49:36] [13:49:36]POST finish read [13:49:36]Found Content-Length = 678 [13:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47391", "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:49:36]execute_script... [13:49:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47391", "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:49:36]POST & json_proto [13:49:36]process_json_proto [13:49:36]json parsed OK: [13:49:36]protocol is kg_v1.0 [13:49:36]action value=close_receipt [13:49:36]process_action close_receipt [13:49:36]cmd_close_receipt [13:49:36]MH_GetDate [13:49:36]Write to MH i2c: F0 00 00 FB 10 FA [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 09 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 09 00 FB 10 00 F3 5B 16 67 4C DF 56 66 B5 [13:49:36]GetLastDocTimeStamp 1729517756 [13:49:36]current date 1729518579 [13:49:36]FM_GetShiftState [13:49:36]SAM_PROTO_GetShiftState [13:49:36]wFMCommunicate request_size=4 [13:49:36]MH_SAM_APDU [13:49:36]CAPDU: 80 13 01 00 [13:49:36]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:36]Read from MH i2c: E2 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 0E 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 0E 00 FC 10 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E9 [13:49:36]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:49:36]wFMCommunicate OK [13:49:36]SAM_PROTO_GetShiftState done [13:49:36]FM_GetShiftState done [13:49:36]opened in 1729469755 [13:49:36]opened+sec_in_day 1729556155 [13:49:36]quantity*price = 8000 [13:49:36]sum+1 = 8001 [13:49:36]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 СНО: Общий режим Чек 78 21.10.2024 13:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63081 ФПД: 23003744528769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134939&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63081&fm=23003744528769&tin=02508201610067®Number=0000000000091619&sum=8000 0 [13:49:37]StoreToDocumentArchive [13:49:37]shift 544 fd 63081 [13:49:37]save to /storage/0544/doc_00063081 [13:49:37]save last doc name /storage/0544/doc_00063081 to /storage/kkm_last_doc_name [13:49:37]save OK [13:49:37]Clear old archive folders... [13:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:49:37]tlvbuf is 018CEAA0 [13:49:37]SAM_PROTO_ClearQueue [13:49:37]wFMCommunicate request_size=4 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 09 00 00 [13:49:37]Write to MH i2c: E2 08 00 09 11 80 09 00 00 00 00 00 00 8C [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [13:49:38]RAPDU: 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_ClearQueue done [13:49:38]KKMCreateOFDPacket [13:49:38]OFDProtocolAddRootSTLVToBuf [13:49:38]FM_MakeSignedData [13:49:38]FM_MakeSignedData [13:49:38]SAM_PROTO_SignData [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 0D 01 02 [13:49:38]Write to MH i2c: E2 08 00 0A 11 80 0D 01 02 00 00 00 00 94 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [13:49:38]RAPDU: 90 00 [13:49:38]wFMCommunicate OK [13:49:38]wFMCommunicate request_size=255 [13:49:38]MH_SAM_APDU [13:49: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 4E 00 00 00 F4 03 04 00 F3 5B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:49:38]Write to MH i2c: E2 02 01 0B 11 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 4E 00 00 00 F4 03 04 00 F3 5B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D1 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [13:49:38]RAPDU: 90 00 [13:49:38]wFMCommunicate OK [13:49:38]wFMCommunicate request_size=53 [13:49:38]MH_SAM_APDU [13:49:38]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 69 F6 00 00 35 04 06 00 14 EB FA 05 69 81 [13:49:38]Write to MH i2c: E2 38 00 0C 11 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 69 F6 00 00 35 04 06 00 14 EB FA 05 69 81 00 00 DA [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [13:49:38]RAPDU: 90 00 [13:49:38]wFMCommunicate OK [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 0D 03 02 [13:49:38]Write to MH i2c: E2 08 00 0D 11 80 0D 03 02 00 00 00 00 99 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0B 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0B 00 0D 11 00 F0 EB DD F6 83 84 8F 95 90 00 73 [13:49:38]RAPDU: F0 EB DD F6 83 84 8F 95 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_SignData done [13:49:38]FM_MakeSignedData done [13:49:38]CreateOFDProtocolMessage [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 11 00 00 [13:49:38]Write to MH i2c: E2 08 00 0E 11 80 11 00 00 00 00 00 00 99 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 0E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F2 [13:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:49:38]wFMCommunicate OK [13:49:38]CreateOFDProtocolMessage done [13:49:38]OFDSenderStorePacket 63081 [13:49:38]StoreOFDPacket docnum=63081 [13:49: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 3A 01 00 00 75 FD 32 01 2F D4 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 4E 00 00 00 F4 03 04 00 F3 5B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 14 EB FA 05 69 81 F0 EB DD F6 83 84 8F 95 [13:49:38]CheckFolder [13:49:38]dirname=/storage/ofd_packets [13:49:38]CheckFolder done [13:49:38]ProducePacketName [13:49:38]name=ofd_packets/00063081 [13:49:38]NVStorageSaveData ofd_packets/00063081 [13:49:38]File name is /storage/ofd_packets/00063081 [13:49:38]Write 344 bytes [13:49:38]NVStorageSaveData done [13:49:38]OFDSenderStorePacket done [13:49:38]KKMCreateOFDPacket done [13:49:38]NVStorageSaveData kkm_last_timestamp [13:49:38]File name is /storage/kkm_last_timestamp [13:49:38]Write 4 bytes [13:49:38]NVStorageSaveData done [13:49:38]ExternCall_PrintAddStr [13:49:38]wPrintStart [13:49:38]Write to MH i2c: 01 00 00 0F 11 20 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 FF 0F 35 [13:49:38]RasterBufferAndPrint [13:49:38]line Счет N : (3)47391 [13:49:38]line ИНН: 02508201610067 [13:49:38]line Контрольно-Кассовый Чек [13:49:38]line ПРОДАЖА [13:49:38]line Товар: 4700003010353 [13:49:38]line Напиток Let`s Go! с/с груша ПЭТ 1л [13:49:38]line 1.000 * 80.00 [13:49:38]line = 80.00 [13:49:38]line НДС 12% НСП 1% [13:49:38]line > о реализуемом товаре [13:49:38]line ИТОГО: 80.00 [13:49:38]line НСП 1% : 0.71 [13:49:38]line НДС 12% : 8.50 [13:49:38]line Наличными: 80.00 [13:49:38]line Безнал.: 0.00 [13:49:38]line Место: АЗС № 86 "Партнер Нефть" [13:49:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:49:38]line СНО: Общий режим [13:49:38]line Чек 78 21.10.2024 13:49 [13:49:38]line Смена: 544 ФФД: 1.0 [13:49:38]line ЗНМ: 0300000154 [13:49:38]line РНМ: 0000000000091619 [13:49:38]line Версия ККМ: 001 [13:49:38]line ФМ: 0000000000874676 [13:49:38]line ФД: 63081 [13:49:38]line ФПД: 23003744528769 [13:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134939&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63081&fm=23003744528769&tin=02508201610067®Number=0000000000091619&sum=8000 [13:49:38]line 0 [13:49:38]OFD Sender: Processing packet 63081 [packets to send 232, broken 231] [13:49:38]ProducePacketName [13:49:38]name=ofd_packets/00063081 [13:49:38]OFD Sender: To server: pG, [13:49:38]CommunicateWithHost lk.salyk.kg:30040 [13:49:38]ConnectInit lk.salyk.kg [13:49:38]written 0, free lines is 4095 [13:49:39]Connected sock=10 [13:49: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 75 FD 32 01 2F D4 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 4E 00 00 00 F4 03 04 00 F3 5B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 14 EB FA 05 69 81 F0 EB DD F6 83 84 8F 95 [13:49:39]Write to MH i2c: 01 00 00 38 11 49 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 38 11 00 00 00 00 00 09 0D 66 [13:49:39]RasterBufferAndPrint [13:49:39]line [13:49:39]line [13:49:39]line [13:49:39]line [13:49:39]line [13:49:39]written 0, free lines is 3344 [13:49:39]MH_Cut [13:49:39]Write to MH i2c: D1 01 00 3F 11 01 22 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: D1 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: D1 01 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: D1 01 00 3F 11 00 21 [13:49:39]Write to MH i2c: 01 00 00 40 11 51 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49: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 02 BC 47 00 AA 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F6 00 00 F4 03 04 00 F0 05 16 67 B6 04 01 00 00 77 60 82 CA BF B5 6A B8 [13:49:39]CommunicateWithHost err = 0 [13:49:39]CheckOFDResponse [13:49:39]1017 (14) - 77093643461234 [13:49:39]1041 (16) - 0000000000874676 [13:49:39]1040 (4) - 63081 [13:49:39]1012 (4) - 21.10.2024 07:42 [13:49:39]1206 (1) - 0 [13:49:39]OFD Sender: Remove packet 63081 [13:49:39]ProducePacketName [13:49:39]name=ofd_packets/00063081 [13:49:39]NVStorageDeleteData [13:49:39]OFD Sender: No OFD packet to send [13:49:39]*** Cut start [13:49:39]*** Partial cut [13:49:39]*** CUTSNS_PIN = 1 [13:49:40]*** CUTSNS_PIN = 0 [13:49:40]*** Brake cut motor [13:49:40]Read from MH i2c: 01 [13:49:40]MH_I2C_Read... [13:49:40]*** Stop cut motor [13:49:40]*** Cut end [13:49:40]Read from MH i2c: 01 07 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 FF 0F 66 [13:49:40]process_action close_receipt done [13:49:40]requested_data is exist [13:49:40]produce_requested_data [13:49:40]requested_item fm.sn is exist - process it [13:49:40]wFMCommunicate request_size=4 [13:49:40]MH_SAM_APDU [13:49:40]CAPDU: 80 11 00 00 [13:49:40]Write to MH i2c: E2 08 00 41 11 80 11 00 00 00 00 00 00 CC [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:40]Read from MH i2c: E2 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 17 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 17 00 41 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 25 [13:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:49:40]wFMCommunicate OK [13:49:40]requested_item fd.num is exist - process it [13:49:40]SAM_PROTO_GetFieldsCounters [13:49:40]wFMCommunicate request_size=4 [13:49:40]MH_SAM_APDU [13:49:40]CAPDU: 80 13 00 00 [13:49:40]Write to MH i2c: E2 08 00 42 11 80 13 00 00 00 00 00 00 CF [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:40]Read from MH i2c: E2 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 62 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 62 00 42 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 69 F6 00 00 0E 04 04 00 20 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 62 [13:49: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 69 F6 00 00 0E 04 04 00 20 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 [13:49:40]wFMCommunicate OK [13:49:40]SAM_PROTO_GetFieldsCounters done [13:49:40]requested_item shift.num is exist - process it [13:49:40]requested_item shift.opened is exist - process it [13:49:40]req_shift_opened [13:49:40]FM_GetShiftState [13:49:40]SAM_PROTO_GetShiftState [13:49:40]wFMCommunicate request_size=4 [13:49:40]MH_SAM_APDU [13:49:40]CAPDU: 80 13 01 00 [13:49:40]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:40]Read from MH i2c: E2 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 0E 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 31 [13:49:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:49:40]wFMCommunicate OK [13:49:40]SAM_PROTO_GetShiftState done [13:49:40]FM_GetShiftState done [13:49:40]req_shift_opened done [13:49:40]requested_item shift.open_date is exist - process it [13:49:40]req_shift_open_date [13:49:40]req_shift_open_date done [13:49:40]produce_requested_data done [13:49:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63081,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:49:40]process_action_free close_receipt [13:49:40]json_value_free [13:49:40]json_value_free done [13:49:40]process_json_proto returns [13:49:40]Send response to host [13:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63081,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:49:40]free response buf [13:49:40]execute_script done [13:49:40]execute_script returns [13:49:40]free content buf [13:49:40]Sock 7.Close socket [13:49:40]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]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:19]accept exits with 9 [13:57:19]New connection [13:57:19]New thread 3067055460 created [13:57:19]Thread 3067198820 joined [13:57:19]Waiting for new connection... [13:57:19] Sock 9.Parse request [13:57:19]Sock 9.Check first char [13:57:19]Sock 9.First char is OK [13:57:19]request: POST /json_proto HTTP/1.0 [13:57:19]Method: POST [13:57:19]URL: /json_proto [13:57:19]Method is POST - this is cgi request [13:57:19]url: /json_proto [13:57:19]query_string will be loaded in cgi processing [13:57:19]execute_cgi json_proto POST (null) [13:57:19]execute_cgi path=json_proto method=POST [13:57:19]POST find Content-Length [13:57:19]Host: 172.17.42.132:8080 [13:57:19]Content-Length: 893 [13:57:19]Content-Type: application/json [13:57:19] [13:57:19]POST finish read [13:57:19]Found Content-Length = 893 [13:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47392", "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 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:19]execute_script... [13:57: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)47392", "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 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:19]POST & json_proto [13:57:19]process_json_proto [13:57:19]json parsed OK: [13:57:19]protocol is kg_v1.0 [13:57:19]action value=close_receipt [13:57:19]process_action close_receipt [13:57:19]cmd_close_receipt [13:57:19]MH_GetDate [13:57:19]Write to MH i2c: F0 00 00 44 11 44 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 09 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 09 00 44 11 00 C2 5D 16 67 4C DF 56 66 D0 [13:57:19]GetLastDocTimeStamp 1729518579 [13:57:19]current date 1729519042 [13:57:19]FM_GetShiftState [13:57:19]SAM_PROTO_GetShiftState [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 13 01 00 [13:57:19]Write to MH i2c: E2 08 00 45 11 80 13 01 00 00 00 00 00 D3 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0E 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0E 00 45 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 33 [13:57:20]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:57:20]wFMCommunicate OK [13:57:20]SAM_PROTO_GetShiftState done [13:57:20]FM_GetShiftState done [13:57:20]opened in 1729469755 [13:57:20]opened+sec_in_day 1729556155 [13:57:20]quantity*price = 6900 [13:57:20]sum+1 = 6901 [13:57:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 219.00 НСП 1% : 1.94 НДС 12% : 23.26 Наличными: 219.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 21.10.2024 13:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63082 ФПД: 38623489905065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135722&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63082&fm=38623489905065&tin=02508201610067®Number=0000000000091619&sum=21900 0 [13:57:21]StoreToDocumentArchive [13:57:21]shift 544 fd 63082 [13:57:21]save to /storage/0544/doc_00063082 [13:57:21]save last doc name /storage/0544/doc_00063082 to /storage/kkm_last_doc_name [13:57:21]save OK [13:57:21]Clear old archive folders... [13:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=398 [13:57:21]tlvbuf is 018CE5E0 [13:57:21]SAM_PROTO_ClearQueue [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 09 00 00 [13:57:21]Write to MH i2c: E2 08 00 52 11 80 09 00 00 00 00 00 00 D5 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [13:57:21]RAPDU: 90 00 [13:57:21]wFMCommunicate OK [13:57:21]SAM_PROTO_ClearQueue done [13:57:21]KKMCreateOFDPacket [13:57:21]OFDProtocolAddRootSTLVToBuf [13:57:21]FM_MakeSignedData [13:57:21]FM_MakeSignedData [13:57:21]SAM_PROTO_SignData [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 0D 01 02 [13:57:21]Write to MH i2c: E2 08 00 53 11 80 0D 01 02 00 00 00 00 DD [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [13:57:21]RAPDU: 90 00 [13:57:21]wFMCommunicate OK [13:57:21]wFMCommunicate request_size=255 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 0D 02 02 FA 03 00 8E 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 [13:57:21]Write to MH i2c: E2 02 01 54 11 80 0D 02 02 FA 00 03 00 8E 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 00 82 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [13:57:21]RAPDU: 90 00 [13:57:21]wFMCommunicate OK [13:57:21]wFMCommunicate request_size=157 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 5D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 23 20 BB 65 51 A9 [13:57:21]Write to MH i2c: E2 A0 00 55 11 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 5D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 23 20 BB 65 51 A9 00 00 CC [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [13:57:21]RAPDU: 90 00 [13:57:21]wFMCommunicate OK [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 0D 03 02 [13:57:21]Write to MH i2c: E2 08 00 56 11 80 0D 03 02 00 00 00 00 E2 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 0B 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 0B 00 56 11 00 74 34 63 E2 82 E5 B1 56 90 00 3E [13:57:21]RAPDU: 74 34 63 E2 82 E5 B1 56 90 00 [13:57:21]wFMCommunicate OK [13:57:21]SAM_PROTO_SignData done [13:57:21]FM_MakeSignedData done [13:57:21]CreateOFDProtocolMessage [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 11 00 00 [13:57:21]Write to MH i2c: E2 08 00 57 11 80 11 00 00 00 00 00 00 E2 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 17 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 17 00 57 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3B [13:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:57:21]wFMCommunicate OK [13:57:21]CreateOFDProtocolMessage done [13:57:21]OFDSenderStorePacket 63082 [13:57:21]StoreOFDPacket docnum=63082 [13:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A2 01 00 00 1E 02 9A 01 77 92 5A 03 01 00 03 00 8E 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 5D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 23 20 BB 65 51 A9 74 34 63 E2 82 E5 B1 56 [13:57:21]CheckFolder [13:57:21]dirname=/storage/ofd_packets [13:57:21]CheckFolder done [13:57:21]ProducePacketName [13:57:21]name=ofd_packets/00063082 [13:57:21]NVStorageSaveData ofd_packets/00063082 [13:57:21]File name is /storage/ofd_packets/00063082 [13:57:21]Write 448 bytes [13:57:21]NVStorageSaveData done [13:57:21]OFDSenderStorePacket done [13:57:21]KKMCreateOFDPacket done [13:57:21]NVStorageSaveData kkm_last_timestamp [13:57:21]File name is /storage/kkm_last_timestamp [13:57:21]Write 4 bytes [13:57:21]NVStorageSaveData done [13:57:21]ExternCall_PrintAddStr [13:57:21]wPrintStart [13:57:21]Write to MH i2c: 01 00 00 58 11 69 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 FF 0F 7E [13:57:21]RasterBufferAndPrint [13:57:21]line Счет N : (3)47392 [13:57:21]line ИНН: 02508201610067 [13:57:21]line Контрольно-Кассовый Чек [13:57:21]line ПРОДАЖА [13:57:21]line Товар: 4600682557456 [13:57:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [13:57:21]line 1.000 * 69.00 [13:57:21]line = 69.00 [13:57:21]line НДС 12% НСП 1% [13:57:22]line > о реализуемом товаре [13:57:22]line Товар: 4640030091645 [13:57:22]line Сигареты ESSE Exchange M [13:57:22]line 1.000 * 150.00 [13:57:22]line = 150.00 [13:57:22]line НДС 12% НСП 1% [13:57:22]line > о реализуемом товаре [13:57:22]line ИТОГО: 219.00 [13:57:22]line НСП 1% : 1.94 [13:57:22]line НДС 12% : 23.26 [13:57:22]line Наличными: 219.00 [13:57:22]line Безнал.: 0.00 [13:57:22]line Место: АЗС № 86 "Партнер Нефть" [13:57:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:57:22]line СНО: Общий режим [13:57:22]line Чек 79 21.10.2024 13:57 [13:57:22]line Смена: 544 ФФД: 1.0 [13:57:22]line ЗНМ: 0300000154 [13:57:22]line РНМ: 0000000000091619 [13:57:22]line Версия ККМ: 001 [13:57:22]line ФМ: 0000000000874676 [13:57:22]line ФД: 63082 [13:57:22]line ФПД: 38623489905065 [13:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135722&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63082&fm=38623489905065&tin=02508201610067®Number=0000000000091619&sum=21900 [13:57:22]line 0 [13:57:22]OFD Sender: Processing packet 63082 [packets to send 232, broken 231] [13:57:22]ProducePacketName [13:57:22]name=ofd_packets/00063082 [13:57:22]OFD Sender: To server: pG, [13:57:22]CommunicateWithHost lk.salyk.kg:30040 [13:57:22]ConnectInit lk.salyk.kg [13:57:22]written 0, free lines is 4095 [13:57:22]Connected sock=10 [13:57: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 A2 01 00 00 1E 02 9A 01 77 92 5A 03 01 00 03 00 8E 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 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C2 5D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 23 20 BB 65 51 A9 74 34 63 E2 82 E5 B1 56 [13:57:22]Write to MH i2c: 01 00 00 87 11 98 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: 01 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: 01 07 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 D6 0C 81 [13:57:22]RasterBufferAndPrint [13:57:22]line [13:57:22]line [13:57:22]line [13:57:22]line [13:57:22]line [13:57:22]written 0, free lines is 3295 [13:57:22]MH_Cut [13:57:22]Write to MH i2c: D1 01 00 8E 11 01 71 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: D1 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: D1 01 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: D1 01 00 8E 11 00 70 [13:57:22]Write to MH i2c: 01 00 00 8F 11 A0 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]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 76 47 00 ED A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F6 00 00 F4 03 04 00 C0 07 16 67 B6 04 01 00 00 FD 0D 1E 34 5E E3 40 0B [13:57:22]CommunicateWithHost err = 0 [13:57:22]CheckOFDResponse [13:57:22]1017 (14) - 77093643461234 [13:57:22]1041 (16) - 0000000000874676 [13:57:22]1040 (4) - 63082 [13:57:22]1012 (4) - 21.10.2024 07:50 [13:57:22]1206 (1) - 0 [13:57:22]OFD Sender: Remove packet 63082 [13:57:22]ProducePacketName [13:57:22]name=ofd_packets/00063082 [13:57:22]NVStorageDeleteData [13:57:23]OFD Sender: No OFD packet to send [13:57:23]*** Cut start [13:57:23]*** Partial cut [13:57:23]*** CUTSNS_PIN = 1 [13:57:23]*** CUTSNS_PIN = 0 [13:57:23]*** Brake cut motor [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]*** Stop cut motor [13:57:24]*** Cut end [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [13:57:24]process_action close_receipt done [13:57:24]requested_data is exist [13:57:24]produce_requested_data [13:57:24]requested_item fm.sn is exist - process it [13:57:24]wFMCommunicate request_size=4 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 11 00 00 [13:57:24]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 74 [13:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:57:24]wFMCommunicate OK [13:57:24]requested_item fd.num is exist - process it [13:57:24]SAM_PROTO_GetFieldsCounters [13:57:24]wFMCommunicate request_size=4 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 13 00 00 [13:57:24]Write to MH i2c: E2 08 00 91 11 80 13 00 00 00 00 00 00 1E [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 62 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 62 00 91 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 6A F6 00 00 0E 04 04 00 20 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 B5 [13:57: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 6A F6 00 00 0E 04 04 00 20 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 [13:57:24]wFMCommunicate OK [13:57:24]SAM_PROTO_GetFieldsCounters done [13:57:24]requested_item shift.num is exist - process it [13:57:24]requested_item shift.opened is exist - process it [13:57:24]req_shift_opened [13:57:24]FM_GetShiftState [13:57:24]SAM_PROTO_GetShiftState [13:57:24]wFMCommunicate request_size=4 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 13 01 00 [13:57:24]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 0E 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 80 [13:57:24]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:57:24]wFMCommunicate OK [13:57:24]SAM_PROTO_GetShiftState done [13:57:24]FM_GetShiftState done [13:57:24]req_shift_opened done [13:57:24]requested_item shift.open_date is exist - process it [13:57:24]req_shift_open_date [13:57:24]req_shift_open_date done [13:57:24]produce_requested_data done [13:57:24]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63082,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:57:24]process_action_free close_receipt [13:57:24]json_value_free [13:57:24]json_value_free done [13:57:24]process_json_proto returns [13:57:24]Send response to host [13:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63082,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:57:24]free response buf [13:57:24]execute_script done [13:57:24]execute_script returns [13:57:24]free content buf [13:57:24]Sock 9.Close socket [13:57:24]Sock 9.Thread stoped [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:19]accept exits with 7 [13:59:19]New connection [13:59:19]New thread 3067198820 created [13:59:19]Thread 3067055460 joined [13:59:19]Waiting for new connection... [13:59:19] Sock 7.Parse request [13:59:19]Sock 7.Check first char [13:59:19]Sock 7.First char is OK [13:59:19]request: POST /json_proto HTTP/1.0 [13:59:19]Method: POST [13:59:19]URL: /json_proto [13:59:19]Method is POST - this is cgi request [13:59:19]url: /json_proto [13:59:19]query_string will be loaded in cgi processing [13:59:19]execute_cgi json_proto POST (null) [13:59:19]execute_cgi path=json_proto method=POST [13:59:19]POST find Content-Length [13:59:19]Host: 172.17.42.132:8080 [13:59:19]Content-Length: 666 [13:59:19]Content-Type: application/json [13:59:19] [13:59:19]POST finish read [13:59:19]Found Content-Length = 666 [13:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47393", "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" ] } } [13:59:19]execute_script... [13:59:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47393", "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" ] } } [13:59:19]POST & json_proto [13:59:19]process_json_proto [13:59:19]json parsed OK: [13:59:19]protocol is kg_v1.0 [13:59:19]action value=close_receipt [13:59:19]process_action close_receipt [13:59:19]cmd_close_receipt [13:59:19]MH_GetDate [13:59:19]Write to MH i2c: F0 00 00 93 11 93 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 09 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: F0 09 00 93 11 00 3A 5E 16 67 4C DF 56 66 98 [13:59:19]GetLastDocTimeStamp 1729519042 [13:59:19]current date 1729519162 [13:59:19]FM_GetShiftState [13:59:19]SAM_PROTO_GetShiftState [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 13 01 00 [13:59:19]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 82 [13:59:19]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_GetShiftState done [13:59:19]FM_GetShiftState done [13:59:19]opened in 1729469755 [13:59:19]opened+sec_in_day 1729556155 [13:59:19]quantity*price = 20000 [13:59:19]sum+1 = 20001 [13:59:19]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 СНО: Общий режим Чек 80 21.10.2024 13:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63083 ФПД: 27315615594895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135922&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63083&fm=27315615594895&tin=02508201610067®Number=0000000000091619&sum=20000 0 [13:59:20]StoreToDocumentArchive [13:59:20]shift 544 fd 63083 [13:59:20]save to /storage/0544/doc_00063083 [13:59:20]save last doc name /storage/0544/doc_00063083 to /storage/kkm_last_doc_name [13:59:20]save OK [13:59:20]Clear old archive folders... [13:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=283 [13:59:20]tlvbuf is 018D08A0 [13:59:20]SAM_PROTO_ClearQueue [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 09 00 00 [13:59:20]Write to MH i2c: E2 08 00 A1 11 80 09 00 00 00 00 00 00 24 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_ClearQueue done [13:59:20]KKMCreateOFDPacket [13:59:20]OFDProtocolAddRootSTLVToBuf [13:59:20]FM_MakeSignedData [13:59:20]FM_MakeSignedData [13:59:20]SAM_PROTO_SignData [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 01 02 [13:59:20]Write to MH i2c: E2 08 00 A2 11 80 0D 01 02 00 00 00 00 2C [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=255 [13:59:20]MH_SAM_APDU [13:59:20]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 50 00 00 00 F4 03 04 00 3A 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [13:59:20]Write to MH i2c: E2 02 01 A3 11 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 50 00 00 00 F4 03 04 00 3A 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 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 22 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]wFMCommunicate request_size=42 [13:59:21]MH_SAM_APDU [13:59:21]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 6B F6 00 00 35 04 06 00 18 D7 E9 90 79 8F [13:59:21]Write to MH i2c: E2 2D 00 A4 11 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 6B F6 00 00 35 04 06 00 18 D7 E9 90 79 8F 00 00 DB [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 0D 03 02 [13:59:21]Write to MH i2c: E2 08 00 A5 11 80 0D 03 02 00 00 00 00 31 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 0B 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 0B 00 A5 11 00 7E 84 83 EC CE A2 B0 C5 90 00 88 [13:59:21]RAPDU: 7E 84 83 EC CE A2 B0 C5 90 00 [13:59:21]wFMCommunicate OK [13:59:21]SAM_PROTO_SignData done [13:59:21]FM_MakeSignedData done [13:59:21]CreateOFDProtocolMessage [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 11 00 00 [13:59:21]Write to MH i2c: E2 08 00 A6 11 80 11 00 00 00 00 00 00 31 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 17 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 17 00 A6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8A [13:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:59:21]wFMCommunicate OK [13:59:21]CreateOFDProtocolMessage done [13:59:21]OFDSenderStorePacket 63083 [13:59:21]StoreOFDPacket docnum=63083 [13:59:21]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 C6 3D 27 01 EA 04 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 50 00 00 00 F4 03 04 00 3A 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 18 D7 E9 90 79 8F 7E 84 83 EC CE A2 B0 C5 [13:59:21]CheckFolder [13:59:21]dirname=/storage/ofd_packets [13:59:21]CheckFolder done [13:59:21]ProducePacketName [13:59:21]name=ofd_packets/00063083 [13:59:21]NVStorageSaveData ofd_packets/00063083 [13:59:21]File name is /storage/ofd_packets/00063083 [13:59:21]Write 333 bytes [13:59:21]NVStorageSaveData done [13:59:21]OFDSenderStorePacket done [13:59:21]KKMCreateOFDPacket done [13:59:21]NVStorageSaveData kkm_last_timestamp [13:59:21]File name is /storage/kkm_last_timestamp [13:59:21]Write 4 bytes [13:59:21]NVStorageSaveData done [13:59:21]ExternCall_PrintAddStr [13:59:21]wPrintStart [13:59:21]Write to MH i2c: 01 00 00 A7 11 B8 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 FF 0F CD [13:59:21]RasterBufferAndPrint [13:59:21]line Счет N : (3)47393 [13:59:21]line ИНН: 02508201610067 [13:59:21]line Контрольно-Кассовый Чек [13:59:21]line ПРОДАЖА [13:59:21]line Товар: 4700002085444 [13:59:21]line Водка Белое золото 0,24л [13:59:21]line 1.000 * 200.00 [13:59:21]line = 200.00 [13:59:21]line НДС 12% НСП 1% [13:59:21]line > о реализуемом товаре [13:59:21]line ИТОГО: 200.00 [13:59:21]line НСП 1% : 1.77 [13:59:21]line НДС 12% : 21.24 [13:59:21]line Наличными: 200.00 [13:59:21]line Безнал.: 0.00 [13:59:21]line Место: АЗС № 86 "Партнер Нефть" [13:59:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:59:21]line СНО: Общий режим [13:59:21]line Чек 80 21.10.2024 13:59 [13:59:21]line Смена: 544 ФФД: 1.0 [13:59:21]line ЗНМ: 0300000154 [13:59:21]line РНМ: 0000000000091619 [13:59:21]line Версия ККМ: 001 [13:59:21]line ФМ: 0000000000874676 [13:59:21]line ФД: 63083 [13:59:21]line ФПД: 27315615594895 [13:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135922&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63083&fm=27315615594895&tin=02508201610067®Number=0000000000091619&sum=20000 [13:59:21]line 0 [13:59:21]OFD Sender: Processing packet 63083 [packets to send 232, broken 231] [13:59:21]ProducePacketName [13:59:21]name=ofd_packets/00063083 [13:59:21]OFD Sender: To server: pG, [13:59:21]CommunicateWithHost lk.salyk.kg:30040 [13:59:21]ConnectInit lk.salyk.kg [13:59:21]written 0, free lines is 4095 [13:59:22]Write to MH i2c: 01 00 00 CF 11 E0 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 13 0D 07 [13:59:22]RasterBufferAndPrint [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]written 0, free lines is 3354 [13:59:22]MH_Cut [13:59:22]Write to MH i2c: D1 01 00 D6 11 01 B9 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 01 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 01 00 D6 11 00 B8 [13:59:22]Write to MH i2c: 01 00 00 D7 11 E8 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** Cut start [13:59:22]*** Partial cut [13:59:22]*** CUTSNS_PIN = 1 [13:59:22]*** CUTSNS_PIN = 0 [13:59:23]*** Brake cut motor [13:59:23]Read from MH i2c: 01 [13:59:23]MH_I2C_Read... [13:59:23]*** Stop cut motor [13:59:23]*** Cut end [13:59:23]Read from MH i2c: 01 07 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 FF 0F FD [13:59:23]process_action close_receipt done [13:59:23]requested_data is exist [13:59:23]produce_requested_data [13:59:23]requested_item fm.sn is exist - process it [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 11 00 00 [13:59:23]Write to MH i2c: E2 08 00 D8 11 80 11 00 00 00 00 00 00 63 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 17 00 D8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BC [13:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:59:23]wFMCommunicate OK [13:59:23]requested_item fd.num is exist - process it [13:59:23]SAM_PROTO_GetFieldsCounters [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 13 00 00 [13:59:23]Write to MH i2c: E2 08 00 D9 11 80 13 00 00 00 00 00 00 66 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 62 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 62 00 D9 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 6B F6 00 00 0E 04 04 00 20 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 01 [13:59: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 6B F6 00 00 0E 04 04 00 20 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 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_GetFieldsCounters done [13:59:23]requested_item shift.num is exist - process it [13:59:23]requested_item shift.opened is exist - process it [13:59:23]req_shift_opened [13:59:23]FM_GetShiftState [13:59:23]SAM_PROTO_GetShiftState [13:59:23]wFMCommunicate request_size=4 [13:59:23]MH_SAM_APDU [13:59:23]CAPDU: 80 13 01 00 [13:59:23]Write to MH i2c: E2 08 00 DA 11 80 13 01 00 00 00 00 00 68 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:23]Read from MH i2c: E2 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0E 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: E2 0E 00 DA 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C8 [13:59:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [13:59:23]wFMCommunicate OK [13:59:23]SAM_PROTO_GetShiftState done [13:59:23]FM_GetShiftState done [13:59:23]req_shift_opened done [13:59:23]requested_item shift.open_date is exist - process it [13:59:23]req_shift_open_date [13:59:23]req_shift_open_date done [13:59:23]produce_requested_data done [13:59:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63083,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [13:59:23]process_action_free close_receipt [13:59:23]json_value_free [13:59:23]json_value_free done [13:59:23]process_json_proto returns [13:59:23]Send response to host [13:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63083,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [13:59:23]free response buf [13:59:23]execute_script done [13:59:23]execute_script returns [13:59:23]free content buf [13:59:23]Sock 7.Close socket [13:59:23]Sock 7.Thread stoped [14:01:34]ConnectInit Can't connect to host [14:01:34]CommunicateWithHost connect error [14:01:34]CommunicateWithHost err = -1 [14:01:34]OFD Sender: Server communicate error [14:01:39]OFD Sender: Processing packet 63083 [packets to send 232, broken 231] [14:01:39]ProducePacketName [14:01:39]name=ofd_packets/00063083 [14:01:39]OFD Sender: To server: pG, [14:01:39]CommunicateWithHost lk.salyk.kg:30040 [14:01:39]ConnectInit lk.salyk.kg [14:01:39]Connected sock=7 [14:01: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 2F 01 00 00 C6 3D 27 01 EA 04 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 50 00 00 00 F4 03 04 00 3A 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 18 D7 E9 90 79 8F 7E 84 83 EC CE A2 B0 C5 [14:01: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 C5 66 47 00 9D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F6 00 00 F4 03 04 00 C0 08 16 67 B6 04 01 00 00 36 16 CC 37 BE CE 6C 2D [14:01:39]CommunicateWithHost err = 0 [14:01:39]CheckOFDResponse [14:01:39]1017 (14) - 77093643461234 [14:01:39]1041 (16) - 0000000000874676 [14:01:39]1040 (4) - 63083 [14:01:39]1012 (4) - 21.10.2024 07:54 [14:01:39]1206 (1) - 0 [14:01:39]OFD Sender: Remove packet 63083 [14:01:39]ProducePacketName [14:01:39]name=ofd_packets/00063083 [14:01:39]NVStorageDeleteData [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:08]accept exits with 9 [14:02:08]New connection [14:02:08]New thread 3067055460 created [14:02:08]Thread 3067198820 joined [14:02:08]Waiting for new connection... [14:02:08] Sock 9.Parse request [14:02:08]Sock 9.Check first char [14:02:08]Sock 9.First char is OK [14:02:08]request: POST /json_proto HTTP/1.0 [14:02:08]Method: POST [14:02:08]URL: /json_proto [14:02:08]Method is POST - this is cgi request [14:02:08]url: /json_proto [14:02:08]query_string will be loaded in cgi processing [14:02:08]execute_cgi json_proto POST (null) [14:02:08]execute_cgi path=json_proto method=POST [14:02:08]POST find Content-Length [14:02:08]Host: 172.17.42.132:8080 [14:02:08]Content-Length: 657 [14:02:08]Content-Type: application/json [14:02:08] [14:02:08]POST finish read [14:02:08]Found Content-Length = 657 [14:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47394", "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" ] } } [14:02:08]execute_script... [14:02: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)47394", "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" ] } } [14:02:08]POST & json_proto [14:02:08]process_json_proto [14:02:08]json parsed OK: [14:02:08]protocol is kg_v1.0 [14:02:08]action value=close_receipt [14:02:08]process_action close_receipt [14:02:08]cmd_close_receipt [14:02:08]MH_GetDate [14:02:08]Write to MH i2c: F0 00 00 DB 11 DB [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 09 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: F0 09 00 DB 11 00 E3 5E 16 67 4C DF 56 66 89 [14:02:08]GetLastDocTimeStamp 1729519162 [14:02:08]current date 1729519331 [14:02:08]FM_GetShiftState [14:02:08]SAM_PROTO_GetShiftState [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 13 01 00 [14:02:08]Write to MH i2c: E2 08 00 DC 11 80 13 01 00 00 00 00 00 6A [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0E 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0E 00 DC 11 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CA [14:02:08]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:02:08]wFMCommunicate OK [14:02:08]SAM_PROTO_GetShiftState done [14:02:08]FM_GetShiftState done [14:02:08]opened in 1729469755 [14:02:08]opened+sec_in_day 1729556155 [14:02:08]quantity*price = 12500 [14:02:08]sum+1 = 12501 [14:02:08]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 СНО: Общий режим Чек 81 21.10.2024 14:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63084 ФПД: 68625962788079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140211&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63084&fm=68625962788079&tin=02508201610067®Number=0000000000091619&sum=12500 0 [14:02:09]StoreToDocumentArchive [14:02:09]shift 544 fd 63084 [14:02:09]save to /storage/0544/doc_00063084 [14:02:09]save last doc name /storage/0544/doc_00063084 to /storage/kkm_last_doc_name [14:02:09]save OK [14:02:09]Clear old archive folders... [14:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:02:09]tlvbuf is 018BADD0 [14:02:09]SAM_PROTO_ClearQueue [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 09 00 00 [14:02:09]Write to MH i2c: E2 08 00 E9 11 80 09 00 00 00 00 00 00 6C [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 03 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [14:02:09]RAPDU: 90 00 [14:02:09]wFMCommunicate OK [14:02:09]SAM_PROTO_ClearQueue done [14:02:09]KKMCreateOFDPacket [14:02:09]OFDProtocolAddRootSTLVToBuf [14:02:09]FM_MakeSignedData [14:02:09]FM_MakeSignedData [14:02:09]SAM_PROTO_SignData [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 0D 01 02 [14:02:09]Write to MH i2c: E2 08 00 EA 11 80 0D 01 02 00 00 00 00 74 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 03 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [14:02:09]RAPDU: 90 00 [14:02:09]wFMCommunicate OK [14:02:09]wFMCommunicate request_size=255 [14:02:09]MH_SAM_APDU [14:02:09]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 51 00 00 00 F4 03 04 00 E3 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [14:02:09]Write to MH i2c: E2 02 01 EB 11 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 E3 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 52 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]wFMCommunicate request_size=37 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F6 00 00 35 04 06 00 3E 6A 3A 22 64 EF [14:02:10]Write to MH i2c: E2 28 00 EC 11 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F6 00 00 35 04 06 00 3E 6A 3A 22 64 EF 00 00 8D [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]OFD Sender: No OFD packet to send [14:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 03 02 [14:02:10]Write to MH i2c: E2 08 00 ED 11 80 0D 03 02 00 00 00 00 79 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0B 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0B 00 ED 11 00 E4 1A D3 F3 F7 1E 1E 9C 90 00 0D [14:02:10]RAPDU: E4 1A D3 F3 F7 1E 1E 9C 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_SignData done [14:02:10]FM_MakeSignedData done [14:02:10]CreateOFDProtocolMessage [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 11 00 00 [14:02:10]Write to MH i2c: E2 08 00 EE 11 80 11 00 00 00 00 00 00 79 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 EE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D2 [14:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:02:10]wFMCommunicate OK [14:02:10]CreateOFDProtocolMessage done [14:02:10]OFDSenderStorePacket 63084 [14:02:10]StoreOFDPacket docnum=63084 [14:02: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 2A 01 00 00 E0 F5 22 01 7F 51 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 51 00 00 00 F4 03 04 00 E3 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 3E 6A 3A 22 64 EF E4 1A D3 F3 F7 1E 1E 9C [14:02:10]CheckFolder [14:02:10]dirname=/storage/ofd_packets [14:02:10]CheckFolder done [14:02:10]ProducePacketName [14:02:10]name=ofd_packets/00063084 [14:02:10]NVStorageSaveData ofd_packets/00063084 [14:02:10]File name is /storage/ofd_packets/00063084 [14:02:10]Write 328 bytes [14:02:10]NVStorageSaveData done [14:02:10]OFDSenderStorePacket done [14:02:10]KKMCreateOFDPacket done [14:02:10]NVStorageSaveData kkm_last_timestamp [14:02:10]File name is /storage/kkm_last_timestamp [14:02:10]Write 4 bytes [14:02:10]NVStorageSaveData done [14:02:10]ExternCall_PrintAddStr [14:02:10]wPrintStart [14:02:10]Write to MH i2c: 01 00 00 EF 11 00 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 FF 0F 15 [14:02:10]RasterBufferAndPrint [14:02:10]line Счет N : (3)47394 [14:02:10]line ИНН: 02508201610067 [14:02:10]line Контрольно-Кассовый Чек [14:02:10]line ПРОДАЖА [14:02:10]line Товар: 5449000054227 [14:02:10]line Напиток Кока-Кола 1л [14:02:10]line 1.000 * 125.00 [14:02:10]line = 125.00 [14:02:10]line НДС 12% НСП 1% [14:02:10]line > о реализуемом товаре [14:02:10]line ИТОГО: 125.00 [14:02:10]line НСП 1% : 1.11 [14:02:10]line НДС 12% : 13.27 [14:02:10]line Наличными: 125.00 [14:02:10]line Безнал.: 0.00 [14:02:10]line Место: АЗС № 86 "Партнер Нефть" [14:02:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:02:10]line СНО: Общий режим [14:02:10]line Чек 81 21.10.2024 14:02 [14:02:10]line Смена: 544 ФФД: 1.0 [14:02:10]line ЗНМ: 0300000154 [14:02:10]line РНМ: 0000000000091619 [14:02:10]line Версия ККМ: 001 [14:02:10]line ФМ: 0000000000874676 [14:02:10]line ФД: 63084 [14:02:10]line ФПД: 68625962788079 [14:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140211&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63084&fm=68625962788079&tin=02508201610067®Number=0000000000091619&sum=12500 [14:02:10]line 0 [14:02:10]OFD Sender: Processing packet 63084 [packets to send 232, broken 231] [14:02:10]ProducePacketName [14:02:10]name=ofd_packets/00063084 [14:02:10]OFD Sender: To server: pG, [14:02:10]CommunicateWithHost lk.salyk.kg:30040 [14:02:10]ConnectInit lk.salyk.kg [14:02:10]written 0, free lines is 4095 [14:02:10]Connected sock=10 [14:02: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 2A 01 00 00 E0 F5 22 01 7F 51 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 51 00 00 00 F4 03 04 00 E3 5E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 3E 6A 3A 22 64 EF E4 1A D3 F3 F7 1E 1E 9C [14:02:11]Write to MH i2c: 01 00 00 17 12 29 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 1D 0D 5A [14:02:11]RasterBufferAndPrint [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]line [14:02:11]written 0, free lines is 3363 [14:02:11]MH_Cut [14:02:11]Write to MH i2c: D1 01 00 1E 12 01 02 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 01 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: D1 01 00 1E 12 00 01 [14:02:11]Write to MH i2c: 01 00 00 1F 12 31 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]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 76 47 00 4B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 E0 08 16 67 B6 04 01 00 00 2C E6 BD 4D 12 F2 AB 10 [14:02:11]CommunicateWithHost err = 0 [14:02:11]CheckOFDResponse [14:02:11]1017 (14) - 77093643461234 [14:02:11]1041 (16) - 0000000000874676 [14:02:11]1040 (4) - 63084 [14:02:11]1012 (4) - 21.10.2024 07:55 [14:02:11]1206 (1) - 0 [14:02:11]OFD Sender: Remove packet 63084 [14:02:11]ProducePacketName [14:02:11]name=ofd_packets/00063084 [14:02:11]NVStorageDeleteData [14:02:11]*** Cut start [14:02:11]*** Partial cut [14:02:11]*** CUTSNS_PIN = 1 [14:02:11]OFD Sender: No OFD packet to send [14:02:11]*** CUTSNS_PIN = 0 [14:02:12]*** Brake cut motor [14:02:12]Read from MH i2c: 01 [14:02:12]MH_I2C_Read... [14:02:12]*** Stop cut motor [14:02:12]*** Cut end [14:02:12]Read from MH i2c: 01 07 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: 01 07 00 1F 12 00 00 00 00 00 FF 0F 46 [14:02:12]process_action close_receipt done [14:02:12]requested_data is exist [14:02:12]produce_requested_data [14:02:12]requested_item fm.sn is exist - process it [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 11 00 00 [14:02:12]Write to MH i2c: E2 08 00 20 12 80 11 00 00 00 00 00 00 AC [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 20 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 05 [14:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:02:12]wFMCommunicate OK [14:02:12]requested_item fd.num is exist - process it [14:02:12]SAM_PROTO_GetFieldsCounters [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 00 00 [14:02:12]Write to MH i2c: E2 08 00 21 12 80 13 00 00 00 00 00 00 AF [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 21 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 6C F6 00 00 0E 04 04 00 20 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 4E [14:02: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 6C F6 00 00 0E 04 04 00 20 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 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetFieldsCounters done [14:02:12]requested_item shift.num is exist - process it [14:02:12]requested_item shift.opened is exist - process it [14:02:12]req_shift_opened [14:02:12]FM_GetShiftState [14:02:12]SAM_PROTO_GetShiftState [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 01 00 [14:02:12]Write to MH i2c: E2 08 00 22 12 80 13 01 00 00 00 00 00 B1 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 22 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 11 [14:02:12]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetShiftState done [14:02:12]FM_GetShiftState done [14:02:12]req_shift_opened done [14:02:12]requested_item shift.open_date is exist - process it [14:02:12]req_shift_open_date [14:02:12]req_shift_open_date done [14:02:12]produce_requested_data done [14:02:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63084,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:02:12]process_action_free close_receipt [14:02:12]json_value_free [14:02:12]json_value_free done [14:02:12]process_json_proto returns [14:02:12]Send response to host [14:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63084,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:02:12]free response buf [14:02:12]execute_script done [14:02:12]execute_script returns [14:02:12]free content buf [14:02:12]Sock 9.Close socket [14:02:12]Sock 9.Thread stoped [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:03]accept exits with 7 [14:12:03]New connection [14:12:03]New thread 3067198820 created [14:12:03]Thread 3067055460 joined [14:12:03]Waiting for new connection... [14:12:03] Sock 7.Parse request [14:12:03]Sock 7.Check first char [14:12:03]Sock 7.First char is OK [14:12:03]request: POST /json_proto HTTP/1.0 [14:12:03]Method: POST [14:12:03]URL: /json_proto [14:12:03]Method is POST - this is cgi request [14:12:03]url: /json_proto [14:12:03]query_string will be loaded in cgi processing [14:12:03]execute_cgi json_proto POST (null) [14:12:03]execute_cgi path=json_proto method=POST [14:12:03]POST find Content-Length [14:12:03]Host: 172.17.42.132:8080 [14:12:03]Content-Length: 644 [14:12:03]Content-Type: application/json [14:12:03] [14:12:03]POST finish read [14:12:03]Found Content-Length = 644 [14:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47395", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:03]execute_script... [14:12: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)47395", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:03]POST & json_proto [14:12:03]process_json_proto [14:12:03]json parsed OK: [14:12:03]protocol is kg_v1.0 [14:12:03]action value=close_receipt [14:12:03]process_action close_receipt [14:12:03]cmd_close_receipt [14:12:03]MH_GetDate [14:12:03]Write to MH i2c: F0 00 00 23 12 24 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: F0 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: F0 09 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: F0 09 00 23 12 00 36 61 16 67 4C DF 56 66 28 [14:12:03]GetLastDocTimeStamp 1729519331 [14:12:03]current date 1729519926 [14:12:03]FM_GetShiftState [14:12:03]SAM_PROTO_GetShiftState [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 13 01 00 [14:12:03]Write to MH i2c: E2 08 00 24 12 80 13 01 00 00 00 00 00 B3 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0E 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0E 00 24 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 13 [14:12:03]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:03]wFMCommunicate OK [14:12:03]SAM_PROTO_GetShiftState done [14:12:03]FM_GetShiftState done [14:12:03]opened in 1729469755 [14:12:03]opened+sec_in_day 1729556155 [14:12:03]quantity*price = 6000 [14:12:03]sum+1 = 6001 [14:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 21.10.2024 14:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63085 ФПД: 137530794017686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141206&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63085&fm=137530794017686&tin=02508201610067®Number=0000000000091619&sum=6000 0 [14:12:04]StoreToDocumentArchive [14:12:04]shift 544 fd 63085 [14:12:04]save to /storage/0544/doc_00063085 [14:12:04]save last doc name /storage/0544/doc_00063085 to /storage/kkm_last_doc_name [14:12:04]save OK [14:12:04]Clear old archive folders... [14:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:12:04]tlvbuf is 018BACB0 [14:12:04]SAM_PROTO_ClearQueue [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 09 00 00 [14:12:04]Write to MH i2c: E2 08 00 31 12 80 09 00 00 00 00 00 00 B5 [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [14:12:04]RAPDU: 90 00 [14:12:04]wFMCommunicate OK [14:12:04]SAM_PROTO_ClearQueue done [14:12:04]KKMCreateOFDPacket [14:12:04]OFDProtocolAddRootSTLVToBuf [14:12:04]FM_MakeSignedData [14:12:04]FM_MakeSignedData [14:12:04]SAM_PROTO_SignData [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 0D 01 02 [14:12:04]Write to MH i2c: E2 08 00 32 12 80 0D 01 02 00 00 00 00 BD [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [14:12:04]RAPDU: 90 00 [14:12:04]wFMCommunicate OK [14:12:04]wFMCommunicate request_size=255 [14:12:04]MH_SAM_APDU [14:12:04]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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 36 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [14:12:04]Write to MH i2c: E2 02 01 33 12 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 36 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 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 81 [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 03 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 03 00 33 12 00 90 00 B9 [14:12:05]RAPDU: 90 00 [14:12:05]wFMCommunicate OK [14:12:05]wFMCommunicate request_size=35 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6D F6 00 00 35 04 06 00 7D 15 62 1F 83 96 [14:12:05]Write to MH i2c: E2 26 00 34 12 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6D F6 00 00 35 04 06 00 7D 15 62 1F 83 96 00 00 48 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 03 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [14:12:05]RAPDU: 90 00 [14:12:05]wFMCommunicate OK [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 0D 03 02 [14:12:05]Write to MH i2c: E2 08 00 35 12 80 0D 03 02 00 00 00 00 C2 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0B 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0B 00 35 12 00 B9 A6 E1 E2 94 E5 09 0C 90 00 73 [14:12:05]RAPDU: B9 A6 E1 E2 94 E5 09 0C 90 00 [14:12:05]wFMCommunicate OK [14:12:05]SAM_PROTO_SignData done [14:12:05]FM_MakeSignedData done [14:12:05]CreateOFDProtocolMessage [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 11 00 00 [14:12:05]Write to MH i2c: E2 08 00 36 12 80 11 00 00 00 00 00 00 C2 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 17 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 17 00 36 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1B [14:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:12:05]wFMCommunicate OK [14:12:05]CreateOFDProtocolMessage done [14:12:05]OFDSenderStorePacket 63085 [14:12:05]StoreOFDPacket docnum=63085 [14:12: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 28 01 00 00 61 75 20 01 AF A9 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 36 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7D 15 62 1F 83 96 B9 A6 E1 E2 94 E5 09 0C [14:12:05]CheckFolder [14:12:05]dirname=/storage/ofd_packets [14:12:05]CheckFolder done [14:12:05]ProducePacketName [14:12:05]name=ofd_packets/00063085 [14:12:05]NVStorageSaveData ofd_packets/00063085 [14:12:05]File name is /storage/ofd_packets/00063085 [14:12:05]Write 326 bytes [14:12:05]NVStorageSaveData done [14:12:05]OFDSenderStorePacket done [14:12:05]KKMCreateOFDPacket done [14:12:05]NVStorageSaveData kkm_last_timestamp [14:12:05]File name is /storage/kkm_last_timestamp [14:12:05]Write 4 bytes [14:12:05]NVStorageSaveData done [14:12:05]ExternCall_PrintAddStr [14:12:05]wPrintStart [14:12:05]Write to MH i2c: 01 00 00 37 12 49 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: 01 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: 01 07 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 FF 0F 5E [14:12:05]RasterBufferAndPrint [14:12:05]line Счет N : (3)47395 [14:12:05]line ИНН: 02508201610067 [14:12:05]line Контрольно-Кассовый Чек [14:12:05]line ПРОДАЖА [14:12:05]line Товар: 4700000310043 [14:12:05]line Вода Жалалабат 27 1л [14:12:05]line 1.000 * 60.00 [14:12:05]line = 60.00 [14:12:05]line НДС 12% НСП 1% [14:12:05]line > о реализуемом товаре [14:12:05]line ИТОГО: 60.00 [14:12:05]line НСП 1% : 0.53 [14:12:05]line НДС 12% : 6.37 [14:12:05]line Наличными: 60.00 [14:12:05]line Безнал.: 0.00 [14:12:05]line Место: АЗС № 86 "Партнер Нефть" [14:12:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:12:05]line СНО: Общий режим [14:12:05]line Чек 82 21.10.2024 14:12 [14:12:05]line Смена: 544 ФФД: 1.0 [14:12:05]line ЗНМ: 0300000154 [14:12:05]line РНМ: 0000000000091619 [14:12:05]line Версия ККМ: 001 [14:12:05]line ФМ: 0000000000874676 [14:12:05]line ФД: 63085 [14:12:05]line ФПД: 137530794017686 [14:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141206&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63085&fm=137530794017686&tin=02508201610067®Number=0000000000091619&sum=6000 [14:12:05]line 0 [14:12:05]OFD Sender: Processing packet 63085 [packets to send 232, broken 231] [14:12:05]ProducePacketName [14:12:05]name=ofd_packets/00063085 [14:12:05]OFD Sender: To server: pG, [14:12:05]CommunicateWithHost lk.salyk.kg:30040 [14:12:05]ConnectInit lk.salyk.kg [14:12:05]written 0, free lines is 4095 [14:12:05]Connected sock=10 [14:12: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 28 01 00 00 61 75 20 01 AF A9 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 36 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 7D 15 62 1F 83 96 B9 A6 E1 E2 94 E5 09 0C [14:12:06]Write to MH i2c: 01 00 00 5F 12 71 [14:12:06]Write i2c OK [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: 01 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: 01 07 00 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 1A 0D 9F [14:12:06]RasterBufferAndPrint [14:12:06]line [14:12:06]line [14:12:06]line [14:12:06]line [14:12:06]line [14:12:06]written 0, free lines is 3360 [14:12:06]MH_Cut [14:12:06]Write to MH i2c: D1 01 00 66 12 01 4A [14:12:06]Write i2c OK [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: D1 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: D1 01 00 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: D1 01 00 66 12 00 49 [14:12:06]Write to MH i2c: 01 00 00 67 12 79 [14:12:06]Write i2c OK [14:12:06]MH_I2C_Read... [14:12:06]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 BA FE 47 00 91 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 6D F6 00 00 F4 03 04 00 33 0B 16 67 B6 04 01 00 00 21 45 AA F4 E7 F1 AA F1 [14:12:06]CommunicateWithHost err = 0 [14:12:06]CheckOFDResponse [14:12:06]1017 (14) - 77093643461234 [14:12:06]1041 (16) - 0000000000874676 [14:12:06]1040 (4) - 63085 [14:12:06]1012 (4) - 21.10.2024 08:05 [14:12:06]1206 (1) - 0 [14:12:06]OFD Sender: Remove packet 63085 [14:12:06]ProducePacketName [14:12:06]name=ofd_packets/00063085 [14:12:06]NVStorageDeleteData [14:12:06]*** Cut start [14:12:06]*** Partial cut [14:12:06]*** CUTSNS_PIN = 1 [14:12:06]OFD Sender: No OFD packet to send [14:12:06]*** CUTSNS_PIN = 0 [14:12:06]*** Brake cut motor [14:12:07]Read from MH i2c: 01 [14:12:07]MH_I2C_Read... [14:12:07]*** Stop cut motor [14:12:07]*** Cut end [14:12:07]Read from MH i2c: 01 07 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 FF 0F 8E [14:12:07]process_action close_receipt done [14:12:07]requested_data is exist [14:12:07]produce_requested_data [14:12:07]requested_item fm.sn is exist - process it [14:12:07]wFMCommunicate request_size=4 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 11 00 00 [14:12:07]Write to MH i2c: E2 08 00 68 12 80 11 00 00 00 00 00 00 F4 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:07]Read from MH i2c: E2 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 17 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 17 00 68 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4D [14:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:12:07]wFMCommunicate OK [14:12:07]requested_item fd.num is exist - process it [14:12:07]SAM_PROTO_GetFieldsCounters [14:12:07]wFMCommunicate request_size=4 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 13 00 00 [14:12:07]Write to MH i2c: E2 08 00 69 12 80 13 00 00 00 00 00 00 F7 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:07]Read from MH i2c: E2 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 62 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 62 00 69 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 6D F6 00 00 0E 04 04 00 20 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 9A [14:12: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 6D F6 00 00 0E 04 04 00 20 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 [14:12:07]wFMCommunicate OK [14:12:07]SAM_PROTO_GetFieldsCounters done [14:12:07]requested_item shift.num is exist - process it [14:12:07]requested_item shift.opened is exist - process it [14:12:07]req_shift_opened [14:12:07]FM_GetShiftState [14:12:07]SAM_PROTO_GetShiftState [14:12:07]wFMCommunicate request_size=4 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 13 01 00 [14:12:07]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:07]Read from MH i2c: E2 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 0E 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 0E 00 6A 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 59 [14:12:07]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:07]wFMCommunicate OK [14:12:07]SAM_PROTO_GetShiftState done [14:12:07]FM_GetShiftState done [14:12:07]req_shift_opened done [14:12:07]requested_item shift.open_date is exist - process it [14:12:07]req_shift_open_date [14:12:07]req_shift_open_date done [14:12:07]produce_requested_data done [14:12:07]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63085,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:12:07]process_action_free close_receipt [14:12:07]json_value_free [14:12:07]json_value_free done [14:12:07]process_json_proto returns [14:12:07]Send response to host [14:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63085,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:12:07]free response buf [14:12:07]execute_script done [14:12:07]execute_script returns [14:12:07]free content buf [14:12:07]Sock 7.Close socket [14:12:07]Sock 7.Thread stoped [14:12:09]accept exits with 9 [14:12:09]New connection [14:12:09]New thread 3067055460 created [14:12:09]Thread 3067198820 joined [14:12:09]Waiting for new connection... [14:12:09] Sock 9.Parse request [14:12:09]Sock 9.Check first char [14:12:09]Sock 9.First char is OK [14:12:09]request: POST /json_proto HTTP/1.0 [14:12:09]Method: POST [14:12:09]URL: /json_proto [14:12:09]Method is POST - this is cgi request [14:12:09]url: /json_proto [14:12:09]query_string will be loaded in cgi processing [14:12:09]execute_cgi json_proto POST (null) [14:12:09]execute_cgi path=json_proto method=POST [14:12:09]POST find Content-Length [14:12:09]Host: 172.17.42.132:8080 [14:12:09]Content-Length: 631 [14:12:09]Content-Type: application/json [14:12:09] [14:12:09]POST finish read [14:12:09]Found Content-Length = 631 [14:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47396", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:09]execute_script... [14:12:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47396", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:09]POST & json_proto [14:12:09]process_json_proto [14:12:09]json parsed OK: [14:12:09]protocol is kg_v1.0 [14:12:09]action value=close_receipt [14:12:09]process_action close_receipt [14:12:09]cmd_close_receipt [14:12:09]MH_GetDate [14:12:09]Write to MH i2c: F0 00 00 6B 12 6C [14:12:09]Write i2c OK [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: F0 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: F0 09 00 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: F0 09 00 6B 12 00 3C 61 16 67 4C DF 56 66 76 [14:12:09]GetLastDocTimeStamp 1729519926 [14:12:09]current date 1729519932 [14:12:09]FM_GetShiftState [14:12:09]SAM_PROTO_GetShiftState [14:12:09]wFMCommunicate request_size=4 [14:12:09]MH_SAM_APDU [14:12:09]CAPDU: 80 13 01 00 [14:12:09]Write to MH i2c: E2 08 00 6C 12 80 13 01 00 00 00 00 00 FB [14:12:09]Write i2c OK [14:12:09]MH_I2C_Read... [14:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:09]Read from MH i2c: E2 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: E2 0E 00 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: E2 0E 00 6C 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5B [14:12:09]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:09]wFMCommunicate OK [14:12:09]SAM_PROTO_GetShiftState done [14:12:09]FM_GetShiftState done [14:12:09]opened in 1729469755 [14:12:09]opened+sec_in_day 1729556155 [14:12:09]quantity*price = 6000 [14:12:09]sum+1 = 6001 [14:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 21.10.2024 14:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63086 ФПД: 2957858252217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141212&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63086&fm=2957858252217&tin=02508201610067®Number=0000000000091619&sum=6000 0 [14:12:10]StoreToDocumentArchive [14:12:10]shift 544 fd 63086 [14:12:10]save to /storage/0544/doc_00063086 [14:12:10]save last doc name /storage/0544/doc_00063086 to /storage/kkm_last_doc_name [14:12:10]save OK [14:12:10]Clear old archive folders... [14:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:12:10]tlvbuf is 018D0FE0 [14:12:10]SAM_PROTO_ClearQueue [14:12:10]wFMCommunicate request_size=4 [14:12:10]MH_SAM_APDU [14:12:10]CAPDU: 80 09 00 00 [14:12:10]Write to MH i2c: E2 08 00 79 12 80 09 00 00 00 00 00 00 FD [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:10]Read from MH i2c: E2 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 03 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [14:12:10]RAPDU: 90 00 [14:12:10]wFMCommunicate OK [14:12:10]SAM_PROTO_ClearQueue done [14:12:10]KKMCreateOFDPacket [14:12:10]OFDProtocolAddRootSTLVToBuf [14:12:10]FM_MakeSignedData [14:12:10]FM_MakeSignedData [14:12:10]SAM_PROTO_SignData [14:12:10]wFMCommunicate request_size=4 [14:12:10]MH_SAM_APDU [14:12:10]CAPDU: 80 0D 01 02 [14:12:10]Write to MH i2c: E2 08 00 7A 12 80 0D 01 02 00 00 00 00 05 [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:10]Read from MH i2c: E2 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 03 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [14:12:10]RAPDU: 90 00 [14:12:10]wFMCommunicate OK [14:12:10]wFMCommunicate request_size=255 [14:12:10]MH_SAM_APDU [14:12:10]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:12:10]Write to MH i2c: E2 02 01 7B 12 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 EB [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]wFMCommunicate request_size=30 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 6E F6 00 00 35 04 06 00 02 B0 AE 17 25 B9 [14:12:11]Write to MH i2c: E2 21 00 7C 12 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 6E F6 00 00 35 04 06 00 02 B0 AE 17 25 B9 00 00 C0 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [14:12:11]RAPDU: 90 00 [14:12:11]wFMCommunicate OK [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 0D 03 02 [14:12:11]Write to MH i2c: E2 08 00 7D 12 80 0D 03 02 00 00 00 00 0A [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0B 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0B 00 7D 12 00 30 D2 08 6D 9A A9 5A 67 90 00 86 [14:12:11]RAPDU: 30 D2 08 6D 9A A9 5A 67 90 00 [14:12:11]wFMCommunicate OK [14:12:11]SAM_PROTO_SignData done [14:12:11]FM_MakeSignedData done [14:12:11]CreateOFDProtocolMessage [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 11 00 00 [14:12:11]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 17 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 63 [14:12: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:12:11]wFMCommunicate OK [14:12:11]CreateOFDProtocolMessage done [14:12:11]OFDSenderStorePacket 63086 [14:12:11]StoreOFDPacket docnum=63086 [14:12: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 23 01 00 00 A9 FE 1B 01 2F 69 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 B0 AE 17 25 B9 30 D2 08 6D 9A A9 5A 67 [14:12:11]CheckFolder [14:12:11]dirname=/storage/ofd_packets [14:12:11]CheckFolder done [14:12:11]ProducePacketName [14:12:11]name=ofd_packets/00063086 [14:12:11]NVStorageSaveData ofd_packets/00063086 [14:12:11]File name is /storage/ofd_packets/00063086 [14:12:11]Write 321 bytes [14:12:11]NVStorageSaveData done [14:12:11]OFDSenderStorePacket done [14:12:11]KKMCreateOFDPacket done [14:12:11]NVStorageSaveData kkm_last_timestamp [14:12:11]File name is /storage/kkm_last_timestamp [14:12:11]Write 4 bytes [14:12:11]NVStorageSaveData done [14:12:11]ExternCall_PrintAddStr [14:12:11]wPrintStart [14:12:11]Write to MH i2c: 01 00 00 7F 12 91 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 7F 12 00 00 00 00 00 FF 0F A6 [14:12:11]RasterBufferAndPrint [14:12:11]line Счет N : (3)47396 [14:12:11]line ИНН: 02508201610067 [14:12:11]line Контрольно-Кассовый Чек [14:12:11]line ПРОДАЖА [14:12:11]line Товар: 4700025313937 [14:12:11]line ВОДКА МЯГКАЯ 0,1л [14:12:11]line 1.000 * 60.00 [14:12:11]line = 60.00 [14:12:11]line НДС 12% НСП 1% [14:12:11]line > о реализуемом товаре [14:12:11]line ИТОГО: 60.00 [14:12:11]line НСП 1% : 0.53 [14:12:11]line НДС 12% : 6.37 [14:12:11]line Наличными: 60.00 [14:12:11]line Безнал.: 0.00 [14:12:11]line Место: АЗС № 86 "Партнер Нефть" [14:12:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:12:11]line СНО: Общий режим [14:12:11]line Чек 83 21.10.2024 14:12 [14:12:11]line Смена: 544 ФФД: 1.0 [14:12:11]line ЗНМ: 0300000154 [14:12:11]line РНМ: 0000000000091619 [14:12:11]line Версия ККМ: 001 [14:12:11]line ФМ: 0000000000874676 [14:12:11]line ФД: 63086 [14:12:11]line ФПД: 2957858252217 [14:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141212&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63086&fm=2957858252217&tin=02508201610067®Number=0000000000091619&sum=6000 [14:12:11]line 0 [14:12:11]written 0, free lines is 4095 [14:12:11]OFD Sender: Processing packet 63086 [packets to send 232, broken 231] [14:12:11]ProducePacketName [14:12:11]name=ofd_packets/00063086 [14:12:11]OFD Sender: To server: pG, [14:12:11]CommunicateWithHost lk.salyk.kg:30040 [14:12:11]ConnectInit lk.salyk.kg [14:12:11]Connected sock=10 [14:12:11]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 A9 FE 1B 01 2F 69 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 02 B0 AE 17 25 B9 30 D2 08 6D 9A A9 5A 67 [14:12:11]Write to MH i2c: 01 00 00 A7 12 B9 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 17 0D E4 [14:12:11]RasterBufferAndPrint [14:12:11]line [14:12:11]line [14:12:11]line [14:12:11]line [14:12:11]line [14:12:11]written 0, free lines is 3366 [14:12:11]MH_Cut [14:12:11]Write to MH i2c: D1 01 00 AE 12 01 92 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: D1 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: D1 01 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: D1 01 00 AE 12 00 91 [14:12:11]Write to MH i2c: 01 00 00 AF 12 C1 [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12: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 B9 B5 47 00 60 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 6E F6 00 00 F4 03 04 00 39 0B 16 67 B6 04 01 00 00 09 C1 57 5B 05 1C 9D C4 [14:12:12]CommunicateWithHost err = 0 [14:12:12]CheckOFDResponse [14:12:12]1017 (14) - 77093643461234 [14:12:12]1041 (16) - 0000000000874676 [14:12:12]1040 (4) - 63086 [14:12:12]1012 (4) - 21.10.2024 08:05 [14:12:12]1206 (1) - 0 [14:12:12]OFD Sender: Remove packet 63086 [14:12:12]ProducePacketName [14:12:12]name=ofd_packets/00063086 [14:12:12]NVStorageDeleteData [14:12:12]*** Cut start [14:12:12]*** Partial cut [14:12:12]*** CUTSNS_PIN = 1 [14:12:12]*** CUTSNS_PIN = 0 [14:12:12]OFD Sender: No OFD packet to send [14:12:12]*** Brake cut motor [14:12:13]Read from MH i2c: 01 [14:12:13]MH_I2C_Read... [14:12:13]*** Stop cut motor [14:12:13]*** Cut end [14:12:13]Read from MH i2c: 01 07 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 FF 0F D6 [14:12:13]process_action close_receipt done [14:12:13]requested_data is exist [14:12:13]produce_requested_data [14:12:13]requested_item fm.sn is exist - process it [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 11 00 00 [14:12:13]Write to MH i2c: E2 08 00 B0 12 80 11 00 00 00 00 00 00 3C [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 B0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 95 [14: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 [14:12:13]wFMCommunicate OK [14:12:13]requested_item fd.num is exist - process it [14:12:13]SAM_PROTO_GetFieldsCounters [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 13 00 00 [14:12:13]Write to MH i2c: E2 08 00 B1 12 80 13 00 00 00 00 00 00 3F [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 62 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 62 00 B1 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 6E F6 00 00 0E 04 04 00 20 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 E6 [14:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [14:12:13]wFMCommunicate OK [14:12:13]SAM_PROTO_GetFieldsCounters done [14:12:13]requested_item shift.num is exist - process it [14:12:13]requested_item shift.opened is exist - process it [14:12:13]req_shift_opened [14:12:13]FM_GetShiftState [14:12:13]SAM_PROTO_GetShiftState [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 13 01 00 [14:12:13]Write to MH i2c: E2 08 00 B2 12 80 13 01 00 00 00 00 00 41 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 0E 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 0E 00 B2 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A1 [14:12:13]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:13]wFMCommunicate OK [14:12:13]SAM_PROTO_GetShiftState done [14:12:13]FM_GetShiftState done [14:12:13]req_shift_opened done [14:12:13]requested_item shift.open_date is exist - process it [14:12:13]req_shift_open_date [14:12:13]req_shift_open_date done [14:12:13]produce_requested_data done [14:12:13]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63086,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:12:13]process_action_free close_receipt [14:12:13]json_value_free [14:12:13]json_value_free done [14:12:13]process_json_proto returns [14:12:13]Send response to host [14:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63086,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:12:13]free response buf [14:12:13]execute_script done [14:12:13]execute_script returns [14:12:13]free content buf [14:12:13]Sock 9.Close socket [14:12:13]Sock 9.Thread stoped [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:55]accept exits with 7 [14:12:55]New connection [14:12:55]New thread 3067198820 created [14:12:55]Thread 3067055460 joined [14:12:55]Waiting for new connection... [14:12:55] Sock 7.Parse request [14:12:55]Sock 7.Check first char [14:12:55]Sock 7.First char is OK [14:12:55]request: POST /json_proto HTTP/1.0 [14:12:55]Method: POST [14:12:55]URL: /json_proto [14:12:55]Method is POST - this is cgi request [14:12:55]url: /json_proto [14:12:55]query_string will be loaded in cgi processing [14:12:55]execute_cgi json_proto POST (null) [14:12:55]execute_cgi path=json_proto method=POST [14:12:55]POST find Content-Length [14:12:55]Host: 172.17.42.132:8080 [14:12:55]Content-Length: 666 [14:12:55]Content-Type: application/json [14:12:55] [14:12:55]POST finish read [14:12:55]Found Content-Length = 666 [14:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47397", "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" ] } } [14:12:55]execute_script... [14:12: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)47397", "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" ] } } [14:12:55]POST & json_proto [14:12:55]process_json_proto [14:12:55]json parsed OK: [14:12:55]protocol is kg_v1.0 [14:12:55]action value=close_receipt [14:12:55]process_action close_receipt [14:12:55]cmd_close_receipt [14:12:55]MH_GetDate [14:12:55]Write to MH i2c: F0 00 00 B3 12 B4 [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: F0 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: F0 09 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: F0 09 00 B3 12 00 69 61 16 67 4C DF 56 66 EB [14:12:55]GetLastDocTimeStamp 1729519932 [14:12:55]current date 1729519977 [14:12:55]FM_GetShiftState [14:12:55]SAM_PROTO_GetShiftState [14:12:55]wFMCommunicate request_size=4 [14:12:55]MH_SAM_APDU [14:12:55]CAPDU: 80 13 01 00 [14:12:55]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:55]Read from MH i2c: E2 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 0E 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A3 [14:12:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:55]wFMCommunicate OK [14:12:55]SAM_PROTO_GetShiftState done [14:12:55]FM_GetShiftState done [14:12:55]opened in 1729469755 [14:12:55]opened+sec_in_day 1729556155 [14:12:55]quantity*price = 20000 [14:12:55]sum+1 = 20001 [14:12:55]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 СНО: Общий режим Чек 84 21.10.2024 14:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63087 ФПД: 111751635754020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141257&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63087&fm=111751635754020&tin=02508201610067®Number=0000000000091619&sum=20000 0 [14:12:56]StoreToDocumentArchive [14:12:56]shift 544 fd 63087 [14:12:56]save to /storage/0544/doc_00063087 [14:12:56]save last doc name /storage/0544/doc_00063087 to /storage/kkm_last_doc_name [14:12:56]save OK [14:12:56]Clear old archive folders... [14:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=283 [14:12:56]tlvbuf is 018BB090 [14:12:56]SAM_PROTO_ClearQueue [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 09 00 00 [14:12:56]Write to MH i2c: E2 08 00 C1 12 80 09 00 00 00 00 00 00 45 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [14:12:56]RAPDU: 90 00 [14:12:56]wFMCommunicate OK [14:12:56]SAM_PROTO_ClearQueue done [14:12:56]KKMCreateOFDPacket [14:12:56]OFDProtocolAddRootSTLVToBuf [14:12:56]FM_MakeSignedData [14:12:56]FM_MakeSignedData [14:12:56]SAM_PROTO_SignData [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 0D 01 02 [14:12:56]Write to MH i2c: E2 08 00 C2 12 80 0D 01 02 00 00 00 00 4D [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [14:12:56]RAPDU: 90 00 [14:12:56]wFMCommunicate OK [14:12:56]wFMCommunicate request_size=255 [14:12:56]MH_SAM_APDU [14:12:56]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 54 00 00 00 F4 03 04 00 69 61 16 67 0E 04 04 00 20 02 00 00 B9 04 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:12:56]Write to MH i2c: E2 02 01 C3 12 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 54 00 00 00 F4 03 04 00 69 61 16 67 0E 04 04 00 20 02 00 00 B9 04 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 79 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [14:12:56]RAPDU: 90 00 [14:12:56]wFMCommunicate OK [14:12:56]wFMCommunicate request_size=42 [14:12:56]MH_SAM_APDU [14:12:56]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 6F F6 00 00 35 04 06 00 65 A3 34 8D 5C 24 [14:12:56]Write to MH i2c: E2 2D 00 C4 12 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 6F F6 00 00 35 04 06 00 65 A3 34 8D 5C 24 00 00 D9 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [14:12:56]RAPDU: 90 00 [14:12:56]wFMCommunicate OK [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 0D 03 02 [14:12:56]Write to MH i2c: E2 08 00 C5 12 80 0D 03 02 00 00 00 00 52 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0B 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0B 00 C5 12 00 5B 34 61 47 E8 BE 1B B9 90 00 04 [14:12:56]RAPDU: 5B 34 61 47 E8 BE 1B B9 90 00 [14:12:56]wFMCommunicate OK [14:12:56]SAM_PROTO_SignData done [14:12:56]FM_MakeSignedData done [14:12:56]CreateOFDProtocolMessage [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 11 00 00 [14:12:56]Write to MH i2c: E2 08 00 C6 12 80 11 00 00 00 00 00 00 52 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 17 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 17 00 C6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AB [14:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:12:56]wFMCommunicate OK [14:12:56]CreateOFDProtocolMessage done [14:12:56]OFDSenderStorePacket 63087 [14:12:56]StoreOFDPacket docnum=63087 [14:12: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 2F 01 00 00 AC 16 27 01 72 EF 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 54 00 00 00 F4 03 04 00 69 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 A3 34 8D 5C 24 5B 34 61 47 E8 BE 1B B9 [14:12:56]CheckFolder [14:12:56]dirname=/storage/ofd_packets [14:12:56]CheckFolder done [14:12:56]ProducePacketName [14:12:56]name=ofd_packets/00063087 [14:12:56]NVStorageSaveData ofd_packets/00063087 [14:12:56]File name is /storage/ofd_packets/00063087 [14:12:56]Write 333 bytes [14:12:56]NVStorageSaveData done [14:12:56]OFDSenderStorePacket done [14:12:56]KKMCreateOFDPacket done [14:12:56]NVStorageSaveData kkm_last_timestamp [14:12:56]File name is /storage/kkm_last_timestamp [14:12:56]Write 4 bytes [14:12:56]NVStorageSaveData done [14:12:56]ExternCall_PrintAddStr [14:12:56]wPrintStart [14:12:56]Write to MH i2c: 01 00 00 C7 12 D9 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 07 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 07 00 C7 12 00 00 00 00 00 FF 0F EE [14:12:56]RasterBufferAndPrint [14:12:56]line Счет N : (3)47397 [14:12:56]line ИНН: 02508201610067 [14:12:56]line Контрольно-Кассовый Чек [14:12:56]line ПРОДАЖА [14:12:56]line Товар: 4700002085444 [14:12:56]line Водка Белое золото 0,24л [14:12:56]line 1.000 * 200.00 [14:12:56]line = 200.00 [14:12:56]line НДС 12% НСП 1% [14:12:56]line > о реализуемом товаре [14:12:56]line ИТОГО: 200.00 [14:12:56]line НСП 1% : 1.77 [14:12:56]line НДС 12% : 21.24 [14:12:56]line Наличными: 200.00 [14:12:56]line Безнал.: 0.00 [14:12:56]line Место: АЗС № 86 "Партнер Нефть" [14:12:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:12:56]line СНО: Общий режим [14:12:56]line Чек 84 21.10.2024 14:12 [14:12:56]line Смена: 544 ФФД: 1.0 [14:12:56]line ЗНМ: 0300000154 [14:12:56]line РНМ: 0000000000091619 [14:12:56]line Версия ККМ: 001 [14:12:56]line ФМ: 0000000000874676 [14:12:56]line ФД: 63087 [14:12:56]line ФПД: 111751635754020 [14:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141257&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63087&fm=111751635754020&tin=02508201610067®Number=0000000000091619&sum=20000 [14:12:57]line 0 [14:12:57]OFD Sender: Processing packet 63087 [packets to send 232, broken 231] [14:12:57]ProducePacketName [14:12:57]name=ofd_packets/00063087 [14:12:57]OFD Sender: To server: pG, [14:12:57]CommunicateWithHost lk.salyk.kg:30040 [14:12:57]ConnectInit lk.salyk.kg [14:12:57]written 0, free lines is 4095 [14:12:57]Connected sock=11 [14:12: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 2F 01 00 00 AC 16 27 01 72 EF 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 54 00 00 00 F4 03 04 00 69 61 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 A3 34 8D 5C 24 5B 34 61 47 E8 BE 1B B9 [14:12:57]Write to MH i2c: 01 00 00 EF 12 01 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 1F 0D 34 [14:12:57]RasterBufferAndPrint [14:12:57]line [14:12:57]line [14:12:57]line [14:12:57]line [14:12:57]line [14:12:57]written 0, free lines is 3365 [14:12:57]MH_Cut [14:12:57]Write to MH i2c: D1 01 00 F6 12 01 DA [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: D1 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: D1 01 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: D1 01 00 F6 12 00 D9 [14:12:57]Write to MH i2c: 01 00 00 F7 12 09 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12: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 35 44 47 00 74 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F6 00 00 F4 03 04 00 66 0B 16 67 B6 04 01 00 00 FF 24 AB 47 4C 44 AE 1C [14:12:57]CommunicateWithHost err = 0 [14:12:57]CheckOFDResponse [14:12:57]1017 (14) - 77093643461234 [14:12:57]1041 (16) - 0000000000874676 [14:12:57]1040 (4) - 63087 [14:12:57]1012 (4) - 21.10.2024 08:05 [14:12:57]1206 (1) - 0 [14:12:57]OFD Sender: Remove packet 63087 [14:12:57]ProducePacketName [14:12:57]name=ofd_packets/00063087 [14:12:57]NVStorageDeleteData [14:12:58]*** Cut start [14:12:58]*** Partial cut [14:12:58]*** CUTSNS_PIN = 1 [14:12:58]*** CUTSNS_PIN = 0 [14:12:58]OFD Sender: No OFD packet to send [14:12:58]*** Brake cut motor [14:12:58]Read from MH i2c: 01 [14:12:58]MH_I2C_Read... [14:12:58]*** Stop cut motor [14:12:58]*** Cut end [14:12:58]Read from MH i2c: 01 07 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [14:12:58]process_action close_receipt done [14:12:58]requested_data is exist [14:12:58]produce_requested_data [14:12:58]requested_item fm.sn is exist - process it [14:12:58]wFMCommunicate request_size=4 [14:12:58]MH_SAM_APDU [14:12:58]CAPDU: 80 11 00 00 [14:12:58]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:58]Read from MH i2c: E2 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 17 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DD [14:12: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:12:58]wFMCommunicate OK [14:12:58]requested_item fd.num is exist - process it [14:12:58]SAM_PROTO_GetFieldsCounters [14:12:58]wFMCommunicate request_size=4 [14:12:58]MH_SAM_APDU [14:12:58]CAPDU: 80 13 00 00 [14:12:58]Write to MH i2c: E2 08 00 F9 12 80 13 00 00 00 00 00 00 87 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 62 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 62 00 F9 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 6F F6 00 00 0E 04 04 00 20 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 32 [14:12: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 F6 00 00 0E 04 04 00 20 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 [14:12:59]wFMCommunicate OK [14:12:59]SAM_PROTO_GetFieldsCounters done [14:12:59]requested_item shift.num is exist - process it [14:12:59]requested_item shift.opened is exist - process it [14:12:59]req_shift_opened [14:12:59]FM_GetShiftState [14:12:59]SAM_PROTO_GetShiftState [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 13 01 00 [14:12:59]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0E 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E9 [14:12:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:12:59]wFMCommunicate OK [14:12:59]SAM_PROTO_GetShiftState done [14:12:59]FM_GetShiftState done [14:12:59]req_shift_opened done [14:12:59]requested_item shift.open_date is exist - process it [14:12:59]req_shift_open_date [14:12:59]req_shift_open_date done [14:12:59]produce_requested_data done [14:12:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63087,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:12:59]process_action_free close_receipt [14:12:59]json_value_free [14:12:59]json_value_free done [14:12:59]process_json_proto returns [14:12:59]Send response to host [14:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63087,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:12:59]free response buf [14:12:59]execute_script done [14:12:59]execute_script returns [14:12:59]free content buf [14:12:59]Sock 7.Close socket [14:12:59]Sock 7.Thread stoped [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]accept exits with 9 [14:28:49]New connection [14:28:49]New thread 3067055460 created [14:28:49]Thread 3067198820 joined [14:28:49]Waiting for new connection... [14:28:49] Sock 9.Parse request [14:28:49]Sock 9.Check first char [14:28:49]Sock 9.First char is OK [14:28:49]request: POST /json_proto HTTP/1.0 [14:28:49]Method: POST [14:28:49]URL: /json_proto [14:28:49]Method is POST - this is cgi request [14:28:49]url: /json_proto [14:28:49]query_string will be loaded in cgi processing [14:28:49]execute_cgi json_proto POST (null) [14:28:49]execute_cgi path=json_proto method=POST [14:28:49]POST find Content-Length [14:28:49]Host: 172.17.42.132:8080 [14:28:49]Content-Length: 669 [14:28:49]Content-Type: application/json [14:28:49] [14:28:49]POST finish read [14:28:49]Found Content-Length = 669 [14:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47398", "tax_sys" : 0, "items" : [ { "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "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" ] } } [14:28:49]execute_script... [14:28: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)47398", "tax_sys" : 0, "items" : [ { "code": "4602606010924", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 16*20*42,5", "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" ] } } [14:28:49]POST & json_proto [14:28:49]process_json_proto [14:28:49]json parsed OK: [14:28:49]protocol is kg_v1.0 [14:28:49]action value=close_receipt [14:28:49]process_action close_receipt [14:28:49]cmd_close_receipt [14:28:49]MH_GetDate [14:28:49]Write to MH i2c: F0 00 00 FB 12 FC [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: F0 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: F0 09 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: F0 09 00 FB 12 00 24 65 16 67 4C DF 56 66 F2 [14:28:49]GetLastDocTimeStamp 1729519977 [14:28:49]current date 1729520932 [14:28:49]FM_GetShiftState [14:28:49]SAM_PROTO_GetShiftState [14:28:49]wFMCommunicate request_size=4 [14:28:49]MH_SAM_APDU [14:28:49]CAPDU: 80 13 01 00 [14:28:49]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [14:28:49]Write i2c OK [14:28:49]MH_I2C_Read... [14:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:49]Read from MH i2c: E2 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0E 00 [14:28:49]MH_I2C_Read... [14:28:49]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 EB [14:28:49]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:28:49]wFMCommunicate OK [14:28:49]SAM_PROTO_GetShiftState done [14:28:49]FM_GetShiftState done [14:28:49]opened in 1729469755 [14:28:49]opened+sec_in_day 1729556155 [14:28:49]quantity*price = 7500 [14:28:49]sum+1 = 7501 [14:28:49]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 СНО: Общий режим Чек 85 21.10.2024 14:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63088 ФПД: 221533767586321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142852&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63088&fm=221533767586321&tin=02508201610067®Number=0000000000091619&sum=7500 0 [14:28:50]StoreToDocumentArchive [14:28:50]shift 544 fd 63088 [14:28:50]save to /storage/0544/doc_00063088 [14:28:50]save last doc name /storage/0544/doc_00063088 to /storage/kkm_last_doc_name [14:28:50]save OK [14:28:50]Clear old archive folders... [14:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=297 [14:28:50]tlvbuf is 018D1170 [14:28:50]SAM_PROTO_ClearQueue [14:28:50]wFMCommunicate request_size=4 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 09 00 00 [14:28:50]Write to MH i2c: E2 08 00 09 13 80 09 00 00 00 00 00 00 8E [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:50]Read from MH i2c: E2 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 03 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [14:28:50]RAPDU: 90 00 [14:28:50]wFMCommunicate OK [14:28:50]SAM_PROTO_ClearQueue done [14:28:50]KKMCreateOFDPacket [14:28:50]OFDProtocolAddRootSTLVToBuf [14:28:50]FM_MakeSignedData [14:28:50]FM_MakeSignedData [14:28:50]SAM_PROTO_SignData [14:28:50]wFMCommunicate request_size=4 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 0D 01 02 [14:28:50]Write to MH i2c: E2 08 00 0A 13 80 0D 01 02 00 00 00 00 96 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:50]Read from MH i2c: E2 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 03 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [14:28:50]RAPDU: 90 00 [14:28:50]wFMCommunicate OK [14:28:50]wFMCommunicate request_size=255 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 55 00 00 00 F4 03 04 00 24 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [14:28:50]Write to MH i2c: E2 02 01 0B 13 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 55 00 00 00 F4 03 04 00 24 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 B9 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 03 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [14:28:51]RAPDU: 90 00 [14:28:51]wFMCommunicate OK [14:28:51]wFMCommunicate request_size=56 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C9 7B D9 85 D2 11 [14:28:51]Write to MH i2c: E2 3B 00 0C 13 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C9 7B D9 85 D2 11 00 00 16 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 03 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [14:28:51]RAPDU: 90 00 [14:28:51]wFMCommunicate OK [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 0D 03 02 [14:28:51]Write to MH i2c: E2 08 00 0D 13 80 0D 03 02 00 00 00 00 9B [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0B 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0B 00 0D 13 00 C1 AD 4B F4 E8 9A 0D 1A 90 00 F2 [14:28:51]RAPDU: C1 AD 4B F4 E8 9A 0D 1A 90 00 [14:28:51]wFMCommunicate OK [14:28:51]SAM_PROTO_SignData done [14:28:51]FM_MakeSignedData done [14:28:51]CreateOFDProtocolMessage [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 11 00 00 [14:28:51]Write to MH i2c: E2 08 00 0E 13 80 11 00 00 00 00 00 00 9B [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 17 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 17 00 0E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F4 [14:28: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:28:51]wFMCommunicate OK [14:28:51]CreateOFDProtocolMessage done [14:28:51]OFDSenderStorePacket 63088 [14:28:51]StoreOFDPacket docnum=63088 [14:28: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 3D 01 00 00 C9 26 35 01 48 41 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 55 00 00 00 F4 03 04 00 24 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C9 7B D9 85 D2 11 C1 AD 4B F4 E8 9A 0D 1A [14:28:51]CheckFolder [14:28:51]dirname=/storage/ofd_packets [14:28:51]CheckFolder done [14:28:51]ProducePacketName [14:28:51]name=ofd_packets/00063088 [14:28:51]NVStorageSaveData ofd_packets/00063088 [14:28:51]File name is /storage/ofd_packets/00063088 [14:28:51]Write 347 bytes [14:28:51]NVStorageSaveData done [14:28:51]OFDSenderStorePacket done [14:28:51]KKMCreateOFDPacket done [14:28:51]NVStorageSaveData kkm_last_timestamp [14:28:51]File name is /storage/kkm_last_timestamp [14:28:51]Write 4 bytes [14:28:51]NVStorageSaveData done [14:28:51]ExternCall_PrintAddStr [14:28:51]wPrintStart [14:28:51]Write to MH i2c: 01 00 00 0F 13 22 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 07 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [14:28:51]RasterBufferAndPrint [14:28:51]line Счет N : (3)47398 [14:28:51]line ИНН: 02508201610067 [14:28:51]line Контрольно-Кассовый Чек [14:28:51]line ПРОДАЖА [14:28:51]line Товар: 4602606010924 [14:28:51]line Конф Fruit-tella стик ассорти 16*20*42,5 [14:28:51]line 1.000 * 75.00 [14:28:51]line = 75.00 [14:28:51]line НДС 12% НСП 1% [14:28:51]line > о реализуемом товаре [14:28:51]line ИТОГО: 75.00 [14:28:51]line НСП 1% : 0.66 [14:28:51]line НДС 12% : 7.96 [14:28:51]line Наличными: 75.00 [14:28:51]line Безнал.: 0.00 [14:28:51]line Место: АЗС № 86 "Партнер Нефть" [14:28:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:28:51]line СНО: Общий режим [14:28:51]line Чек 85 21.10.2024 14:28 [14:28:51]line Смена: 544 ФФД: 1.0 [14:28:51]line ЗНМ: 0300000154 [14:28:51]line РНМ: 0000000000091619 [14:28:51]line Версия ККМ: 001 [14:28:51]line ФМ: 0000000000874676 [14:28:51]line ФД: 63088 [14:28:51]line ФПД: 221533767586321 [14:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142852&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63088&fm=221533767586321&tin=02508201610067®Number=0000000000091619&sum=7500 [14:28:51]line 0 [14:28:51]OFD Sender: Processing packet 63088 [packets to send 232, broken 231] [14:28:51]ProducePacketName [14:28:51]name=ofd_packets/00063088 [14:28:51]OFD Sender: To server: pG, [14:28:51]CommunicateWithHost lk.salyk.kg:30040 [14:28:51]ConnectInit lk.salyk.kg [14:28:51]written 0, free lines is 4095 [14:28:51]Write to MH i2c: 01 00 00 38 13 4B [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 07 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: 01 07 00 38 13 00 00 00 00 00 05 0D 64 [14:28:51]RasterBufferAndPrint [14:28:51]line [14:28:51]line [14:28:51]line [14:28:51]line [14:28:51]line [14:28:52]written 0, free lines is 3339 [14:28:52]MH_Cut [14:28:52]Write to MH i2c: D1 01 00 3F 13 01 24 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: D1 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: D1 01 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: D1 01 00 3F 13 00 23 [14:28:52]Write to MH i2c: 01 00 00 40 13 53 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]Connected sock=11 [14:28: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 3D 01 00 00 C9 26 35 01 48 41 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 30 39 32 34 06 04 37 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 36 2A 32 30 2A 34 32 2C 35 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 55 00 00 00 F4 03 04 00 24 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 C9 7B D9 85 D2 11 C1 AD 4B F4 E8 9A 0D 1A [14:28: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 DF 4C 47 00 08 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 70 F6 00 00 F4 03 04 00 21 0F 16 67 B6 04 01 00 00 00 FF D3 04 A1 86 8A 23 [14:28:52]CommunicateWithHost err = 0 [14:28:52]CheckOFDResponse [14:28:52]1017 (14) - 77093643461234 [14:28:52]1041 (16) - 0000000000874676 [14:28:52]1040 (4) - 63088 [14:28:52]1012 (4) - 21.10.2024 08:21 [14:28:52]1206 (1) - 0 [14:28:52]OFD Sender: Remove packet 63088 [14:28:52]ProducePacketName [14:28:52]name=ofd_packets/00063088 [14:28:52]NVStorageDeleteData [14:28:52]*** Cut start [14:28:52]*** Partial cut [14:28:52]*** CUTSNS_PIN = 1 [14:28:52]*** CUTSNS_PIN = 0 [14:28:52]OFD Sender: No OFD packet to send [14:28:52]*** Brake cut motor [14:28:53]Read from MH i2c: 01 [14:28:53]MH_I2C_Read... [14:28:53]*** Stop cut motor [14:28:53]*** Cut end [14:28:53]Read from MH i2c: 01 07 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 FF 0F 68 [14:28:53]process_action close_receipt done [14:28:53]requested_data is exist [14:28:53]produce_requested_data [14:28:53]requested_item fm.sn is exist - process it [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 11 00 00 [14:28:53]Write to MH i2c: E2 08 00 41 13 80 11 00 00 00 00 00 00 CE [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 17 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 17 00 41 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [14:28: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:28:53]wFMCommunicate OK [14:28:53]requested_item fd.num is exist - process it [14:28:53]SAM_PROTO_GetFieldsCounters [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 13 00 00 [14:28:53]Write to MH i2c: E2 08 00 42 13 80 13 00 00 00 00 00 00 D1 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 62 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 62 00 42 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 70 F6 00 00 0E 04 04 00 20 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 80 [14:28: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 F6 00 00 0E 04 04 00 20 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 [14:28:53]wFMCommunicate OK [14:28:53]SAM_PROTO_GetFieldsCounters done [14:28:53]requested_item shift.num is exist - process it [14:28:53]requested_item shift.opened is exist - process it [14:28:53]req_shift_opened [14:28:53]FM_GetShiftState [14:28:53]SAM_PROTO_GetShiftState [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 13 01 00 [14:28:53]Write to MH i2c: E2 08 00 43 13 80 13 01 00 00 00 00 00 D3 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 0E 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 0E 00 43 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 33 [14:28:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:28:53]wFMCommunicate OK [14:28:53]SAM_PROTO_GetShiftState done [14:28:53]FM_GetShiftState done [14:28:53]req_shift_opened done [14:28:53]requested_item shift.open_date is exist - process it [14:28:53]req_shift_open_date [14:28:53]req_shift_open_date done [14:28:53]produce_requested_data done [14:28:53]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63088,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:28:53]process_action_free close_receipt [14:28:53]json_value_free [14:28:53]json_value_free done [14:28:53]process_json_proto returns [14:28:53]Send response to host [14:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63088,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:28:53]free response buf [14:28:53]execute_script done [14:28:53]execute_script returns [14:28:53]free content buf [14:28:53]Sock 9.Close socket [14:28:53]Sock 9.Thread stoped [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]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:55]accept exits with 7 [14:31:55]New connection [14:31:55]New thread 3067198820 created [14:31:55]Thread 3067055460 joined [14:31:55]Waiting for new connection... [14:31:55] Sock 7.Parse request [14:31:55]Sock 7.Check first char [14:31:55]Sock 7.First char is OK [14:31:55]request: POST /json_proto HTTP/1.0 [14:31:55]Method: POST [14:31:55]URL: /json_proto [14:31:55]Method is POST - this is cgi request [14:31:55]url: /json_proto [14:31:55]query_string will be loaded in cgi processing [14:31:55]execute_cgi json_proto POST (null) [14:31:55]execute_cgi path=json_proto method=POST [14:31:55]POST find Content-Length [14:31:55]Host: 172.17.42.132:8080 [14:31:55]Content-Length: 710 [14:31:55]Content-Type: application/json [14:31:55] [14:31:55]POST finish read [14:31:55]Found Content-Length = 710 [14:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47399", "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 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:55]execute_script... [14:31: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)47399", "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 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:55]POST & json_proto [14:31:55]process_json_proto [14:31:55]json parsed OK: [14:31:55]protocol is kg_v1.0 [14:31:55]action value=close_receipt [14:31:55]process_action close_receipt [14:31:55]cmd_close_receipt [14:31:55]MH_GetDate [14:31:55]Write to MH i2c: F0 00 00 44 13 46 [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: F0 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: F0 09 00 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: F0 09 00 44 13 00 DD 65 16 67 4C DF 56 66 F5 [14:31:55]GetLastDocTimeStamp 1729520932 [14:31:55]current date 1729521117 [14:31:55]FM_GetShiftState [14:31:55]SAM_PROTO_GetShiftState [14:31:55]wFMCommunicate request_size=4 [14:31:55]MH_SAM_APDU [14:31:55]CAPDU: 80 13 01 00 [14:31:55]Write to MH i2c: E2 08 00 45 13 80 13 01 00 00 00 00 00 D5 [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:55]Read from MH i2c: E2 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: E2 0E 00 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: E2 0E 00 45 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 35 [14:31:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:31:55]wFMCommunicate OK [14:31:55]SAM_PROTO_GetShiftState done [14:31:55]FM_GetShiftState done [14:31:55]opened in 1729469755 [14:31:55]opened+sec_in_day 1729556155 [14:31:55]quantity*price = 8400 [14:31:55]sum+1 = 8401 [14:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 21.10.2024 14:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63089 ФПД: 112091147978908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63089&fm=112091147978908&tin=02508201610067®Number=0000000000091619&sum=8400 0 [14:31:56]StoreToDocumentArchive [14:31:56]shift 544 fd 63089 [14:31:56]save to /storage/0544/doc_00063089 [14:31:56]save last doc name /storage/0544/doc_00063089 to /storage/kkm_last_doc_name [14:31:56]save OK [14:31:56]Clear old archive folders... [14:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=302 [14:31:56]tlvbuf is B6EE4910 [14:31:56]SAM_PROTO_ClearQueue [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 09 00 00 [14:31:56]Write to MH i2c: E2 08 00 52 13 80 09 00 00 00 00 00 00 D7 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_ClearQueue done [14:31:56]KKMCreateOFDPacket [14:31:56]OFDProtocolAddRootSTLVToBuf [14:31:56]FM_MakeSignedData [14:31:56]FM_MakeSignedData [14:31:56]SAM_PROTO_SignData [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 01 02 [14:31:56]Write to MH i2c: E2 08 00 53 13 80 0D 01 02 00 00 00 00 DF [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 53 13 00 90 00 DA [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]wFMCommunicate request_size=255 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 02 02 FA 03 00 2E 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 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 DD 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 [14:31:56]Write to MH i2c: E2 02 01 54 13 80 0D 02 02 FA 00 03 00 2E 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 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 DD 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 00 00 B4 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]wFMCommunicate request_size=61 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 F2 41 0E C8 9C [14:31:56]Write to MH i2c: E2 40 00 55 13 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 F2 41 0E C8 9C 00 00 8F [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 03 02 [14:31:56]Write to MH i2c: E2 08 00 56 13 80 0D 03 02 00 00 00 00 E4 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0B 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0B 00 56 13 00 FB F1 FA ED EE 92 A2 05 90 00 DF [14:31:57]RAPDU: FB F1 FA ED EE 92 A2 05 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_SignData done [14:31:57]FM_MakeSignedData done [14:31:57]CreateOFDProtocolMessage [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 11 00 00 [14:31:57]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 17 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3D [14:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:31:57]wFMCommunicate OK [14:31:57]CreateOFDProtocolMessage done [14:31:57]OFDSenderStorePacket 63089 [14:31:57]StoreOFDPacket docnum=63089 [14:31: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 42 01 00 00 5B AD 3A 01 3C 3B 5A 03 01 00 03 00 2E 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 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 DD 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 F2 41 0E C8 9C FB F1 FA ED EE 92 A2 05 [14:31:57]CheckFolder [14:31:57]dirname=/storage/ofd_packets [14:31:57]CheckFolder done [14:31:57]ProducePacketName [14:31:57]name=ofd_packets/00063089 [14:31:57]NVStorageSaveData ofd_packets/00063089 [14:31:57]File name is /storage/ofd_packets/00063089 [14:31:57]Write 352 bytes [14:31:57]NVStorageSaveData done [14:31:57]OFDSenderStorePacket done [14:31:57]KKMCreateOFDPacket done [14:31:57]NVStorageSaveData kkm_last_timestamp [14:31:57]File name is /storage/kkm_last_timestamp [14:31:57]Write 4 bytes [14:31:57]NVStorageSaveData done [14:31:57]ExternCall_PrintAddStr [14:31:57]wPrintStart [14:31:57]Write to MH i2c: 01 00 00 58 13 6B [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 58 13 00 00 00 00 00 FF 0F 80 [14:31:57]RasterBufferAndPrint [14:31:57]line Счет N : (3)47399 [14:31:57]line ИНН: 02508201610067 [14:31:57]line Контрольно-Кассовый Чек [14:31:57]line ПРОДАЖА [14:31:57]line Товар: 4870001571030 [14:31:57]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [14:31:57]line 1.000 * 84.00 [14:31:57]line = 84.00 [14:31:57]line НДС 12% НСП 1% [14:31:57]line > о реализуемом товаре [14:31:57]line ИТОГО: 84.00 [14:31:57]line НСП 1% : 0.74 [14:31:57]line НДС 12% : 8.92 [14:31:57]line Наличными: 84.00 [14:31:57]line Безнал.: 0.00 [14:31:57]line Место: АЗС № 86 "Партнер Нефть" [14:31:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:31:57]line СНО: Общий режим [14:31:57]line Чек 86 21.10.2024 14:31 [14:31:57]line Смена: 544 ФФД: 1.0 [14:31:57]line ЗНМ: 0300000154 [14:31:57]line РНМ: 0000000000091619 [14:31:57]line Версия ККМ: 001 [14:31:57]line ФМ: 0000000000874676 [14:31:57]line ФД: 63089 [14:31:57]line ФПД: 112091147978908 [14:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63089&fm=112091147978908&tin=02508201610067®Number=0000000000091619&sum=8400 [14:31:57]line 0 [14:31:57]OFD Sender: Processing packet 63089 [packets to send 232, broken 231] [14:31:57]ProducePacketName [14:31:57]name=ofd_packets/00063089 [14:31:57]OFD Sender: To server: pG, [14:31:57]CommunicateWithHost lk.salyk.kg:30040 [14:31:57]ConnectInit lk.salyk.kg [14:31:57]written 0, free lines is 4095 [14:31:57]Connected sock=9 [14:31: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 42 01 00 00 5B AD 3A 01 3C 3B 5A 03 01 00 03 00 2E 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 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 DD 65 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 65 F2 41 0E C8 9C FB F1 FA ED EE 92 A2 05 [14:31:57]Write to MH i2c: 01 00 00 81 13 94 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 0F 0D B7 [14:31:57]RasterBufferAndPrint [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]written 0, free lines is 3349 [14:31:57]MH_Cut [14:31:57]Write to MH i2c: D1 01 00 88 13 01 6D [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 01 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 01 00 88 13 00 6C [14:31:57]Write to MH i2c: 01 00 00 89 13 9C [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31: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 5C 69 47 00 F2 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 71 F6 00 00 F4 03 04 00 DB 0F 16 67 B6 04 01 00 00 33 C3 11 FE 7F 6E B9 D1 [14:31:58]CommunicateWithHost err = 0 [14:31:58]CheckOFDResponse [14:31:58]1017 (14) - 77093643461234 [14:31:58]1041 (16) - 0000000000874676 [14:31:58]1040 (4) - 63089 [14:31:58]1012 (4) - 21.10.2024 08:24 [14:31:58]1206 (1) - 0 [14:31:58]OFD Sender: Remove packet 63089 [14:31:58]ProducePacketName [14:31:58]name=ofd_packets/00063089 [14:31:58]NVStorageDeleteData [14:31:58]OFD Sender: No OFD packet to send [14:31:58]*** Cut start [14:31:58]*** Partial cut [14:31:58]*** CUTSNS_PIN = 1 [14:31:58]*** CUTSNS_PIN = 0 [14:31:58]*** Brake cut motor [14:31:59]Read from MH i2c: 01 [14:31:59]MH_I2C_Read... [14:31:59]*** Stop cut motor [14:31:59]*** Cut end [14:31:59]Read from MH i2c: 01 07 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 89 13 00 00 00 00 00 FF 0F B1 [14:31:59]process_action close_receipt done [14:31:59]requested_data is exist [14:31:59]produce_requested_data [14:31:59]requested_item fm.sn is exist - process it [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 11 00 00 [14:31:59]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 17 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 70 [14: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 [14:31:59]wFMCommunicate OK [14:31:59]requested_item fd.num is exist - process it [14:31:59]SAM_PROTO_GetFieldsCounters [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 13 00 00 [14:31:59]Write to MH i2c: E2 08 00 8B 13 80 13 00 00 00 00 00 00 1A [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 62 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 62 00 8B 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 71 F6 00 00 0E 04 04 00 20 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 CD [14:31: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 71 F6 00 00 0E 04 04 00 20 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 [14:31:59]wFMCommunicate OK [14:31:59]SAM_PROTO_GetFieldsCounters done [14:31:59]requested_item shift.num is exist - process it [14:31:59]requested_item shift.opened is exist - process it [14:31:59]req_shift_opened [14:31:59]FM_GetShiftState [14:31:59]SAM_PROTO_GetShiftState [14:31:59]wFMCommunicate request_size=4 [14:31:59]MH_SAM_APDU [14:31:59]CAPDU: 80 13 01 00 [14:31:59]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:59]Read from MH i2c: E2 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 0E 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 7C [14:31:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:31:59]wFMCommunicate OK [14:31:59]SAM_PROTO_GetShiftState done [14:31:59]FM_GetShiftState done [14:31:59]req_shift_opened done [14:31:59]requested_item shift.open_date is exist - process it [14:31:59]req_shift_open_date [14:31:59]req_shift_open_date done [14:31:59]produce_requested_data done [14:31:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63089,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:31:59]process_action_free close_receipt [14:31:59]json_value_free [14:31:59]json_value_free done [14:31:59]process_json_proto returns [14:31:59]Send response to host [14:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63089,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:31:59]free response buf [14:31:59]execute_script done [14:31:59]execute_script returns [14:31:59]free content buf [14:31:59]Sock 7.Close socket [14:31:59]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]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:45]accept exits with 10 [14:47:45]New connection [14:47:45]New thread 3067055460 created [14:47:45]Thread 3067198820 joined [14:47:45]Waiting for new connection... [14:47:45] Sock 10.Parse request [14:47:45]Sock 10.Check first char [14:47:45]Sock 10.First char is OK [14:47:45]request: POST /json_proto HTTP/1.0 [14:47:45]Method: POST [14:47:45]URL: /json_proto [14:47:45]Method is POST - this is cgi request [14:47:45]url: /json_proto [14:47:45]query_string will be loaded in cgi processing [14:47:45]execute_cgi json_proto POST (null) [14:47:45]execute_cgi path=json_proto method=POST [14:47:45]POST find Content-Length [14:47:45]Host: 172.17.42.132:8080 [14:47:45]Content-Length: 1842 [14:47:45]Content-Type: application/json [14:47:45] [14:47:45]POST finish read [14:47:45]Found Content-Length = 1842 [14:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47400", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090446", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Kola 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 383.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:45]execute_script... [14:47:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47400", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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 }]} ,{ "code": "8691216080348", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Zubi 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090446", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Kola 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 383.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:45]POST & json_proto [14:47:45]process_json_proto [14:47:45]json parsed OK: [14:47:45]protocol is kg_v1.0 [14:47:45]action value=close_receipt [14:47:45]process_action close_receipt [14:47:45]cmd_close_receipt [14:47:45]MH_GetDate [14:47:45]Write to MH i2c: F0 00 00 8D 13 8F [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: F0 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: F0 09 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: F0 09 00 8D 13 00 94 69 16 67 4C DF 56 66 F9 [14:47:45]GetLastDocTimeStamp 1729521117 [14:47:45]current date 1729522068 [14:47:45]FM_GetShiftState [14:47:45]SAM_PROTO_GetShiftState [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 13 01 00 [14:47:45]Write to MH i2c: E2 08 00 8E 13 80 13 01 00 00 00 00 00 1E [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 0E 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 0E 00 8E 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 7E [14:47:45]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:47:45]wFMCommunicate OK [14:47:45]SAM_PROTO_GetShiftState done [14:47:45]FM_GetShiftState done [14:47:45]opened in 1729469755 [14:47:45]opened+sec_in_day 1729556155 [14:47:45]quantity*price = 5000 [14:47:45]sum+1 = 5001 [14:47:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8691216080348 Жевательный мармелад HARIBO Zubi 80гр (2 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8691216090446 Жевательный мармелад HARIBO Kola 80гр (2 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 383.00 НСП 1% : 3.37 НДС 12% : 40.68 Наличными: 383.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 21.10.2024 14:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63090 ФПД: 124621304205499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144748&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63090&fm=124621304205499&tin=02508201610067®Number=0000000000091619&sum=38300 0 [14:47:46]StoreToDocumentArchive [14:47:46]shift 544 fd 63090 [14:47:46]save to /storage/0544/doc_00063090 [14:47:46]save last doc name /storage/0544/doc_00063090 to /storage/kkm_last_doc_name [14:47:46]save OK [14:47:46]Clear old archive folders... [14:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=781 [14:47:46]tlvbuf is B6EE4510 [14:47:46]SAM_PROTO_ClearQueue [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 09 00 00 [14:47:46]Write to MH i2c: E2 08 00 9B 13 80 09 00 00 00 00 00 00 20 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 9B 13 00 90 00 22 [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]SAM_PROTO_ClearQueue done [14:47:46]KKMCreateOFDPacket [14:47:46]OFDProtocolAddRootSTLVToBuf [14:47:46]FM_MakeSignedData [14:47:46]FM_MakeSignedData [14:47:46]SAM_PROTO_SignData [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 01 02 [14:47:46]Write to MH i2c: E2 08 00 9C 13 80 0D 01 02 00 00 00 00 28 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 9C 13 00 90 00 23 [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=255 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 02 02 FA 03 00 0D 03 1E 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 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 23 [14:47:46]Write to MH i2c: E2 02 01 9D 13 80 0D 02 02 FA 00 03 00 0D 03 1E 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 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 23 00 00 E3 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 9D 13 00 90 00 24 [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=255 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 02 02 FA 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 34 36 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 4B 6F 6C 61 20 38 30 D0 B3 D1 80 20 28 32 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 [14:47:46]Write to MH i2c: E2 02 01 9E 13 80 0D 02 02 FA 00 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 34 36 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 4B 6F 6C 61 20 38 30 D0 B3 D1 80 20 28 32 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 00 00 CC [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:47]Read from MH i2c: E2 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [14:47:47]RAPDU: 90 00 [14:47:47]wFMCommunicate OK [14:47:47]wFMCommunicate request_size=255 [14:47:47]MH_SAM_APDU [14:47:47]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 9C 95 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 94 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 [14:47:47]Write to MH i2c: E2 02 01 9F 13 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 9C 95 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 94 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 19 [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:47]Read from MH i2c: E2 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [14:47:47]RAPDU: 90 00 [14:47:47]wFMCommunicate OK [14:47:47]wFMCommunicate request_size=40 [14:47:47]MH_SAM_APDU [14:47:47]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F6 00 00 35 04 06 00 71 57 A8 91 90 BB [14:47:47]Write to MH i2c: E2 2B 00 A0 13 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F6 00 00 35 04 06 00 71 57 A8 91 90 BB 00 00 A4 [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:47]Read from MH i2c: E2 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [14:47:47]RAPDU: 90 00 [14:47:47]wFMCommunicate OK [14:47:47]wFMCommunicate request_size=4 [14:47:47]MH_SAM_APDU [14:47:47]CAPDU: 80 0D 03 02 [14:47:47]Write to MH i2c: E2 08 00 A1 13 80 0D 03 02 00 00 00 00 2F [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:47]Read from MH i2c: E2 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 0B 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 0B 00 A1 13 00 85 FB 1C 5D B6 5B 92 D3 90 00 9F [14:47:47]RAPDU: 85 FB 1C 5D B6 5B 92 D3 90 00 [14:47:47]wFMCommunicate OK [14:47:47]SAM_PROTO_SignData done [14:47:47]FM_MakeSignedData done [14:47:47]CreateOFDProtocolMessage [14:47:47]wFMCommunicate request_size=4 [14:47:47]MH_SAM_APDU [14:47:47]CAPDU: 80 11 00 00 [14:47:47]Write to MH i2c: E2 08 00 A2 13 80 11 00 00 00 00 00 00 2F [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:47]Read from MH i2c: E2 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 17 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: E2 17 00 A2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 88 [14:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:47:47]wFMCommunicate OK [14:47:47]CreateOFDProtocolMessage done [14:47:47]OFDSenderStorePacket 63090 [14:47:47]StoreOFDPacket docnum=63090 [14:47: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 21 03 00 00 54 2E 19 03 49 D0 5A 03 01 00 03 00 0D 03 1E 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 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 34 36 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 4B 6F 6C 61 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 9C 95 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 94 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 71 57 A8 91 90 BB 85 FB 1C 5D B6 5B 92 D3 [14:47:48]CheckFolder [14:47:48]dirname=/storage/ofd_packets [14:47:48]CheckFolder done [14:47:48]ProducePacketName [14:47:48]name=ofd_packets/00063090 [14:47:48]NVStorageSaveData ofd_packets/00063090 [14:47:48]File name is /storage/ofd_packets/00063090 [14:47:48]Write 831 bytes [14:47:48]NVStorageSaveData done [14:47:48]OFDSenderStorePacket done [14:47:48]KKMCreateOFDPacket done [14:47:48]NVStorageSaveData kkm_last_timestamp [14:47:48]File name is /storage/kkm_last_timestamp [14:47:48]Write 4 bytes [14:47:48]NVStorageSaveData done [14:47:48]ExternCall_PrintAddStr [14:47:48]wPrintStart [14:47:48]Write to MH i2c: 01 00 00 A3 13 B6 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 07 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 07 00 A3 13 00 00 00 00 00 FF 0F CB [14:47:48]RasterBufferAndPrint [14:47:48]line Счет N : (3)47400 [14:47:48]line ИНН: 02508201610067 [14:47:48]line Контрольно-Кассовый Чек [14:47:48]line ПРОДАЖА [14:47:48]line Товар: 4700003010018 [14:47:48]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [14:47:48]line 1.000 * 50.00 [14:47:48]line = 50.00 [14:47:48]line НДС 12% НСП 1% [14:47:48]line > о реализуемом товаре [14:47:48]line Товар: 4603290004879 [14:47:48]line Печ.сах.FORSITE Сэнд.кокос.вк [14:47:48]line 1.000 * 93.00 [14:47:48]line = 93.00 [14:47:48]line НДС 12% НСП 1% [14:47:48]line > о реализуемом товаре [14:47:48]line Товар: 8691216080348 [14:47:48]line Жевательный мармелад HARIBO Zubi 80гр (2 [14:47:48]line 1.000 * 100.00 [14:47:48]line = 100.00 [14:47:48]line НДС 12% НСП 1% [14:47:48]line > о реализуемом товаре [14:47:48]line Товар: 8691216090446 [14:47:48]line Жевательный мармелад HARIBO Kola 80гр (2 [14:47:48]line 1.000 * 100.00 [14:47:48]line = 100.00 [14:47:48]line НДС 12% НСП 1% [14:47:48]line > о реализуемом товаре [14:47:48]line Товар: 50173372 [14:47:48]line Жев Orbit для детей Classic [14:47:48]line 1.000 * 40.00 [14:47:48]line = 40.00 [14:47:48]line НДС 12% НСП 1% [14:47:48]line > о реализуемом товаре [14:47:48]line ИТОГО: 383.00 [14:47:48]line НСП 1% : 3.37 [14:47:48]line НДС 12% : 40.68 [14:47:48]line Наличными: 383.00 [14:47:48]line Безнал.: 0.00 [14:47:48]line Место: АЗС № 86 "Партнер Нефть" [14:47:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:47:48]line СНО: Общий режим [14:47:48]line Чек 87 21.10.2024 14:47 [14:47:48]line Смена: 544 ФФД: 1.0 [14:47:48]line ЗНМ: 0300000154 [14:47:48]line РНМ: 0000000000091619 [14:47:48]line Версия ККМ: 001 [14:47:48]line ФМ: 0000000000874676 [14:47:48]line ФД: 63090 [14:47:48]line ФПД: 124621304205499 [14:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144748&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63090&fm=124621304205499&tin=02508201610067®Number=0000000000091619&sum=38300 [14:47:48]line 0 [14:47:48]written 0, free lines is 4095 [14:47:48]OFD Sender: Processing packet 63090 [packets to send 232, broken 231] [14:47:48]ProducePacketName [14:47:48]name=ofd_packets/00063090 [14:47:48]OFD Sender: To server: pG, [14:47:48]CommunicateWithHost lk.salyk.kg:30040 [14:47:48]ConnectInit lk.salyk.kg [14:47:48]Connected sock=9 [14:47: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 21 03 00 00 54 2E 19 03 49 D0 5A 03 01 00 03 00 0D 03 1E 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 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 38 30 33 34 38 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 5A 75 62 69 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 34 36 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 4B 6F 6C 61 20 38 30 D0 B3 D1 80 20 28 32 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 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0F 00 00 00 00 07 04 06 00 9C 95 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 94 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 71 57 A8 91 90 BB 85 FB 1C 5D B6 5B 92 D3 [14:47:48]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 02 BC 47 00 EC 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 72 F6 00 00 F4 03 04 00 92 13 16 67 B6 04 01 00 00 F6 38 4E 2B 36 3A 30 E4 [14:47:48]CommunicateWithHost err = 0 [14:47:48]CheckOFDResponse [14:47:48]1017 (14) - 77093643461234 [14:47:48]1041 (16) - 0000000000874676 [14:47:48]1040 (4) - 63090 [14:47:48]1012 (4) - 21.10.2024 08:40 [14:47:48]1206 (1) - 0 [14:47:48]OFD Sender: Remove packet 63090 [14:47:48]ProducePacketName [14:47:48]name=ofd_packets/00063090 [14:47:48]NVStorageDeleteData [14:47:48]Write to MH i2c: 01 00 00 E6 13 F9 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 07 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 DB 0B E6 [14:47:48]RasterBufferAndPrint [14:47:48]line [14:47:48]line [14:47:48]line [14:47:48]line [14:47:48]line [14:47:48]written 0, free lines is 3047 [14:47:48]MH_Cut [14:47:48]Write to MH i2c: D1 01 00 ED 13 01 D2 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: D1 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: D1 01 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: D1 01 00 ED 13 00 D1 [14:47:48]Write to MH i2c: 01 00 00 EE 13 01 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:49]OFD Sender: No OFD packet to send [14:47:49]*** Cut start [14:47:49]*** Partial cut [14:47:49]*** CUTSNS_PIN = 1 [14:47:49]*** CUTSNS_PIN = 0 [14:47:49]*** Brake cut motor [14:47:50]Read from MH i2c: 01 [14:47:50]MH_I2C_Read... [14:47:50]*** Stop cut motor [14:47:50]*** Cut end [14:47:50]Read from MH i2c: 01 07 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 07 00 EE 13 00 00 00 00 00 FF 0F 16 [14:47:50]process_action close_receipt done [14:47:50]requested_data is exist [14:47:50]produce_requested_data [14:47:50]requested_item fm.sn is exist - process it [14:47:50]wFMCommunicate request_size=4 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 11 00 00 [14:47:50]Write to MH i2c: E2 08 00 EF 13 80 11 00 00 00 00 00 00 7C [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 17 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 17 00 EF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D5 [14:47: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:47:50]wFMCommunicate OK [14:47:50]requested_item fd.num is exist - process it [14:47:50]SAM_PROTO_GetFieldsCounters [14:47:50]wFMCommunicate request_size=4 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 13 00 00 [14:47:50]Write to MH i2c: E2 08 00 F0 13 80 13 00 00 00 00 00 00 7F [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 62 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 62 00 F0 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 72 F6 00 00 0E 04 04 00 20 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 36 [14:47: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 72 F6 00 00 0E 04 04 00 20 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 [14:47:50]wFMCommunicate OK [14:47:50]SAM_PROTO_GetFieldsCounters done [14:47:50]requested_item shift.num is exist - process it [14:47:50]requested_item shift.opened is exist - process it [14:47:50]req_shift_opened [14:47:50]FM_GetShiftState [14:47:50]SAM_PROTO_GetShiftState [14:47:50]wFMCommunicate request_size=4 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 13 01 00 [14:47:50]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 0E 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E1 [14:47:50]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:47:50]wFMCommunicate OK [14:47:50]SAM_PROTO_GetShiftState done [14:47:50]FM_GetShiftState done [14:47:50]req_shift_opened done [14:47:50]requested_item shift.open_date is exist - process it [14:47:50]req_shift_open_date [14:47:50]req_shift_open_date done [14:47:50]produce_requested_data done [14:47:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63090,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:47:50]process_action_free close_receipt [14:47:50]json_value_free [14:47:50]json_value_free done [14:47:50]process_json_proto returns [14:47:50]Send response to host [14:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63090,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:47:50]free response buf [14:47:50]execute_script done [14:47:50]execute_script returns [14:47:50]free content buf [14:47:50]Sock 10.Close socket [14:47:50]Sock 10.Thread stoped [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:33]accept exits with 7 [14:48:33]New connection [14:48:33]New thread 3067198820 created [14:48:33]Thread 3067055460 joined [14:48:33]Waiting for new connection... [14:48:33] Sock 7.Parse request [14:48:33]Sock 7.Check first char [14:48:33]Sock 7.First char is OK [14:48:33]request: POST /json_proto HTTP/1.0 [14:48:33]Method: POST [14:48:33]URL: /json_proto [14:48:33]Method is POST - this is cgi request [14:48:33]url: /json_proto [14:48:33]query_string will be loaded in cgi processing [14:48:33]execute_cgi json_proto POST (null) [14:48:33]execute_cgi path=json_proto method=POST [14:48:33]POST find Content-Length [14:48:33]Host: 172.17.42.132:8080 [14:48:33]Content-Length: 645 [14:48:33]Content-Type: application/json [14:48:33] [14:48:33]POST finish read [14:48:33]Found Content-Length = 645 [14:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47401", "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" ] } } [14:48:33]execute_script... [14:48: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)47401", "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" ] } } [14:48:33]POST & json_proto [14:48:33]process_json_proto [14:48:33]json parsed OK: [14:48:33]protocol is kg_v1.0 [14:48:33]action value=close_receipt [14:48:33]process_action close_receipt [14:48:33]cmd_close_receipt [14:48:33]MH_GetDate [14:48:33]Write to MH i2c: F0 00 00 F2 13 F4 [14:48:33]Write i2c OK [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: F0 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: F0 09 00 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: F0 09 00 F2 13 00 C3 69 16 67 4C DF 56 66 8D [14:48:33]GetLastDocTimeStamp 1729522068 [14:48:33]current date 1729522115 [14:48:33]FM_GetShiftState [14:48:33]SAM_PROTO_GetShiftState [14:48:33]wFMCommunicate request_size=4 [14:48:33]MH_SAM_APDU [14:48:33]CAPDU: 80 13 01 00 [14:48:33]Write to MH i2c: E2 08 00 F3 13 80 13 01 00 00 00 00 00 83 [14:48:33]Write i2c OK [14:48:33]MH_I2C_Read... [14:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:33]Read from MH i2c: E2 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: E2 0E 00 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: E2 0E 00 F3 13 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E3 [14:48:33]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:48:33]wFMCommunicate OK [14:48:33]SAM_PROTO_GetShiftState done [14:48:33]FM_GetShiftState done [14:48:33]opened in 1729469755 [14:48:33]opened+sec_in_day 1729556155 [14:48:33]quantity*price = 13000 [14:48:33]sum+1 = 13001 [14:48:33]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 СНО: Общий режим Чек 88 21.10.2024 14:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63091 ФПД: 67854929714559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63091&fm=67854929714559&tin=02508201610067®Number=0000000000091619&sum=13000 0 [14:48:34]StoreToDocumentArchive [14:48:34]shift 544 fd 63091 [14:48:34]save to /storage/0544/doc_00063091 [14:48:34]save last doc name /storage/0544/doc_00063091 to /storage/kkm_last_doc_name [14:48:34]save OK [14:48:34]Clear old archive folders... [14:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:48:34]tlvbuf is 01942970 [14:48:34]SAM_PROTO_ClearQueue [14:48:34]wFMCommunicate request_size=4 [14:48:34]MH_SAM_APDU [14:48:34]CAPDU: 80 09 00 00 [14:48:34]Write to MH i2c: E2 08 00 00 14 80 09 00 00 00 00 00 00 86 [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:34]Read from MH i2c: E2 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [14:48:34]RAPDU: 90 00 [14:48:34]wFMCommunicate OK [14:48:34]SAM_PROTO_ClearQueue done [14:48:34]KKMCreateOFDPacket [14:48:34]OFDProtocolAddRootSTLVToBuf [14:48:34]FM_MakeSignedData [14:48:34]FM_MakeSignedData [14:48:34]SAM_PROTO_SignData [14:48:34]wFMCommunicate request_size=4 [14:48:34]MH_SAM_APDU [14:48:34]CAPDU: 80 0D 01 02 [14:48:34]Write to MH i2c: E2 08 00 01 14 80 0D 01 02 00 00 00 00 8E [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:34]Read from MH i2c: E2 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [14:48:34]RAPDU: 90 00 [14:48:34]wFMCommunicate OK [14:48:34]wFMCommunicate request_size=255 [14:48:34]MH_SAM_APDU [14:48: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 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 58 00 00 00 F4 03 04 00 C4 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [14:48:34]Write to MH i2c: E2 02 01 02 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 58 00 00 00 F4 03 04 00 C4 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 C2 [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:34]Read from MH i2c: E2 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 03 00 02 14 00 90 00 8A [14:48:34]RAPDU: 90 00 [14:48:34]wFMCommunicate OK [14:48:34]wFMCommunicate request_size=41 [14:48:34]MH_SAM_APDU [14:48: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 73 F6 00 00 35 04 06 00 3D B6 B4 FB 5D 7F [14:48:34]Write to MH i2c: E2 2C 00 03 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 73 F6 00 00 35 04 06 00 3D B6 B4 FB 5D 7F 00 00 4D [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:35]Read from MH i2c: E2 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 03 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 03 00 03 14 00 90 00 8B [14:48:35]RAPDU: 90 00 [14:48:35]wFMCommunicate OK [14:48:35]wFMCommunicate request_size=4 [14:48:35]MH_SAM_APDU [14:48:35]CAPDU: 80 0D 03 02 [14:48:35]Write to MH i2c: E2 08 00 04 14 80 0D 03 02 00 00 00 00 93 [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:35]Read from MH i2c: E2 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 0B 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 0B 00 04 14 00 2B 7A 56 F0 0A 40 AF 91 90 00 09 [14:48:35]RAPDU: 2B 7A 56 F0 0A 40 AF 91 90 00 [14:48:35]wFMCommunicate OK [14:48:35]SAM_PROTO_SignData done [14:48:35]FM_MakeSignedData done [14:48:35]CreateOFDProtocolMessage [14:48:35]wFMCommunicate request_size=4 [14:48:35]MH_SAM_APDU [14:48:35]CAPDU: 80 11 00 00 [14:48:35]Write to MH i2c: E2 08 00 05 14 80 11 00 00 00 00 00 00 93 [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:35]Read from MH i2c: E2 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 17 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 17 00 05 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EC [14:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:48:35]wFMCommunicate OK [14:48:35]CreateOFDProtocolMessage done [14:48:35]OFDSenderStorePacket 63091 [14:48:35]StoreOFDPacket docnum=63091 [14:48: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 2E 01 00 00 87 FF 26 01 1C 5F 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 58 00 00 00 F4 03 04 00 C4 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 3D B6 B4 FB 5D 7F 2B 7A 56 F0 0A 40 AF 91 [14:48:35]CheckFolder [14:48:35]dirname=/storage/ofd_packets [14:48:35]CheckFolder done [14:48:35]ProducePacketName [14:48:35]name=ofd_packets/00063091 [14:48:35]NVStorageSaveData ofd_packets/00063091 [14:48:35]File name is /storage/ofd_packets/00063091 [14:48:35]Write 332 bytes [14:48:35]NVStorageSaveData done [14:48:35]OFDSenderStorePacket done [14:48:35]KKMCreateOFDPacket done [14:48:35]NVStorageSaveData kkm_last_timestamp [14:48:35]File name is /storage/kkm_last_timestamp [14:48:35]Write 4 bytes [14:48:35]OFD Sender: Processing packet 63091 [packets to send 232, broken 231] [14:48:35]ProducePacketName [14:48:35]name=ofd_packets/00063091 [14:48:35]OFD Sender: To server: pG, [14:48:35]CommunicateWithHost lk.salyk.kg:30040 [14:48:35]ConnectInit lk.salyk.kg [14:48:35]NVStorageSaveData done [14:48:35]ExternCall_PrintAddStr [14:48:35]wPrintStart [14:48:35]Write to MH i2c: 01 00 00 06 14 1A [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 07 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [14:48:35]RasterBufferAndPrint [14:48:35]line Счет N : (3)47401 [14:48:35]line ИНН: 02508201610067 [14:48:35]line Контрольно-Кассовый Чек [14:48:35]line ПРОДАЖА [14:48:35]line Товар: 2000036220012 [14:48:35]line Кофе Капучино XL(GABB TRADE) [14:48:35]line 1.000 * 130.00 [14:48:35]line = 130.00 [14:48:35]line НДС 12% НСП 1% [14:48:35]line > о реализуемом товаре [14:48:35]line ИТОГО: 130.00 [14:48:35]line НСП 1% : 1.15 [14:48:35]line НДС 12% : 13.80 [14:48:35]line Наличными: 130.00 [14:48:35]line Безнал.: 0.00 [14:48:35]line Место: АЗС № 86 "Партнер Нефть" [14:48:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:48:35]line СНО: Общий режим [14:48:35]line Чек 88 21.10.2024 14:48 [14:48:35]line Смена: 544 ФФД: 1.0 [14:48:35]line ЗНМ: 0300000154 [14:48:35]line РНМ: 0000000000091619 [14:48:35]line Версия ККМ: 001 [14:48:35]line ФМ: 0000000000874676 [14:48:35]line ФД: 63091 [14:48:35]line ФПД: 67854929714559 [14:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63091&fm=67854929714559&tin=02508201610067®Number=0000000000091619&sum=13000 [14:48:35]line 0 [14:48:35]written 0, free lines is 4095 [14:48:35]Write to MH i2c: 01 00 00 2F 14 43 [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 07 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 00 0D 57 [14:48:35]RasterBufferAndPrint [14:48:35]line [14:48:35]line [14:48:35]line [14:48:35]line [14:48:35]line [14:48:35]written 0, free lines is 3333 [14:48:35]MH_Cut [14:48:35]Write to MH i2c: D1 01 00 36 14 01 1C [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: D1 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: D1 01 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: D1 01 00 36 14 00 1B [14:48:35]Write to MH i2c: 01 00 00 37 14 4B [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:36]*** Cut start [14:48:36]*** Partial cut [14:48:36]*** CUTSNS_PIN = 1 [14:48:36]*** CUTSNS_PIN = 0 [14:48:36]*** Brake cut motor [14:48:37]Read from MH i2c: 01 [14:48:37]MH_I2C_Read... [14:48:37]*** Stop cut motor [14:48:37]*** Cut end [14:48:37]Read from MH i2c: 01 07 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 FF 0F 60 [14:48:37]process_action close_receipt done [14:48:37]requested_data is exist [14:48:37]produce_requested_data [14:48:37]requested_item fm.sn is exist - process it [14:48:37]wFMCommunicate request_size=4 [14:48:37]MH_SAM_APDU [14:48:37]CAPDU: 80 11 00 00 [14:48:37]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [14:48:37]Write i2c OK [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 [14:48:37]MH_I2C_Read... [14:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:37]Read from MH i2c: E2 17 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1F [14:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:48:37]wFMCommunicate OK [14:48:37]requested_item fd.num is exist - process it [14:48:37]SAM_PROTO_GetFieldsCounters [14:48:37]wFMCommunicate request_size=4 [14:48:37]MH_SAM_APDU [14:48:37]CAPDU: 80 13 00 00 [14:48:37]Write to MH i2c: E2 08 00 39 14 80 13 00 00 00 00 00 00 C9 [14:48:37]Write i2c OK [14:48:37]MH_I2C_Read... [14:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:37]Read from MH i2c: E2 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 62 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 62 00 39 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 73 F6 00 00 0E 04 04 00 20 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 84 [14:48: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 73 F6 00 00 0E 04 04 00 20 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 [14:48:37]wFMCommunicate OK [14:48:37]SAM_PROTO_GetFieldsCounters done [14:48:37]requested_item shift.num is exist - process it [14:48:37]requested_item shift.opened is exist - process it [14:48:37]req_shift_opened [14:48:37]FM_GetShiftState [14:48:37]SAM_PROTO_GetShiftState [14:48:37]wFMCommunicate request_size=4 [14:48:37]MH_SAM_APDU [14:48:37]CAPDU: 80 13 01 00 [14:48:37]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [14:48:37]Write i2c OK [14:48:37]MH_I2C_Read... [14:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:37]Read from MH i2c: E2 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2B [14:48:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:48:37]wFMCommunicate OK [14:48:37]SAM_PROTO_GetShiftState done [14:48:37]FM_GetShiftState done [14:48:37]req_shift_opened done [14:48:37]requested_item shift.open_date is exist - process it [14:48:37]req_shift_open_date [14:48:37]req_shift_open_date done [14:48:37]produce_requested_data done [14:48:37]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63091,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:48:37]process_action_free close_receipt [14:48:37]json_value_free [14:48:37]json_value_free done [14:48:37]process_json_proto returns [14:48:37]Send response to host [14:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63091,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:48:37]free response buf [14:48:37]execute_script done [14:48:37]execute_script returns [14:48:37]free content buf [14:48:37]Sock 7.Close socket [14:48:37]Sock 7.Thread stoped [14:49:40]accept exits with 9 [14:49:40]New connection [14:49:40]New thread 3067055460 created [14:49:40]Thread 3067198820 joined [14:49:40]Waiting for new connection... [14:49:40] Sock 9.Parse request [14:49:40]Sock 9.Check first char [14:49:40]Sock 9.First char is OK [14:49:40]request: POST /json_proto HTTP/1.0 [14:49:40]Method: POST [14:49:40]URL: /json_proto [14:49:40]Method is POST - this is cgi request [14:49:40]url: /json_proto [14:49:40]query_string will be loaded in cgi processing [14:49:40]execute_cgi json_proto POST (null) [14:49:40]execute_cgi path=json_proto method=POST [14:49:40]POST find Content-Length [14:49:40]Host: 172.17.42.132:8080 [14:49:40]Content-Length: 803 [14:49:40]Content-Type: application/json [14:49:40] [14:49:40]POST finish read [14:49:40]Found Content-Length = 803 [14:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47402", "tax_sys" : 0, "items" : [ { "code": "4620021192896", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u041F\u043B\u043E\u043C\u0431\u0438\u0440", "price" : 104.07, "quantity" : 4.000, "sum" : 416.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 416.28 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:40]execute_script... [14:49: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)47402", "tax_sys" : 0, "items" : [ { "code": "4620021192896", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u041F\u043B\u043E\u043C\u0431\u0438\u0440", "price" : 104.07, "quantity" : 4.000, "sum" : 416.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 416.28 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:40]POST & json_proto [14:49:40]process_json_proto [14:49:40]json parsed OK: [14:49:40]protocol is kg_v1.0 [14:49:40]action value=close_receipt [14:49:40]process_action close_receipt [14:49:40]cmd_close_receipt [14:49:40]MH_GetDate [14:49:40]Write to MH i2c: F0 00 00 3B 14 3E [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 3B 14 00 06 6A 16 67 4C DF 56 66 1B [14:49:40]GetLastDocTimeStamp 1729522116 [14:49:40]current date 1729522182 [14:49:40]FM_GetShiftState [14:49:40]SAM_PROTO_GetShiftState [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 13 01 00 [14:49:40]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2D [14:49:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:49:40]wFMCommunicate OK [14:49:40]SAM_PROTO_GetShiftState done [14:49:40]FM_GetShiftState done [14:49:40]opened in 1729469755 [14:49:40]opened+sec_in_day 1729556155 [14:49:40]quantity*price = 41628 [14:49:40]sum+1 = 41629 [14:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 416.28 НСП 1% : 3.68 НДС 12% : 44.21 Наличными: 0.00 Безнал.: 416.28 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 21.10.2024 14:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63092 ФПД: 233095855792276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144943&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63092&fm=233095855792276&tin=02508201610067®Number=0000000000091619&sum=41628 0 [14:49:41]StoreToDocumentArchive [14:49:41]shift 544 fd 63092 [14:49:41]save to /storage/0544/doc_00063092 [14:49:41]save last doc name /storage/0544/doc_00063092 to /storage/kkm_last_doc_name [14:49:41]save OK [14:49:41]Clear old archive folders... [14:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=285 [14:49:41]tlvbuf is 01962340 [14:49:41]SAM_PROTO_ClearQueue [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 09 00 00 [14:49:41]Write to MH i2c: E2 08 00 49 14 80 09 00 00 00 00 00 00 CF [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_ClearQueue done [14:49:41]KKMCreateOFDPacket [14:49:41]OFDProtocolAddRootSTLVToBuf [14:49:41]FM_MakeSignedData [14:49:41]FM_MakeSignedData [14:49:41]SAM_PROTO_SignData [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 01 02 [14:49:41]Write to MH i2c: E2 08 00 4A 14 80 0D 01 02 00 00 00 00 D7 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=255 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 38 39 36 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 9C A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 07 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 [14:49:41]Write to MH i2c: E2 02 01 4B 14 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 38 39 36 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 9C A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 07 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 00 00 21 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=44 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 02 02 27 39 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 F6 00 00 35 04 06 00 D3 FF DB AE E0 94 [14:49:41]Write to MH i2c: E2 2F 00 4C 14 80 0D 02 02 27 00 39 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 F6 00 00 35 04 06 00 D3 FF DB AE E0 94 00 00 3C [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [14:49:42]RAPDU: 90 00 [14:49:42]wFMCommunicate OK [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 0D 03 02 [14:49:42]Write to MH i2c: E2 08 00 4D 14 80 0D 03 02 00 00 00 00 DC [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0B 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0B 00 4D 14 00 A4 19 9C 11 A6 5E 42 18 90 00 A5 [14:49:42]RAPDU: A4 19 9C 11 A6 5E 42 18 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_SignData done [14:49:42]FM_MakeSignedData done [14:49:42]CreateOFDProtocolMessage [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 11 00 00 [14:49:42]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 17 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 17 00 4E 14 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:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:49:42]wFMCommunicate OK [14:49:42]CreateOFDProtocolMessage done [14:49:42]OFDSenderStorePacket 63092 [14:49:42]StoreOFDPacket docnum=63092 [14:49: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 31 01 00 00 2E BA 29 01 2F 25 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 38 39 36 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 9C A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 07 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D3 FF DB AE E0 94 A4 19 9C 11 A6 5E 42 18 [14:49:42]CheckFolder [14:49:42]dirname=/storage/ofd_packets [14:49:42]CheckFolder done [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00063092 [14:49:42]NVStorageSaveData ofd_packets/00063092 [14:49:42]File name is /storage/ofd_packets/00063092 [14:49:42]Write 335 bytes [14:49:42]NVStorageSaveData done [14:49:42]OFDSenderStorePacket done [14:49:42]KKMCreateOFDPacket done [14:49:42]NVStorageSaveData kkm_last_timestamp [14:49:42]File name is /storage/kkm_last_timestamp [14:49:42]Write 4 bytes [14:49:42]NVStorageSaveData done [14:49:42]ExternCall_PrintAddStr [14:49:42]wPrintStart [14:49:42]Write to MH i2c: 01 00 00 4F 14 63 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 FF 0F 78 [14:49:42]RasterBufferAndPrint [14:49:42]line Счет N : (3)47402 [14:49:42]line ИНН: 02508201610067 [14:49:42]line Контрольно-Кассовый Чек [14:49:42]line ПРОДАЖА [14:49:42]line Товар: 4620021192896 [14:49:42]line 48 Копеек стакан Пломбир [14:49:42]line 4.000 * 104.07 [14:49:42]line = 416.28 [14:49:42]line НДС 12% НСП 1% [14:49:42]line > о реализуемом товаре [14:49:42]line ИТОГО: 416.28 [14:49:42]line НСП 1% : 3.68 [14:49:42]line НДС 12% : 44.21 [14:49:42]line Наличными: 0.00 [14:49:42]line Безнал.: 416.28 [14:49:42]line Место: АЗС № 86 "Партнер Нефть" [14:49:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:49:42]line СНО: Общий режим [14:49:42]line Чек 89 21.10.2024 14:49 [14:49:42]line Смена: 544 ФФД: 1.0 [14:49:42]line ЗНМ: 0300000154 [14:49:42]line РНМ: 0000000000091619 [14:49:42]line Версия ККМ: 001 [14:49:42]line Платежная система: Mbank [14:49:42]line ФМ: 0000000000874676 [14:49:42]line ФД: 63092 [14:49:42]line ФПД: 233095855792276 [14:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144943&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63092&fm=233095855792276&tin=02508201610067®Number=0000000000091619&sum=41628 [14:49:42]line 0 [14:49:42]written 0, free lines is 4095 [14:49:42]Write to MH i2c: 01 00 00 78 14 8C [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 1A 0D BA [14:49:42]RasterBufferAndPrint [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]written 0, free lines is 3360 [14:49:42]MH_Cut [14:49:42]Write to MH i2c: D1 01 00 7F 14 01 65 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 01 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 01 00 7F 14 00 64 [14:49:42]Write to MH i2c: 01 00 00 80 14 94 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:43]*** Cut start [14:49:43]*** Partial cut [14:49:43]*** CUTSNS_PIN = 1 [14:49:43]*** CUTSNS_PIN = 0 [14:49:43]*** Brake cut motor [14:49:44]Read from MH i2c: 01 [14:49:44]MH_I2C_Read... [14:49:44]*** Stop cut motor [14:49:44]*** Cut end [14:49:44]Read from MH i2c: 01 07 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [14:49:44]process_action close_receipt done [14:49:44]requested_data is exist [14:49:44]produce_requested_data [14:49:44]requested_item fm.sn is exist - process it [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 11 00 00 [14:49:44]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 68 [14:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:49:44]wFMCommunicate OK [14:49:44]requested_item fd.num is exist - process it [14:49:44]SAM_PROTO_GetFieldsCounters [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 00 00 [14:49:44]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 82 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 74 F6 00 00 0E 04 04 00 20 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 D1 [14:49: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 74 F6 00 00 0E 04 04 00 20 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 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetFieldsCounters done [14:49:44]requested_item shift.num is exist - process it [14:49:44]requested_item shift.opened is exist - process it [14:49:44]req_shift_opened [14:49:44]FM_GetShiftState [14:49:44]SAM_PROTO_GetShiftState [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 01 00 [14:49:44]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 74 [14:49:44]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetShiftState done [14:49:44]FM_GetShiftState done [14:49:44]req_shift_opened done [14:49:44]requested_item shift.open_date is exist - process it [14:49:44]req_shift_open_date [14:49:44]req_shift_open_date done [14:49:44]produce_requested_data done [14:49:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63092,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:49:44]process_action_free close_receipt [14:49:44]json_value_free [14:49:44]json_value_free done [14:49:44]process_json_proto returns [14:49:44]Send response to host [14:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63092,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:49:44]free response buf [14:49:44]execute_script done [14:49:44]execute_script returns [14:49:44]free content buf [14:49:44]Sock 9.Close socket [14:49:44]Sock 9.Thread stoped [14:50:48]ConnectInit Can't connect to host [14:50:48]CommunicateWithHost connect error [14:50:48]CommunicateWithHost err = -1 [14:50:48]OFD Sender: Server communicate error [14:50:48]OFD Sender: Processing packet 63091 [packets to send 233, broken 231] [14:50:48]ProducePacketName [14:50:48]name=ofd_packets/00063091 [14:50:48]OFD Sender: To server: pG, [14:50:48]CommunicateWithHost lk.salyk.kg:30040 [14:50:48]ConnectInit lk.salyk.kg [14:50:48]Connected sock=9 [14:50: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 87 FF 26 01 1C 5F 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 58 00 00 00 F4 03 04 00 C4 69 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 3D B6 B4 FB 5D 7F 2B 7A 56 F0 0A 40 AF 91 [14:50: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 92 F8 47 00 ED 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F6 00 00 F4 03 04 00 46 14 16 67 B6 04 01 00 00 50 B7 B9 63 4E B4 22 12 [14:50:49]CommunicateWithHost err = 0 [14:50:49]CheckOFDResponse [14:50:49]1017 (14) - 77093643461234 [14:50:49]1041 (16) - 0000000000874676 [14:50:49]1040 (4) - 63091 [14:50:49]1012 (4) - 21.10.2024 08:43 [14:50:49]1206 (1) - 0 [14:50:49]OFD Sender: Remove packet 63091 [14:50:49]ProducePacketName [14:50:49]name=ofd_packets/00063091 [14:50:49]NVStorageDeleteData [14:50:49]OFD Sender: Processing packet 63092 [packets to send 232, broken 231] [14:50:49]ProducePacketName [14:50:49]name=ofd_packets/00063092 [14:50:49]OFD Sender: To server: pG, [14:50:49]CommunicateWithHost lk.salyk.kg:30040 [14:50:49]ConnectInit lk.salyk.kg [14:50:49]Connected sock=10 [14:50: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 31 01 00 00 2E BA 29 01 2F 25 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 38 39 36 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 9C A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 07 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D3 FF DB AE E0 94 A4 19 9C 11 A6 5E 42 18 [14:50: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 D8 5C 47 00 62 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 74 F6 00 00 F4 03 04 00 47 14 16 67 B6 04 01 00 00 1F DB 65 98 25 42 9A 9C [14:50:50]CommunicateWithHost err = 0 [14:50:50]CheckOFDResponse [14:50:50]1017 (14) - 77093643461234 [14:50:50]1041 (16) - 0000000000874676 [14:50:50]1040 (4) - 63092 [14:50:50]1012 (4) - 21.10.2024 08:43 [14:50:50]1206 (1) - 0 [14:50:50]OFD Sender: Remove packet 63092 [14:50:50]ProducePacketName [14:50:50]name=ofd_packets/00063092 [14:50:50]NVStorageDeleteData [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:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:32]accept exits with 7 [14:53:32]New connection [14:53:32]New thread 3067198820 created [14:53:32]Thread 3067055460 joined [14:53:32]Waiting for new connection... [14:53:32] Sock 7.Parse request [14:53:32]Sock 7.Check first char [14:53:32]Sock 7.First char is OK [14:53:32]request: POST /json_proto HTTP/1.0 [14:53:32]Method: POST [14:53:32]URL: /json_proto [14:53:32]Method is POST - this is cgi request [14:53:32]url: /json_proto [14:53:32]query_string will be loaded in cgi processing [14:53:32]execute_cgi json_proto POST (null) [14:53:32]execute_cgi path=json_proto method=POST [14:53:32]POST find Content-Length [14:53:32]Host: 172.17.42.132:8080 [14:53:32]Content-Length: 1321 [14:53:32]Content-Type: application/json [14:53:32] [14:53:32]POST finish read [14:53:32]Found Content-Length = 1321 [14:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47403", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 85.24, "quantity" : 1.000, "sum" : 85.24, "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" : 2.000, "sum" : 285.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 132.81, "quantity" : 1.000, "sum" : 132.81, "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" : 503.51 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:32]execute_script... [14:53: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)47403", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 85.24, "quantity" : 1.000, "sum" : 85.24, "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" : 2.000, "sum" : 285.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 132.81, "quantity" : 1.000, "sum" : 132.81, "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" : 503.51 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:32]POST & json_proto [14:53:32]process_json_proto [14:53:32]json parsed OK: [14:53:32]protocol is kg_v1.0 [14:53:32]action value=close_receipt [14:53:32]process_action close_receipt [14:53:32]cmd_close_receipt [14:53:32]MH_GetDate [14:53:32]Write to MH i2c: F0 00 00 84 14 87 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 09 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 09 00 84 14 00 EF 6A 16 67 4C DF 56 66 4D [14:53:32]GetLastDocTimeStamp 1729522183 [14:53:32]current date 1729522415 [14:53:32]FM_GetShiftState [14:53:32]SAM_PROTO_GetShiftState [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 01 00 [14:53:32]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 76 [14:53:32]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetShiftState done [14:53:32]FM_GetShiftState done [14:53:32]opened in 1729469755 [14:53:32]opened+sec_in_day 1729556155 [14:53:32]quantity*price = 8524 [14:53:32]sum+1 = 8525 [14:53:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 142.73 = 285.46 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420084 Салфетки влажн BEST ANTIBACTERIAL 100 шт 1.000 * 132.81 = 132.81 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 503.51 НСП 1% : 4.45 НДС 12% : 53.46 Наличными: 0.00 Безнал.: 503.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 21.10.2024 14:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63093 ФПД: 195052337402323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145335&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63093&fm=195052337402323&tin=02508201610067®Number=0000000000091619&sum=50351 0 [14:53:33]StoreToDocumentArchive [14:53:33]shift 544 fd 63093 [14:53:33]save to /storage/0544/doc_00063093 [14:53:33]save last doc name /storage/0544/doc_00063093 to /storage/kkm_last_doc_name [14:53:33]save OK [14:53:33]Clear old archive folders... [14:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=517 [14:53:33]tlvbuf is 01942BC0 [14:53:33]SAM_PROTO_ClearQueue [14:53:33]wFMCommunicate request_size=4 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 09 00 00 [14:53:33]Write to MH i2c: E2 08 00 92 14 80 09 00 00 00 00 00 00 18 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [14:53:34]RAPDU: 90 00 [14:53:34]wFMCommunicate OK [14:53:34]SAM_PROTO_ClearQueue done [14:53:34]KKMCreateOFDPacket [14:53:34]OFDProtocolAddRootSTLVToBuf [14:53:34]FM_MakeSignedData [14:53:34]FM_MakeSignedData [14:53:34]SAM_PROTO_SignData [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 0D 01 02 [14:53:34]Write to MH i2c: E2 08 00 93 14 80 0D 01 02 00 00 00 00 20 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [14:53:34]RAPDU: 90 00 [14:53:34]wFMCommunicate OK [14:53:34]wFMCommunicate request_size=255 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 0D 02 02 FA 03 00 05 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 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 D0 07 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 82 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 [14:53:34]Write to MH i2c: E2 02 01 94 14 80 0D 02 02 FA 00 03 00 05 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 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 D0 07 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 82 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 00 00 FC [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [14:53:34]RAPDU: 90 00 [14:53:34]wFMCommunicate OK [14:53:34]wFMCommunicate request_size=255 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 0D 02 02 FA 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E1 33 00 00 00 00 13 04 06 00 E1 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EF 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [14:53:34]Write to MH i2c: E2 02 01 95 14 80 0D 02 02 FA 00 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E1 33 00 00 00 00 13 04 06 00 E1 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EF 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 DF [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [14:53:34]RAPDU: 90 00 [14:53:34]wFMCommunicate OK [14:53:34]wFMCommunicate request_size=26 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 0D 02 02 15 36 37 36 10 04 04 00 75 F6 00 00 35 04 06 00 B1 66 29 48 91 D3 [14:53:34]Write to MH i2c: E2 1D 00 96 14 80 0D 02 02 15 00 36 37 36 10 04 04 00 75 F6 00 00 35 04 06 00 B1 66 29 48 91 D3 00 00 9F [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [14:53:35]RAPDU: 90 00 [14:53:35]wFMCommunicate OK [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 0D 03 02 [14:53:35]Write to MH i2c: E2 08 00 97 14 80 0D 03 02 00 00 00 00 26 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0B 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0B 00 97 14 00 50 7D BD 11 99 14 47 45 90 00 FB [14:53:35]RAPDU: 50 7D BD 11 99 14 47 45 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_SignData done [14:53:35]FM_MakeSignedData done [14:53:35]CreateOFDProtocolMessage [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 11 00 00 [14:53:35]Write to MH i2c: E2 08 00 98 14 80 11 00 00 00 00 00 00 26 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 17 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 17 00 98 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7F [14:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:53:35]wFMCommunicate OK [14:53:35]CreateOFDProtocolMessage done [14:53:35]OFDSenderStorePacket 63093 [14:53:35]StoreOFDPacket docnum=63093 [14:53: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 19 02 00 00 E7 E6 11 02 05 74 5A 03 01 00 03 00 05 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 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 D0 07 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 82 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E1 33 00 00 00 00 13 04 06 00 E1 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EF 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B1 66 29 48 91 D3 50 7D BD 11 99 14 47 45 [14:53:35]CheckFolder [14:53:35]dirname=/storage/ofd_packets [14:53:35]CheckFolder done [14:53:35]ProducePacketName [14:53:35]name=ofd_packets/00063093 [14:53:35]NVStorageSaveData ofd_packets/00063093 [14:53:35]File name is /storage/ofd_packets/00063093 [14:53:35]Write 567 bytes [14:53:35]NVStorageSaveData done [14:53:35]OFDSenderStorePacket done [14:53:35]KKMCreateOFDPacket done [14:53:35]NVStorageSaveData kkm_last_timestamp [14:53:35]File name is /storage/kkm_last_timestamp [14:53:35]Write 4 bytes [14:53:35]NVStorageSaveData done [14:53:35]ExternCall_PrintAddStr [14:53:35]wPrintStart [14:53:35]Write to MH i2c: 01 00 00 99 14 AD [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 FF 0F C2 [14:53:35]RasterBufferAndPrint [14:53:35]line Счет N : (3)47403 [14:53:35]line ИНН: 02508201610067 [14:53:35]line Контрольно-Кассовый Чек [14:53:35]line ПРОДАЖА [14:53:35]line Товар: 4603290004848 [14:53:35]line Печ.зат.TONDI Сэнд.шок-сл.вк [14:53:35]line 1.000 * 85.24 [14:53:35]line = 85.24 [14:53:35]line НДС 12% НСП 1% [14:53:35]line > о реализуемом товаре [14:53:35]line Товар: 48743570 [14:53:35]line Сигареты Winston XStyle Blue [14:53:35]line 2.000 * 142.73 [14:53:35]line = 285.46 [14:53:35]line НДС 12% НСП 1% [14:53:35]line > о реализуемом товаре [14:53:35]line Товар: 4700041420084 [14:53:35]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [14:53:35]line 1.000 * 132.81 [14:53:35]line = 132.81 [14:53:35]line НДС 12% НСП 1% [14:53:35]line > о реализуемом товаре [14:53:35]line ИТОГО: 503.51 [14:53:35]line НСП 1% : 4.45 [14:53:35]line НДС 12% : 53.46 [14:53:35]line Наличными: 0.00 [14:53:35]line Безнал.: 503.51 [14:53:35]line Место: АЗС № 86 "Партнер Нефть" [14:53:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:53:35]line СНО: Общий режим [14:53:35]line Чек 90 21.10.2024 14:53 [14:53:35]line Смена: 544 ФФД: 1.0 [14:53:35]line ЗНМ: 0300000154 [14:53:35]line РНМ: 0000000000091619 [14:53:35]line Версия ККМ: 001 [14:53:35]line Платежная система: Mbank [14:53:35]line ФМ: 0000000000874676 [14:53:35]line ФД: 63093 [14:53:35]line ФПД: 195052337402323 [14:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145335&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63093&fm=195052337402323&tin=02508201610067®Number=0000000000091619&sum=50351 [14:53:35]OFD Sender: Processing packet 63093 [packets to send 232, broken 231] [14:53:35]ProducePacketName [14:53:35]name=ofd_packets/00063093 [14:53:35]OFD Sender: To server: pG, [14:53:35]CommunicateWithHost lk.salyk.kg:30040 [14:53:35]ConnectInit lk.salyk.kg [14:53:35]line 0 [14:53:35]written 0, free lines is 4095 [14:53:35]Connected sock=10 [14:53: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 19 02 00 00 E7 E6 11 02 05 74 5A 03 01 00 03 00 05 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 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 D0 07 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 82 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E1 33 00 00 00 00 13 04 06 00 E1 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EF 6A 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B1 66 29 48 91 D3 50 7D BD 11 99 14 47 45 [14:53:35]Write to MH i2c: 01 00 00 CF 14 E3 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 CF 14 00 00 00 00 00 88 0C 7E [14:53:35]RasterBufferAndPrint [14:53:35]line [14:53:35]line [14:53:35]line [14:53:35]line [14:53:35]line [14:53: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 A5 C6 47 00 48 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 75 F6 00 00 F4 03 04 00 ED 14 16 67 B6 04 01 00 00 ED 74 2B 65 2D C4 19 72 [14:53:35]CommunicateWithHost err = 0 [14:53:35]CheckOFDResponse [14:53:35]1017 (14) - 77093643461234 [14:53:35]1041 (16) - 0000000000874676 [14:53:35]1040 (4) - 63093 [14:53:35]1012 (4) - 21.10.2024 08:46 [14:53:35]1206 (1) - 0 [14:53:35]OFD Sender: Remove packet 63093 [14:53:35]ProducePacketName [14:53:35]name=ofd_packets/00063093 [14:53:35]NVStorageDeleteData [14:53:35]written 0, free lines is 3233 [14:53:35]MH_Cut [14:53:35]Write to MH i2c: D1 01 00 D6 14 01 BC [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: D1 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: D1 01 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: D1 01 00 D6 14 00 BB [14:53:35]Write to MH i2c: 01 00 00 D7 14 EB [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:36]OFD Sender: No OFD packet to send [14:53:36]*** Cut start [14:53:36]*** Partial cut [14:53:36]*** CUTSNS_PIN = 1 [14:53:36]*** CUTSNS_PIN = 0 [14:53:36]*** Brake cut motor [14:53:37]Read from MH i2c: 01 [14:53:37]MH_I2C_Read... [14:53:37]*** Stop cut motor [14:53:37]*** Cut end [14:53:37]Read from MH i2c: 01 07 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 FF 0F 00 [14:53:37]process_action close_receipt done [14:53:37]requested_data is exist [14:53:37]produce_requested_data [14:53:37]requested_item fm.sn is exist - process it [14:53:37]wFMCommunicate request_size=4 [14:53:37]MH_SAM_APDU [14:53:37]CAPDU: 80 11 00 00 [14:53:37]Write to MH i2c: E2 08 00 D8 14 80 11 00 00 00 00 00 00 66 [14:53:37]Write i2c OK [14:53:37]MH_I2C_Read... [14:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:37]Read from MH i2c: E2 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 17 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 17 00 D8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BF [14:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:53:37]wFMCommunicate OK [14:53:37]requested_item fd.num is exist - process it [14:53:37]SAM_PROTO_GetFieldsCounters [14:53:37]wFMCommunicate request_size=4 [14:53:37]MH_SAM_APDU [14:53:37]CAPDU: 80 13 00 00 [14:53:37]Write to MH i2c: E2 08 00 D9 14 80 13 00 00 00 00 00 00 69 [14:53:37]Write i2c OK [14:53:37]MH_I2C_Read... [14:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:37]Read from MH i2c: E2 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 62 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 62 00 D9 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 75 F6 00 00 0E 04 04 00 20 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 2C [14:53: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 75 F6 00 00 0E 04 04 00 20 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 [14:53:37]wFMCommunicate OK [14:53:37]SAM_PROTO_GetFieldsCounters done [14:53:37]requested_item shift.num is exist - process it [14:53:37]requested_item shift.opened is exist - process it [14:53:37]req_shift_opened [14:53:37]FM_GetShiftState [14:53:37]SAM_PROTO_GetShiftState [14:53:37]wFMCommunicate request_size=4 [14:53:37]MH_SAM_APDU [14:53:37]CAPDU: 80 13 01 00 [14:53:37]Write to MH i2c: E2 08 00 DA 14 80 13 01 00 00 00 00 00 6B [14:53:37]Write i2c OK [14:53:37]MH_I2C_Read... [14:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:37]Read from MH i2c: E2 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 0E 00 [14:53:37]MH_I2C_Read... [14:53:37]Read from MH i2c: E2 0E 00 DA 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CB [14:53:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [14:53:37]wFMCommunicate OK [14:53:37]SAM_PROTO_GetShiftState done [14:53:37]FM_GetShiftState done [14:53:37]req_shift_opened done [14:53:37]requested_item shift.open_date is exist - process it [14:53:37]req_shift_open_date [14:53:37]req_shift_open_date done [14:53:37]produce_requested_data done [14:53:37]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63093,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [14:53:37]process_action_free close_receipt [14:53:37]json_value_free [14:53:37]json_value_free done [14:53:37]process_json_proto returns [14:53:37]Send response to host [14:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63093,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [14:53:37]free response buf [14:53:37]execute_script done [14:53:37]execute_script returns [14:53:37]free content buf [14:53:37]Sock 7.Close socket [14:53:37]Sock 7.Thread stoped [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]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:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:11:59]accept exits with 9 [15:11:59]New connection [15:11:59]New thread 3067055460 created [15:11:59]Thread 3067198820 joined [15:11:59]Waiting for new connection... [15:11:59] Sock 9.Parse request [15:11:59]Sock 9.Check first char [15:11:59]Sock 9.First char is OK [15:11:59]request: POST /json_proto HTTP/1.0 [15:11:59]Method: POST [15:11:59]URL: /json_proto [15:11:59]Method is POST - this is cgi request [15:11:59]url: /json_proto [15:11:59]query_string will be loaded in cgi processing [15:11:59]execute_cgi json_proto POST (null) [15:11:59]execute_cgi path=json_proto method=POST [15:11:59]POST find Content-Length [15:11:59]Host: 172.17.42.132:8080 [15:11:59]Content-Length: 615 [15:11:59]Content-Type: application/json [15:11:59] [15:11:59]POST finish read [15:11:59]Found Content-Length = 615 [15:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47404", "tax_sys" : 0, "items" : [ { "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 296.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]execute_script... [15:11: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)47404", "tax_sys" : 0, "items" : [ { "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 148.00, "quantity" : 2.000, "sum" : 296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 296.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]POST & json_proto [15:11:59]process_json_proto [15:11:59]json parsed OK: [15:11:59]protocol is kg_v1.0 [15:11:59]action value=close_receipt [15:11:59]process_action close_receipt [15:11:59]cmd_close_receipt [15:11:59]MH_GetDate [15:11:59]Write to MH i2c: F0 00 00 DB 14 DE [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 DB 14 00 41 6F 16 67 4C DF 56 66 FB [15:11:59]GetLastDocTimeStamp 1729522415 [15:11:59]current date 1729523521 [15:11:59]FM_GetShiftState [15:11:59]SAM_PROTO_GetShiftState [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 13 01 00 [15:11:59]Write to MH i2c: E2 08 00 DC 14 80 13 01 00 00 00 00 00 6D [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:59]Read from MH i2c: E2 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 DC 14 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CD [15:11:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:11:59]wFMCommunicate OK [15:11:59]SAM_PROTO_GetShiftState done [15:11:59]FM_GetShiftState done [15:11:59]opened in 1729469755 [15:11:59]opened+sec_in_day 1729556155 [15:11:59]quantity*price = 29600 [15:11:59]sum+1 = 29601 [15:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 296.00 НСП 1% : 2.62 НДС 12% : 31.43 Наличными: 296.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 21.10.2024 15:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63094 ФПД: 207315612172410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151201&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63094&fm=207315612172410&tin=02508201610067®Number=0000000000091619&sum=29600 0 [15:12:00]StoreToDocumentArchive [15:12:00]shift 544 fd 63094 [15:12:00]save to /storage/0544/doc_00063094 [15:12:00]save last doc name /storage/0544/doc_00063094 to /storage/kkm_last_doc_name [15:12:00]save OK [15:12:00]Clear old archive folders... [15:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:12:00]tlvbuf is B6EE4220 [15:12:00]SAM_PROTO_ClearQueue [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 09 00 00 [15:12:00]Write to MH i2c: E2 08 00 E9 14 80 09 00 00 00 00 00 00 6F [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_ClearQueue done [15:12:00]KKMCreateOFDPacket [15:12:00]OFDProtocolAddRootSTLVToBuf [15:12:00]FM_MakeSignedData [15:12:00]FM_MakeSignedData [15:12:00]SAM_PROTO_SignData [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 01 02 [15:12:00]Write to MH i2c: E2 08 00 EA 14 80 0D 01 02 00 00 00 00 77 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 EA 14 00 90 00 72 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=255 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:12:00]Write to MH i2c: E2 02 01 EB 14 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 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 AC [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 EB 14 00 90 00 73 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=27 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 02 02 16 34 36 37 36 10 04 04 00 76 F6 00 00 35 04 06 00 BC 8D 6D 6B 80 7A [15:12:00]Write to MH i2c: E2 1E 00 EC 14 80 0D 02 02 16 00 34 36 37 36 10 04 04 00 76 F6 00 00 35 04 06 00 BC 8D 6D 6B 80 7A 00 00 5B [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 EC 14 00 90 00 74 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 03 02 [15:12:00]Write to MH i2c: E2 08 00 ED 14 80 0D 03 02 00 00 00 00 7C [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0B 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0B 00 ED 14 00 A4 C2 0F FA F1 ED 39 EC 90 00 EF [15:12:00]RAPDU: A4 C2 0F FA F1 ED 39 EC 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_SignData done [15:12:00]FM_MakeSignedData done [15:12:00]CreateOFDProtocolMessage [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 11 00 00 [15:12:00]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D5 [15:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:12:00]wFMCommunicate OK [15:12:00]CreateOFDProtocolMessage done [15:12:00]OFDSenderStorePacket 63094 [15:12:00]StoreOFDPacket docnum=63094 [15:12: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 20 01 00 00 99 34 18 01 6D 3E 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BC 8D 6D 6B 80 7A A4 C2 0F FA F1 ED 39 EC [15:12:00]CheckFolder [15:12:00]dirname=/storage/ofd_packets [15:12:00]CheckFolder done [15:12:00]ProducePacketName [15:12:00]name=ofd_packets/00063094 [15:12:00]NVStorageSaveData ofd_packets/00063094 [15:12:00]File name is /storage/ofd_packets/00063094 [15:12:00]Write 318 bytes [15:12:00]NVStorageSaveData done [15:12:00]OFDSenderStorePacket done [15:12:00]KKMCreateOFDPacket done [15:12:00]NVStorageSaveData kkm_last_timestamp [15:12:00]File name is /storage/kkm_last_timestamp [15:12:00]Write 4 bytes [15:12:00]NVStorageSaveData done [15:12:00]ExternCall_PrintAddStr [15:12:00]wPrintStart [15:12:00]Write to MH i2c: 01 00 00 EF 14 03 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 07 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 FF 0F 18 [15:12:00]RasterBufferAndPrint [15:12:00]line Счет N : (3)47404 [15:12:00]line ИНН: 02508201610067 [15:12:00]line Контрольно-Кассовый Чек [15:12:00]line ПРОДАЖА [15:12:00]line Товар: 4640030090075 [15:12:00]line Сигареты Esse Blue [15:12:00]line 2.000 * 148.00 [15:12:00]line = 296.00 [15:12:00]line НДС 12% НСП 1% [15:12:00]line > о реализуемом товаре [15:12:00]line ИТОГО: 296.00 [15:12:00]line НСП 1% : 2.62 [15:12:00]line НДС 12% : 31.43 [15:12:00]line Наличными: 296.00 [15:12:00]line Безнал.: 0.00 [15:12:00]line Место: АЗС № 86 "Партнер Нефть" [15:12:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:12:00]line СНО: Общий режим [15:12:00]line Чек 91 21.10.2024 15:12 [15:12:00]line Смена: 544 ФФД: 1.0 [15:12:00]line ЗНМ: 0300000154 [15:12:00]line РНМ: 0000000000091619 [15:12:00]line Версия ККМ: 001 [15:12:00]line ФМ: 0000000000874676 [15:12:00]line ФД: 63094 [15:12:00]line ФПД: 207315612172410 [15:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151201&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63094&fm=207315612172410&tin=02508201610067®Number=0000000000091619&sum=29600 [15:12:00]line 0 [15:12:00]written 0, free lines is 4095 [15:12:00]OFD Sender: Processing packet 63094 [packets to send 232, broken 231] [15:12:00]ProducePacketName [15:12:00]name=ofd_packets/00063094 [15:12:00]OFD Sender: To server: pG, [15:12:00]CommunicateWithHost lk.salyk.kg:30040 [15:12:00]ConnectInit lk.salyk.kg [15:12:01]Connected sock=10 [15:12: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 20 01 00 00 99 34 18 01 6D 3E 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 A0 73 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0C 00 00 00 00 07 04 06 00 A0 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BC 8D 6D 6B 80 7A A4 C2 0F FA F1 ED 39 EC [15:12:01]Write to MH i2c: 01 00 00 17 15 2C [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 17 15 00 00 00 00 00 20 0D 60 [15:12:01]RasterBufferAndPrint [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]written 0, free lines is 3369 [15:12:01]MH_Cut [15:12:01]Write to MH i2c: D1 01 00 1E 15 01 05 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 01 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 01 00 1E 15 00 04 [15:12:01]Write to MH i2c: 01 00 00 1F 15 34 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12: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 01 79 47 00 C7 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F6 00 00 F4 03 04 00 3E 19 16 67 B6 04 01 00 00 BF 21 8D C8 F7 5F E2 AA [15:12:01]CommunicateWithHost err = 0 [15:12:01]CheckOFDResponse [15:12:01]1017 (14) - 77093643461234 [15:12:01]1041 (16) - 0000000000874676 [15:12:01]1040 (4) - 63094 [15:12:01]1012 (4) - 21.10.2024 09:05 [15:12:01]1206 (1) - 0 [15:12:01]OFD Sender: Remove packet 63094 [15:12:01]ProducePacketName [15:12:01]name=ofd_packets/00063094 [15:12:01]NVStorageDeleteData [15:12:01]*** Cut start [15:12:01]*** Partial cut [15:12:01]*** CUTSNS_PIN = 1 [15:12:01]*** CUTSNS_PIN = 0 [15:12:02]OFD Sender: No OFD packet to send [15:12:02]*** Brake cut motor [15:12:02]Read from MH i2c: 01 [15:12:02]MH_I2C_Read... [15:12:02]*** Stop cut motor [15:12:02]*** Cut end [15:12:02]Read from MH i2c: 01 07 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: 01 07 00 1F 15 00 00 00 00 00 FF 0F 49 [15:12:02]process_action close_receipt done [15:12:02]requested_data is exist [15:12:02]produce_requested_data [15:12:02]requested_item fm.sn is exist - process it [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 11 00 00 [15:12:02]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 17 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 17 00 20 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 08 [15:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:12:02]wFMCommunicate OK [15:12:02]requested_item fd.num is exist - process it [15:12:02]SAM_PROTO_GetFieldsCounters [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 13 00 00 [15:12:02]Write to MH i2c: E2 08 00 21 15 80 13 00 00 00 00 00 00 B2 [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 62 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 62 00 21 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 76 F6 00 00 0E 04 04 00 20 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 79 [15:12: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 76 F6 00 00 0E 04 04 00 20 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 [15:12:02]wFMCommunicate OK [15:12:02]SAM_PROTO_GetFieldsCounters done [15:12:02]requested_item shift.num is exist - process it [15:12:02]requested_item shift.opened is exist - process it [15:12:02]req_shift_opened [15:12:02]FM_GetShiftState [15:12:02]SAM_PROTO_GetShiftState [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 13 01 00 [15:12:02]Write to MH i2c: E2 08 00 22 15 80 13 01 00 00 00 00 00 B4 [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 0E 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 0E 00 22 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 14 [15:12:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:12:02]wFMCommunicate OK [15:12:02]SAM_PROTO_GetShiftState done [15:12:02]FM_GetShiftState done [15:12:02]req_shift_opened done [15:12:02]requested_item shift.open_date is exist - process it [15:12:02]req_shift_open_date [15:12:02]req_shift_open_date done [15:12:02]produce_requested_data done [15:12:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63094,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [15:12:02]process_action_free close_receipt [15:12:02]json_value_free [15:12:02]json_value_free done [15:12:02]process_json_proto returns [15:12:02]Send response to host [15:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63094,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [15:12:02]free response buf [15:12:02]execute_script done [15:12:02]execute_script returns [15:12:02]free content buf [15:12:02]Sock 9.Close socket [15:12:02]Sock 9.Thread stoped [15:12:07]OFD Sender: No OFD packet to send [15:12:08]accept exits with 7 [15:12:08]New connection [15:12:08]New thread 3067198820 created [15:12:08]Thread 3067055460 joined [15:12:08]Waiting for new connection... [15:12:08] Sock 7.Parse request [15:12:08]Sock 7.Check first char [15:12:08]Sock 7.First char is OK [15:12:08]request: POST /json_proto HTTP/1.0 [15:12:08]Method: POST [15:12:08]URL: /json_proto [15:12:08]Method is POST - this is cgi request [15:12:08]url: /json_proto [15:12:08]query_string will be loaded in cgi processing [15:12:08]execute_cgi json_proto POST (null) [15:12:08]execute_cgi path=json_proto method=POST [15:12:08]POST find Content-Length [15:12:08]Host: 172.17.42.132:8080 [15:12:08]Content-Length: 621 [15:12:08]Content-Type: application/json [15:12:08] [15:12:08]POST finish read [15:12:08]Found Content-Length = 621 [15:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47405", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]execute_script... [15:12: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)47405", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]POST & json_proto [15:12:08]process_json_proto [15:12:08]json parsed OK: [15:12:08]protocol is kg_v1.0 [15:12:08]action value=close_receipt [15:12:08]process_action close_receipt [15:12:08]cmd_close_receipt [15:12:08]MH_GetDate [15:12:08]Write to MH i2c: F0 00 00 23 15 27 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 09 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 09 00 23 15 00 4A 6F 16 67 4C DF 56 66 4D [15:12:08]GetLastDocTimeStamp 1729523521 [15:12:08]current date 1729523530 [15:12:08]FM_GetShiftState [15:12:08]SAM_PROTO_GetShiftState [15:12:08]wFMCommunicate request_size=4 [15:12:08]MH_SAM_APDU [15:12:08]CAPDU: 80 13 01 00 [15:12:08]Write to MH i2c: E2 08 00 24 15 80 13 01 00 00 00 00 00 B6 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:08]Read from MH i2c: E2 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: E2 0E 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: E2 0E 00 24 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 16 [15:12:08]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:12:08]wFMCommunicate OK [15:12:08]SAM_PROTO_GetShiftState done [15:12:08]FM_GetShiftState done [15:12:08]opened in 1729469755 [15:12:08]opened+sec_in_day 1729556155 [15:12:08]quantity*price = 15000 [15:12:08]sum+1 = 15001 [15:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 21.10.2024 15:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63095 ФПД: 190642541259827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151210&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63095&fm=190642541259827&tin=02508201610067®Number=0000000000091619&sum=15000 0 [15:12:09]StoreToDocumentArchive [15:12:09]shift 544 fd 63095 [15:12:09]save to /storage/0544/doc_00063095 [15:12:09]save last doc name /storage/0544/doc_00063095 to /storage/kkm_last_doc_name [15:12:09]save OK [15:12:09]Clear old archive folders... [15:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:12:09]tlvbuf is B6EFD800 [15:12:09]SAM_PROTO_ClearQueue [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 09 00 00 [15:12:09]Write to MH i2c: E2 08 00 31 15 80 09 00 00 00 00 00 00 B8 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]SAM_PROTO_ClearQueue done [15:12:09]KKMCreateOFDPacket [15:12:09]OFDProtocolAddRootSTLVToBuf [15:12:09]FM_MakeSignedData [15:12:09]FM_MakeSignedData [15:12:09]SAM_PROTO_SignData [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 0D 01 02 [15:12:09]Write to MH i2c: E2 08 00 32 15 80 0D 01 02 00 00 00 00 C0 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]wFMCommunicate request_size=255 [15:12:09]MH_SAM_APDU [15:12:09]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 32 31 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4A 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [15:12:09]Write to MH i2c: E2 02 01 33 15 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 32 31 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4A 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 16 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 33 15 00 90 00 BC [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]wFMCommunicate request_size=33 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F6 00 00 35 04 06 00 AD 63 6C F3 6C 33 [15:12:09]Write to MH i2c: E2 24 00 34 15 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F6 00 00 35 04 06 00 AD 63 6C F3 6C 33 00 00 D3 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 34 15 00 90 00 BD [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 0D 03 02 [15:12:09]Write to MH i2c: E2 08 00 35 15 80 0D 03 02 00 00 00 00 C5 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 0B 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 0B 00 35 15 00 59 43 CB 99 A0 BD 6A DE 90 00 6B [15:12:09]RAPDU: 59 43 CB 99 A0 BD 6A DE 90 00 [15:12:09]wFMCommunicate OK [15:12:09]SAM_PROTO_SignData done [15:12:09]FM_MakeSignedData done [15:12:09]CreateOFDProtocolMessage [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 11 00 00 [15:12:09]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 17 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1E [15:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:12:09]wFMCommunicate OK [15:12:09]CreateOFDProtocolMessage done [15:12:09]OFDSenderStorePacket 63095 [15:12:09]StoreOFDPacket docnum=63095 [15:12: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 26 01 00 00 5C 94 1E 01 34 76 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 32 31 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4A 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 AD 63 6C F3 6C 33 59 43 CB 99 A0 BD 6A DE [15:12:09]CheckFolder [15:12:09]dirname=/storage/ofd_packets [15:12:09]CheckFolder done [15:12:09]ProducePacketName [15:12:09]name=ofd_packets/00063095 [15:12:09]NVStorageSaveData ofd_packets/00063095 [15:12:09]File name is /storage/ofd_packets/00063095 [15:12:09]Write 324 bytes [15:12:09]NVStorageSaveData done [15:12:09]OFDSenderStorePacket done [15:12:09]KKMCreateOFDPacket done [15:12:09]NVStorageSaveData kkm_last_timestamp [15:12:09]File name is /storage/kkm_last_timestamp [15:12:09]Write 4 bytes [15:12:09]NVStorageSaveData done [15:12:09]ExternCall_PrintAddStr [15:12:09]wPrintStart [15:12:09]Write to MH i2c: 01 00 00 37 15 4C [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 07 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [15:12:09]RasterBufferAndPrint [15:12:09]line Счет N : (3)47405 [15:12:09]line ИНН: 02508201610067 [15:12:09]line Контрольно-Кассовый Чек [15:12:09]line ПРОДАЖА [15:12:09]line Товар: 4640030091621 [15:12:09]line Сигареты ESSE Exchange W [15:12:09]line 1.000 * 150.00 [15:12:09]line = 150.00 [15:12:09]line НДС 12% НСП 1% [15:12:09]line > о реализуемом товаре [15:12:09]line ИТОГО: 150.00 [15:12:09]line НСП 1% : 1.33 [15:12:09]line НДС 12% : 15.93 [15:12:09]line Наличными: 150.00 [15:12:09]line Безнал.: 0.00 [15:12:09]line Место: АЗС № 86 "Партнер Нефть" [15:12:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:12:09]line СНО: Общий режим [15:12:09]line Чек 92 21.10.2024 15:12 [15:12:09]line Смена: 544 ФФД: 1.0 [15:12:09]line ЗНМ: 0300000154 [15:12:09]line РНМ: 0000000000091619 [15:12:09]line Версия ККМ: 001 [15:12:09]line ФМ: 0000000000874676 [15:12:09]line ФД: 63095 [15:12:09]line ФПД: 190642541259827 [15:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151210&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63095&fm=190642541259827&tin=02508201610067®Number=0000000000091619&sum=15000 [15:12:09]line 0 [15:12:09]written 0, free lines is 4095 [15:12:09]OFD Sender: Processing packet 63095 [packets to send 232, broken 231] [15:12:09]ProducePacketName [15:12:09]name=ofd_packets/00063095 [15:12:09]OFD Sender: To server: pG, [15:12:09]CommunicateWithHost lk.salyk.kg:30040 [15:12:09]ConnectInit lk.salyk.kg [15:12:10]Connected sock=10 [15:12: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 26 01 00 00 5C 94 1E 01 34 76 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 32 31 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4A 6F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 AD 63 6C F3 6C 33 59 43 CB 99 A0 BD 6A DE [15:12:10]Write to MH i2c: 01 00 00 5F 15 74 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 07 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 17 0D 9F [15:12:10]RasterBufferAndPrint [15:12:10]line [15:12:10]line [15:12:10]line [15:12:10]line [15:12:10]line [15:12:10]written 0, free lines is 3363 [15:12:10]MH_Cut [15:12:10]Write to MH i2c: D1 01 00 66 15 01 4D [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: D1 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: D1 01 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: D1 01 00 66 15 00 4C [15:12:10]Write to MH i2c: 01 00 00 67 15 7C [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12: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 F6 4B 47 00 67 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F6 00 00 F4 03 04 00 47 19 16 67 B6 04 01 00 00 4A 6F CE 18 00 1F 23 2E [15:12:10]CommunicateWithHost err = 0 [15:12:10]CheckOFDResponse [15:12:10]1017 (14) - 77093643461234 [15:12:10]1041 (16) - 0000000000874676 [15:12:10]1040 (4) - 63095 [15:12:10]1012 (4) - 21.10.2024 09:05 [15:12:10]1206 (1) - 0 [15:12:10]OFD Sender: Remove packet 63095 [15:12:10]ProducePacketName [15:12:10]name=ofd_packets/00063095 [15:12:10]NVStorageDeleteData [15:12:10]*** Cut start [15:12:10]*** Partial cut [15:12:10]*** CUTSNS_PIN = 1 [15:12:11]*** CUTSNS_PIN = 0 [15:12:11]OFD Sender: No OFD packet to send [15:12:11]*** Brake cut motor [15:12:11]Read from MH i2c: 01 [15:12:11]MH_I2C_Read... [15:12:11]*** Stop cut motor [15:12:11]*** Cut end [15:12:11]Read from MH i2c: 01 07 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 FF 0F 91 [15:12:11]process_action close_receipt done [15:12:11]requested_data is exist [15:12:11]produce_requested_data [15:12:11]requested_item fm.sn is exist - process it [15:12:11]wFMCommunicate request_size=4 [15:12:11]MH_SAM_APDU [15:12:11]CAPDU: 80 11 00 00 [15:12:11]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:11]Read from MH i2c: E2 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 17 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 50 [15:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:12:11]wFMCommunicate OK [15:12:11]requested_item fd.num is exist - process it [15:12:11]SAM_PROTO_GetFieldsCounters [15:12:11]wFMCommunicate request_size=4 [15:12:11]MH_SAM_APDU [15:12:11]CAPDU: 80 13 00 00 [15:12:11]Write to MH i2c: E2 08 00 69 15 80 13 00 00 00 00 00 00 FA [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:11]Read from MH i2c: E2 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 62 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 62 00 69 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 77 F6 00 00 0E 04 04 00 20 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 C5 [15:12: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 77 F6 00 00 0E 04 04 00 20 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 [15:12:11]wFMCommunicate OK [15:12:11]SAM_PROTO_GetFieldsCounters done [15:12:11]requested_item shift.num is exist - process it [15:12:11]requested_item shift.opened is exist - process it [15:12:11]req_shift_opened [15:12:11]FM_GetShiftState [15:12:11]SAM_PROTO_GetShiftState [15:12:11]wFMCommunicate request_size=4 [15:12:11]MH_SAM_APDU [15:12:11]CAPDU: 80 13 01 00 [15:12:11]Write to MH i2c: E2 08 00 6A 15 80 13 01 00 00 00 00 00 FC [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:11]Read from MH i2c: E2 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 0E 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 0E 00 6A 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5C [15:12:11]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:12:11]wFMCommunicate OK [15:12:11]SAM_PROTO_GetShiftState done [15:12:11]FM_GetShiftState done [15:12:11]req_shift_opened done [15:12:11]requested_item shift.open_date is exist - process it [15:12:11]req_shift_open_date [15:12:11]req_shift_open_date done [15:12:11]produce_requested_data done [15:12:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63095,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [15:12:11]process_action_free close_receipt [15:12:11]json_value_free [15:12:11]json_value_free done [15:12:11]process_json_proto returns [15:12:11]Send response to host [15:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63095,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [15:12:11]free response buf [15:12:11]execute_script done [15:12:11]execute_script returns [15:12:11]free content buf [15:12:11]Sock 7.Close socket [15:12:11]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [15:22:02]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:17]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [15:26:48]New connection [15:26:48]New thread 3067055460 created [15:26:48]Thread 3067198820 joined [15:26:48]Waiting for new connection... [15:26:48] Sock 9.Parse request [15:26:48]Sock 9.Check first char [15:26:48]Sock 9.First char is OK [15:26:48]request: POST /json_proto HTTP/1.0 [15:26:48]Method: POST [15:26:48]URL: /json_proto [15:26:48]Method is POST - this is cgi request [15:26:48]url: /json_proto [15:26:48]query_string will be loaded in cgi processing [15:26:48]execute_cgi json_proto POST (null) [15:26:48]execute_cgi path=json_proto method=POST [15:26:48]POST find Content-Length [15:26:48]Host: 172.17.42.132:8080 [15:26:48]Content-Length: 752 [15:26:48]Content-Type: application/json [15:26:48] [15:26:48]POST finish read [15:26:48]Found Content-Length = 752 [15:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47406", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 113.98, "quantity" : 4.000, "sum" : 455.92, "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" : 455.92 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:48]execute_script... [15:26: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)47406", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 113.98, "quantity" : 4.000, "sum" : 455.92, "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" : 455.92 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:48]POST & json_proto [15:26:48]process_json_proto [15:26:48]json parsed OK: [15:26:48]protocol is kg_v1.0 [15:26:48]action value=close_receipt [15:26:48]process_action close_receipt [15:26:48]cmd_close_receipt [15:26:48]MH_GetDate [15:26:48]Write to MH i2c: F0 00 00 6B 15 6F [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 09 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 09 00 6B 15 00 BA 72 16 67 4C DF 56 66 08 [15:26:48]GetLastDocTimeStamp 1729523530 [15:26:48]current date 1729524410 [15:26:48]FM_GetShiftState [15:26:48]SAM_PROTO_GetShiftState [15:26:48]wFMCommunicate request_size=4 [15:26:48]MH_SAM_APDU [15:26:48]CAPDU: 80 13 01 00 [15:26:48]Write to MH i2c: E2 08 00 6C 15 80 13 01 00 00 00 00 00 FE [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:48]Read from MH i2c: E2 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 6C 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5E [15:26:48]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:26:48]wFMCommunicate OK [15:26:48]SAM_PROTO_GetShiftState done [15:26:48]FM_GetShiftState done [15:26:48]opened in 1729469755 [15:26:48]opened+sec_in_day 1729556155 [15:26:48]quantity*price = 45592 [15:26:48]sum+1 = 45593 [15:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 455.92 НСП 1% : 4.03 НДС 12% : 48.42 Наличными: 0.00 Безнал.: 455.92 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 21.10.2024 15:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63096 ФПД: 50054767194383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63096&fm=50054767194383&tin=02508201610067®Number=0000000000091619&sum=45592 0 [15:26:49]StoreToDocumentArchive [15:26:49]shift 544 fd 63096 [15:26:49]save to /storage/0544/doc_00063096 [15:26:49]save last doc name /storage/0544/doc_00063096 to /storage/kkm_last_doc_name [15:26:49]save OK [15:26:49]Clear old archive folders... [15:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:26:49]tlvbuf is 018EF9E0 [15:26:49]SAM_PROTO_ClearQueue [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 09 00 00 [15:26:49]Write to MH i2c: E2 08 00 79 15 80 09 00 00 00 00 00 00 00 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 79 15 00 90 00 02 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_ClearQueue done [15:26:49]KKMCreateOFDPacket [15:26:49]OFDProtocolAddRootSTLVToBuf [15:26:49]FM_MakeSignedData [15:26:49]FM_MakeSignedData [15:26:49]SAM_PROTO_SignData [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 0D 01 02 [15:26:49]Write to MH i2c: E2 08 00 7A 15 80 0D 01 02 00 00 00 00 08 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 7A 15 00 90 00 03 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]wFMCommunicate request_size=255 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 18 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 B2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BA 72 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [15:26:49]Write to MH i2c: E2 02 01 7B 15 80 0D 02 02 FA 00 03 00 12 01 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 18 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 B2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BA 72 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 A2 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]wFMCommunicate request_size=33 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F6 00 00 35 04 06 00 2D 86 48 9E 31 0F [15:26:49]Write to MH i2c: E2 24 00 7C 15 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F6 00 00 35 04 06 00 2D 86 48 9E 31 0F 00 00 E7 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 0D 03 02 [15:26:49]Write to MH i2c: E2 08 00 7D 15 80 0D 03 02 00 00 00 00 0D [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0B 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0B 00 7D 15 00 B4 E1 09 FB 59 BF 28 FB 90 00 E2 [15:26:49]RAPDU: B4 E1 09 FB 59 BF 28 FB 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_SignData done [15:26:49]FM_MakeSignedData done [15:26:49]CreateOFDProtocolMessage [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 11 00 00 [15:26:49]Write to MH i2c: E2 08 00 7E 15 80 11 00 00 00 00 00 00 0D [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 17 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 17 00 7E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 66 [15:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:26:49]wFMCommunicate OK [15:26:49]CreateOFDProtocolMessage done [15:26:49]OFDSenderStorePacket 63096 [15:26:49]StoreOFDPacket docnum=63096 [15:26: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 84 08 1E 01 E4 F5 5A 03 01 00 03 00 12 01 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 18 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 B2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BA 72 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 2D 86 48 9E 31 0F B4 E1 09 FB 59 BF 28 FB [15:26:49]CheckFolder [15:26:49]dirname=/storage/ofd_packets [15:26:49]CheckFolder done [15:26:49]ProducePacketName [15:26:49]name=ofd_packets/00063096 [15:26:49]NVStorageSaveData ofd_packets/00063096 [15:26:49]File name is /storage/ofd_packets/00063096 [15:26:49]Write 324 bytes [15:26:49]NVStorageSaveData done [15:26:49]OFDSenderStorePacket done [15:26:49]KKMCreateOFDPacket done [15:26:49]NVStorageSaveData kkm_last_timestamp [15:26:49]File name is /storage/kkm_last_timestamp [15:26:49]Write 4 bytes [15:26:49]NVStorageSaveData done [15:26:49]OFD Sender: Processing packet 63096 [packets to send 232, broken 231] [15:26:49]ProducePacketName [15:26:49]name=ofd_packets/00063096 [15:26:49]OFD Sender: To server: pG, [15:26:49]CommunicateWithHost lk.salyk.kg:30040 [15:26:49]ConnectInit lk.salyk.kg [15:26:49]ExternCall_PrintAddStr [15:26:49]wPrintStart [15:26:49]Write to MH i2c: 01 00 00 7F 15 94 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: 01 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: 01 07 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: 01 07 00 7F 15 00 00 00 00 00 FF 0F A9 [15:26:49]RasterBufferAndPrint [15:26:49]line Счет N : (3)47406 [15:26:49]line ИНН: 02508201610067 [15:26:49]line Контрольно-Кассовый Чек [15:26:49]line ПРОДАЖА [15:26:49]line Товар: 2000036240010 [15:26:49]line Кофе Латте (GABB TRADE) [15:26:49]line 4.000 * 113.98 [15:26:49]line = 455.92 [15:26:49]line НДС 12% НСП 1% [15:26:49]line > о реализуемом товаре [15:26:49]line ИТОГО: 455.92 [15:26:49]line НСП 1% : 4.03 [15:26:49]line НДС 12% : 48.42 [15:26:49]line Наличными: 0.00 [15:26:49]line Безнал.: 455.92 [15:26:49]line Место: АЗС № 86 "Партнер Нефть" [15:26:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:26:49]line СНО: Общий режим [15:26:49]line Чек 93 21.10.2024 15:26 [15:26:49]line Смена: 544 ФФД: 1.0 [15:26:49]line ЗНМ: 0300000154 [15:26:49]line РНМ: 0000000000091619 [15:26:49]line Версия ККМ: 001 [15:26:49]line Платежная система: Mbank [15:26:49]line ФМ: 0000000000874676 [15:26:49]line ФД: 63096 [15:26:49]line ФПД: 50054767194383 [15:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63096&fm=50054767194383&tin=02508201610067®Number=0000000000091619&sum=45592 [15:26:50]line 0 [15:26:50]Connected sock=11 [15:26: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 84 08 1E 01 E4 F5 5A 03 01 00 03 00 12 01 1E 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 A0 0F 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 18 B2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 B2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BA 72 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 2D 86 48 9E 31 0F B4 E1 09 FB 59 BF 28 FB [15:26:50]written 0, free lines is 4095 [15:26:50]Write to MH i2c: 01 00 00 A8 15 BD [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 14 0D E5 [15:26:50]RasterBufferAndPrint [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]written 0, free lines is 3357 [15:26:50]MH_Cut [15:26:50]Write to MH i2c: D1 01 00 AF 15 01 96 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 01 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 01 00 AF 15 00 95 [15:26:50]Write to MH i2c: 01 00 00 B0 15 C5 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26: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 B9 38 47 00 2B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F6 00 00 F4 03 04 00 B8 1C 16 67 B6 04 01 00 00 15 8C 52 E7 EC 97 46 D6 [15:26:50]CommunicateWithHost err = 0 [15:26:50]CheckOFDResponse [15:26:50]1017 (14) - 77093643461234 [15:26:50]1041 (16) - 0000000000874676 [15:26:50]1040 (4) - 63096 [15:26:50]1012 (4) - 21.10.2024 09:19 [15:26:50]1206 (1) - 0 [15:26:50]OFD Sender: Remove packet 63096 [15:26:50]ProducePacketName [15:26:50]name=ofd_packets/00063096 [15:26:50]NVStorageDeleteData [15:26:51]OFD Sender: No OFD packet to send [15:26:51]*** Cut start [15:26:51]*** Partial cut [15:26:51]*** CUTSNS_PIN = 1 [15:26:51]*** CUTSNS_PIN = 0 [15:26:51]*** Brake cut motor [15:26:51]Read from MH i2c: 01 [15:26:51]MH_I2C_Read... [15:26:51]*** Stop cut motor [15:26:51]*** Cut end [15:26:51]Read from MH i2c: 01 07 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 B0 15 00 00 00 00 00 FF 0F DA [15:26:51]process_action close_receipt done [15:26:51]requested_data is exist [15:26:51]produce_requested_data [15:26:51]requested_item fm.sn is exist - process it [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 11 00 00 [15:26:51]Write to MH i2c: E2 08 00 B1 15 80 11 00 00 00 00 00 00 40 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:51]Read from MH i2c: E2 17 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 B1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [15:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:26:51]wFMCommunicate OK [15:26:51]requested_item fd.num is exist - process it [15:26:51]SAM_PROTO_GetFieldsCounters [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 13 00 00 [15:26:51]Write to MH i2c: E2 08 00 B2 15 80 13 00 00 00 00 00 00 43 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 62 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 62 00 B2 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 78 F6 00 00 0E 04 04 00 20 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 12 [15:26: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 F6 00 00 0E 04 04 00 20 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 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_GetFieldsCounters done [15:26:52]requested_item shift.num is exist - process it [15:26:52]requested_item shift.opened is exist - process it [15:26:52]req_shift_opened [15:26:52]FM_GetShiftState [15:26:52]SAM_PROTO_GetShiftState [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 13 01 00 [15:26:52]Write to MH i2c: E2 08 00 B3 15 80 13 01 00 00 00 00 00 45 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0E 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0E 00 B3 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A5 [15:26:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_GetShiftState done [15:26:52]FM_GetShiftState done [15:26:52]req_shift_opened done [15:26:52]requested_item shift.open_date is exist - process it [15:26:52]req_shift_open_date [15:26:52]req_shift_open_date done [15:26:52]produce_requested_data done [15:26:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63096,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [15:26:52]process_action_free close_receipt [15:26:52]json_value_free [15:26:52]json_value_free done [15:26:52]process_json_proto returns [15:26:52]Send response to host [15:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63096,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [15:26:52]free response buf [15:26:52]execute_script done [15:26:52]execute_script returns [15:26:52]free content buf [15:26:52]Sock 9.Close socket [15:26:52]Sock 9.Thread stoped [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:37]accept exits with 7 [15:47:37]New connection [15:47:37]New thread 3067198820 created [15:47:37]Thread 3067055460 joined [15:47:37]Waiting for new connection... [15:47:37] Sock 7.Parse request [15:47:37]Sock 7.Check first char [15:47:37]Sock 7.First char is OK [15:47:37]request: POST /json_proto HTTP/1.0 [15:47:37]Method: POST [15:47:37]URL: /json_proto [15:47:37]Method is POST - this is cgi request [15:47:37]url: /json_proto [15:47:37]query_string will be loaded in cgi processing [15:47:37]execute_cgi json_proto POST (null) [15:47:37]execute_cgi path=json_proto method=POST [15:47:37]POST find Content-Length [15:47:37]Host: 172.17.42.132:8080 [15:47:37]Content-Length: 1044 [15:47:37]Content-Type: application/json [15:47:37] [15:47:37]POST finish read [15:47:37]Found Content-Length = 1044 [15:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47407", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "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" : 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" : 297.35 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:37]execute_script... [15:47: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)47407", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "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" : 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" : 297.35 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:37]POST & json_proto [15:47:37]process_json_proto [15:47:37]json parsed OK: [15:47:37]protocol is kg_v1.0 [15:47:37]action value=close_receipt [15:47:37]process_action close_receipt [15:47:37]cmd_close_receipt [15:47:37]MH_GetDate [15:47:37]Write to MH i2c: F0 00 00 B4 15 B8 [15:47:37]Write i2c OK [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: F0 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: F0 09 00 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: F0 09 00 B4 15 00 9B 77 16 67 4C DF 56 66 37 [15:47:37]GetLastDocTimeStamp 1729524410 [15:47:37]current date 1729525659 [15:47:37]FM_GetShiftState [15:47:37]SAM_PROTO_GetShiftState [15:47:37]wFMCommunicate request_size=4 [15:47:37]MH_SAM_APDU [15:47:37]CAPDU: 80 13 01 00 [15:47:37]Write to MH i2c: E2 08 00 B5 15 80 13 01 00 00 00 00 00 47 [15:47:37]Write i2c OK [15:47:37]MH_I2C_Read... [15:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:37]Read from MH i2c: E2 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: E2 0E 00 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: E2 0E 00 B5 15 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A7 [15:47:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:47:37]wFMCommunicate OK [15:47:37]SAM_PROTO_GetShiftState done [15:47:37]FM_GetShiftState done [15:47:37]opened in 1729469755 [15:47:37]opened+sec_in_day 1729556155 [15:47:37]quantity*price = 9912 [15:47:37]sum+1 = 9913 [15:47:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002085444 Водка Белое золото 0,24л 1.000 * 198.23 = 198.23 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 297.35 НСП 1% : 2.63 НДС 12% : 31.58 Наличными: 0.00 Безнал.: 297.35 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 21.10.2024 15:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63097 ФПД: 123969564847555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154740&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63097&fm=123969564847555&tin=02508201610067®Number=0000000000091619&sum=29735 0 [15:47:38]StoreToDocumentArchive [15:47:38]shift 544 fd 63097 [15:47:38]save to /storage/0544/doc_00063097 [15:47:38]save last doc name /storage/0544/doc_00063097 to /storage/kkm_last_doc_name [15:47:38]save OK [15:47:38]Clear old archive folders... [15:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=390 [15:47:38]tlvbuf is 01941D40 [15:47:38]SAM_PROTO_ClearQueue [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 09 00 00 [15:47:38]Write to MH i2c: E2 08 00 C2 15 80 09 00 00 00 00 00 00 49 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 C2 15 00 90 00 4B [15:47:38]RAPDU: 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_ClearQueue done [15:47:38]KKMCreateOFDPacket [15:47:38]OFDProtocolAddRootSTLVToBuf [15:47:38]FM_MakeSignedData [15:47:38]FM_MakeSignedData [15:47:38]SAM_PROTO_SignData [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 0D 01 02 [15:47:38]Write to MH i2c: E2 08 00 C3 15 80 0D 01 02 00 00 00 00 51 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 C3 15 00 90 00 4C [15:47:38]RAPDU: 90 00 [15:47:38]wFMCommunicate OK [15:47:38]wFMCommunicate request_size=255 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 0D 02 02 FA 03 00 86 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 B8 26 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 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 27 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [15:47:38]Write to MH i2c: E2 02 01 C4 15 80 0D 02 02 FA 00 03 00 86 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 B8 26 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 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 27 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 FF [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 C4 15 00 90 00 4D [15:47:38]RAPDU: 90 00 [15:47:38]wFMCommunicate OK [15:47:38]wFMCommunicate request_size=149 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9C 77 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 70 BF E9 E0 2D C3 [15:47:38]Write to MH i2c: E2 98 00 C5 15 80 0D 02 02 90 00 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9C 77 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 70 BF E9 E0 2D C3 00 00 15 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 03 00 C5 15 00 90 00 4E [15:47:38]RAPDU: 90 00 [15:47:38]wFMCommunicate OK [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 0D 03 02 [15:47:38]Write to MH i2c: E2 08 00 C6 15 80 0D 03 02 00 00 00 00 56 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0B 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0B 00 C6 15 00 0D D6 E0 97 EF D7 E5 1C 90 00 78 [15:47:38]RAPDU: 0D D6 E0 97 EF D7 E5 1C 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_SignData done [15:47:38]FM_MakeSignedData done [15:47:38]CreateOFDProtocolMessage [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 11 00 00 [15:47:38]Write to MH i2c: E2 08 00 C7 15 80 11 00 00 00 00 00 00 56 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 17 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 17 00 C7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AF [15:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:47:39]wFMCommunicate OK [15:47:39]CreateOFDProtocolMessage done [15:47:39]OFDSenderStorePacket 63097 [15:47:39]StoreOFDPacket docnum=63097 [15:47: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 9A 01 00 00 4B AA 92 01 CB 06 5A 03 01 00 03 00 86 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 B8 26 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 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 27 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9C 77 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 70 BF E9 E0 2D C3 0D D6 E0 97 EF D7 E5 1C [15:47:39]CheckFolder [15:47:39]dirname=/storage/ofd_packets [15:47:39]CheckFolder done [15:47:39]ProducePacketName [15:47:39]name=ofd_packets/00063097 [15:47:39]NVStorageSaveData ofd_packets/00063097 [15:47:39]File name is /storage/ofd_packets/00063097 [15:47:39]Write 440 bytes [15:47:39]NVStorageSaveData done [15:47:39]OFDSenderStorePacket done [15:47:39]KKMCreateOFDPacket done [15:47:39]NVStorageSaveData kkm_last_timestamp [15:47:39]File name is /storage/kkm_last_timestamp [15:47:39]Write 4 bytes [15:47:39]NVStorageSaveData done [15:47:39]ExternCall_PrintAddStr [15:47:39]wPrintStart [15:47:39]Write to MH i2c: 01 00 00 C8 15 DD [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 07 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [15:47:39]RasterBufferAndPrint [15:47:39]line Счет N : (3)47407 [15:47:39]line ИНН: 02508201610067 [15:47:39]line Контрольно-Кассовый Чек [15:47:39]line ПРОДАЖА [15:47:39]line Товар: 4700003610546 [15:47:39]line Вода Сorona Ice негаз 6л [15:47:39]line 1.000 * 99.12 [15:47:39]line = 99.12 [15:47:39]line НДС 12% НСП 1% [15:47:39]line > о реализуемом товаре [15:47:39]line Товар: 4700002085444 [15:47:39]line Водка Белое золото 0,24л [15:47:39]line 1.000 * 198.23 [15:47:39]line = 198.23 [15:47:39]line НДС 12% НСП 1% [15:47:39]line > о реализуемом товаре [15:47:39]line ИТОГО: 297.35 [15:47:39]line НСП 1% : 2.63 [15:47:39]line НДС 12% : 31.58 [15:47:39]line Наличными: 0.00 [15:47:39]line Безнал.: 297.35 [15:47:39]line Место: АЗС № 86 "Партнер Нефть" [15:47:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:47:39]line СНО: Общий режим [15:47:39]line Чек 94 21.10.2024 15:47 [15:47:39]line Смена: 544 ФФД: 1.0 [15:47:39]line ЗНМ: 0300000154 [15:47:39]line РНМ: 0000000000091619 [15:47:39]line Версия ККМ: 001 [15:47:39]line Платежная система: Mbank [15:47:39]line ФМ: 0000000000874676 [15:47:39]line ФД: 63097 [15:47:39]line ФПД: 123969564847555 [15:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154740&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63097&fm=123969564847555&tin=02508201610067®Number=0000000000091619&sum=29735 [15:47:39]line 0 [15:47:39]OFD Sender: Processing packet 63097 [packets to send 232, broken 231] [15:47:39]ProducePacketName [15:47:39]name=ofd_packets/00063097 [15:47:39]OFD Sender: To server: pG, [15:47:39]CommunicateWithHost lk.salyk.kg:30040 [15:47:39]ConnectInit lk.salyk.kg [15:47:39]written 0, free lines is 4095 [15:47:39]Connected sock=10 [15:47: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 9A 01 00 00 4B AA 92 01 CB 06 5A 03 01 00 03 00 86 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 B8 26 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 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 27 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9C 77 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 70 BF E9 E0 2D C3 0D D6 E0 97 EF D7 E5 1C [15:47:39]Write to MH i2c: 01 00 00 F7 15 0C [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 07 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 07 00 F7 15 00 00 00 00 00 EA 0C 09 [15:47:39]RasterBufferAndPrint [15:47:39]line [15:47:39]line [15:47:39]line [15:47:39]line [15:47:39]line [15:47:39]written 0, free lines is 3315 [15:47:39]MH_Cut [15:47:39]Write to MH i2c: D1 01 00 FE 15 01 E5 [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: D1 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: D1 01 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: D1 01 00 FE 15 00 E4 [15:47:39]Write to MH i2c: 01 00 00 FF 15 14 [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47: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 03 78 47 00 15 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 79 F6 00 00 F4 03 04 00 99 21 16 67 B6 04 01 00 00 96 0D 13 DB 3D FF 25 89 [15:47:39]CommunicateWithHost err = 0 [15:47:39]CheckOFDResponse [15:47:39]1017 (14) - 77093643461234 [15:47:39]1041 (16) - 0000000000874676 [15:47:39]1040 (4) - 63097 [15:47:39]1012 (4) - 21.10.2024 09:40 [15:47:39]1206 (1) - 0 [15:47:39]OFD Sender: Remove packet 63097 [15:47:39]ProducePacketName [15:47:39]name=ofd_packets/00063097 [15:47:39]NVStorageDeleteData [15:47:40]OFD Sender: No OFD packet to send [15:47:40]*** Cut start [15:47:40]*** Partial cut [15:47:40]*** CUTSNS_PIN = 1 [15:47:40]*** CUTSNS_PIN = 0 [15:47:40]*** Brake cut motor [15:47:41]Read from MH i2c: 01 [15:47:41]MH_I2C_Read... [15:47:41]*** Stop cut motor [15:47:41]*** Cut end [15:47:41]Read from MH i2c: 01 07 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [15:47:41]process_action close_receipt done [15:47:41]requested_data is exist [15:47:41]produce_requested_data [15:47:41]requested_item fm.sn is exist - process it [15:47:41]wFMCommunicate request_size=4 [15:47:41]MH_SAM_APDU [15:47:41]CAPDU: 80 11 00 00 [15:47:41]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:41]Read from MH i2c: E2 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 17 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E9 [15:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:47:41]wFMCommunicate OK [15:47:41]requested_item fd.num is exist - process it [15:47:41]SAM_PROTO_GetFieldsCounters [15:47:41]wFMCommunicate request_size=4 [15:47:41]MH_SAM_APDU [15:47:41]CAPDU: 80 13 00 00 [15:47:41]Write to MH i2c: E2 08 00 01 16 80 13 00 00 00 00 00 00 93 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:41]Read from MH i2c: E2 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 62 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 62 00 01 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 79 F6 00 00 0E 04 04 00 20 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 66 [15:47: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 79 F6 00 00 0E 04 04 00 20 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 [15:47:41]wFMCommunicate OK [15:47:41]SAM_PROTO_GetFieldsCounters done [15:47:41]requested_item shift.num is exist - process it [15:47:41]requested_item shift.opened is exist - process it [15:47:41]req_shift_opened [15:47:41]FM_GetShiftState [15:47:41]SAM_PROTO_GetShiftState [15:47:41]wFMCommunicate request_size=4 [15:47:41]MH_SAM_APDU [15:47:41]CAPDU: 80 13 01 00 [15:47:41]Write to MH i2c: E2 08 00 02 16 80 13 01 00 00 00 00 00 95 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:41]Read from MH i2c: E2 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 0E 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: E2 0E 00 02 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F5 [15:47:41]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [15:47:41]wFMCommunicate OK [15:47:41]SAM_PROTO_GetShiftState done [15:47:41]FM_GetShiftState done [15:47:41]req_shift_opened done [15:47:41]requested_item shift.open_date is exist - process it [15:47:41]req_shift_open_date [15:47:41]req_shift_open_date done [15:47:41]produce_requested_data done [15:47:41]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63097,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [15:47:41]process_action_free close_receipt [15:47:41]json_value_free [15:47:41]json_value_free done [15:47:41]process_json_proto returns [15:47:41]Send response to host [15:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63097,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [15:47:41]free response buf [15:47:41]execute_script done [15:47:41]execute_script returns [15:47:41]free content buf [15:47:41]Sock 7.Close socket [15:47:41]Sock 7.Thread stoped [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:14]accept exits with 9 [16:05:14]New connection [16:05:14]New thread 3067055460 created [16:05:14]Thread 3067198820 joined [16:05:14]Waiting for new connection... [16:05:14] Sock 9.Parse request [16:05:14]Sock 9.Check first char [16:05:14]Sock 9.First char is OK [16:05:14]request: POST /json_proto HTTP/1.0 [16:05:14]Method: POST [16:05:14]URL: /json_proto [16:05:14]Method is POST - this is cgi request [16:05:14]url: /json_proto [16:05:14]query_string will be loaded in cgi processing [16:05:14]execute_cgi json_proto POST (null) [16:05:14]execute_cgi path=json_proto method=POST [16:05:14]POST find Content-Length [16:05:14]Host: 172.17.42.132:8080 [16:05:14]Content-Length: 870 [16:05:14]Content-Type: application/json [16:05:14] [16:05:14]POST finish read [16:05:14]Found Content-Length = 870 [16:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47408", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 819.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:14]execute_script... [16:05: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)47408", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 819.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:14]POST & json_proto [16:05:14]process_json_proto [16:05:14]json parsed OK: [16:05:14]protocol is kg_v1.0 [16:05:14]action value=close_receipt [16:05:14]process_action close_receipt [16:05:14]cmd_close_receipt [16:05:14]MH_GetDate [16:05:14]Write to MH i2c: F0 00 00 03 16 08 [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 09 00 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 09 00 03 16 00 BD 7B 16 67 4C DF 56 66 AD [16:05:14]GetLastDocTimeStamp 1729525660 [16:05:14]current date 1729526717 [16:05:14]FM_GetShiftState [16:05:14]SAM_PROTO_GetShiftState [16:05:14]wFMCommunicate request_size=4 [16:05:14]MH_SAM_APDU [16:05:14]CAPDU: 80 13 01 00 [16:05:14]Write to MH i2c: E2 08 00 04 16 80 13 01 00 00 00 00 00 97 [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:14]Read from MH i2c: E2 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 0E 00 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 0E 00 04 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F7 [16:05:14]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:05:14]wFMCommunicate OK [16:05:14]SAM_PROTO_GetShiftState done [16:05:14]FM_GetShiftState done [16:05:14]opened in 1729469755 [16:05:14]opened+sec_in_day 1729556155 [16:05:14]quantity*price = 11900 [16:05:14]sum+1 = 11901 [16:05:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150929 Новая Водка Organic 40% 0,7л 1.000 * 700.00 = 700.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 819.00 НСП 1% : 7.24 НДС 12% : 86.98 Наличными: 819.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 21.10.2024 16:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63098 ФПД: 224430318282115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160517&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63098&fm=224430318282115&tin=02508201610067®Number=0000000000091619&sum=81900 0 [16:05:14]StoreToDocumentArchive [16:05:14]shift 544 fd 63098 [16:05:14]save to /storage/0544/doc_00063098 [16:05:14]save last doc name /storage/0544/doc_00063098 to /storage/kkm_last_doc_name [16:05:14]save OK [16:05:14]Clear old archive folders... [16:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=377 [16:05:14]tlvbuf is B6EFD9C0 [16:05:14]SAM_PROTO_ClearQueue [16:05:14]wFMCommunicate request_size=4 [16:05:14]MH_SAM_APDU [16:05:14]CAPDU: 80 09 00 00 [16:05:14]Write to MH i2c: E2 08 00 11 16 80 09 00 00 00 00 00 00 99 [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:14]Read from MH i2c: E2 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 03 00 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 03 00 11 16 00 90 00 9B [16:05:14]RAPDU: 90 00 [16:05:14]wFMCommunicate OK [16:05:14]SAM_PROTO_ClearQueue done [16:05:14]KKMCreateOFDPacket [16:05:14]OFDProtocolAddRootSTLVToBuf [16:05:14]FM_MakeSignedData [16:05:14]FM_MakeSignedData [16:05:14]SAM_PROTO_SignData [16:05:14]wFMCommunicate request_size=4 [16:05:14]MH_SAM_APDU [16:05:14]CAPDU: 80 0D 01 02 [16:05:14]Write to MH i2c: E2 08 00 12 16 80 0D 01 02 00 00 00 00 A1 [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 12 16 00 90 00 9C [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=255 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 FA 03 00 79 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 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 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 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 02 00 00 00 00 EE [16:05:15]Write to MH i2c: E2 02 01 13 16 80 0D 02 02 FA 00 03 00 79 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 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 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 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 02 00 00 00 00 EE 00 00 A9 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 13 16 00 90 00 9D [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=136 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 21 00 00 00 00 07 04 06 00 EC 3F 01 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 BD 7B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 CC 1E 41 65 E5 83 [16:05:15]Write to MH i2c: E2 8B 00 14 16 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 21 00 00 00 00 07 04 06 00 EC 3F 01 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 BD 7B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 CC 1E 41 65 E5 83 00 00 D5 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 14 16 00 90 00 9E [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 03 02 [16:05:15]Write to MH i2c: E2 08 00 15 16 80 0D 03 02 00 00 00 00 A6 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 0B 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 0B 00 15 16 00 BC 5D B0 5E 6C F7 BE 85 90 00 74 [16:05:15]RAPDU: BC 5D B0 5E 6C F7 BE 85 90 00 [16:05:15]wFMCommunicate OK [16:05:15]SAM_PROTO_SignData done [16:05:15]FM_MakeSignedData done [16:05:15]CreateOFDProtocolMessage [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 11 00 00 [16:05:15]Write to MH i2c: E2 08 00 16 16 80 11 00 00 00 00 00 00 A6 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 17 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 17 00 16 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FF [16:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:05:15]wFMCommunicate OK [16:05:15]CreateOFDProtocolMessage done [16:05:15]OFDSenderStorePacket 63098 [16:05:15]StoreOFDPacket docnum=63098 [16:05:15]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 3C B8 85 01 23 06 5A 03 01 00 03 00 79 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 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 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 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 21 00 00 00 00 07 04 06 00 EC 3F 01 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 BD 7B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 CC 1E 41 65 E5 83 BC 5D B0 5E 6C F7 BE 85 [16:05:15]CheckFolder [16:05:15]dirname=/storage/ofd_packets [16:05:15]CheckFolder done [16:05:15]ProducePacketName [16:05:15]name=ofd_packets/00063098 [16:05:15]NVStorageSaveData ofd_packets/00063098 [16:05:15]File name is /storage/ofd_packets/00063098 [16:05:15]Write 427 bytes [16:05:15]NVStorageSaveData done [16:05:15]OFDSenderStorePacket done [16:05:15]KKMCreateOFDPacket done [16:05:15]NVStorageSaveData kkm_last_timestamp [16:05:15]File name is /storage/kkm_last_timestamp [16:05:15]Write 4 bytes [16:05:15]NVStorageSaveData done [16:05:15]ExternCall_PrintAddStr [16:05:15]wPrintStart [16:05:15]Write to MH i2c: 01 00 00 17 16 2D [16:05:15]OFD Sender: Processing packet 63098 [packets to send 232, broken 231] [16:05:15]ProducePacketName [16:05:15]name=ofd_packets/00063098 [16:05:15]OFD Sender: To server: pG, [16:05:15]CommunicateWithHost lk.salyk.kg:30040 [16:05:15]ConnectInit lk.salyk.kg [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: 01 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: 01 07 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [16:05:15]RasterBufferAndPrint [16:05:15]line Счет N : (3)47408 [16:05:15]line ИНН: 02508201610067 [16:05:15]line Контрольно-Кассовый Чек [16:05:15]line ПРОДАЖА [16:05:15]line Товар: 4870001570071 [16:05:15]line Напиток Pepsi 1л [16:05:15]line 1.000 * 119.00 [16:05:15]line = 119.00 [16:05:15]line НДС 12% НСП 1% [16:05:15]line > о реализуемом товаре [16:05:15]line Товар: 4700003150929 [16:05:15]line Новая Водка Organic 40% 0,7л [16:05:15]line 1.000 * 700.00 [16:05:15]line = 700.00 [16:05:15]line НДС 12% НСП 1% [16:05:15]line > о реализуемом товаре [16:05:15]line ИТОГО: 819.00 [16:05:15]line НСП 1% : 7.24 [16:05:15]line НДС 12% : 86.98 [16:05:15]line Наличными: 819.00 [16:05:15]line Безнал.: 0.00 [16:05:15]line Место: АЗС № 86 "Партнер Нефть" [16:05:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:05:15]line СНО: Общий режим [16:05:15]line Чек 95 21.10.2024 16:05 [16:05:15]line Смена: 544 ФФД: 1.0 [16:05:15]line ЗНМ: 0300000154 [16:05:15]line РНМ: 0000000000091619 [16:05:15]line Версия ККМ: 001 [16:05:15]line ФМ: 0000000000874676 [16:05:15]line ФД: 63098 [16:05:15]line ФПД: 224430318282115 [16:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160517&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63098&fm=224430318282115&tin=02508201610067®Number=0000000000091619&sum=81900 [16:05:15]line 0 [16:05:15]written 0, free lines is 4095 [16:05:16]Connected sock=10 [16:05: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 8D 01 00 00 3C B8 85 01 23 06 5A 03 01 00 03 00 79 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 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 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 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 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 21 00 00 00 00 07 04 06 00 EC 3F 01 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 BD 7B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 CC 1E 41 65 E5 83 BC 5D B0 5E 6C F7 BE 85 [16:05:16]Write to MH i2c: 01 00 00 45 16 5B [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 E3 0C 51 [16:05:16]RasterBufferAndPrint [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]written 0, free lines is 3308 [16:05:16]MH_Cut [16:05:16]Write to MH i2c: D1 01 00 4C 16 01 34 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 01 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 01 00 4C 16 00 33 [16:05:16]Write to MH i2c: 01 00 00 4D 16 63 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]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 06 47 00 05 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 7A F6 00 00 F4 03 04 00 BA 25 16 67 B6 04 01 00 00 2E 36 F6 8B 0E 01 B8 EA [16:05:16]CommunicateWithHost err = 0 [16:05:16]CheckOFDResponse [16:05:16]1017 (14) - 77093643461234 [16:05:16]1041 (16) - 0000000000874676 [16:05:16]1040 (4) - 63098 [16:05:16]1012 (4) - 21.10.2024 09:58 [16:05:16]1206 (1) - 0 [16:05:16]OFD Sender: Remove packet 63098 [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00063098 [16:05:16]NVStorageDeleteData [16:05:17]*** Cut start [16:05:17]*** Partial cut [16:05:17]*** CUTSNS_PIN = 1 [16:05:17]OFD Sender: No OFD packet to send [16:05:17]*** CUTSNS_PIN = 0 [16:05:17]*** Brake cut motor [16:05:17]Read from MH i2c: 01 [16:05:17]MH_I2C_Read... [16:05:17]*** Stop cut motor [16:05:17]*** Cut end [16:05:17]Read from MH i2c: 01 07 00 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 FF 0F 78 [16:05:17]process_action close_receipt done [16:05:17]requested_data is exist [16:05:17]produce_requested_data [16:05:17]requested_item fm.sn is exist - process it [16:05:17]wFMCommunicate request_size=4 [16:05:17]MH_SAM_APDU [16:05:17]CAPDU: 80 11 00 00 [16:05:17]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [16:05:17]Write i2c OK [16:05:17]MH_I2C_Read... [16:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:17]Read from MH i2c: E2 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: E2 17 00 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 37 [16:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:05:17]wFMCommunicate OK [16:05:17]requested_item fd.num is exist - process it [16:05:17]SAM_PROTO_GetFieldsCounters [16:05:17]wFMCommunicate request_size=4 [16:05:17]MH_SAM_APDU [16:05:17]CAPDU: 80 13 00 00 [16:05:17]Write to MH i2c: E2 08 00 4F 16 80 13 00 00 00 00 00 00 E1 [16:05:17]Write i2c OK [16:05:17]MH_I2C_Read... [16:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:17]Read from MH i2c: E2 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: E2 62 00 [16:05:17]MH_I2C_Read... [16:05:17]Read from MH i2c: E2 62 00 4F 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 7A F6 00 00 0E 04 04 00 20 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 B8 [16:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetFieldsCounters done [16:05:18]requested_item shift.num is exist - process it [16:05:18]requested_item shift.opened is exist - process it [16:05:18]req_shift_opened [16:05:18]FM_GetShiftState [16:05:18]SAM_PROTO_GetShiftState [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 01 00 [16:05:18]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 50 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 43 [16:05:18]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetShiftState done [16:05:18]FM_GetShiftState done [16:05:18]req_shift_opened done [16:05:18]requested_item shift.open_date is exist - process it [16:05:18]req_shift_open_date [16:05:18]req_shift_open_date done [16:05:18]produce_requested_data done [16:05:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63098,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:05:18]process_action_free close_receipt [16:05:18]json_value_free [16:05:18]json_value_free done [16:05:18]process_json_proto returns [16:05:18]Send response to host [16:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63098,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:05:18]free response buf [16:05:18]execute_script done [16:05:18]execute_script returns [16:05:18]free content buf [16:05:18]Sock 9.Close socket [16:05:18]Sock 9.Thread stoped [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:47]accept exits with 7 [16:06:47]New connection [16:06:47]New thread 3067198820 created [16:06:47]Thread 3067055460 joined [16:06:47]Waiting for new connection... [16:06:47] Sock 7.Parse request [16:06:47]Sock 7.Check first char [16:06:47]Sock 7.First char is OK [16:06:47]request: POST /json_proto HTTP/1.0 [16:06:47]Method: POST [16:06:47]URL: /json_proto [16:06:47]Method is POST - this is cgi request [16:06:47]url: /json_proto [16:06:47]query_string will be loaded in cgi processing [16:06:47]execute_cgi json_proto POST (null) [16:06:47]execute_cgi path=json_proto method=POST [16:06:47]POST find Content-Length [16:06:47]Host: 172.17.42.132:8080 [16:06:47]Content-Length: 625 [16:06:47]Content-Type: application/json [16:06:47] [16:06:47]POST finish read [16:06:47]Found Content-Length = 625 [16:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47409", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:47]execute_script... [16:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47409", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:47]POST & json_proto [16:06:47]process_json_proto [16:06:47]json parsed OK: [16:06:47]protocol is kg_v1.0 [16:06:47]action value=close_receipt [16:06:47]process_action close_receipt [16:06:47]cmd_close_receipt [16:06:47]MH_GetDate [16:06:47]Write to MH i2c: F0 00 00 51 16 56 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: F0 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: F0 09 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: F0 09 00 51 16 00 1A 7C 16 67 4C DF 56 66 59 [16:06:47]GetLastDocTimeStamp 1729526717 [16:06:47]current date 1729526810 [16:06:47]FM_GetShiftState [16:06:47]SAM_PROTO_GetShiftState [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 01 00 [16:06:47]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 45 [16:06:47]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetShiftState done [16:06:47]FM_GetShiftState done [16:06:47]opened in 1729469755 [16:06:47]opened+sec_in_day 1729556155 [16:06:47]quantity*price = 15000 [16:06:47]sum+1 = 15001 [16:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 21.10.2024 16:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63099 ФПД: 265938489137195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63099&fm=265938489137195&tin=02508201610067®Number=0000000000091619&sum=15000 0 [16:06:48]StoreToDocumentArchive [16:06:48]shift 544 fd 63099 [16:06:48]save to /storage/0544/doc_00063099 [16:06:48]save last doc name /storage/0544/doc_00063099 to /storage/kkm_last_doc_name [16:06:48]save OK [16:06:48]Clear old archive folders... [16:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:06:48]tlvbuf is 018EF680 [16:06:48]SAM_PROTO_ClearQueue [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 09 00 00 [16:06:48]Write to MH i2c: E2 08 00 5F 16 80 09 00 00 00 00 00 00 E7 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [16:06:48]RAPDU: 90 00 [16:06:48]wFMCommunicate OK [16:06:48]SAM_PROTO_ClearQueue done [16:06:48]KKMCreateOFDPacket [16:06:48]OFDProtocolAddRootSTLVToBuf [16:06:48]FM_MakeSignedData [16:06:48]FM_MakeSignedData [16:06:48]SAM_PROTO_SignData [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 0D 01 02 [16:06:48]Write to MH i2c: E2 08 00 60 16 80 0D 01 02 00 00 00 00 EF [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]wFMCommunicate request_size=255 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [16:06:49]Write to MH i2c: E2 02 01 61 16 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 AA [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]wFMCommunicate request_size=37 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F6 00 00 35 04 06 00 F1 DE A1 2D 58 2B [16:06:49]Write to MH i2c: E2 28 00 62 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F6 00 00 35 04 06 00 F1 DE A1 2D 58 2B 00 00 E0 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 0D 03 02 [16:06:49]Write to MH i2c: E2 08 00 63 16 80 0D 03 02 00 00 00 00 F4 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 0B 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 0B 00 63 16 00 30 97 5B 75 6E DA 6B C4 90 00 03 [16:06:49]RAPDU: 30 97 5B 75 6E DA 6B C4 90 00 [16:06:49]wFMCommunicate OK [16:06:49]SAM_PROTO_SignData done [16:06:49]FM_MakeSignedData done [16:06:49]CreateOFDProtocolMessage [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 11 00 00 [16:06:49]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 17 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4D [16:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:06:49]wFMCommunicate OK [16:06:49]CreateOFDProtocolMessage done [16:06:49]OFDSenderStorePacket 63099 [16:06:49]StoreOFDPacket docnum=63099 [16:06: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 2A 01 00 00 52 EE 22 01 CA D4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F1 DE A1 2D 58 2B 30 97 5B 75 6E DA 6B C4 [16:06:49]CheckFolder [16:06:49]dirname=/storage/ofd_packets [16:06:49]CheckFolder done [16:06:49]ProducePacketName [16:06:49]name=ofd_packets/00063099 [16:06:49]NVStorageSaveData ofd_packets/00063099 [16:06:49]File name is /storage/ofd_packets/00063099 [16:06:49]Write 328 bytes [16:06:49]NVStorageSaveData done [16:06:49]OFDSenderStorePacket done [16:06:49]KKMCreateOFDPacket done [16:06:49]NVStorageSaveData kkm_last_timestamp [16:06:49]File name is /storage/kkm_last_timestamp [16:06:49]Write 4 bytes [16:06:49]NVStorageSaveData done [16:06:49]ExternCall_PrintAddStr [16:06:49]wPrintStart [16:06:49]Write to MH i2c: 01 00 00 65 16 7B [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 07 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 FF 0F 90 [16:06:49]RasterBufferAndPrint [16:06:49]line Счет N : (3)47409 [16:06:49]line ИНН: 02508201610067 [16:06:49]line Контрольно-Кассовый Чек [16:06:49]line ПРОДАЖА [16:06:49]line Товар: 4640030092499 [16:06:49]line Сигареты ESSE SENSE Himalaya [16:06:49]line 1.000 * 150.00 [16:06:49]line = 150.00 [16:06:49]line НДС 12% НСП 1% [16:06:49]line > о реализуемом товаре [16:06:49]line ИТОГО: 150.00 [16:06:49]line НСП 1% : 1.33 [16:06:49]line НДС 12% : 15.93 [16:06:49]line Наличными: 150.00 [16:06:49]line Безнал.: 0.00 [16:06:49]line Место: АЗС № 86 "Партнер Нефть" [16:06:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:06:49]line СНО: Общий режим [16:06:49]line Чек 96 21.10.2024 16:06 [16:06:49]line Смена: 544 ФФД: 1.0 [16:06:49]line ЗНМ: 0300000154 [16:06:49]line РНМ: 0000000000091619 [16:06:49]line Версия ККМ: 001 [16:06:49]line ФМ: 0000000000874676 [16:06:49]line ФД: 63099 [16:06:49]line ФПД: 265938489137195 [16:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63099&fm=265938489137195&tin=02508201610067®Number=0000000000091619&sum=15000 [16:06:49]line 0 [16:06:49]OFD Sender: Processing packet 63099 [packets to send 232, broken 231] [16:06:49]ProducePacketName [16:06:49]name=ofd_packets/00063099 [16:06:49]OFD Sender: To server: pG, [16:06:49]CommunicateWithHost lk.salyk.kg:30040 [16:06:49]ConnectInit lk.salyk.kg [16:06:49]written 0, free lines is 4095 [16:06:50]Connected sock=9 [16:06: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 2A 01 00 00 52 EE 22 01 CA D4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F1 DE A1 2D 58 2B 30 97 5B 75 6E DA 6B C4 [16:06:50]Write to MH i2c: 01 00 00 8E 16 A4 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 8E 16 00 00 00 00 00 10 0D C8 [16:06:50]RasterBufferAndPrint [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]written 0, free lines is 3350 [16:06:50]MH_Cut [16:06:50]Write to MH i2c: D1 01 00 95 16 01 7D [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 01 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 01 00 95 16 00 7C [16:06:50]Write to MH i2c: 01 00 00 96 16 AC [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06: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 90 53 47 00 E2 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F6 00 00 F4 03 04 00 17 26 16 67 B6 04 01 00 00 CD A7 12 0B EC E8 96 CB [16:06:50]CommunicateWithHost err = 0 [16:06:50]CheckOFDResponse [16:06:50]1017 (14) - 77093643461234 [16:06:50]1041 (16) - 0000000000874676 [16:06:50]1040 (4) - 63099 [16:06:50]1012 (4) - 21.10.2024 09:59 [16:06:50]1206 (1) - 0 [16:06:50]OFD Sender: Remove packet 63099 [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00063099 [16:06:50]NVStorageDeleteData [16:06:50]*** Cut start [16:06:50]*** Partial cut [16:06:50]*** CUTSNS_PIN = 1 [16:06:50]OFD Sender: No OFD packet to send [16:06:50]*** CUTSNS_PIN = 0 [16:06:51]*** Brake cut motor [16:06:51]Read from MH i2c: 01 [16:06:51]MH_I2C_Read... [16:06:51]*** Stop cut motor [16:06:51]*** Cut end [16:06:51]Read from MH i2c: 01 07 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 FF 0F C1 [16:06:51]process_action close_receipt done [16:06:51]requested_data is exist [16:06:51]produce_requested_data [16:06:51]requested_item fm.sn is exist - process it [16:06:51]wFMCommunicate request_size=4 [16:06:51]MH_SAM_APDU [16:06:51]CAPDU: 80 11 00 00 [16:06:51]Write to MH i2c: E2 08 00 97 16 80 11 00 00 00 00 00 00 27 [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:51]Read from MH i2c: E2 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 17 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 17 00 97 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 80 [16:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:06:51]wFMCommunicate OK [16:06:51]requested_item fd.num is exist - process it [16:06:51]SAM_PROTO_GetFieldsCounters [16:06:51]wFMCommunicate request_size=4 [16:06:51]MH_SAM_APDU [16:06:51]CAPDU: 80 13 00 00 [16:06:51]Write to MH i2c: E2 08 00 98 16 80 13 00 00 00 00 00 00 2A [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:51]Read from MH i2c: E2 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 62 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 62 00 98 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 7B F6 00 00 0E 04 04 00 20 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 05 [16:06: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 7B F6 00 00 0E 04 04 00 20 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 [16:06:51]wFMCommunicate OK [16:06:51]SAM_PROTO_GetFieldsCounters done [16:06:51]requested_item shift.num is exist - process it [16:06:51]requested_item shift.opened is exist - process it [16:06:51]req_shift_opened [16:06:51]FM_GetShiftState [16:06:51]SAM_PROTO_GetShiftState [16:06:51]wFMCommunicate request_size=4 [16:06:51]MH_SAM_APDU [16:06:51]CAPDU: 80 13 01 00 [16:06:51]Write to MH i2c: E2 08 00 99 16 80 13 01 00 00 00 00 00 2C [16:06:51]Write i2c OK [16:06:51]MH_I2C_Read... [16:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:51]Read from MH i2c: E2 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 0E 00 [16:06:51]MH_I2C_Read... [16:06:51]Read from MH i2c: E2 0E 00 99 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8C [16:06:51]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:06:51]wFMCommunicate OK [16:06:51]SAM_PROTO_GetShiftState done [16:06:51]FM_GetShiftState done [16:06:51]req_shift_opened done [16:06:51]requested_item shift.open_date is exist - process it [16:06:51]req_shift_open_date [16:06:51]req_shift_open_date done [16:06:51]produce_requested_data done [16:06:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63099,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:06:51]process_action_free close_receipt [16:06:51]json_value_free [16:06:51]json_value_free done [16:06:51]process_json_proto returns [16:06:51]Send response to host [16:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63099,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:06:51]free response buf [16:06:51]execute_script done [16:06:51]execute_script returns [16:06:51]free content buf [16:06:51]Sock 7.Close socket [16:06:51]Sock 7.Thread stoped [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:25]accept exits with 10 [16:08:25]New connection [16:08:25]New thread 3067055460 created [16:08:25]Thread 3067198820 joined [16:08:25]Waiting for new connection... [16:08:25] Sock 10.Parse request [16:08:25]Sock 10.Check first char [16:08:25]Sock 10.First char is OK [16:08:25]request: POST /json_proto HTTP/1.0 [16:08:25]Method: POST [16:08:25]URL: /json_proto [16:08:25]Method is POST - this is cgi request [16:08:25]url: /json_proto [16:08:25]query_string will be loaded in cgi processing [16:08:25]execute_cgi json_proto POST (null) [16:08:25]execute_cgi path=json_proto method=POST [16:08:25]POST find Content-Length [16:08:25]Host: 172.17.42.132:8080 [16:08:25]Content-Length: 1168 [16:08:25]Content-Type: application/json [16:08:25] [16:08:25]POST finish read [16:08:25]Found Content-Length = 1168 [16:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47410", "tax_sys" : 0, "items" : [ { "code": "5010106113127", "name": "\u0412\u0438\u0441\u043A\u0438 Ballantine`s FINEST 43% 0,7\u043B", "price" : 2000.00, "quantity" : 1.000, "sum" : 2000.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" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:25]execute_script... [16:08: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)47410", "tax_sys" : 0, "items" : [ { "code": "5010106113127", "name": "\u0412\u0438\u0441\u043A\u0438 Ballantine`s FINEST 43% 0,7\u043B", "price" : 2000.00, "quantity" : 1.000, "sum" : 2000.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" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:25]POST & json_proto [16:08:25]process_json_proto [16:08:25]json parsed OK: [16:08:25]protocol is kg_v1.0 [16:08:25]action value=close_receipt [16:08:25]process_action close_receipt [16:08:25]cmd_close_receipt [16:08:25]MH_GetDate [16:08:25]Write to MH i2c: F0 00 00 9A 16 9F [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 09 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 09 00 9A 16 00 7C 7C 16 67 4C DF 56 66 04 [16:08:25]GetLastDocTimeStamp 1729526810 [16:08:25]current date 1729526908 [16:08:25]FM_GetShiftState [16:08:25]SAM_PROTO_GetShiftState [16:08:25]wFMCommunicate request_size=4 [16:08:25]MH_SAM_APDU [16:08:25]CAPDU: 80 13 01 00 [16:08:25]Write to MH i2c: E2 08 00 9B 16 80 13 01 00 00 00 00 00 2E [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:25]Read from MH i2c: E2 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 0E 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 0E 00 9B 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8E [16:08:25]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:08:25]wFMCommunicate OK [16:08:25]SAM_PROTO_GetShiftState done [16:08:25]FM_GetShiftState done [16:08:25]opened in 1729469755 [16:08:25]opened+sec_in_day 1729556155 [16:08:25]quantity*price = 200000 [16:08:25]sum+1 = 200001 [16:08:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 3.000 * 80.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 2265.00 НСП 1% : 20.04 НДС 12% : 240.53 Наличными: 2265.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 21.10.2024 16:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63100 ФПД: 58375728178134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160828&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63100&fm=58375728178134&tin=02508201610067®Number=0000000000091619&sum=226500 0 [16:08:26]StoreToDocumentArchive [16:08:26]shift 544 fd 63100 [16:08:26]save to /storage/0544/doc_00063100 [16:08:26]save last doc name /storage/0544/doc_00063100 to /storage/kkm_last_doc_name [16:08:26]save OK [16:08:26]Clear old archive folders... [16:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=501 [16:08:26]tlvbuf is 018D1530 [16:08:26]SAM_PROTO_ClearQueue [16:08:26]wFMCommunicate request_size=4 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 09 00 00 [16:08:26]Write to MH i2c: E2 08 00 A8 16 80 09 00 00 00 00 00 00 30 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [16:08:26]RAPDU: 90 00 [16:08:26]wFMCommunicate OK [16:08:26]SAM_PROTO_ClearQueue done [16:08:26]KKMCreateOFDPacket [16:08:26]OFDProtocolAddRootSTLVToBuf [16:08:26]FM_MakeSignedData [16:08:26]FM_MakeSignedData [16:08:26]SAM_PROTO_SignData [16:08:26]wFMCommunicate request_size=4 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 0D 01 02 [16:08:26]Write to MH i2c: E2 08 00 A9 16 80 0D 01 02 00 00 00 00 38 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [16:08:26]RAPDU: 90 00 [16:08:26]wFMCommunicate OK [16:08:26]wFMCommunicate request_size=255 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 31 30 31 30 36 31 31 33 31 32 37 06 04 28 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 42 61 6C 6C 61 6E 74 69 6E 65 60 73 20 46 49 4E 45 53 54 20 34 33 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 0D 03 00 00 00 13 04 06 00 40 0D 03 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 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA [16:08:26]Write to MH i2c: E2 02 01 AA 16 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 31 30 31 30 36 31 31 33 31 32 37 06 04 28 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 42 61 6C 6C 61 6E 74 69 6E 65 60 73 20 46 49 4E 45 53 54 20 34 33 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 0D 03 00 00 00 13 04 06 00 40 0D 03 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 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA 00 00 69 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [16:08:26]RAPDU: 90 00 [16:08:26]wFMCommunicate OK [16:08:26]wFMCommunicate request_size=255 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 0D 02 02 FA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 74 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 5D 00 00 00 00 07 04 06 00 C4 74 03 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 7C 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 35 [16:08:26]Write to MH i2c: E2 02 01 AB 16 80 0D 02 02 FA 00 D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 74 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 5D 00 00 00 00 07 04 06 00 C4 74 03 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 7C 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 35 00 00 B4 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 AB 16 00 90 00 35 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]wFMCommunicate request_size=10 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 02 02 05 17 A8 8A A3 D6 [16:08:27]Write to MH i2c: E2 0D 00 AC 16 80 0D 02 02 05 00 17 A8 8A A3 D6 00 00 08 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 AC 16 00 90 00 36 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 03 02 [16:08:27]Write to MH i2c: E2 08 00 AD 16 80 0D 03 02 00 00 00 00 3E [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0B 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0B 00 AD 16 00 18 02 B8 F5 02 91 2B 44 90 00 08 [16:08:27]RAPDU: 18 02 B8 F5 02 91 2B 44 90 00 [16:08:27]wFMCommunicate OK [16:08:27]SAM_PROTO_SignData done [16:08:27]FM_MakeSignedData done [16:08:27]CreateOFDProtocolMessage [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 11 00 00 [16:08:27]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 97 [16:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:08:27]wFMCommunicate OK [16:08:27]CreateOFDProtocolMessage done [16:08:27]OFDSenderStorePacket 63100 [16:08:27]StoreOFDPacket docnum=63100 [16:08: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 09 02 00 00 B6 A4 01 02 0C 96 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 31 30 31 30 36 31 31 33 31 32 37 06 04 28 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 42 61 6C 6C 61 6E 74 69 6E 65 60 73 20 46 49 4E 45 53 54 20 34 33 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 0D 03 00 00 00 13 04 06 00 40 0D 03 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 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 74 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 5D 00 00 00 00 07 04 06 00 C4 74 03 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 7C 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 35 17 A8 8A A3 D6 18 02 B8 F5 02 91 2B 44 [16:08:27]CheckFolder [16:08:27]dirname=/storage/ofd_packets [16:08:27]CheckFolder done [16:08:27]ProducePacketName [16:08:27]name=ofd_packets/00063100 [16:08:27]NVStorageSaveData ofd_packets/00063100 [16:08:27]File name is /storage/ofd_packets/00063100 [16:08:27]Write 551 bytes [16:08:27]NVStorageSaveData done [16:08:27]OFDSenderStorePacket done [16:08:27]KKMCreateOFDPacket done [16:08:27]NVStorageSaveData kkm_last_timestamp [16:08:27]File name is /storage/kkm_last_timestamp [16:08:27]Write 4 bytes [16:08:27]NVStorageSaveData done [16:08:27]ExternCall_PrintAddStr [16:08:27]wPrintStart [16:08:27]Write to MH i2c: 01 00 00 AF 16 C5 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 FF 0F DA [16:08:27]RasterBufferAndPrint [16:08:27]line Счет N : (3)47410 [16:08:27]line ИНН: 02508201610067 [16:08:27]line Контрольно-Кассовый Чек [16:08:27]line ПРОДАЖА [16:08:27]line Товар: 5010106113127 [16:08:27]line Виски Ballantine`s FINEST 43% 0,7л [16:08:27]line 1.000 * 2000.00 [16:08:27]line = 2000.00 [16:08:27]line НДС 12% НСП 1% [16:08:27]line > о реализуемом товаре [16:08:27]line Товар: 4870001570057 [16:08:27]line Напиток Pepsi 0,5л [16:08:27]line 3.000 * 80.00 [16:08:27]line = 240.00 [16:08:27]line НДС 12% НСП 1% [16:08:27]line > о реализуемом товаре [16:08:27]line Товар: 2000027340020 [16:08:27]line Пакет бумажный витая ручка [16:08:27]line 1.000 * 25.00 [16:08:27]line = 25.00 [16:08:27]line НДС 12% НСП 1% [16:08:27]line > о реализуемом товаре [16:08:27]line ИТОГО: 2265.00 [16:08:27]line НСП 1% : 20.04 [16:08:27]line НДС 12% : 240.53 [16:08:27]line Наличными: 2265.00 [16:08:27]line Безнал.: 0.00 [16:08:27]line Место: АЗС № 86 "Партнер Нефть" [16:08:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:08:27]line СНО: Общий режим [16:08:27]line Чек 97 21.10.2024 16:08 [16:08:27]line Смена: 544 ФФД: 1.0 [16:08:27]line ЗНМ: 0300000154 [16:08:27]line РНМ: 0000000000091619 [16:08:27]line Версия ККМ: 001 [16:08:27]line ФМ: 0000000000874676 [16:08:27]line ФД: 63100 [16:08:27]line ФПД: 58375728178134 [16:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160828&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63100&fm=58375728178134&tin=02508201610067®Number=0000000000091619&sum=226500 [16:08:27]line 0 [16:08:27]OFD Sender: Processing packet 63100 [packets to send 232, broken 231] [16:08:27]ProducePacketName [16:08:27]name=ofd_packets/00063100 [16:08:27]OFD Sender: To server: pG, [16:08:27]CommunicateWithHost lk.salyk.kg:30040 [16:08:27]ConnectInit lk.salyk.kg [16:08:27]written 0, free lines is 4095 [16:08:27]Connected sock=9 [16:08: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 09 02 00 00 B6 A4 01 02 0C 96 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 30 31 30 31 30 36 31 31 33 31 32 37 06 04 28 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 42 61 6C 6C 61 6E 74 69 6E 65 60 73 20 46 49 4E 45 53 54 20 34 33 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 0D 03 00 00 00 13 04 06 00 40 0D 03 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 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 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 74 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 5D 00 00 00 00 07 04 06 00 C4 74 03 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 7C 7C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 35 17 A8 8A A3 D6 18 02 B8 F5 02 91 2B 44 [16:08:28]Write to MH i2c: 01 00 00 E4 16 FA [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 07 00 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 75 0C 82 [16:08:28]RasterBufferAndPrint [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]written 0, free lines is 3198 [16:08:28]MH_Cut [16:08:28]Write to MH i2c: D1 01 00 EB 16 01 D3 [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 01 00 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 01 00 EB 16 00 D2 [16:08:28]Write to MH i2c: 01 00 00 EC 16 02 [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08: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 32 86 47 00 48 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 7C F6 00 00 F4 03 04 00 79 26 16 67 B6 04 01 00 00 94 24 12 7A 79 3D D4 4F [16:08:28]CommunicateWithHost err = 0 [16:08:28]CheckOFDResponse [16:08:28]1017 (14) - 77093643461234 [16:08:28]1041 (16) - 0000000000874676 [16:08:28]1040 (4) - 63100 [16:08:28]1012 (4) - 21.10.2024 10:01 [16:08:28]1206 (1) - 0 [16:08:28]OFD Sender: Remove packet 63100 [16:08:28]ProducePacketName [16:08:28]name=ofd_packets/00063100 [16:08:28]NVStorageDeleteData [16:08:28]*** Cut start [16:08:28]*** Partial cut [16:08:28]*** CUTSNS_PIN = 1 [16:08:28]OFD Sender: No OFD packet to send [16:08:28]*** CUTSNS_PIN = 0 [16:08:29]*** Brake cut motor [16:08:29]Read from MH i2c: 01 [16:08:29]MH_I2C_Read... [16:08:29]*** Stop cut motor [16:08:29]*** Cut end [16:08:29]Read from MH i2c: 01 07 00 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 FF 0F 17 [16:08:29]process_action close_receipt done [16:08:29]requested_data is exist [16:08:29]produce_requested_data [16:08:29]requested_item fm.sn is exist - process it [16:08:29]wFMCommunicate request_size=4 [16:08:29]MH_SAM_APDU [16:08:29]CAPDU: 80 11 00 00 [16:08:29]Write to MH i2c: E2 08 00 ED 16 80 11 00 00 00 00 00 00 7D [16:08:29]Write i2c OK [16:08:29]MH_I2C_Read... [16:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:29]Read from MH i2c: E2 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 17 00 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 17 00 ED 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D6 [16:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:08:29]wFMCommunicate OK [16:08:29]requested_item fd.num is exist - process it [16:08:29]SAM_PROTO_GetFieldsCounters [16:08:29]wFMCommunicate request_size=4 [16:08:29]MH_SAM_APDU [16:08:29]CAPDU: 80 13 00 00 [16:08:29]Write to MH i2c: E2 08 00 EE 16 80 13 00 00 00 00 00 00 80 [16:08:29]Write i2c OK [16:08:29]MH_I2C_Read... [16:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:29]Read from MH i2c: E2 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 62 00 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 62 00 EE 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 7C F6 00 00 0E 04 04 00 20 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 5F [16:08: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 7C F6 00 00 0E 04 04 00 20 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 [16:08:29]wFMCommunicate OK [16:08:29]SAM_PROTO_GetFieldsCounters done [16:08:29]requested_item shift.num is exist - process it [16:08:29]requested_item shift.opened is exist - process it [16:08:29]req_shift_opened [16:08:29]FM_GetShiftState [16:08:29]SAM_PROTO_GetShiftState [16:08:29]wFMCommunicate request_size=4 [16:08:29]MH_SAM_APDU [16:08:29]CAPDU: 80 13 01 00 [16:08:29]Write to MH i2c: E2 08 00 EF 16 80 13 01 00 00 00 00 00 82 [16:08:29]Write i2c OK [16:08:29]MH_I2C_Read... [16:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:29]Read from MH i2c: E2 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 0E 00 [16:08:29]MH_I2C_Read... [16:08:29]Read from MH i2c: E2 0E 00 EF 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E2 [16:08:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:08:29]wFMCommunicate OK [16:08:29]SAM_PROTO_GetShiftState done [16:08:29]FM_GetShiftState done [16:08:29]req_shift_opened done [16:08:29]requested_item shift.open_date is exist - process it [16:08:29]req_shift_open_date [16:08:29]req_shift_open_date done [16:08:29]produce_requested_data done [16:08:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63100,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:08:29]process_action_free close_receipt [16:08:29]json_value_free [16:08:29]json_value_free done [16:08:29]process_json_proto returns [16:08:29]Send response to host [16:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63100,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:08:29]free response buf [16:08:29]execute_script done [16:08:29]execute_script returns [16:08:29]free content buf [16:08:29]Sock 10.Close socket [16:08:29]Sock 10.Thread stoped [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:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18: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:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:53]accept exits with 7 [16:21:53]New connection [16:21:53]New thread 3067198820 created [16:21:53]Thread 3067055460 joined [16:21:53]Waiting for new connection... [16:21:53] Sock 7.Parse request [16:21:53]Sock 7.Check first char [16:21:53]Sock 7.First char is OK [16:21:53]request: POST /json_proto HTTP/1.0 [16:21:53]Method: POST [16:21:53]URL: /json_proto [16:21:53]Method is POST - this is cgi request [16:21:53]url: /json_proto [16:21:53]query_string will be loaded in cgi processing [16:21:53]execute_cgi json_proto POST (null) [16:21:53]execute_cgi path=json_proto method=POST [16:21:53]POST find Content-Length [16:21:53]Host: 172.17.42.132:8080 [16:21:53]Content-Length: 631 [16:21:53]Content-Type: application/json [16:21:53] [16:21:53]POST finish read [16:21:53]Found Content-Length = 631 [16:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47411", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:53]execute_script... [16:21: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)47411", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:53]POST & json_proto [16:21:53]process_json_proto [16:21:53]json parsed OK: [16:21:53]protocol is kg_v1.0 [16:21:53]action value=close_receipt [16:21:53]process_action close_receipt [16:21:53]cmd_close_receipt [16:21:53]MH_GetDate [16:21:53]Write to MH i2c: F0 00 00 F0 16 F5 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: F0 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: F0 09 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: F0 09 00 F0 16 00 A4 7F 16 67 4C DF 56 66 85 [16:21:53]GetLastDocTimeStamp 1729526908 [16:21:53]current date 1729527716 [16:21:53]FM_GetShiftState [16:21:53]SAM_PROTO_GetShiftState [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 13 01 00 [16:21:53]Write to MH i2c: E2 08 00 F1 16 80 13 01 00 00 00 00 00 84 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 0E 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 0E 00 F1 16 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E4 [16:21:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:21:53]wFMCommunicate OK [16:21:53]SAM_PROTO_GetShiftState done [16:21:53]FM_GetShiftState done [16:21:53]opened in 1729469755 [16:21:53]opened+sec_in_day 1729556155 [16:21:53]quantity*price = 6000 [16:21:53]sum+1 = 6001 [16:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 21.10.2024 16:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63101 ФПД: 90394565459405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162156&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63101&fm=90394565459405&tin=02508201610067®Number=0000000000091619&sum=6000 0 [16:21:54]StoreToDocumentArchive [16:21:54]shift 544 fd 63101 [16:21:54]save to /storage/0544/doc_00063101 [16:21:54]save last doc name /storage/0544/doc_00063101 to /storage/kkm_last_doc_name [16:21:54]save OK [16:21:54]Clear old archive folders... [16:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:21:54]tlvbuf is 018EF2E0 [16:21:54]SAM_PROTO_ClearQueue [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 09 00 00 [16:21:54]Write to MH i2c: E2 08 00 FE 16 80 09 00 00 00 00 00 00 86 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [16:21:54]RAPDU: 90 00 [16:21:54]wFMCommunicate OK [16:21:54]SAM_PROTO_ClearQueue done [16:21:54]KKMCreateOFDPacket [16:21:54]OFDProtocolAddRootSTLVToBuf [16:21:54]FM_MakeSignedData [16:21:54]FM_MakeSignedData [16:21:54]SAM_PROTO_SignData [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 0D 01 02 [16:21:54]Write to MH i2c: E2 08 00 FF 16 80 0D 01 02 00 00 00 00 8E [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=255 [16:21:55]MH_SAM_APDU [16:21:55]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A4 7F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:21:55]Write to MH i2c: E2 02 01 00 17 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A4 7F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 0A [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]OFD Sender: No OFD packet to send [16:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=30 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 7D F6 00 00 35 04 06 00 52 36 9F F6 BD CD [16:21:55]Write to MH i2c: E2 21 00 01 17 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 7D F6 00 00 35 04 06 00 52 36 9F F6 BD CD 00 00 AB [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [16:21:55]RAPDU: 90 00 [16:21:55]wFMCommunicate OK [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 0D 03 02 [16:21:55]Write to MH i2c: E2 08 00 02 17 80 0D 03 02 00 00 00 00 94 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0B 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0B 00 02 17 00 12 88 87 EB 13 3C 47 8A 90 00 C1 [16:21:55]RAPDU: 12 88 87 EB 13 3C 47 8A 90 00 [16:21:55]wFMCommunicate OK [16:21:55]SAM_PROTO_SignData done [16:21:55]FM_MakeSignedData done [16:21:55]CreateOFDProtocolMessage [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 11 00 00 [16:21:55]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 17 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 ED [16:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:21:55]wFMCommunicate OK [16:21:55]CreateOFDProtocolMessage done [16:21:55]OFDSenderStorePacket 63101 [16:21:55]StoreOFDPacket docnum=63101 [16:21: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 23 01 00 00 1D 4A 1B 01 01 B6 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A4 7F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 52 36 9F F6 BD CD 12 88 87 EB 13 3C 47 8A [16:21:55]CheckFolder [16:21:55]dirname=/storage/ofd_packets [16:21:55]CheckFolder done [16:21:55]ProducePacketName [16:21:55]name=ofd_packets/00063101 [16:21:55]NVStorageSaveData ofd_packets/00063101 [16:21:55]File name is /storage/ofd_packets/00063101 [16:21:55]Write 321 bytes [16:21:55]NVStorageSaveData done [16:21:55]OFDSenderStorePacket done [16:21:55]KKMCreateOFDPacket done [16:21:55]NVStorageSaveData kkm_last_timestamp [16:21:55]File name is /storage/kkm_last_timestamp [16:21:55]Write 4 bytes [16:21:55]NVStorageSaveData done [16:21:55]ExternCall_PrintAddStr [16:21:55]wPrintStart [16:21:55]Write to MH i2c: 01 00 00 04 17 1B [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 04 17 00 00 00 00 00 FF 0F 30 [16:21:55]RasterBufferAndPrint [16:21:55]line Счет N : (3)47411 [16:21:55]line ИНН: 02508201610067 [16:21:55]line Контрольно-Кассовый Чек [16:21:55]line ПРОДАЖА [16:21:55]line Товар: 4700025313937 [16:21:55]line ВОДКА МЯГКАЯ 0,1л [16:21:55]line 1.000 * 60.00 [16:21:55]line = 60.00 [16:21:55]line НДС 12% НСП 1% [16:21:55]line > о реализуемом товаре [16:21:55]line ИТОГО: 60.00 [16:21:55]line НСП 1% : 0.53 [16:21:55]line НДС 12% : 6.37 [16:21:55]line Наличными: 60.00 [16:21:55]line Безнал.: 0.00 [16:21:55]line Место: АЗС № 86 "Партнер Нефть" [16:21:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:21:55]line СНО: Общий режим [16:21:55]line Чек 98 21.10.2024 16:21 [16:21:55]line Смена: 544 ФФД: 1.0 [16:21:55]line ЗНМ: 0300000154 [16:21:55]line РНМ: 0000000000091619 [16:21:55]line Версия ККМ: 001 [16:21:55]line ФМ: 0000000000874676 [16:21:55]line ФД: 63101 [16:21:55]line ФПД: 90394565459405 [16:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162156&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63101&fm=90394565459405&tin=02508201610067®Number=0000000000091619&sum=6000 [16:21:55]OFD Sender: Processing packet 63101 [packets to send 232, broken 231] [16:21:55]ProducePacketName [16:21:55]name=ofd_packets/00063101 [16:21:55]OFD Sender: To server: pG, [16:21:55]CommunicateWithHost lk.salyk.kg:30040 [16:21:55]ConnectInit lk.salyk.kg [16:21:55]line 0 [16:21:55]written 0, free lines is 4095 [16:21:56]Connected sock=10 [16:21:56]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 1D 4A 1B 01 01 B6 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A4 7F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 52 36 9F F6 BD CD 12 88 87 EB 13 3C 47 8A [16:21:56]Write to MH i2c: 01 00 00 2C 17 43 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 2C 17 00 00 00 00 00 1C 0D 73 [16:21:56]RasterBufferAndPrint [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]line [16:21:56]written 0, free lines is 3362 [16:21:56]MH_Cut [16:21:56]Write to MH i2c: D1 01 00 33 17 01 1C [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: D1 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: D1 01 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: D1 01 00 33 17 00 1B [16:21:56]Write to MH i2c: 01 00 00 34 17 4B [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21: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 C2 6D 47 00 35 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 7D F6 00 00 F4 03 04 00 A1 29 16 67 B6 04 01 00 00 0D 83 52 02 80 D8 3F D7 [16:21:56]CommunicateWithHost err = 0 [16:21:56]CheckOFDResponse [16:21:56]1017 (14) - 77093643461234 [16:21:56]1041 (16) - 0000000000874676 [16:21:56]1040 (4) - 63101 [16:21:56]1012 (4) - 21.10.2024 10:14 [16:21:56]1206 (1) - 0 [16:21:56]OFD Sender: Remove packet 63101 [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00063101 [16:21:56]NVStorageDeleteData [16:21:56]*** Cut start [16:21:56]*** Partial cut [16:21:56]*** CUTSNS_PIN = 1 [16:21:56]*** CUTSNS_PIN = 0 [16:21:56]OFD Sender: No OFD packet to send [16:21:57]*** Brake cut motor [16:21:57]Read from MH i2c: 01 [16:21:57]MH_I2C_Read... [16:21:57]*** Stop cut motor [16:21:57]*** Cut end [16:21:57]Read from MH i2c: 01 07 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [16:21:57]process_action close_receipt done [16:21:57]requested_data is exist [16:21:57]produce_requested_data [16:21:57]requested_item fm.sn is exist - process it [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 11 00 00 [16:21:57]Write to MH i2c: E2 08 00 35 17 80 11 00 00 00 00 00 00 C6 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 35 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1F [16:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:21:57]wFMCommunicate OK [16:21:57]requested_item fd.num is exist - process it [16:21:57]SAM_PROTO_GetFieldsCounters [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 13 00 00 [16:21:57]Write to MH i2c: E2 08 00 36 17 80 13 00 00 00 00 00 00 C9 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 62 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 62 00 36 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 7D F6 00 00 0E 04 04 00 20 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 AC [16:21: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 7D F6 00 00 0E 04 04 00 20 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 [16:21:57]wFMCommunicate OK [16:21:57]SAM_PROTO_GetFieldsCounters done [16:21:57]requested_item shift.num is exist - process it [16:21:57]requested_item shift.opened is exist - process it [16:21:57]req_shift_opened [16:21:57]FM_GetShiftState [16:21:57]SAM_PROTO_GetShiftState [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 13 01 00 [16:21:57]Write to MH i2c: E2 08 00 37 17 80 13 01 00 00 00 00 00 CB [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0E 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0E 00 37 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2B [16:21:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:21:57]wFMCommunicate OK [16:21:57]SAM_PROTO_GetShiftState done [16:21:57]FM_GetShiftState done [16:21:57]req_shift_opened done [16:21:57]requested_item shift.open_date is exist - process it [16:21:57]req_shift_open_date [16:21:57]req_shift_open_date done [16:21:57]produce_requested_data done [16:21:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63101,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:21:57]process_action_free close_receipt [16:21:57]json_value_free [16:21:57]json_value_free done [16:21:57]process_json_proto returns [16:21:57]Send response to host [16:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63101,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:21:57]free response buf [16:21:57]execute_script done [16:21:57]execute_script returns [16:21:57]free content buf [16:21:57]Sock 7.Close socket [16:21:57]Sock 7.Thread stoped [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:16]accept exits with 9 [16:52:16]New connection [16:52:16]New thread 3067055460 created [16:52:16]Thread 3067198820 joined [16:52:16]Waiting for new connection... [16:52:16] Sock 9.Parse request [16:52:16]Sock 9.Check first char [16:52:16]Sock 9.First char is OK [16:52:16]request: POST /json_proto HTTP/1.0 [16:52:16]Method: POST [16:52:16]URL: /json_proto [16:52:16]Method is POST - this is cgi request [16:52:16]url: /json_proto [16:52:16]query_string will be loaded in cgi processing [16:52:16]execute_cgi json_proto POST (null) [16:52:16]execute_cgi path=json_proto method=POST [16:52:16]POST find Content-Length [16:52:16]Host: 172.17.42.132:8080 [16:52:16]Content-Length: 628 [16:52:16]Content-Type: application/json [16:52:16] [16:52:16]POST finish read [16:52:16]Found Content-Length = 628 [16:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47412", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:16]execute_script... [16:52: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)47412", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:16]POST & json_proto [16:52:16]process_json_proto [16:52:16]json parsed OK: [16:52:16]protocol is kg_v1.0 [16:52:16]action value=close_receipt [16:52:16]process_action close_receipt [16:52:16]cmd_close_receipt [16:52:16]MH_GetDate [16:52:16]Write to MH i2c: F0 00 00 38 17 3E [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 09 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 09 00 38 17 00 C3 86 16 67 4C DF 56 66 F4 [16:52:16]GetLastDocTimeStamp 1729527716 [16:52:16]current date 1729529539 [16:52:16]FM_GetShiftState [16:52:16]SAM_PROTO_GetShiftState [16:52:16]wFMCommunicate request_size=4 [16:52:16]MH_SAM_APDU [16:52:16]CAPDU: 80 13 01 00 [16:52:16]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:16]Read from MH i2c: E2 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2D [16:52:16]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:52:16]wFMCommunicate OK [16:52:16]SAM_PROTO_GetShiftState done [16:52:16]FM_GetShiftState done [16:52:16]opened in 1729469755 [16:52:16]opened+sec_in_day 1729556155 [16:52:16]quantity*price = 4900 [16:52:16]sum+1 = 4901 [16:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 21.10.2024 16:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63102 ФПД: 209457082067395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165219&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63102&fm=209457082067395&tin=02508201610067®Number=0000000000091619&sum=4900 0 [16:52:17]StoreToDocumentArchive [16:52:17]shift 544 fd 63102 [16:52:17]save to /storage/0544/doc_00063102 [16:52:17]save last doc name /storage/0544/doc_00063102 to /storage/kkm_last_doc_name [16:52:17]save OK [16:52:17]Clear old archive folders... [16:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:52:17]tlvbuf is 018EF280 [16:52:17]SAM_PROTO_ClearQueue [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 09 00 00 [16:52:17]Write to MH i2c: E2 08 00 46 17 80 09 00 00 00 00 00 00 CF [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_ClearQueue done [16:52:17]KKMCreateOFDPacket [16:52:17]OFDProtocolAddRootSTLVToBuf [16:52:17]FM_MakeSignedData [16:52:17]FM_MakeSignedData [16:52:17]SAM_PROTO_SignData [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 01 02 [16:52:17]Write to MH i2c: E2 08 00 47 17 80 0D 01 02 00 00 00 00 D7 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]wFMCommunicate request_size=255 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C3 86 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [16:52:17]Write to MH i2c: E2 02 01 48 17 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C3 86 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 83 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=31 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 7E F6 00 00 35 04 06 00 BE 80 06 F8 E9 C3 [16:52:18]Write to MH i2c: E2 22 00 49 17 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 7E F6 00 00 35 04 06 00 BE 80 06 F8 E9 C3 00 00 67 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 03 02 [16:52:18]Write to MH i2c: E2 08 00 4A 17 80 0D 03 02 00 00 00 00 DC [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 4A 17 00 A0 ED 2D 7A FB 83 D3 2E 90 00 90 [16:52:18]RAPDU: A0 ED 2D 7A FB 83 D3 2E 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_SignData done [16:52:18]FM_MakeSignedData done [16:52:18]CreateOFDProtocolMessage [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 11 00 00 [16:52:18]Write to MH i2c: E2 08 00 4B 17 80 11 00 00 00 00 00 00 DC [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 4B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 35 [16:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:52:18]wFMCommunicate OK [16:52:18]CreateOFDProtocolMessage done [16:52:18]OFDSenderStorePacket 63102 [16:52:18]StoreOFDPacket docnum=63102 [16:52: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 24 01 00 00 ED 87 1C 01 49 D7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C3 86 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BE 80 06 F8 E9 C3 A0 ED 2D 7A FB 83 D3 2E [16:52:18]CheckFolder [16:52:18]dirname=/storage/ofd_packets [16:52:18]CheckFolder done [16:52:18]ProducePacketName [16:52:18]name=ofd_packets/00063102 [16:52:18]NVStorageSaveData ofd_packets/00063102 [16:52:18]File name is /storage/ofd_packets/00063102 [16:52:18]Write 322 bytes [16:52:18]NVStorageSaveData done [16:52:18]OFDSenderStorePacket done [16:52:18]KKMCreateOFDPacket done [16:52:18]NVStorageSaveData kkm_last_timestamp [16:52:18]File name is /storage/kkm_last_timestamp [16:52:18]Write 4 bytes [16:52:18]NVStorageSaveData done [16:52:18]ExternCall_PrintAddStr [16:52:18]wPrintStart [16:52:18]Write to MH i2c: 01 00 00 4C 17 63 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FF 0F 78 [16:52:18]RasterBufferAndPrint [16:52:18]line Счет N : (3)47412 [16:52:18]line ИНН: 02508201610067 [16:52:18]line Контрольно-Кассовый Чек [16:52:18]line ПРОДАЖА [16:52:18]line Товар: 80942726 [16:52:18]line Р/ж mentos мята ролл 16г [16:52:18]line 1.000 * 49.00 [16:52:18]line = 49.00 [16:52:18]line НДС 12% НСП 1% [16:52:18]line > о реализуемом товаре [16:52:18]line ИТОГО: 49.00 [16:52:18]line НСП 1% : 0.43 [16:52:18]line НДС 12% : 5.20 [16:52:18]line Наличными: 49.00 [16:52:18]line Безнал.: 0.00 [16:52:18]line Место: АЗС № 86 "Партнер Нефть" [16:52:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:52:18]line СНО: Общий режим [16:52:18]line Чек 99 21.10.2024 16:52 [16:52:18]line Смена: 544 ФФД: 1.0 [16:52:18]line ЗНМ: 0300000154 [16:52:18]line РНМ: 0000000000091619 [16:52:18]line Версия ККМ: 001 [16:52:18]line ФМ: 0000000000874676 [16:52:18]line ФД: 63102 [16:52:18]line ФПД: 209457082067395 [16:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165219&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63102&fm=209457082067395&tin=02508201610067®Number=0000000000091619&sum=4900 [16:52:18]OFD Sender: Processing packet 63102 [packets to send 232, broken 231] [16:52:18]ProducePacketName [16:52:18]name=ofd_packets/00063102 [16:52:18]OFD Sender: To server: pG, [16:52:18]CommunicateWithHost lk.salyk.kg:30040 [16:52:18]ConnectInit lk.salyk.kg [16:52:18]line 0 [16:52:18]written 0, free lines is 4095 [16:52:18]Write to MH i2c: 01 00 00 74 17 8B [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 0F 0D AE [16:52:18]RasterBufferAndPrint [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]written 0, free lines is 3349 [16:52:19]MH_Cut [16:52:19]Write to MH i2c: D1 01 00 7B 17 01 64 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 7B 17 00 63 [16:52:19]Write to MH i2c: 01 00 00 7C 17 93 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** Cut start [16:52:19]*** Partial cut [16:52:19]*** CUTSNS_PIN = 1 [16:52:19]*** CUTSNS_PIN = 0 [16:52:19]*** Brake cut motor [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]*** Stop cut motor [16:52:20]*** Cut end [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 7C 17 00 00 00 00 00 FF 0F A8 [16:52:20]process_action close_receipt done [16:52:20]requested_data is exist [16:52:20]produce_requested_data [16:52:20]requested_item fm.sn is exist - process it [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 11 00 00 [16:52:20]Write to MH i2c: E2 08 00 7D 17 80 11 00 00 00 00 00 00 0E [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 7D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 67 [16:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:52:20]wFMCommunicate OK [16:52:20]requested_item fd.num is exist - process it [16:52:20]SAM_PROTO_GetFieldsCounters [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 13 00 00 [16:52:20]Write to MH i2c: E2 08 00 7E 17 80 13 00 00 00 00 00 00 11 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 62 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 62 00 7E 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 7E F6 00 00 0E 04 04 00 20 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 F8 [16:52: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 7E F6 00 00 0E 04 04 00 20 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 [16:52:20]wFMCommunicate OK [16:52:20]SAM_PROTO_GetFieldsCounters done [16:52:20]requested_item shift.num is exist - process it [16:52:20]requested_item shift.opened is exist - process it [16:52:20]req_shift_opened [16:52:20]FM_GetShiftState [16:52:20]SAM_PROTO_GetShiftState [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 13 01 00 [16:52:20]Write to MH i2c: E2 08 00 7F 17 80 13 01 00 00 00 00 00 13 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0E 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0E 00 7F 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 73 [16:52:20]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:52:20]wFMCommunicate OK [16:52:20]SAM_PROTO_GetShiftState done [16:52:20]FM_GetShiftState done [16:52:20]req_shift_opened done [16:52:20]requested_item shift.open_date is exist - process it [16:52:20]req_shift_open_date [16:52:20]req_shift_open_date done [16:52:20]produce_requested_data done [16:52:20]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63102,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:52:20]process_action_free close_receipt [16:52:20]json_value_free [16:52:20]json_value_free done [16:52:20]process_json_proto returns [16:52:20]Send response to host [16:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63102,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:52:20]free response buf [16:52:20]execute_script done [16:52:20]execute_script returns [16:52:20]free content buf [16:52:20]Sock 9.Close socket [16:52:20]Sock 9.Thread stoped [16:53:49]accept exits with 7 [16:53:49]New connection [16:53:49]New thread 3067198820 created [16:53:49]Thread 3067055460 joined [16:53:49]Waiting for new connection... [16:53:49] Sock 7.Parse request [16:53:49]Sock 7.Check first char [16:53:49]Sock 7.First char is OK [16:53:49]request: POST /json_proto HTTP/1.0 [16:53:49]Method: POST [16:53:49]URL: /json_proto [16:53:49]Method is POST - this is cgi request [16:53:49]url: /json_proto [16:53:49]query_string will be loaded in cgi processing [16:53:49]execute_cgi json_proto POST (null) [16:53:49]execute_cgi path=json_proto method=POST [16:53:49]POST find Content-Length [16:53:49]Host: 172.17.42.132:8080 [16:53:49]Content-Length: 882 [16:53:49]Content-Type: application/json [16:53:49] [16:53:49]POST finish read [16:53:49]Found Content-Length = 882 [16:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47413", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:49]execute_script... [16:53:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47413", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:49]POST & json_proto [16:53:49]process_json_proto [16:53:49]json parsed OK: [16:53:49]protocol is kg_v1.0 [16:53:49]action value=close_receipt [16:53:49]process_action close_receipt [16:53:49]cmd_close_receipt [16:53:49]MH_GetDate [16:53:49]Write to MH i2c: F0 00 00 80 17 86 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: F0 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: F0 09 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: F0 09 00 80 17 00 20 87 16 67 4C DF 56 66 9A [16:53:49]GetLastDocTimeStamp 1729529539 [16:53:49]current date 1729529632 [16:53:49]FM_GetShiftState [16:53:49]SAM_PROTO_GetShiftState [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 13 01 00 [16:53:49]Write to MH i2c: E2 08 00 81 17 80 13 01 00 00 00 00 00 15 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 0E 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 0E 00 81 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 75 [16:53:49]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:53:49]wFMCommunicate OK [16:53:49]SAM_PROTO_GetShiftState done [16:53:49]FM_GetShiftState done [16:53:49]opened in 1729469755 [16:53:49]opened+sec_in_day 1729556155 [16:53:49]quantity*price = 7500 [16:53:49]sum+1 = 7501 [16:53:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 21.10.2024 16:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63103 ФПД: 10188899079767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165352&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63103&fm=10188899079767&tin=02508201610067®Number=0000000000091619&sum=15500 0 [16:53:50]StoreToDocumentArchive [16:53:50]shift 544 fd 63103 [16:53:50]save to /storage/0544/doc_00063103 [16:53:50]save last doc name /storage/0544/doc_00063103 to /storage/kkm_last_doc_name [16:53:50]save OK [16:53:50]Clear old archive folders... [16:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=373 [16:53:50]tlvbuf is 01828D80 [16:53:50]SAM_PROTO_ClearQueue [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 09 00 00 [16:53:50]Write to MH i2c: E2 08 00 8E 17 80 09 00 00 00 00 00 00 17 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 8E 17 00 90 00 19 [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_ClearQueue done [16:53:50]KKMCreateOFDPacket [16:53:50]OFDProtocolAddRootSTLVToBuf [16:53:50]FM_MakeSignedData [16:53:50]FM_MakeSignedData [16:53:50]SAM_PROTO_SignData [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 01 02 [16:53:50]Write to MH i2c: E2 08 00 8F 17 80 0D 01 02 00 00 00 00 1F [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]wFMCommunicate request_size=255 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 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 [16:53:50]Write to MH i2c: E2 02 01 90 17 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 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 00 00 4E [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:51]Read from MH i2c: E2 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 03 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [16:53:51]RAPDU: 90 00 [16:53:51]wFMCommunicate OK [16:53:51]wFMCommunicate request_size=132 [16:53:51]MH_SAM_APDU [16:53:51]CAPDU: 80 0D 02 02 7F 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 64 00 00 00 F4 03 04 00 20 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 09 44 49 B5 D6 57 [16:53:51]Write to MH i2c: E2 87 00 91 17 80 0D 02 02 7F 00 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 64 00 00 00 F4 03 04 00 20 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 09 44 49 B5 D6 57 00 00 35 [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:51]Read from MH i2c: E2 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 03 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [16:53:51]RAPDU: 90 00 [16:53:51]wFMCommunicate OK [16:53:51]wFMCommunicate request_size=4 [16:53:51]MH_SAM_APDU [16:53:51]CAPDU: 80 0D 03 02 [16:53:51]Write to MH i2c: E2 08 00 92 17 80 0D 03 02 00 00 00 00 24 [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:51]Read from MH i2c: E2 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 0B 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 0B 00 92 17 00 04 B2 47 D9 35 52 15 B6 90 00 4D [16:53:51]RAPDU: 04 B2 47 D9 35 52 15 B6 90 00 [16:53:51]wFMCommunicate OK [16:53:51]SAM_PROTO_SignData done [16:53:51]FM_MakeSignedData done [16:53:51]CreateOFDProtocolMessage [16:53:51]wFMCommunicate request_size=4 [16:53:51]MH_SAM_APDU [16:53:51]CAPDU: 80 11 00 00 [16:53:51]Write to MH i2c: E2 08 00 93 17 80 11 00 00 00 00 00 00 24 [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:51]Read from MH i2c: E2 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 17 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: E2 17 00 93 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7D [16:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:53:51]wFMCommunicate OK [16:53:51]CreateOFDProtocolMessage done [16:53:51]OFDSenderStorePacket 63103 [16:53:51]StoreOFDPacket docnum=63103 [16:53: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 89 01 00 00 16 81 81 01 78 00 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 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 64 00 00 00 F4 03 04 00 20 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 09 44 49 B5 D6 57 04 B2 47 D9 35 52 15 B6 [16:53:51]CheckFolder [16:53:51]dirname=/storage/ofd_packets [16:53:51]CheckFolder done [16:53:51]ProducePacketName [16:53:51]name=ofd_packets/00063103 [16:53:51]NVStorageSaveData ofd_packets/00063103 [16:53:51]File name is /storage/ofd_packets/00063103 [16:53:51]Write 423 bytes [16:53:51]NVStorageSaveData done [16:53:51]OFDSenderStorePacket done [16:53:51]KKMCreateOFDPacket done [16:53:51]NVStorageSaveData kkm_last_timestamp [16:53:51]File name is /storage/kkm_last_timestamp [16:53:51]Write 4 bytes [16:53:51]NVStorageSaveData done [16:53:51]ExternCall_PrintAddStr [16:53:51]wPrintStart [16:53:51]Write to MH i2c: 01 00 00 94 17 AB [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 07 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FF 0F C0 [16:53:51]RasterBufferAndPrint [16:53:51]line Счет N : (3)47413 [16:53:51]line ИНН: 02508201610067 [16:53:51]line Контрольно-Кассовый Чек [16:53:51]line ПРОДАЖА [16:53:51]line Товар: 54491472 [16:53:51]line Напиток Кока-Кола 0,5л [16:53:51]line 1.000 * 75.00 [16:53:51]line = 75.00 [16:53:51]line НДС 12% НСП 1% [16:53:51]line > о реализуемом товаре [16:53:51]line Товар: 4870001570057 [16:53:51]line Напиток Pepsi 0,5л [16:53:51]line 1.000 * 80.00 [16:53:51]line = 80.00 [16:53:51]line НДС 12% НСП 1% [16:53:51]line > о реализуемом товаре [16:53:51]line ИТОГО: 155.00 [16:53:51]line НСП 1% : 1.37 [16:53:51]line НДС 12% : 16.46 [16:53:51]line Наличными: 155.00 [16:53:51]line Безнал.: 0.00 [16:53:51]line Место: АЗС № 86 "Партнер Нефть" [16:53:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:53:51]line СНО: Общий режим [16:53:51]line Чек 100 21.10.2024 16:53 [16:53:51]line Смена: 544 ФФД: 1.0 [16:53:51]line ЗНМ: 0300000154 [16:53:51]line РНМ: 0000000000091619 [16:53:51]line Версия ККМ: 001 [16:53:51]line ФМ: 0000000000874676 [16:53:51]line ФД: 63103 [16:53:51]line ФПД: 10188899079767 [16:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165352&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63103&fm=10188899079767&tin=02508201610067®Number=0000000000091619&sum=15500 [16:53:51]line 0 [16:53:51]written 0, free lines is 4095 [16:53:52]Write to MH i2c: 01 00 00 C2 17 D9 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: 01 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: 01 07 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 B6 0C A2 [16:53:52]RasterBufferAndPrint [16:53:52]line [16:53:52]line [16:53:52]line [16:53:52]line [16:53:52]line [16:53:52]written 0, free lines is 3262 [16:53:52]MH_Cut [16:53:52]Write to MH i2c: D1 01 00 C9 17 01 B2 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: D1 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: D1 01 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: D1 01 00 C9 17 00 B1 [16:53:52]Write to MH i2c: 01 00 00 CA 17 E1 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:53]*** Cut start [16:53:53]*** Partial cut [16:53:53]*** CUTSNS_PIN = 1 [16:53:53]*** CUTSNS_PIN = 0 [16:53:53]*** Brake cut motor [16:53:53]Read from MH i2c: 01 [16:53:53]MH_I2C_Read... [16:53:53]*** Stop cut motor [16:53:53]*** Cut end [16:53:53]Read from MH i2c: 01 07 00 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 FF 0F F6 [16:53:53]process_action close_receipt done [16:53:53]requested_data is exist [16:53:53]produce_requested_data [16:53:53]requested_item fm.sn is exist - process it [16:53:53]wFMCommunicate request_size=4 [16:53:53]MH_SAM_APDU [16:53:53]CAPDU: 80 11 00 00 [16:53:53]Write to MH i2c: E2 08 00 CB 17 80 11 00 00 00 00 00 00 5C [16:53:53]Write i2c OK [16:53:53]MH_I2C_Read... [16:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:53]Read from MH i2c: E2 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 17 00 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 17 00 CB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [16:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:53:53]wFMCommunicate OK [16:53:53]requested_item fd.num is exist - process it [16:53:53]SAM_PROTO_GetFieldsCounters [16:53:53]wFMCommunicate request_size=4 [16:53:53]MH_SAM_APDU [16:53:53]CAPDU: 80 13 00 00 [16:53:53]Write to MH i2c: E2 08 00 CC 17 80 13 00 00 00 00 00 00 5F [16:53:53]Write i2c OK [16:53:53]MH_I2C_Read... [16:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:53]Read from MH i2c: E2 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 62 00 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 62 00 CC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 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 F6 00 00 0E 04 04 00 20 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 4A [16:53: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 7F F6 00 00 0E 04 04 00 20 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 [16:53:53]wFMCommunicate OK [16:53:53]SAM_PROTO_GetFieldsCounters done [16:53:53]requested_item shift.num is exist - process it [16:53:53]requested_item shift.opened is exist - process it [16:53:53]req_shift_opened [16:53:53]FM_GetShiftState [16:53:53]SAM_PROTO_GetShiftState [16:53:53]wFMCommunicate request_size=4 [16:53:53]MH_SAM_APDU [16:53:53]CAPDU: 80 13 01 00 [16:53:53]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [16:53:53]Write i2c OK [16:53:53]MH_I2C_Read... [16:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:53]Read from MH i2c: E2 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 0E 00 [16:53:53]MH_I2C_Read... [16:53:53]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C1 [16:53:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:53:53]wFMCommunicate OK [16:53:53]SAM_PROTO_GetShiftState done [16:53:53]FM_GetShiftState done [16:53:53]req_shift_opened done [16:53:53]requested_item shift.open_date is exist - process it [16:53:53]req_shift_open_date [16:53:53]req_shift_open_date done [16:53:53]produce_requested_data done [16:53:53]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63103,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:53:53]process_action_free close_receipt [16:53:53]json_value_free [16:53:53]json_value_free done [16:53:53]process_json_proto returns [16:53:53]Send response to host [16:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63103,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:53:53]free response buf [16:53:53]execute_script done [16:53:53]execute_script returns [16:53:53]free content buf [16:53:53]Sock 7.Close socket [16:53:53]Sock 7.Thread stoped [16:54:32]ConnectInit Can't connect to host [16:54:32]CommunicateWithHost connect error [16:54:32]CommunicateWithHost err = -1 [16:54:32]OFD Sender: Server communicate error [16:54:32]OFD Sender: Processing packet 63102 [packets to send 233, broken 231] [16:54:32]ProducePacketName [16:54:32]name=ofd_packets/00063102 [16:54:32]OFD Sender: To server: pG, [16:54:32]CommunicateWithHost lk.salyk.kg:30040 [16:54:32]ConnectInit lk.salyk.kg [16:54:32]Connected sock=7 [16:54: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 24 01 00 00 ED 87 1C 01 49 D7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C3 86 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BE 80 06 F8 E9 C3 A0 ED 2D 7A FB 83 D3 2E [16:54:33]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 10 47 00 DE B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 46 31 16 67 B6 04 01 00 00 EB 1D 06 2C DE 4A 1E 3F [16:54:33]CommunicateWithHost err = 0 [16:54:33]CheckOFDResponse [16:54:33]1017 (14) - 77093643461234 [16:54:33]1041 (16) - 0000000000874676 [16:54:33]1040 (4) - 63102 [16:54:33]1012 (4) - 21.10.2024 10:47 [16:54:33]1206 (1) - 0 [16:54:33]OFD Sender: Remove packet 63102 [16:54:33]ProducePacketName [16:54:33]name=ofd_packets/00063102 [16:54:33]NVStorageDeleteData [16:54:33]OFD Sender: Processing packet 63103 [packets to send 232, broken 231] [16:54:33]ProducePacketName [16:54:33]name=ofd_packets/00063103 [16:54:33]OFD Sender: To server: pG, [16:54:33]CommunicateWithHost lk.salyk.kg:30040 [16:54:33]ConnectInit lk.salyk.kg [16:54:33]Connected sock=7 [16: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 89 01 00 00 16 81 81 01 78 00 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 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 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 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 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 64 00 00 00 F4 03 04 00 20 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 09 44 49 B5 D6 57 04 B2 47 D9 35 52 15 B6 [16: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 2F A7 47 00 75 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F6 00 00 F4 03 04 00 47 31 16 67 B6 04 01 00 00 10 E5 C0 2C 7B 84 9C B3 [16:54:34]CommunicateWithHost err = 0 [16:54:34]CheckOFDResponse [16:54:34]1017 (14) - 77093643461234 [16:54:34]1041 (16) - 0000000000874676 [16:54:34]1040 (4) - 63103 [16:54:34]1012 (4) - 21.10.2024 10:47 [16:54:34]1206 (1) - 0 [16:54:34]OFD Sender: Remove packet 63103 [16:54:34]ProducePacketName [16:54:34]name=ofd_packets/00063103 [16:54:34]NVStorageDeleteData [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:03]accept exits with 9 [16:55:03]New connection [16:55:03]New thread 3067055460 created [16:55:03]Thread 3067198820 joined [16:55:03]Waiting for new connection... [16:55:03] Sock 9.Parse request [16:55:03]Sock 9.Check first char [16:55:03]Sock 9.First char is OK [16:55:03]request: POST /json_proto HTTP/1.0 [16:55:03]Method: POST [16:55:03]URL: /json_proto [16:55:03]Method is POST - this is cgi request [16:55:03]url: /json_proto [16:55:03]query_string will be loaded in cgi processing [16:55:03]execute_cgi json_proto POST (null) [16:55:03]execute_cgi path=json_proto method=POST [16:55:03]POST find Content-Length [16:55:03]Host: 172.17.42.132:8080 [16:55:03]Content-Length: 1731 [16:55:03]Content-Type: application/json [16:55:03] [16:55:03]POST finish read [16:55:03]Found Content-Length = 1731 [16:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47414", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 85.24, "quantity" : 1.000, "sum" : 85.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 64.42, "quantity" : 1.000, "sum" : 64.42, "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" : 1.000, "sum" : 34.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622202397318", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Alpen Gold \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A,\u0438\u0437\u044E\u043C 38\u0433", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "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" : 258.69 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:03]execute_script... [16:55: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)47414", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 85.24, "quantity" : 1.000, "sum" : 85.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 64.42, "quantity" : 1.000, "sum" : 64.42, "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" : 1.000, "sum" : 34.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622202397318", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Alpen Gold \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A,\u0438\u0437\u044E\u043C 38\u0433", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "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" : 258.69 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:04]POST & json_proto [16:55:04]process_json_proto [16:55:04]json parsed OK: [16:55:04]protocol is kg_v1.0 [16:55:04]action value=close_receipt [16:55:04]process_action close_receipt [16:55:04]cmd_close_receipt [16:55:04]MH_GetDate [16:55:04]Write to MH i2c: F0 00 00 CE 17 D4 [16:55:04]Write i2c OK [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 09 00 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: F0 09 00 CE 17 00 6B 87 16 67 4C DF 56 66 33 [16:55:04]GetLastDocTimeStamp 1729529632 [16:55:04]current date 1729529707 [16:55:04]FM_GetShiftState [16:55:04]SAM_PROTO_GetShiftState [16:55:04]wFMCommunicate request_size=4 [16:55:04]MH_SAM_APDU [16:55:04]CAPDU: 80 13 01 00 [16:55:04]Write to MH i2c: E2 08 00 CF 17 80 13 01 00 00 00 00 00 63 [16:55:04]Write i2c OK [16:55:04]MH_I2C_Read... [16:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:04]Read from MH i2c: E2 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: E2 0E 00 [16:55:04]MH_I2C_Read... [16:55:04]Read from MH i2c: E2 0E 00 CF 17 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C3 [16:55:04]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:55:04]wFMCommunicate OK [16:55:04]SAM_PROTO_GetShiftState done [16:55:04]FM_GetShiftState done [16:55:04]opened in 1729469755 [16:55:04]opened+sec_in_day 1729556155 [16:55:04]quantity*price = 8524 [16:55:04]sum+1 = 8525 [16:55:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338007564 Сок Фруто НЯНЯ мультифрукт 0,2л 1.000 * 64.42 = 64.42 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 1.000 * 34.69 = 34.69 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622202397318 Шоколад Alpen Gold мол фундук,изюм 38г 1.000 * 74.34 = 74.34 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.69 НСП 1% : 2.29 НДС 12% : 27.46 Наличными: 0.00 Безнал.: 258.69 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 21.10.2024 16:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63104 ФПД: 155892351206600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165507&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63104&fm=155892351206600&tin=02508201610067®Number=0000000000091619&sum=25869 0 [16:55:05]StoreToDocumentArchive [16:55:05]shift 544 fd 63104 [16:55:05]save to /storage/0544/doc_00063104 [16:55:05]save last doc name /storage/0544/doc_00063104 to /storage/kkm_last_doc_name [16:55:05]save OK [16:55:05]Clear old archive folders... [16:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=663 [16:55:05]tlvbuf is 01837410 [16:55:05]SAM_PROTO_ClearQueue [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 09 00 00 [16:55:05]Write to MH i2c: E2 08 00 DC 17 80 09 00 00 00 00 00 00 65 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]SAM_PROTO_ClearQueue done [16:55:05]KKMCreateOFDPacket [16:55:05]OFDProtocolAddRootSTLVToBuf [16:55:05]FM_MakeSignedData [16:55:05]FM_MakeSignedData [16:55:05]SAM_PROTO_SignData [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 01 02 [16:55:05]Write to MH i2c: E2 08 00 DD 17 80 0D 01 02 00 00 00 00 6D [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]wFMCommunicate request_size=255 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 02 02 FA 03 00 97 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 [16:55:05]Write to MH i2c: E2 02 01 DE 17 80 0D 02 02 FA 00 03 00 97 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 00 00 8D [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]wFMCommunicate request_size=255 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 02 02 FA 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 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 37 36 32 32 32 30 32 33 39 37 33 31 38 06 04 3B 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 2C D0 B8 D0 B7 D1 8E D0 BC 20 33 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [16:55:05]Write to MH i2c: E2 02 01 DF 17 80 0D 02 02 FA 00 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 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 37 36 32 32 32 30 32 33 39 37 33 31 38 06 04 3B 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 2C D0 B8 D0 B7 D1 8E D0 BC 20 33 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 F1 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [16:55:05]RAPDU: 90 00 [16:55:05]wFMCommunicate OK [16:55:05]wFMCommunicate request_size=172 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 0D 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8D C8 84 37 84 C8 [16:55:05]Write to MH i2c: E2 AF 00 E0 17 80 0D 02 02 A7 00 00 01 FC 03 06 00 0D 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8D C8 84 37 84 C8 00 00 5E [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [16:55:06]RAPDU: 90 00 [16:55:06]wFMCommunicate OK [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 0D 03 02 [16:55:06]Write to MH i2c: E2 08 00 E1 17 80 0D 03 02 00 00 00 00 73 [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0B 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0B 00 E1 17 00 8F 9E 56 D0 3C 4C 2C 89 90 00 04 [16:55:06]RAPDU: 8F 9E 56 D0 3C 4C 2C 89 90 00 [16:55:06]wFMCommunicate OK [16:55:06]SAM_PROTO_SignData done [16:55:06]FM_MakeSignedData done [16:55:06]CreateOFDProtocolMessage [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 11 00 00 [16:55:06]Write to MH i2c: E2 08 00 E2 17 80 11 00 00 00 00 00 00 73 [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 17 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 17 00 E2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CC [16:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:55:06]wFMCommunicate OK [16:55:06]CreateOFDProtocolMessage done [16:55:06]OFDSenderStorePacket 63104 [16:55:06]StoreOFDPacket docnum=63104 [16:55: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 AB 02 00 00 AB C0 A3 02 50 9C 5A 03 01 00 03 00 97 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 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 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 37 36 32 32 32 30 32 33 39 37 33 31 38 06 04 3B 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 2C D0 B8 D0 B7 D1 8E D0 BC 20 33 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8D C8 84 37 84 C8 8F 9E 56 D0 3C 4C 2C 89 [16:55:06]CheckFolder [16:55:06]dirname=/storage/ofd_packets [16:55:06]CheckFolder done [16:55:06]ProducePacketName [16:55:06]name=ofd_packets/00063104 [16:55:06]NVStorageSaveData ofd_packets/00063104 [16:55:06]File name is /storage/ofd_packets/00063104 [16:55:06]Write 713 bytes [16:55:06]NVStorageSaveData done [16:55:06]OFDSenderStorePacket done [16:55:06]KKMCreateOFDPacket done [16:55:06]NVStorageSaveData kkm_last_timestamp [16:55:06]File name is /storage/kkm_last_timestamp [16:55:06]Write 4 bytes [16:55:06]NVStorageSaveData done [16:55:06]ExternCall_PrintAddStr [16:55:06]wPrintStart [16:55:06]Write to MH i2c: 01 00 00 E3 17 FA [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 07 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [16:55:06]RasterBufferAndPrint [16:55:06]line Счет N : (3)47414 [16:55:06]line ИНН: 02508201610067 [16:55:06]line Контрольно-Кассовый Чек [16:55:06]line ПРОДАЖА [16:55:06]line Товар: 4603290004848 [16:55:06]line Печ.зат.TONDI Сэнд.шок-сл.вк [16:55:06]line 1.000 * 85.24 [16:55:06]line = 85.24 [16:55:06]line НДС 12% НСП 1% [16:55:06]line > о реализуемом товаре [16:55:06]line Товар: 4600338007564 [16:55:06]line Сок Фруто НЯНЯ мультифрукт 0,2л [16:55:06]line 1.000 * 64.42 [16:55:06]line = 64.42 [16:55:06]line НДС 12% НСП 1% [16:55:06]line > о реализуемом товаре [16:55:06]line Товар: 4011100091993 [16:55:06]line Шок Батончик Милки Вей 26г [16:55:06]line 1.000 * 34.69 [16:55:06]line = 34.69 [16:55:06]line НДС 12% НСП 1% [16:55:06]line > о реализуемом товаре [16:55:06]line Товар: 7622202397318 [16:55:06]line Шоколад Alpen Gold мол фундук,изюм 38г [16:55:06]line 1.000 * 74.34 [16:55:06]line = 74.34 [16:55:06]line НДС 12% НСП 1% [16:55:06]line > о реализуемом товаре [16:55:06]line ИТОГО: 258.69 [16:55:06]line НСП 1% : 2.29 [16:55:06]line НДС 12% : 27.46 [16:55:06]line Наличными: 0.00 [16:55:06]line Безнал.: 258.69 [16:55:06]line Место: АЗС № 86 "Партнер Нефть" [16:55:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:55:06]line СНО: Общий режим [16:55:06]line Чек 101 21.10.2024 16:55 [16:55:06]line Смена: 544 ФФД: 1.0 [16:55:06]line ЗНМ: 0300000154 [16:55:06]line РНМ: 0000000000091619 [16:55:06]line Версия ККМ: 001 [16:55:06]line Платежная система: Mbank [16:55:06]line ФМ: 0000000000874676 [16:55:06]line ФД: 63104 [16:55:06]line ФПД: 155892351206600 [16:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165507&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63104&fm=155892351206600&tin=02508201610067®Number=0000000000091619&sum=25869 [16:55:06]OFD Sender: Processing packet 63104 [packets to send 232, broken 231] [16:55:06]ProducePacketName [16:55:06]name=ofd_packets/00063104 [16:55:06]OFD Sender: To server: pG, [16:55:06]CommunicateWithHost lk.salyk.kg:30040 [16:55:06]ConnectInit lk.salyk.kg [16:55:06]line 0 [16:55:06]written 0, free lines is 4095 [16:55:06]Connected sock=10 [16:55: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 AB 02 00 00 AB C0 A3 02 50 9C 5A 03 01 00 03 00 97 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 21 00 00 00 00 13 04 06 00 4C 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 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 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 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 37 36 32 32 32 30 32 33 39 37 33 31 38 06 04 3B 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 41 6C 70 65 6E 20 47 6F 6C 64 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 2C D0 B8 D0 B7 D1 8E D0 BC 20 33 38 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8D C8 84 37 84 C8 8F 9E 56 D0 3C 4C 2C 89 [16:55: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 92 A7 47 00 B6 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 80 F6 00 00 F4 03 04 00 68 31 16 67 B6 04 01 00 00 DE FC 35 45 E3 CE 66 26 [16:55:07]CommunicateWithHost err = 0 [16:55:07]CheckOFDResponse [16:55:07]1017 (14) - 77093643461234 [16:55:07]1041 (16) - 0000000000874676 [16:55:07]1040 (4) - 63104 [16:55:07]1012 (4) - 21.10.2024 10:48 [16:55:07]1206 (1) - 0 [16:55:07]OFD Sender: Remove packet 63104 [16:55:07]ProducePacketName [16:55:07]name=ofd_packets/00063104 [16:55:07]NVStorageDeleteData [16:55:07]Write to MH i2c: 01 00 00 20 18 38 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 20 18 00 00 00 00 00 41 0C 8C [16:55:07]RasterBufferAndPrint [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]line [16:55:07]written 0, free lines is 3146 [16:55:07]MH_Cut [16:55:07]Write to MH i2c: D1 01 00 27 18 01 11 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 01 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: D1 01 00 27 18 00 10 [16:55:07]Write to MH i2c: 01 00 00 28 18 40 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]OFD Sender: No OFD packet to send [16:55:08]*** Cut start [16:55:08]*** Partial cut [16:55:08]*** CUTSNS_PIN = 1 [16:55:08]*** CUTSNS_PIN = 0 [16:55:08]*** Brake cut motor [16:55:08]Read from MH i2c: 01 [16:55:08]MH_I2C_Read... [16:55:08]*** Stop cut motor [16:55:08]*** Cut end [16:55:08]Read from MH i2c: 01 07 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [16:55:08]process_action close_receipt done [16:55:08]requested_data is exist [16:55:08]produce_requested_data [16:55:08]requested_item fm.sn is exist - process it [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 11 00 00 [16:55:08]Write to MH i2c: E2 08 00 29 18 80 11 00 00 00 00 00 00 BB [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 17 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 17 00 29 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 14 [16:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:55:08]wFMCommunicate OK [16:55:08]requested_item fd.num is exist - process it [16:55:08]SAM_PROTO_GetFieldsCounters [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 13 00 00 [16:55:08]Write to MH i2c: E2 08 00 2A 18 80 13 00 00 00 00 00 00 BE [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 62 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 62 00 2A 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 80 F6 00 00 0E 04 04 00 20 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 AD [16:55: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 80 F6 00 00 0E 04 04 00 20 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 [16:55:08]wFMCommunicate OK [16:55:08]SAM_PROTO_GetFieldsCounters done [16:55:08]requested_item shift.num is exist - process it [16:55:08]requested_item shift.opened is exist - process it [16:55:08]req_shift_opened [16:55:08]FM_GetShiftState [16:55:08]SAM_PROTO_GetShiftState [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 13 01 00 [16:55:08]Write to MH i2c: E2 08 00 2B 18 80 13 01 00 00 00 00 00 C0 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 0E 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 0E 00 2B 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 20 [16:55:08]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:55:08]wFMCommunicate OK [16:55:08]SAM_PROTO_GetShiftState done [16:55:08]FM_GetShiftState done [16:55:08]req_shift_opened done [16:55:08]requested_item shift.open_date is exist - process it [16:55:08]req_shift_open_date [16:55:08]req_shift_open_date done [16:55:08]produce_requested_data done [16:55:08]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63104,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:55:08]process_action_free close_receipt [16:55:08]json_value_free [16:55:08]json_value_free done [16:55:08]process_json_proto returns [16:55:08]Send response to host [16:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63104,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:55:08]free response buf [16:55:08]execute_script done [16:55:08]execute_script returns [16:55:08]free content buf [16:55:08]Sock 9.Close socket [16:55:08]Sock 9.Thread stoped [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:28]accept exits with 7 [16:56:28]New connection [16:56:28]New thread 3067198820 created [16:56:28]Thread 3067055460 joined [16:56:28]Waiting for new connection... [16:56:28] Sock 7.Parse request [16:56:28]Sock 7.Check first char [16:56:28]Sock 7.First char is OK [16:56:28]request: POST /json_proto HTTP/1.0 [16:56:28]Method: POST [16:56:28]URL: /json_proto [16:56:28]Method is POST - this is cgi request [16:56:28]url: /json_proto [16:56:28]query_string will be loaded in cgi processing [16:56:28]execute_cgi json_proto POST (null) [16:56:28]execute_cgi path=json_proto method=POST [16:56:28]POST find Content-Length [16:56:28]Host: 172.17.42.132:8080 [16:56:28]Content-Length: 955 [16:56:28]Content-Type: application/json [16:56:28] [16:56:28]POST finish read [16:56:28]Found Content-Length = 955 [16:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47415", "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 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:28]execute_script... [16:56:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47415", "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 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:28]POST & json_proto [16:56:28]process_json_proto [16:56:28]json parsed OK: [16:56:28]protocol is kg_v1.0 [16:56:28]action value=close_receipt [16:56:28]process_action close_receipt [16:56:28]cmd_close_receipt [16:56:28]MH_GetDate [16:56:28]Write to MH i2c: F0 00 00 2C 18 33 [16:56:28]Write i2c OK [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 09 00 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: F0 09 00 2C 18 00 BF 87 16 67 4C DF 56 66 E6 [16:56:28]GetLastDocTimeStamp 1729529707 [16:56:28]current date 1729529791 [16:56:28]FM_GetShiftState [16:56:28]SAM_PROTO_GetShiftState [16:56:28]wFMCommunicate request_size=4 [16:56:28]MH_SAM_APDU [16:56:28]CAPDU: 80 13 01 00 [16:56:28]Write to MH i2c: E2 08 00 2D 18 80 13 01 00 00 00 00 00 C2 [16:56:28]Write i2c OK [16:56:28]MH_I2C_Read... [16:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:28]Read from MH i2c: E2 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: E2 0E 00 [16:56:28]MH_I2C_Read... [16:56:28]Read from MH i2c: E2 0E 00 2D 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 22 [16:56:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:56:28]wFMCommunicate OK [16:56:28]SAM_PROTO_GetShiftState done [16:56:28]FM_GetShiftState done [16:56:28]opened in 1729469755 [16:56:28]opened+sec_in_day 1729556155 [16:56:28]quantity*price = 28500 [16:56:28]sum+1 = 28501 [16:56:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091584 Сигареты Esse Gold 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.89 НДС 12% : 46.72 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 21.10.2024 16:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63105 ФПД: 95343722048451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165631&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63105&fm=95343722048451&tin=02508201610067®Number=0000000000091619&sum=44000 0 [16:56:29]StoreToDocumentArchive [16:56:29]shift 544 fd 63105 [16:56:29]save to /storage/0544/doc_00063105 [16:56:29]save last doc name /storage/0544/doc_00063105 to /storage/kkm_last_doc_name [16:56:29]save OK [16:56:29]Clear old archive folders... [16:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=402 [16:56:29]tlvbuf is B6EE4280 [16:56:29]SAM_PROTO_ClearQueue [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 09 00 00 [16:56:29]Write to MH i2c: E2 08 00 3A 18 80 09 00 00 00 00 00 00 C4 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [16:56:29]RAPDU: 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_ClearQueue done [16:56:29]KKMCreateOFDPacket [16:56:29]OFDProtocolAddRootSTLVToBuf [16:56:29]FM_MakeSignedData [16:56:29]FM_MakeSignedData [16:56:29]SAM_PROTO_SignData [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 0D 01 02 [16:56:29]Write to MH i2c: E2 08 00 3B 18 80 0D 01 02 00 00 00 00 CC [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 03 00 3B 18 00 90 00 C7 [16:56:29]RAPDU: 90 00 [16:56:29]wFMCommunicate OK [16:56:29]wFMCommunicate request_size=255 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 0D 02 02 FA 03 00 92 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 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 [16:56:29]Write to MH i2c: E2 02 01 3C 18 80 0D 02 02 FA 00 03 00 92 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 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 00 87 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [16:56:30]RAPDU: 90 00 [16:56:30]wFMCommunicate OK [16:56:30]wFMCommunicate request_size=161 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 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 BF 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 56 B6 F0 AF 2B C3 [16:56:30]Write to MH i2c: E2 A4 00 3D 18 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 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 BF 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 56 B6 F0 AF 2B C3 00 00 09 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 03 00 3D 18 00 90 00 C9 [16:56:30]RAPDU: 90 00 [16:56:30]wFMCommunicate OK [16:56:30]wFMCommunicate request_size=4 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 0D 03 02 [16:56:30]Write to MH i2c: E2 08 00 3E 18 80 0D 03 02 00 00 00 00 D1 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 0B 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 0B 00 3E 18 00 00 E0 F6 23 61 7B C7 E1 90 00 4F [16:56:30]RAPDU: 00 E0 F6 23 61 7B C7 E1 90 00 [16:56:30]wFMCommunicate OK [16:56:30]SAM_PROTO_SignData done [16:56:30]FM_MakeSignedData done [16:56:30]CreateOFDProtocolMessage [16:56:30]wFMCommunicate request_size=4 [16:56:30]MH_SAM_APDU [16:56:30]CAPDU: 80 11 00 00 [16:56:30]Write to MH i2c: E2 08 00 3F 18 80 11 00 00 00 00 00 00 D1 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:30]Read from MH i2c: E2 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 17 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: E2 17 00 3F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2A [16:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:56:30]wFMCommunicate OK [16:56:30]CreateOFDProtocolMessage done [16:56:30]OFDSenderStorePacket 63105 [16:56:30]StoreOFDPacket docnum=63105 [16:56: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 A6 01 00 00 4A D9 9E 01 7C 19 5A 03 01 00 03 00 92 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 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 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 BF 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 56 B6 F0 AF 2B C3 00 E0 F6 23 61 7B C7 E1 [16:56:30]CheckFolder [16:56:30]dirname=/storage/ofd_packets [16:56:30]CheckFolder done [16:56:30]ProducePacketName [16:56:30]name=ofd_packets/00063105 [16:56:30]NVStorageSaveData ofd_packets/00063105 [16:56:30]File name is /storage/ofd_packets/00063105 [16:56:30]Write 452 bytes [16:56:30]NVStorageSaveData done [16:56:30]OFDSenderStorePacket done [16:56:30]KKMCreateOFDPacket done [16:56:30]NVStorageSaveData kkm_last_timestamp [16:56:30]File name is /storage/kkm_last_timestamp [16:56:30]Write 4 bytes [16:56:30]NVStorageSaveData done [16:56:30]ExternCall_PrintAddStr [16:56:30]wPrintStart [16:56:30]Write to MH i2c: 01 00 00 40 18 58 [16:56:30]Write i2c OK [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 [16:56:30]MH_I2C_Read... [16:56:30]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [16:56:30]RasterBufferAndPrint [16:56:30]line Счет N : (3)47415 [16:56:30]line ИНН: 02508201610067 [16:56:30]line Контрольно-Кассовый Чек [16:56:30]line ПРОДАЖА [16:56:30]line Товар: 8901086040022 [16:56:30]line Жидкость стеклоомывающая ПН -20 4,5л [16:56:30]line 1.000 * 285.00 [16:56:30]line = 285.00 [16:56:30]line НДС 12% НСП 1% [16:56:30]line > о реализуемом товаре [16:56:30]line Товар: 4640030091584 [16:56:30]line Сигареты Esse Gold [16:56:30]line 1.000 * 155.00 [16:56:30]line = 155.00 [16:56:30]line НДС 12% НСП 1% [16:56:30]line > о реализуемом товаре [16:56:30]line ИТОГО: 440.00 [16:56:30]line НСП 1% : 3.89 [16:56:30]line НДС 12% : 46.72 [16:56:30]line Наличными: 440.00 [16:56:30]line Безнал.: 0.00 [16:56:30]line Место: АЗС № 86 "Партнер Нефть" [16:56:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:56:30]line СНО: Общий режим [16:56:30]line Чек 102 21.10.2024 16:56 [16:56:30]line Смена: 544 ФФД: 1.0 [16:56:30]line ЗНМ: 0300000154 [16:56:30]line РНМ: 0000000000091619 [16:56:30]line Версия ККМ: 001 [16:56:30]line ФМ: 0000000000874676 [16:56:30]line ФД: 63105 [16:56:30]line ФПД: 95343722048451 [16:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165631&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63105&fm=95343722048451&tin=02508201610067®Number=0000000000091619&sum=44000 [16:56:30]line 0 [16:56:30]OFD Sender: Processing packet 63105 [packets to send 232, broken 231] [16:56:30]ProducePacketName [16:56:30]name=ofd_packets/00063105 [16:56:30]OFD Sender: To server: pG, [16:56:30]CommunicateWithHost lk.salyk.kg:30040 [16:56:30]ConnectInit lk.salyk.kg [16:56:30]written 0, free lines is 4095 [16:56:31]Connected sock=10 [16:56: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 A6 01 00 00 4A D9 9E 01 7C 19 5A 03 01 00 03 00 92 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 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 12 00 00 00 00 07 04 06 00 E0 AB 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 BF 87 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 56 B6 F0 AF 2B C3 00 E0 F6 23 61 7B C7 E1 [16:56:31]Write to MH i2c: 01 00 00 6F 18 87 [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: 01 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: 01 07 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 C3 0C 5D [16:56:31]RasterBufferAndPrint [16:56:31]line [16:56:31]line [16:56:31]line [16:56:31]line [16:56:31]line [16:56:31]written 0, free lines is 3276 [16:56:31]MH_Cut [16:56:31]Write to MH i2c: D1 01 00 76 18 01 60 [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: D1 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: D1 01 00 [16:56:31]MH_I2C_Read... [16:56:31]Read from MH i2c: D1 01 00 76 18 00 5F [16:56:31]Write to MH i2c: 01 00 00 77 18 8F [16:56:31]Write i2c OK [16:56:31]MH_I2C_Read... [16:56: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 49 52 47 00 63 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 81 F6 00 00 F4 03 04 00 BC 31 16 67 B6 04 01 00 00 C6 6C EA B4 53 B3 DB 63 [16:56:31]CommunicateWithHost err = 0 [16:56:31]CheckOFDResponse [16:56:31]1017 (14) - 77093643461234 [16:56:31]1041 (16) - 0000000000874676 [16:56:31]1040 (4) - 63105 [16:56:31]1012 (4) - 21.10.2024 10:49 [16:56:31]1206 (1) - 0 [16:56:31]OFD Sender: Remove packet 63105 [16:56:31]ProducePacketName [16:56:31]name=ofd_packets/00063105 [16:56:31]NVStorageDeleteData [16:56:31]OFD Sender: No OFD packet to send [16:56:32]*** Cut start [16:56:32]*** Partial cut [16:56:32]*** CUTSNS_PIN = 1 [16:56:32]*** CUTSNS_PIN = 0 [16:56:32]*** Brake cut motor [16:56:32]Read from MH i2c: 01 [16:56:32]MH_I2C_Read... [16:56:32]*** Stop cut motor [16:56:32]*** Cut end [16:56:32]Read from MH i2c: 01 07 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: 01 07 00 77 18 00 00 00 00 00 FF 0F A4 [16:56:32]process_action close_receipt done [16:56:32]requested_data is exist [16:56:32]produce_requested_data [16:56:32]requested_item fm.sn is exist - process it [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 11 00 00 [16:56:32]Write to MH i2c: E2 08 00 78 18 80 11 00 00 00 00 00 00 0A [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 17 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 17 00 78 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 63 [16:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:56:32]wFMCommunicate OK [16:56:32]requested_item fd.num is exist - process it [16:56:32]SAM_PROTO_GetFieldsCounters [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 13 00 00 [16:56:32]Write to MH i2c: E2 08 00 79 18 80 13 00 00 00 00 00 00 0D [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 62 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 62 00 79 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 81 F6 00 00 0E 04 04 00 20 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 00 [16:56:32]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 F6 00 00 0E 04 04 00 20 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 [16:56:32]wFMCommunicate OK [16:56:32]SAM_PROTO_GetFieldsCounters done [16:56:32]requested_item shift.num is exist - process it [16:56:32]requested_item shift.opened is exist - process it [16:56:32]req_shift_opened [16:56:32]FM_GetShiftState [16:56:32]SAM_PROTO_GetShiftState [16:56:32]wFMCommunicate request_size=4 [16:56:32]MH_SAM_APDU [16:56:32]CAPDU: 80 13 01 00 [16:56:32]Write to MH i2c: E2 08 00 7A 18 80 13 01 00 00 00 00 00 0F [16:56:32]Write i2c OK [16:56:32]MH_I2C_Read... [16:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:32]Read from MH i2c: E2 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 0E 00 [16:56:32]MH_I2C_Read... [16:56:32]Read from MH i2c: E2 0E 00 7A 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 6F [16:56:32]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [16:56:32]wFMCommunicate OK [16:56:32]SAM_PROTO_GetShiftState done [16:56:32]FM_GetShiftState done [16:56:32]req_shift_opened done [16:56:32]requested_item shift.open_date is exist - process it [16:56:32]req_shift_open_date [16:56:32]req_shift_open_date done [16:56:32]produce_requested_data done [16:56:32]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63105,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [16:56:32]process_action_free close_receipt [16:56:32]json_value_free [16:56:32]json_value_free done [16:56:32]process_json_proto returns [16:56:32]Send response to host [16:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63105,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [16:56:32]free response buf [16:56:32]execute_script done [16:56:32]execute_script returns [16:56:32]free content buf [16:56:32]Sock 7.Close socket [16:56:32]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]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:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:23]accept exits with 9 [17:13:23]New connection [17:13:23]New thread 3067055460 created [17:13:23]Thread 3067198820 joined [17:13:23]Waiting for new connection... [17:13:23] Sock 9.Parse request [17:13:23]Sock 9.Check first char [17:13:23]Sock 9.First char is OK [17:13:23]request: POST /json_proto HTTP/1.0 [17:13:23]Method: POST [17:13:23]URL: /json_proto [17:13:23]Method is POST - this is cgi request [17:13:23]url: /json_proto [17:13:23]query_string will be loaded in cgi processing [17:13:23]execute_cgi json_proto POST (null) [17:13:23]execute_cgi path=json_proto method=POST [17:13:23]POST find Content-Length [17:13:23]Host: 172.17.42.132:8080 [17:13:23]Content-Length: 928 [17:13:23]Content-Type: application/json [17:13:23] [17:13:23]POST finish read [17:13:23]Found Content-Length = 928 [17:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47416", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:23]execute_script... [17:13: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)47416", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:23]POST & json_proto [17:13:23]process_json_proto [17:13:23]json parsed OK: [17:13:23]protocol is kg_v1.0 [17:13:23]action value=close_receipt [17:13:23]process_action close_receipt [17:13:23]cmd_close_receipt [17:13:23]MH_GetDate [17:13:23]Write to MH i2c: F0 00 00 7B 18 82 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: F0 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: F0 09 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: F0 09 00 7B 18 00 B6 8B 16 67 4C DF 56 66 30 [17:13:23]GetLastDocTimeStamp 1729529791 [17:13:23]current date 1729530806 [17:13:23]FM_GetShiftState [17:13:23]SAM_PROTO_GetShiftState [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 13 01 00 [17:13:23]Write to MH i2c: E2 08 00 7C 18 80 13 01 00 00 00 00 00 11 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 0E 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 0E 00 7C 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 71 [17:13:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_GetShiftState done [17:13:23]FM_GetShiftState done [17:13:23]opened in 1729469755 [17:13:23]opened+sec_in_day 1729556155 [17:13:23]quantity*price = 1000 [17:13:23]sum+1 = 1001 [17:13:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002085444 Водка Белое золото 0,24л 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 21.10.2024 17:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63106 ФПД: 100528624888161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171326&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63106&fm=100528624888161&tin=02508201610067®Number=0000000000091619&sum=21000 0 [17:13:24]StoreToDocumentArchive [17:13:24]shift 544 fd 63106 [17:13:24]save to /storage/0544/doc_00063106 [17:13:24]save last doc name /storage/0544/doc_00063106 to /storage/kkm_last_doc_name [17:13:24]save OK [17:13:24]Clear old archive folders... [17:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=393 [17:13:24]tlvbuf is 018D0F90 [17:13:24]SAM_PROTO_ClearQueue [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 09 00 00 [17:13:24]Write to MH i2c: E2 08 00 89 18 80 09 00 00 00 00 00 00 13 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 89 18 00 90 00 15 [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]SAM_PROTO_ClearQueue done [17:13:24]KKMCreateOFDPacket [17:13:24]OFDProtocolAddRootSTLVToBuf [17:13:24]FM_MakeSignedData [17:13:24]FM_MakeSignedData [17:13:24]SAM_PROTO_SignData [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 01 02 [17:13:24]Write to MH i2c: E2 08 00 8A 18 80 0D 01 02 00 00 00 00 1B [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=255 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 [17:13:24]Write to MH i2c: E2 02 01 8B 18 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 CC [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [17:13:25]RAPDU: 90 00 [17:13:25]wFMCommunicate OK [17:13:25]wFMCommunicate request_size=152 [17:13:25]MH_SAM_APDU [17:13:25]CAPDU: 80 0D 02 02 93 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 67 00 00 00 F4 03 04 00 B6 8B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 5B 6E 24 F9 E9 61 [17:13:25]Write to MH i2c: E2 9B 00 8C 18 80 0D 02 02 93 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 67 00 00 00 F4 03 04 00 B6 8B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 5B 6E 24 F9 E9 61 00 00 34 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [17:13:25]RAPDU: 90 00 [17:13:25]wFMCommunicate OK [17:13:25]wFMCommunicate request_size=4 [17:13:25]MH_SAM_APDU [17:13:25]CAPDU: 80 0D 03 02 [17:13:25]Write to MH i2c: E2 08 00 8D 18 80 0D 03 02 00 00 00 00 20 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 0B 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 0B 00 8D 18 00 DB 23 CE B0 0F 0E D7 5F 90 00 F0 [17:13:25]RAPDU: DB 23 CE B0 0F 0E D7 5F 90 00 [17:13:25]wFMCommunicate OK [17:13:25]SAM_PROTO_SignData done [17:13:25]FM_MakeSignedData done [17:13:25]CreateOFDProtocolMessage [17:13:25]wFMCommunicate request_size=4 [17:13:25]MH_SAM_APDU [17:13:25]CAPDU: 80 11 00 00 [17:13:25]Write to MH i2c: E2 08 00 8E 18 80 11 00 00 00 00 00 00 20 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 17 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 17 00 8E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 79 [17:13: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:13:25]wFMCommunicate OK [17:13:25]CreateOFDProtocolMessage done [17:13:25]OFDSenderStorePacket 63106 [17:13:25]StoreOFDPacket docnum=63106 [17:13: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 9D 01 00 00 0C 04 95 01 11 0C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 67 00 00 00 F4 03 04 00 B6 8B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 5B 6E 24 F9 E9 61 DB 23 CE B0 0F 0E D7 5F [17:13:25]CheckFolder [17:13:25]dirname=/storage/ofd_packets [17:13:25]CheckFolder done [17:13:25]ProducePacketName [17:13:25]name=ofd_packets/00063106 [17:13:25]NVStorageSaveData ofd_packets/00063106 [17:13:25]File name is /storage/ofd_packets/00063106 [17:13:25]Write 443 bytes [17:13:25]NVStorageSaveData done [17:13:25]OFDSenderStorePacket done [17:13:25]KKMCreateOFDPacket done [17:13:25]NVStorageSaveData kkm_last_timestamp [17:13:25]File name is /storage/kkm_last_timestamp [17:13:25]Write 4 bytes [17:13:25]NVStorageSaveData done [17:13:25]ExternCall_PrintAddStr [17:13:25]wPrintStart [17:13:25]Write to MH i2c: 01 00 00 8F 18 A7 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 8F 18 00 00 00 00 00 FF 0F BC [17:13:25]RasterBufferAndPrint [17:13:25]line Счет N : (3)47416 [17:13:25]line ИНН: 02508201610067 [17:13:25]line Контрольно-Кассовый Чек [17:13:25]line ПРОДАЖА [17:13:25]line Товар: 46226617 [17:13:25]line Mentos ПВ Нежная Мята 6*100*2г [17:13:25]line 1.000 * 10.00 [17:13:25]line = 10.00 [17:13:25]line НДС 12% НСП 1% [17:13:25]line > о реализуемом товаре [17:13:25]line Товар: 4700002085444 [17:13:25]line Водка Белое золото 0,24л [17:13:25]line 1.000 * 200.00 [17:13:25]line = 200.00 [17:13:25]line НДС 12% НСП 1% [17:13:25]line > о реализуемом товаре [17:13:25]line ИТОГО: 210.00 [17:13:25]line НСП 1% : 1.86 [17:13:25]line НДС 12% : 22.30 [17:13:25]line Наличными: 210.00 [17:13:25]line Безнал.: 0.00 [17:13:25]line Место: АЗС № 86 "Партнер Нефть" [17:13:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:13:25]line СНО: Общий режим [17:13:25]line Чек 103 21.10.2024 17:13 [17:13:25]line Смена: 544 ФФД: 1.0 [17:13:25]line ЗНМ: 0300000154 [17:13:25]line РНМ: 0000000000091619 [17:13:25]line Версия ККМ: 001 [17:13:25]line ФМ: 0000000000874676 [17:13:25]line ФД: 63106 [17:13:25]line ФПД: 100528624888161 [17:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171326&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63106&fm=100528624888161&tin=02508201610067®Number=0000000000091619&sum=21000 [17:13:25]line 0 [17:13:25]OFD Sender: Processing packet 63106 [packets to send 232, broken 231] [17:13:25]ProducePacketName [17:13:25]name=ofd_packets/00063106 [17:13:25]OFD Sender: To server: pG, [17:13:25]CommunicateWithHost lk.salyk.kg:30040 [17:13:25]ConnectInit lk.salyk.kg [17:13:25]written 0, free lines is 4095 [17:13:25]Connected sock=10 [17:13: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 9D 01 00 00 0C 04 95 01 11 0C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 67 00 00 00 F4 03 04 00 B6 8B 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 5B 6E 24 F9 E9 61 DB 23 CE B0 0F 0E D7 5F [17:13:26]Write to MH i2c: 01 00 00 BE 18 D6 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 C4 0C AD [17:13:26]RasterBufferAndPrint [17:13:26]line [17:13:26]line [17:13:26]line [17:13:26]line [17:13:26]line [17:13:26]written 0, free lines is 3274 [17:13:26]MH_Cut [17:13:26]Write to MH i2c: D1 01 00 C5 18 01 AF [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: D1 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: D1 01 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: D1 01 00 C5 18 00 AE [17:13:26]Write to MH i2c: 01 00 00 C6 18 DE [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13: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 9A E2 47 00 41 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F6 00 00 F4 03 04 00 B3 35 16 67 B6 04 01 00 00 4F E9 E7 DA F2 58 A4 B8 [17:13:26]CommunicateWithHost err = 0 [17:13:26]CheckOFDResponse [17:13:26]1017 (14) - 77093643461234 [17:13:26]1041 (16) - 0000000000874676 [17:13:26]1040 (4) - 63106 [17:13:26]1012 (4) - 21.10.2024 11:06 [17:13:26]1206 (1) - 0 [17:13:26]OFD Sender: Remove packet 63106 [17:13:26]ProducePacketName [17:13:26]name=ofd_packets/00063106 [17:13:26]NVStorageDeleteData [17:13:26]OFD Sender: No OFD packet to send [17:13:26]*** Cut start [17:13:26]*** Partial cut [17:13:26]*** CUTSNS_PIN = 1 [17:13:26]*** CUTSNS_PIN = 0 [17:13:27]*** Brake cut motor [17:13:27]Read from MH i2c: 01 [17:13:27]MH_I2C_Read... [17:13:27]*** Stop cut motor [17:13:27]*** Cut end [17:13:27]Read from MH i2c: 01 07 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 C6 18 00 00 00 00 00 FF 0F F3 [17:13:27]process_action close_receipt done [17:13:27]requested_data is exist [17:13:27]produce_requested_data [17:13:27]requested_item fm.sn is exist - process it [17:13:27]wFMCommunicate request_size=4 [17:13:27]MH_SAM_APDU [17:13:27]CAPDU: 80 11 00 00 [17:13:27]Write to MH i2c: E2 08 00 C7 18 80 11 00 00 00 00 00 00 59 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:27]Read from MH i2c: E2 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 17 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 17 00 C7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B2 [17:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:13:27]wFMCommunicate OK [17:13:27]requested_item fd.num is exist - process it [17:13:27]SAM_PROTO_GetFieldsCounters [17:13:27]wFMCommunicate request_size=4 [17:13:27]MH_SAM_APDU [17:13:27]CAPDU: 80 13 00 00 [17:13:27]Write to MH i2c: E2 08 00 C8 18 80 13 00 00 00 00 00 00 5C [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:27]Read from MH i2c: E2 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 62 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 62 00 C8 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 82 F6 00 00 0E 04 04 00 20 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 53 [17:13: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 82 F6 00 00 0E 04 04 00 20 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 [17:13:27]wFMCommunicate OK [17:13:27]SAM_PROTO_GetFieldsCounters done [17:13:27]requested_item shift.num is exist - process it [17:13:27]requested_item shift.opened is exist - process it [17:13:27]req_shift_opened [17:13:27]FM_GetShiftState [17:13:27]SAM_PROTO_GetShiftState [17:13:27]wFMCommunicate request_size=4 [17:13:27]MH_SAM_APDU [17:13:27]CAPDU: 80 13 01 00 [17:13:27]Write to MH i2c: E2 08 00 C9 18 80 13 01 00 00 00 00 00 5E [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:27]Read from MH i2c: E2 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 0E 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: E2 0E 00 C9 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 BE [17:13:27]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:13:27]wFMCommunicate OK [17:13:27]SAM_PROTO_GetShiftState done [17:13:27]FM_GetShiftState done [17:13:27]req_shift_opened done [17:13:27]requested_item shift.open_date is exist - process it [17:13:27]req_shift_open_date [17:13:27]req_shift_open_date done [17:13:27]produce_requested_data done [17:13:27]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63106,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:13:27]process_action_free close_receipt [17:13:27]json_value_free [17:13:27]json_value_free done [17:13:27]process_json_proto returns [17:13:27]Send response to host [17:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63106,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:13:27]free response buf [17:13:27]execute_script done [17:13:27]execute_script returns [17:13:27]free content buf [17:13:27]Sock 9.Close socket [17:13:27]Sock 9.Thread stoped [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]accept exits with 7 [17:14:41]New connection [17:14:41]New thread 3067198820 created [17:14:41]Thread 3067055460 joined [17:14:41]Waiting for new connection... [17:14:41] Sock 7.Parse request [17:14:41]Sock 7.Check first char [17:14:41]Sock 7.First char is OK [17:14:41]request: POST /json_proto HTTP/1.0 [17:14:41]Method: POST [17:14:41]URL: /json_proto [17:14:41]Method is POST - this is cgi request [17:14:41]url: /json_proto [17:14:41]query_string will be loaded in cgi processing [17:14:41]execute_cgi json_proto POST (null) [17:14:41]execute_cgi path=json_proto method=POST [17:14:41]POST find Content-Length [17:14:41]Host: 172.17.42.132:8080 [17:14:41]Content-Length: 816 [17:14:41]Content-Type: application/json [17:14:41] [17:14:41]POST finish read [17:14:41]Found Content-Length = 816 [17:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47417", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 197.24, "quantity" : 1.000, "sum" : 197.24, "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" : 197.24 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:41]execute_script... [17:14: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)47417", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 197.24, "quantity" : 1.000, "sum" : 197.24, "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" : 197.24 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:41]POST & json_proto [17:14:41]process_json_proto [17:14:41]json parsed OK: [17:14:41]protocol is kg_v1.0 [17:14:41]action value=close_receipt [17:14:41]process_action close_receipt [17:14:41]cmd_close_receipt [17:14:41]MH_GetDate [17:14:41]Write to MH i2c: F0 00 00 CA 18 D1 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: F0 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: F0 09 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: F0 09 00 CA 18 00 04 8C 16 67 4C DF 56 66 CE [17:14:41]GetLastDocTimeStamp 1729530806 [17:14:41]current date 1729530884 [17:14:41]FM_GetShiftState [17:14:41]SAM_PROTO_GetShiftState [17:14:41]wFMCommunicate request_size=4 [17:14:41]MH_SAM_APDU [17:14:41]CAPDU: 80 13 01 00 [17:14:41]Write to MH i2c: E2 08 00 CB 18 80 13 01 00 00 00 00 00 60 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 0E 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 0E 00 CB 18 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C0 [17:14:41]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:14:41]wFMCommunicate OK [17:14:41]SAM_PROTO_GetShiftState done [17:14:41]FM_GetShiftState done [17:14:41]opened in 1729469755 [17:14:41]opened+sec_in_day 1729556155 [17:14:41]quantity*price = 19724 [17:14:41]sum+1 = 19725 [17:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 197.24 НСП 1% : 1.74 НДС 12% : 20.95 Наличными: 0.00 Безнал.: 197.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 21.10.2024 17:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63107 ФПД: 127545431055907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171444&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63107&fm=127545431055907&tin=02508201610067®Number=0000000000091619&sum=19724 0 [17:14:42]StoreToDocumentArchive [17:14:42]shift 544 fd 63107 [17:14:42]save to /storage/0544/doc_00063107 [17:14:42]save last doc name /storage/0544/doc_00063107 to /storage/kkm_last_doc_name [17:14:42]save OK [17:14:42]Clear old archive folders... [17:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:14:42]tlvbuf is 01955F70 [17:14:42]SAM_PROTO_ClearQueue [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 09 00 00 [17:14:42]Write to MH i2c: E2 08 00 D8 18 80 09 00 00 00 00 00 00 62 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 D8 18 00 90 00 64 [17:14:42]RAPDU: 90 00 [17:14:42]wFMCommunicate OK [17:14:42]SAM_PROTO_ClearQueue done [17:14:42]KKMCreateOFDPacket [17:14:42]OFDProtocolAddRootSTLVToBuf [17:14:42]FM_MakeSignedData [17:14:42]FM_MakeSignedData [17:14:42]SAM_PROTO_SignData [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 0D 01 02 [17:14:42]Write to MH i2c: E2 08 00 D9 18 80 0D 01 02 00 00 00 00 6A [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 D9 18 00 90 00 65 [17:14:42]RAPDU: 90 00 [17:14:42]wFMCommunicate OK [17:14:42]wFMCommunicate request_size=255 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 4D 00 00 00 00 13 04 06 00 0C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 04 8C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [17:14:42]Write to MH i2c: E2 02 01 DA 18 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 4D 00 00 00 00 13 04 06 00 0C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 04 8C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 B3 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [17:14:42]RAPDU: 90 00 [17:14:42]wFMCommunicate OK [17:14:42]wFMCommunicate request_size=31 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 83 F6 00 00 35 04 06 00 74 00 7C 1C 5E 23 [17:14:42]Write to MH i2c: E2 22 00 DB 18 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 83 F6 00 00 35 04 06 00 74 00 7C 1C 5E 23 00 00 A4 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [17:14:42]RAPDU: 90 00 [17:14:42]wFMCommunicate OK [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 0D 03 02 [17:14:42]Write to MH i2c: E2 08 00 DC 18 80 0D 03 02 00 00 00 00 6F [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 0B 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 0B 00 DC 18 00 E2 96 BD AA D9 A3 94 B4 90 00 13 [17:14:42]RAPDU: E2 96 BD AA D9 A3 94 B4 90 00 [17:14:42]wFMCommunicate OK [17:14:42]SAM_PROTO_SignData done [17:14:42]FM_MakeSignedData done [17:14:42]CreateOFDProtocolMessage [17:14:42]wFMCommunicate request_size=4 [17:14:42]MH_SAM_APDU [17:14:42]CAPDU: 80 11 00 00 [17:14:42]Write to MH i2c: E2 08 00 DD 18 80 11 00 00 00 00 00 00 6F [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:42]Read from MH i2c: E2 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 17 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: E2 17 00 DD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C8 [17:14: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:14:42]wFMCommunicate OK [17:14:42]CreateOFDProtocolMessage done [17:14:42]OFDSenderStorePacket 63107 [17:14:42]StoreOFDPacket docnum=63107 [17:14: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 24 01 00 00 C1 7C 1C 01 42 3B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 4D 00 00 00 00 13 04 06 00 0C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 04 8C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 74 00 7C 1C 5E 23 E2 96 BD AA D9 A3 94 B4 [17:14:42]CheckFolder [17:14:42]dirname=/storage/ofd_packets [17:14:42]CheckFolder done [17:14:42]ProducePacketName [17:14:42]name=ofd_packets/00063107 [17:14:42]NVStorageSaveData ofd_packets/00063107 [17:14:42]File name is /storage/ofd_packets/00063107 [17:14:42]Write 322 bytes [17:14:42]NVStorageSaveData done [17:14:42]OFDSenderStorePacket done [17:14:42]KKMCreateOFDPacket done [17:14:42]NVStorageSaveData kkm_last_timestamp [17:14:42]File name is /storage/kkm_last_timestamp [17:14:42]Write 4 bytes [17:14:42]NVStorageSaveData done [17:14:42]ExternCall_PrintAddStr [17:14:42]wPrintStart [17:14:42]Write to MH i2c: 01 00 00 DE 18 F6 [17:14:42]OFD Sender: Processing packet 63107 [packets to send 232, broken 231] [17:14:42]ProducePacketName [17:14:42]name=ofd_packets/00063107 [17:14:42]OFD Sender: To server: pG, [17:14:42]CommunicateWithHost lk.salyk.kg:30040 [17:14:42]ConnectInit lk.salyk.kg [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 07 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 07 00 DE 18 00 00 00 00 00 FF 0F 0B [17:14:42]RasterBufferAndPrint [17:14:42]line Счет N : (3)47417 [17:14:42]line ИНН: 02508201610067 [17:14:42]line Контрольно-Кассовый Чек [17:14:42]line ПРОДАЖА [17:14:42]line Товар: 4700000480517 [17:14:42]line Пиво Живое 1л ПЭТ [17:14:42]line 1.000 * 197.24 [17:14:42]line = 197.24 [17:14:42]line НДС 12% НСП 1% [17:14:42]line > о реализуемом товаре [17:14:42]line ИТОГО: 197.24 [17:14:42]line НСП 1% : 1.74 [17:14:42]line НДС 12% : 20.95 [17:14:42]line Наличными: 0.00 [17:14:42]line Безнал.: 197.24 [17:14:42]line Место: АЗС № 86 "Партнер Нефть" [17:14:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:14:42]line СНО: Общий режим [17:14:42]line Чек 104 21.10.2024 17:14 [17:14:42]line Смена: 544 ФФД: 1.0 [17:14:42]line ЗНМ: 0300000154 [17:14:42]line РНМ: 0000000000091619 [17:14:42]line Версия ККМ: 001 [17:14:42]line Платежная система: Бакай Банк [17:14:42]line ФМ: 0000000000874676 [17:14:42]line ФД: 63107 [17:14:42]line ФПД: 127545431055907 [17:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171444&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63107&fm=127545431055907&tin=02508201610067®Number=0000000000091619&sum=19724 [17:14:43]line 0 [17:14:43]Connected sock=10 [17:14: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 24 01 00 00 C1 7C 1C 01 42 3B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 4D 00 00 00 00 13 04 06 00 0C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 04 8C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 74 00 7C 1C 5E 23 E2 96 BD AA D9 A3 94 B4 [17:14:43]written 0, free lines is 4095 [17:14: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 01 75 47 00 9A 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 83 F6 00 00 F4 03 04 00 01 36 16 67 B6 04 01 00 00 60 AE 00 E9 33 27 50 FA [17:14:43]CommunicateWithHost err = 0 [17:14:43]CheckOFDResponse [17:14:43]1017 (14) - 77093643461234 [17:14:43]1041 (16) - 0000000000874676 [17:14:43]1040 (4) - 63107 [17:14:43]1012 (4) - 21.10.2024 11:07 [17:14:43]1206 (1) - 0 [17:14:43]OFD Sender: Remove packet 63107 [17:14:43]ProducePacketName [17:14:43]name=ofd_packets/00063107 [17:14:43]NVStorageDeleteData [17:14:43]Write to MH i2c: 01 00 00 08 19 21 [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 07 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 EF 0C 23 [17:14:43]RasterBufferAndPrint [17:14:43]line [17:14:43]line [17:14:43]line [17:14:43]line [17:14:43]line [17:14:43]written 0, free lines is 3318 [17:14:43]MH_Cut [17:14:43]Write to MH i2c: D1 01 00 0F 19 01 FA [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: D1 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: D1 01 00 [17:14:43]MH_I2C_Read... [17:14:43]Read from MH i2c: D1 01 00 0F 19 00 F9 [17:14:43]Write to MH i2c: 01 00 00 10 19 29 [17:14:43]Write i2c OK [17:14:43]MH_I2C_Read... [17:14:44]OFD Sender: No OFD packet to send [17:14:44]*** Cut start [17:14:44]*** Partial cut [17:14:44]*** CUTSNS_PIN = 1 [17:14:44]*** CUTSNS_PIN = 0 [17:14:44]*** Brake cut motor [17:14:45]Read from MH i2c: 01 [17:14:45]MH_I2C_Read... [17:14:45]*** Stop cut motor [17:14:45]*** Cut end [17:14:45]Read from MH i2c: 01 07 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 FF 0F 3E [17:14:45]process_action close_receipt done [17:14:45]requested_data is exist [17:14:45]produce_requested_data [17:14:45]requested_item fm.sn is exist - process it [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 11 00 00 [17:14:45]Write to MH i2c: E2 08 00 11 19 80 11 00 00 00 00 00 00 A4 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 17 00 [17:14:45]MH_I2C_Read... [17:14:45]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 [17:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:14:45]wFMCommunicate OK [17:14:45]requested_item fd.num is exist - process it [17:14:45]SAM_PROTO_GetFieldsCounters [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 13 00 00 [17:14:45]Write to MH i2c: E2 08 00 12 19 80 13 00 00 00 00 00 00 A7 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 62 00 [17:14:45]MH_I2C_Read... [17:14:45]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 83 F6 00 00 0E 04 04 00 20 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 A2 [17:14: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 F6 00 00 0E 04 04 00 20 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 [17:14:45]wFMCommunicate OK [17:14:45]SAM_PROTO_GetFieldsCounters done [17:14:45]requested_item shift.num is exist - process it [17:14:45]requested_item shift.opened is exist - process it [17:14:45]req_shift_opened [17:14:45]FM_GetShiftState [17:14:45]SAM_PROTO_GetShiftState [17:14:45]wFMCommunicate request_size=4 [17:14:45]MH_SAM_APDU [17:14:45]CAPDU: 80 13 01 00 [17:14:45]Write to MH i2c: E2 08 00 13 19 80 13 01 00 00 00 00 00 A9 [17:14:45]Write i2c OK [17:14:45]MH_I2C_Read... [17:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:45]Read from MH i2c: E2 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 [17:14:45]MH_I2C_Read... [17:14:45]Read from MH i2c: E2 0E 00 13 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 09 [17:14:45]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:14:45]wFMCommunicate OK [17:14:45]SAM_PROTO_GetShiftState done [17:14:45]FM_GetShiftState done [17:14:45]req_shift_opened done [17:14:45]requested_item shift.open_date is exist - process it [17:14:45]req_shift_open_date [17:14:45]req_shift_open_date done [17:14:45]produce_requested_data done [17:14:45]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63107,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:14:45]process_action_free close_receipt [17:14:45]json_value_free [17:14:45]json_value_free done [17:14:45]process_json_proto returns [17:14:45]Send response to host [17:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63107,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:14:45]free response buf [17:14:45]execute_script done [17:14:45]execute_script returns [17:14:45]free content buf [17:14:45]Sock 7.Close socket [17:14:45]Sock 7.Thread stoped [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:58]accept exits with 9 [17:22:58]New connection [17:22:58]New thread 3067055460 created [17:22:58]Thread 3067198820 joined [17:22:58]Waiting for new connection... [17:22:58] Sock 9.Parse request [17:22:58]Sock 9.Check first char [17:22:58]Sock 9.First char is OK [17:22:58]request: POST /json_proto HTTP/1.0 [17:22:58]Method: POST [17:22:58]URL: /json_proto [17:22:58]Method is POST - this is cgi request [17:22:58]url: /json_proto [17:22:58]query_string will be loaded in cgi processing [17:22:58]execute_cgi json_proto POST (null) [17:22:58]execute_cgi path=json_proto method=POST [17:22:58]POST find Content-Length [17:22:58]Host: 172.17.42.132:8080 [17:22:58]Content-Length: 644 [17:22:58]Content-Type: application/json [17:22:58] [17:22:58]POST finish read [17:22:58]Found Content-Length = 644 [17:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47418", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:58]execute_script... [17:22: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)47418", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:58]POST & json_proto [17:22:58]process_json_proto [17:22:58]json parsed OK: [17:22:58]protocol is kg_v1.0 [17:22:58]action value=close_receipt [17:22:58]process_action close_receipt [17:22:58]cmd_close_receipt [17:22:58]MH_GetDate [17:22:58]Write to MH i2c: F0 00 00 14 19 1C [17:22:58]Write i2c OK [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: F0 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: F0 09 00 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: F0 09 00 14 19 00 F5 8D 16 67 4C DF 56 66 0B [17:22:58]GetLastDocTimeStamp 1729530884 [17:22:58]current date 1729531381 [17:22:58]FM_GetShiftState [17:22:58]SAM_PROTO_GetShiftState [17:22:58]wFMCommunicate request_size=4 [17:22:58]MH_SAM_APDU [17:22:58]CAPDU: 80 13 01 00 [17:22:58]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [17:22:58]Write i2c OK [17:22:58]MH_I2C_Read... [17:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:58]Read from MH i2c: E2 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: E2 0E 00 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 0B [17:22:58]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:22:58]wFMCommunicate OK [17:22:58]SAM_PROTO_GetShiftState done [17:22:58]FM_GetShiftState done [17:22:58]opened in 1729469755 [17:22:58]opened+sec_in_day 1729556155 [17:22:58]quantity*price = 2000 [17:22:58]sum+1 = 2001 [17:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 21.10.2024 17:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63108 ФПД: 158314265677448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172301&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63108&fm=158314265677448&tin=02508201610067®Number=0000000000091619&sum=2000 0 [17:22:59]StoreToDocumentArchive [17:22:59]shift 544 fd 63108 [17:22:59]save to /storage/0544/doc_00063108 [17:22:59]save last doc name /storage/0544/doc_00063108 to /storage/kkm_last_doc_name [17:22:59]save OK [17:22:59]Clear old archive folders... [17:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:22:59]tlvbuf is 018BDCE0 [17:22:59]SAM_PROTO_ClearQueue [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 09 00 00 [17:22:59]Write to MH i2c: E2 08 00 22 19 80 09 00 00 00 00 00 00 AD [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [17:22:59]RAPDU: 90 00 [17:22:59]wFMCommunicate OK [17:22:59]SAM_PROTO_ClearQueue done [17:22:59]KKMCreateOFDPacket [17:22:59]OFDProtocolAddRootSTLVToBuf [17:22:59]FM_MakeSignedData [17:22:59]FM_MakeSignedData [17:22:59]SAM_PROTO_SignData [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 0D 01 02 [17:22:59]Write to MH i2c: E2 08 00 23 19 80 0D 01 02 00 00 00 00 B5 [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 23 19 00 90 00 B0 [17:22:59]RAPDU: 90 00 [17:22:59]wFMCommunicate OK [17:22:59]wFMCommunicate request_size=255 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F5 8D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [17:22:59]Write to MH i2c: E2 02 01 24 19 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F5 8D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 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 A7 [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [17:22:59]RAPDU: 90 00 [17:22:59]wFMCommunicate OK [17:22:59]wFMCommunicate request_size=39 [17:22:59]MH_SAM_APDU [17:22:59]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 84 F6 00 00 35 04 06 00 8F FC 69 91 8E 88 [17:22:59]Write to MH i2c: E2 2A 00 25 19 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 84 F6 00 00 35 04 06 00 8F FC 69 91 8E 88 00 00 8E [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [17:22:59]RAPDU: 90 00 [17:22:59]wFMCommunicate OK [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 0D 03 02 [17:22:59]Write to MH i2c: E2 08 00 26 19 80 0D 03 02 00 00 00 00 BA [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]OFD Sender: No OFD packet to send [17:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 0B 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 0B 00 26 19 00 F0 A4 58 84 BD 68 6D 5C 90 00 19 [17:22:59]RAPDU: F0 A4 58 84 BD 68 6D 5C 90 00 [17:22:59]wFMCommunicate OK [17:22:59]SAM_PROTO_SignData done [17:22:59]FM_MakeSignedData done [17:22:59]CreateOFDProtocolMessage [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 11 00 00 [17:22:59]Write to MH i2c: E2 08 00 27 19 80 11 00 00 00 00 00 00 BA [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 17 00 [17:22:59]MH_I2C_Read... [17:22:59]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 [17:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:22:59]wFMCommunicate OK [17:22:59]CreateOFDProtocolMessage done [17:22:59]OFDSenderStorePacket 63108 [17:22:59]StoreOFDPacket docnum=63108 [17:22: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 2C 01 00 00 7A BB 24 01 ED 46 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F5 8D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8F FC 69 91 8E 88 F0 A4 58 84 BD 68 6D 5C [17:22:59]CheckFolder [17:22:59]dirname=/storage/ofd_packets [17:22:59]CheckFolder done [17:22:59]ProducePacketName [17:22:59]name=ofd_packets/00063108 [17:22:59]NVStorageSaveData ofd_packets/00063108 [17:22:59]File name is /storage/ofd_packets/00063108 [17:22:59]Write 330 bytes [17:22:59]NVStorageSaveData done [17:22:59]OFDSenderStorePacket done [17:22:59]KKMCreateOFDPacket done [17:22:59]NVStorageSaveData kkm_last_timestamp [17:22:59]File name is /storage/kkm_last_timestamp [17:22:59]Write 4 bytes [17:22:59]NVStorageSaveData done [17:22:59]ExternCall_PrintAddStr [17:22:59]wPrintStart [17:22:59]Write to MH i2c: 01 00 00 28 19 41 [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: 01 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: 01 07 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: 01 07 00 28 19 00 00 00 00 00 FF 0F 56 [17:22:59]RasterBufferAndPrint [17:22:59]line Счет N : (3)47418 [17:22:59]line ИНН: 02508201610067 [17:22:59]line Контрольно-Кассовый Чек [17:22:59]line ПРОДАЖА [17:22:59]line Товар: 46226617 [17:22:59]line Mentos ПВ Нежная Мята 6*100*2г [17:22:59]line 2.000 * 10.00 [17:22:59]line = 20.00 [17:22:59]line НДС 12% НСП 1% [17:22:59]line > о реализуемом товаре [17:22:59]line ИТОГО: 20.00 [17:22:59]line НСП 1% : 0.18 [17:22:59]line НДС 12% : 2.12 [17:22:59]line Наличными: 20.00 [17:22:59]line Безнал.: 0.00 [17:22:59]line Место: АЗС № 86 "Партнер Нефть" [17:22:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:22:59]line СНО: Общий режим [17:22:59]line Чек 105 21.10.2024 17:23 [17:22:59]line Смена: 544 ФФД: 1.0 [17:22:59]line ЗНМ: 0300000154 [17:22:59]line РНМ: 0000000000091619 [17:22:59]line Версия ККМ: 001 [17:22:59]line ФМ: 0000000000874676 [17:22:59]line ФД: 63108 [17:22:59]line ФПД: 158314265677448 [17:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172301&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63108&fm=158314265677448&tin=02508201610067®Number=0000000000091619&sum=2000 [17:23:00]line 0 [17:23:00]OFD Sender: Processing packet 63108 [packets to send 232, broken 231] [17:23:00]ProducePacketName [17:23:00]name=ofd_packets/00063108 [17:23:00]OFD Sender: To server: pG, [17:23:00]CommunicateWithHost lk.salyk.kg:30040 [17:23:00]ConnectInit lk.salyk.kg [17:23:00]written 0, free lines is 4095 [17:23:00]Connected sock=10 [17:23: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 2C 01 00 00 7A BB 24 01 ED 46 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F5 8D 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 8F FC 69 91 8E 88 F0 A4 58 84 BD 68 6D 5C [17:23:00]Write to MH i2c: 01 00 00 51 19 6A [17:23:00]Write i2c OK [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: 01 [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: 01 07 00 [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 01 0D 7F [17:23:00]RasterBufferAndPrint [17:23:00]line [17:23:00]line [17:23:00]line [17:23:00]line [17:23:00]line [17:23:00]written 0, free lines is 3335 [17:23:00]MH_Cut [17:23:00]Write to MH i2c: D1 01 00 58 19 01 43 [17:23:00]Write i2c OK [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: D1 [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: D1 01 00 [17:23:00]MH_I2C_Read... [17:23:00]Read from MH i2c: D1 01 00 58 19 00 42 [17:23:00]Write to MH i2c: 01 00 00 59 19 72 [17:23:00]Write i2c OK [17:23:00]MH_I2C_Read... [17:23: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 67 C8 47 00 48 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F6 00 00 F4 03 04 00 F2 37 16 67 B6 04 01 00 00 1F 50 5B FB F2 F3 5B 2A [17:23:00]CommunicateWithHost err = 0 [17:23:00]CheckOFDResponse [17:23:00]1017 (14) - 77093643461234 [17:23:00]1041 (16) - 0000000000874676 [17:23:00]1040 (4) - 63108 [17:23:00]1012 (4) - 21.10.2024 11:16 [17:23:00]1206 (1) - 0 [17:23:00]OFD Sender: Remove packet 63108 [17:23:00]ProducePacketName [17:23:00]name=ofd_packets/00063108 [17:23:00]NVStorageDeleteData [17:23:01]*** Cut start [17:23:01]*** Partial cut [17:23:01]*** CUTSNS_PIN = 1 [17:23:01]OFD Sender: No OFD packet to send [17:23:01]*** CUTSNS_PIN = 0 [17:23:01]*** Brake cut motor [17:23:02]Read from MH i2c: 01 [17:23:02]MH_I2C_Read... [17:23:02]*** Stop cut motor [17:23:02]*** Cut end [17:23:02]Read from MH i2c: 01 07 00 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [17:23:02]process_action close_receipt done [17:23:02]requested_data is exist [17:23:02]produce_requested_data [17:23:02]requested_item fm.sn is exist - process it [17:23:02]wFMCommunicate request_size=4 [17:23:02]MH_SAM_APDU [17:23:02]CAPDU: 80 11 00 00 [17:23:02]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [17:23:02]Write i2c OK [17:23:02]MH_I2C_Read... [17:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:02]Read from MH i2c: E2 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 17 00 [17:23:02]MH_I2C_Read... [17:23:02]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 [17:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:23:02]wFMCommunicate OK [17:23:02]requested_item fd.num is exist - process it [17:23:02]SAM_PROTO_GetFieldsCounters [17:23:02]wFMCommunicate request_size=4 [17:23:02]MH_SAM_APDU [17:23:02]CAPDU: 80 13 00 00 [17:23:02]Write to MH i2c: E2 08 00 5B 19 80 13 00 00 00 00 00 00 F0 [17:23:02]Write i2c OK [17:23:02]MH_I2C_Read... [17:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:02]Read from MH i2c: E2 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 62 00 [17:23:02]MH_I2C_Read... [17:23:02]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 84 F6 00 00 0E 04 04 00 20 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 EF [17:23: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 84 F6 00 00 0E 04 04 00 20 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 [17:23:02]wFMCommunicate OK [17:23:02]SAM_PROTO_GetFieldsCounters done [17:23:02]requested_item shift.num is exist - process it [17:23:02]requested_item shift.opened is exist - process it [17:23:02]req_shift_opened [17:23:02]FM_GetShiftState [17:23:02]SAM_PROTO_GetShiftState [17:23:02]wFMCommunicate request_size=4 [17:23:02]MH_SAM_APDU [17:23:02]CAPDU: 80 13 01 00 [17:23:02]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [17:23:02]Write i2c OK [17:23:02]MH_I2C_Read... [17:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:02]Read from MH i2c: E2 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 0E 00 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 52 [17:23:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:23:02]wFMCommunicate OK [17:23:02]SAM_PROTO_GetShiftState done [17:23:02]FM_GetShiftState done [17:23:02]req_shift_opened done [17:23:02]requested_item shift.open_date is exist - process it [17:23:02]req_shift_open_date [17:23:02]req_shift_open_date done [17:23:02]produce_requested_data done [17:23:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63108,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:23:02]process_action_free close_receipt [17:23:02]json_value_free [17:23:02]json_value_free done [17:23:02]process_json_proto returns [17:23:02]Send response to host [17:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63108,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:23:02]free response buf [17:23:02]execute_script done [17:23:02]execute_script returns [17:23:02]free content buf [17:23:02]Sock 9.Close socket [17:23:02]Sock 9.Thread stoped [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:23]accept exits with 7 [17:25:23]New connection [17:25:23]New thread 3067198820 created [17:25:23]Thread 3067055460 joined [17:25:23]Waiting for new connection... [17:25:23] Sock 7.Parse request [17:25:23]Sock 7.Check first char [17:25:23]Sock 7.First char is OK [17:25:23]request: POST /json_proto HTTP/1.0 [17:25:23]Method: POST [17:25:23]URL: /json_proto [17:25:23]Method is POST - this is cgi request [17:25:23]url: /json_proto [17:25:23]query_string will be loaded in cgi processing [17:25:23]execute_cgi json_proto POST (null) [17:25:23]execute_cgi path=json_proto method=POST [17:25:23]POST find Content-Length [17:25:23]Host: 172.17.42.132:8080 [17:25:23]Content-Length: 1118 [17:25:23]Content-Type: application/json [17:25:23] [17:25:23]POST finish read [17:25:23]Found Content-Length = 1118 [17:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47419", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:23]execute_script... [17:25: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)47419", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:23]POST & json_proto [17:25:23]process_json_proto [17:25:23]json parsed OK: [17:25:23]protocol is kg_v1.0 [17:25:23]action value=close_receipt [17:25:23]process_action close_receipt [17:25:23]cmd_close_receipt [17:25:23]MH_GetDate [17:25:23]Write to MH i2c: F0 00 00 5D 19 65 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: F0 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: F0 09 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: F0 09 00 5D 19 00 86 8E 16 67 4C DF 56 66 E6 [17:25:23]GetLastDocTimeStamp 1729531381 [17:25:23]current date 1729531526 [17:25:23]FM_GetShiftState [17:25:23]SAM_PROTO_GetShiftState [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 13 01 00 [17:25:23]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 0E 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 54 [17:25:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:25:23]wFMCommunicate OK [17:25:23]SAM_PROTO_GetShiftState done [17:25:23]FM_GetShiftState done [17:25:23]opened in 1729469755 [17:25:23]opened+sec_in_day 1729556155 [17:25:23]quantity*price = 9500 [17:25:23]sum+1 = 9501 [17:25:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 21.10.2024 17:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63109 ФПД: 184350132968810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172526&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63109&fm=184350132968810&tin=02508201610067®Number=0000000000091619&sum=15000 0 [17:25:24]StoreToDocumentArchive [17:25:24]shift 544 fd 63109 [17:25:24]save to /storage/0544/doc_00063109 [17:25:24]save last doc name /storage/0544/doc_00063109 to /storage/kkm_last_doc_name [17:25:24]save OK [17:25:24]Clear old archive folders... [17:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=493 [17:25:24]tlvbuf is B6DE4440 [17:25:24]SAM_PROTO_ClearQueue [17:25:24]wFMCommunicate request_size=4 [17:25:24]MH_SAM_APDU [17:25:24]CAPDU: 80 09 00 00 [17:25:24]Write to MH i2c: E2 08 00 6B 19 80 09 00 00 00 00 00 00 F6 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:24]Read from MH i2c: E2 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 03 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [17:25:24]RAPDU: 90 00 [17:25:24]wFMCommunicate OK [17:25:24]SAM_PROTO_ClearQueue done [17:25:24]KKMCreateOFDPacket [17:25:24]OFDProtocolAddRootSTLVToBuf [17:25:24]FM_MakeSignedData [17:25:24]FM_MakeSignedData [17:25:24]SAM_PROTO_SignData [17:25:24]wFMCommunicate request_size=4 [17:25:24]MH_SAM_APDU [17:25:24]CAPDU: 80 0D 01 02 [17:25:24]Write to MH i2c: E2 08 00 6C 19 80 0D 01 02 00 00 00 00 FE [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:24]Read from MH i2c: E2 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 03 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [17:25:24]RAPDU: 90 00 [17:25:24]wFMCommunicate OK [17:25:24]wFMCommunicate request_size=255 [17:25:24]MH_SAM_APDU [17:25:24]CAPDU: 80 0D 02 02 FA 03 00 ED 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 [17:25:25]Write to MH i2c: E2 02 01 6D 19 80 0D 02 02 FA 00 03 00 ED 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 00 00 B8 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 03 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [17:25:25]RAPDU: 90 00 [17:25:25]wFMCommunicate OK [17:25:25]wFMCommunicate request_size=252 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 0D 02 02 F7 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 86 8E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A7 AA 5C 30 9D 6A [17:25:25]Write to MH i2c: E2 FF 00 6E 19 80 0D 02 02 F7 00 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 86 8E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A7 AA 5C 30 9D 6A 00 00 B1 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 03 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [17:25:25]RAPDU: 90 00 [17:25:25]wFMCommunicate OK [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 0D 03 02 [17:25:25]Write to MH i2c: E2 08 00 6F 19 80 0D 03 02 00 00 00 00 03 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 0B 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 0B 00 6F 19 00 D1 74 9C BB FB FC 44 3B 90 00 16 [17:25:25]RAPDU: D1 74 9C BB FB FC 44 3B 90 00 [17:25:25]wFMCommunicate OK [17:25:25]SAM_PROTO_SignData done [17:25:25]FM_MakeSignedData done [17:25:25]CreateOFDProtocolMessage [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 11 00 00 [17:25:25]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 17 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 17 00 70 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5C [17:25: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:25:25]wFMCommunicate OK [17:25:25]CreateOFDProtocolMessage done [17:25:25]OFDSenderStorePacket 63109 [17:25:25]StoreOFDPacket docnum=63109 [17:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 01 02 00 00 30 49 F9 01 63 66 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 86 8E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A7 AA 5C 30 9D 6A D1 74 9C BB FB FC 44 3B [17:25:26]CheckFolder [17:25:26]dirname=/storage/ofd_packets [17:25:26]CheckFolder done [17:25:26]ProducePacketName [17:25:26]name=ofd_packets/00063109 [17:25:26]NVStorageSaveData ofd_packets/00063109 [17:25:26]File name is /storage/ofd_packets/00063109 [17:25:26]Write 543 bytes [17:25:26]NVStorageSaveData done [17:25:26]OFDSenderStorePacket done [17:25:26]KKMCreateOFDPacket done [17:25:26]NVStorageSaveData kkm_last_timestamp [17:25:26]File name is /storage/kkm_last_timestamp [17:25:26]Write 4 bytes [17:25:26]NVStorageSaveData done [17:25:26]ExternCall_PrintAddStr [17:25:26]wPrintStart [17:25:26]Write to MH i2c: 01 00 00 71 19 8A [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 FF 0F 9F [17:25:26]RasterBufferAndPrint [17:25:26]line Счет N : (3)47419 [17:25:26]line ИНН: 02508201610067 [17:25:26]line Контрольно-Кассовый Чек [17:25:26]line ПРОДАЖА [17:25:26]line Товар: 4700000480050 [17:25:26]line Напиток Nitro Energy эн green ж/б 0,45л [17:25:26]line 1.000 * 95.00 [17:25:26]line = 95.00 [17:25:26]line НДС 12% НСП 1% [17:25:26]line > о реализуемом товаре [17:25:26]line Товар: 50173808 [17:25:26]line Жев Orbit Sweet Mint [17:25:26]line 1.000 * 45.00 [17:25:26]line = 45.00 [17:25:26]line НДС 12% НСП 1% [17:25:26]line > о реализуемом товаре [17:25:26]line Товар: 46226617 [17:25:26]line Mentos ПВ Нежная Мята 6*100*2г [17:25:26]line 1.000 * 10.00 [17:25:26]line = 10.00 [17:25:26]line НДС 12% НСП 1% [17:25:26]line > о реализуемом товаре [17:25:26]line ИТОГО: 150.00 [17:25:26]line НСП 1% : 1.33 [17:25:26]line НДС 12% : 15.93 [17:25:26]line Наличными: 150.00 [17:25:26]line Безнал.: 0.00 [17:25:26]line Место: АЗС № 86 "Партнер Нефть" [17:25:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:25:26]line СНО: Общий режим [17:25:26]line Чек 106 21.10.2024 17:25 [17:25:26]line Смена: 544 ФФД: 1.0 [17:25:26]line ЗНМ: 0300000154 [17:25:26]line РНМ: 0000000000091619 [17:25:26]line Версия ККМ: 001 [17:25:26]line ФМ: 0000000000874676 [17:25:26]line ФД: 63109 [17:25:26]line ФПД: 184350132968810 [17:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172526&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63109&fm=184350132968810&tin=02508201610067®Number=0000000000091619&sum=15000 [17:25:26]line 0 [17:25:26]written 0, free lines is 4095 [17:25:26]OFD Sender: Processing packet 63109 [packets to send 232, broken 231] [17:25:26]ProducePacketName [17:25:26]name=ofd_packets/00063109 [17:25:26]OFD Sender: To server: pG, [17:25:26]CommunicateWithHost lk.salyk.kg:30040 [17:25:26]ConnectInit lk.salyk.kg [17:25:26]Connected sock=9 [17:25: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 01 02 00 00 30 49 F9 01 63 66 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 86 8E 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 A7 AA 5C 30 9D 6A D1 74 9C BB FB FC 44 3B [17:25:26]Write to MH i2c: 01 00 00 A7 19 C0 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 5A 0C 2D [17:25:26]RasterBufferAndPrint [17:25:26]line [17:25:26]line [17:25:26]line [17:25:26]line [17:25:26]line [17:25:26]written 0, free lines is 3171 [17:25:26]MH_Cut [17:25:26]Write to MH i2c: D1 01 00 AE 19 01 99 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: D1 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: D1 01 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: D1 01 00 AE 19 00 98 [17:25:26]Write to MH i2c: 01 00 00 AF 19 C8 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25: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 FB 20 47 00 ED CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F6 00 00 F4 03 04 00 84 38 16 67 B6 04 01 00 00 E4 7E 4B F6 A2 42 22 1E [17:25:26]CommunicateWithHost err = 0 [17:25:26]CheckOFDResponse [17:25:26]1017 (14) - 77093643461234 [17:25:26]1041 (16) - 0000000000874676 [17:25:26]1040 (4) - 63109 [17:25:26]1012 (4) - 21.10.2024 11:18 [17:25:26]1206 (1) - 0 [17:25:26]OFD Sender: Remove packet 63109 [17:25:26]ProducePacketName [17:25:26]name=ofd_packets/00063109 [17:25:26]NVStorageDeleteData [17:25:27]OFD Sender: No OFD packet to send [17:25:27]*** Cut start [17:25:27]*** Partial cut [17:25:27]*** CUTSNS_PIN = 1 [17:25:27]*** CUTSNS_PIN = 0 [17:25:27]*** Brake cut motor [17:25:27]Read from MH i2c: 01 [17:25:28]MH_I2C_Read... [17:25:28]*** Stop cut motor [17:25:28]*** Cut end [17:25:28]Read from MH i2c: 01 07 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 FF 0F DD [17:25:28]process_action close_receipt done [17:25:28]requested_data is exist [17:25:28]produce_requested_data [17:25:28]requested_item fm.sn is exist - process it [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 11 00 00 [17:25:28]Write to MH i2c: E2 08 00 B0 19 80 11 00 00 00 00 00 00 43 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 B0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9C [17:25: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:25:28]wFMCommunicate OK [17:25:28]requested_item fd.num is exist - process it [17:25:28]SAM_PROTO_GetFieldsCounters [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 13 00 00 [17:25:28]Write to MH i2c: E2 08 00 B1 19 80 13 00 00 00 00 00 00 46 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 62 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 62 00 B1 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 85 F6 00 00 0E 04 04 00 20 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 49 [17:25: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 85 F6 00 00 0E 04 04 00 20 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 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_GetFieldsCounters done [17:25:28]requested_item shift.num is exist - process it [17:25:28]requested_item shift.opened is exist - process it [17:25:28]req_shift_opened [17:25:28]FM_GetShiftState [17:25:28]SAM_PROTO_GetShiftState [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 13 01 00 [17:25:28]Write to MH i2c: E2 08 00 B2 19 80 13 01 00 00 00 00 00 48 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0E 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0E 00 B2 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A8 [17:25:28]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_GetShiftState done [17:25:28]FM_GetShiftState done [17:25:28]req_shift_opened done [17:25:28]requested_item shift.open_date is exist - process it [17:25:28]req_shift_open_date [17:25:28]req_shift_open_date done [17:25:28]produce_requested_data done [17:25:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63109,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:25:28]process_action_free close_receipt [17:25:28]json_value_free [17:25:28]json_value_free done [17:25:28]process_json_proto returns [17:25:28]Send response to host [17:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63109,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:25:28]free response buf [17:25:28]execute_script done [17:25:28]execute_script returns [17:25:28]free content buf [17:25:28]Sock 7.Close socket [17:25:28]Sock 7.Thread stoped [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:23]accept exits with 10 [17:31:23]New connection [17:31:23]New thread 3067055460 created [17:31:23]Thread 3067198820 joined [17:31:23]Waiting for new connection... [17:31:23] Sock 10.Parse request [17:31:23]Sock 10.Check first char [17:31:23]Sock 10.First char is OK [17:31:23]request: POST /json_proto HTTP/1.0 [17:31:23]Method: POST [17:31:23]URL: /json_proto [17:31:23]Method is POST - this is cgi request [17:31:23]url: /json_proto [17:31:23]query_string will be loaded in cgi processing [17:31:23]execute_cgi json_proto POST (null) [17:31:23]execute_cgi path=json_proto method=POST [17:31:23]POST find Content-Length [17:31:23]Host: 172.17.42.132:8080 [17:31:23]Content-Length: 629 [17:31:23]Content-Type: application/json [17:31:23] [17:31:23]POST finish read [17:31:23]Found Content-Length = 629 [17:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47420", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:23]execute_script... [17:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47420", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:23]POST & json_proto [17:31:23]process_json_proto [17:31:23]json parsed OK: [17:31:23]protocol is kg_v1.0 [17:31:23]action value=close_receipt [17:31:23]process_action close_receipt [17:31:23]cmd_close_receipt [17:31:23]MH_GetDate [17:31:23]Write to MH i2c: F0 00 00 B3 19 BB [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 B3 19 00 EE 8F 16 67 4C DF 56 66 A5 [17:31:23]GetLastDocTimeStamp 1729531526 [17:31:23]current date 1729531886 [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 AA [17:31:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]opened in 1729469755 [17:31:23]opened+sec_in_day 1729556155 [17:31:23]quantity*price = 5000 [17:31:23]sum+1 = 5001 [17:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 21.10.2024 17:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63110 ФПД: 8125900305097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173126&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63110&fm=8125900305097&tin=02508201610067®Number=0000000000091619&sum=5000 0 [17:31:24]StoreToDocumentArchive [17:31:24]shift 544 fd 63110 [17:31:24]save to /storage/0544/doc_00063110 [17:31:24]save last doc name /storage/0544/doc_00063110 to /storage/kkm_last_doc_name [17:31:24]save OK [17:31:24]Clear old archive folders... [17:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:31:24]tlvbuf is 01953EF0 [17:31:24]SAM_PROTO_ClearQueue [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 09 00 00 [17:31:24]Write to MH i2c: E2 08 00 C1 19 80 09 00 00 00 00 00 00 4C [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 C1 19 00 90 00 4E [17:31:24]RAPDU: 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_ClearQueue done [17:31:24]KKMCreateOFDPacket [17:31:24]OFDProtocolAddRootSTLVToBuf [17:31:24]FM_MakeSignedData [17:31:24]FM_MakeSignedData [17:31:24]SAM_PROTO_SignData [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 0D 01 02 [17:31:24]Write to MH i2c: E2 08 00 C2 19 80 0D 01 02 00 00 00 00 54 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [17:31:24]RAPDU: 90 00 [17:31:24]wFMCommunicate OK [17:31:24]wFMCommunicate request_size=255 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 EE 8F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:31:24]Write to MH i2c: E2 02 01 C3 19 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 EE 8F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 F3 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [17:31:24]RAPDU: 90 00 [17:31:24]wFMCommunicate OK [17:31:24]wFMCommunicate request_size=28 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 86 F6 00 00 35 04 06 00 07 63 F5 66 B2 C9 [17:31:24]Write to MH i2c: E2 1F 00 C4 19 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 86 F6 00 00 35 04 06 00 07 63 F5 66 B2 C9 00 00 A6 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [17:31:24]RAPDU: 90 00 [17:31:24]wFMCommunicate OK [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 0D 03 02 [17:31:24]Write to MH i2c: E2 08 00 C5 19 80 0D 03 02 00 00 00 00 59 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0B 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0B 00 C5 19 00 5E E5 93 00 72 7F BE 67 90 00 46 [17:31:24]RAPDU: 5E E5 93 00 72 7F BE 67 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_SignData done [17:31:24]FM_MakeSignedData done [17:31:24]CreateOFDProtocolMessage [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 11 00 00 [17:31:24]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 17 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B2 [17:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:31:24]wFMCommunicate OK [17:31:24]CreateOFDProtocolMessage done [17:31:24]OFDSenderStorePacket 63110 [17:31:24]StoreOFDPacket docnum=63110 [17:31:24]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 59 F0 19 01 D9 CD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 EE 8F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 07 63 F5 66 B2 C9 5E E5 93 00 72 7F BE 67 [17:31:24]CheckFolder [17:31:24]dirname=/storage/ofd_packets [17:31:24]CheckFolder done [17:31:24]ProducePacketName [17:31:24]name=ofd_packets/00063110 [17:31:24]NVStorageSaveData ofd_packets/00063110 [17:31:24]File name is /storage/ofd_packets/00063110 [17:31:24]Write 319 bytes [17:31:24]NVStorageSaveData done [17:31:24]OFDSenderStorePacket done [17:31:24]KKMCreateOFDPacket done [17:31:24]NVStorageSaveData kkm_last_timestamp [17:31:24]File name is /storage/kkm_last_timestamp [17:31:24]Write 4 bytes [17:31:24]NVStorageSaveData done [17:31:24]ExternCall_PrintAddStr [17:31:24]wPrintStart [17:31:24]Write to MH i2c: 01 00 00 C7 19 E0 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: 01 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: 01 07 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: 01 07 00 C7 19 00 00 00 00 00 FF 0F F5 [17:31:24]RasterBufferAndPrint [17:31:24]line Счет N : (3)47420 [17:31:24]line ИНН: 02508201610067 [17:31:24]line Контрольно-Кассовый Чек [17:31:24]line ПРОДАЖА [17:31:24]line Товар: 4700000160358 [17:31:24]line Вода Легенда 1л [17:31:24]line 1.000 * 50.00 [17:31:24]line = 50.00 [17:31:24]line НДС 12% НСП 1% [17:31:24]line > о реализуемом товаре [17:31:24]line ИТОГО: 50.00 [17:31:24]line НСП 1% : 0.44 [17:31:24]line НДС 12% : 5.31 [17:31:24]line Наличными: 50.00 [17:31:24]line Безнал.: 0.00 [17:31:24]line Место: АЗС № 86 "Партнер Нефть" [17:31:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:31:24]line СНО: Общий режим [17:31:24]line Чек 107 21.10.2024 17:31 [17:31:24]line Смена: 544 ФФД: 1.0 [17:31:24]line ЗНМ: 0300000154 [17:31:24]line РНМ: 0000000000091619 [17:31:24]line Версия ККМ: 001 [17:31:24]line ФМ: 0000000000874676 [17:31:24]line ФД: 63110 [17:31:24]line ФПД: 8125900305097 [17:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173126&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63110&fm=8125900305097&tin=02508201610067®Number=0000000000091619&sum=5000 [17:31:25]OFD Sender: Processing packet 63110 [packets to send 232, broken 231] [17:31:25]ProducePacketName [17:31:25]name=ofd_packets/00063110 [17:31:25]OFD Sender: To server: pG, [17:31:25]CommunicateWithHost lk.salyk.kg:30040 [17:31:25]ConnectInit lk.salyk.kg [17:31:25]line 0 [17:31:25]written 0, free lines is 4095 [17:31:25]Connected sock=7 [17:31: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 21 01 00 00 59 F0 19 01 D9 CD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 EE 8F 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 07 63 F5 66 B2 C9 5E E5 93 00 72 7F BE 67 [17:31:25]Write to MH i2c: 01 00 00 EF 19 08 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 10 0D 2C [17:31:25]RasterBufferAndPrint [17:31:25]line [17:31:25]line [17:31:25]line [17:31:25]line [17:31:25]line [17:31:25]written 0, free lines is 3350 [17:31:25]MH_Cut [17:31:25]Write to MH i2c: D1 01 00 F6 19 01 E1 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: D1 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: D1 01 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: D1 01 00 F6 19 00 E0 [17:31:25]Write to MH i2c: 01 00 00 F7 19 10 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]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 5A 3F 47 00 A0 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 86 F6 00 00 F4 03 04 00 EB 39 16 67 B6 04 01 00 00 AA 13 1D A2 64 41 2C 00 [17:31:25]CommunicateWithHost err = 0 [17:31:25]CheckOFDResponse [17:31:25]1017 (14) - 77093643461234 [17:31:25]1041 (16) - 0000000000874676 [17:31:25]1040 (4) - 63110 [17:31:25]1012 (4) - 21.10.2024 11:24 [17:31:25]1206 (1) - 0 [17:31:25]OFD Sender: Remove packet 63110 [17:31:25]ProducePacketName [17:31:25]name=ofd_packets/00063110 [17:31:25]NVStorageDeleteData [17:31:26]*** Cut start [17:31:26]*** Partial cut [17:31:26]*** CUTSNS_PIN = 1 [17:31:26]OFD Sender: No OFD packet to send [17:31:26]*** CUTSNS_PIN = 0 [17:31:26]*** Brake cut motor [17:31:26]Read from MH i2c: 01 [17:31:26]MH_I2C_Read... [17:31:26]*** Stop cut motor [17:31:26]*** Cut end [17:31:26]Read from MH i2c: 01 07 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 F7 19 00 00 00 00 00 FF 0F 25 [17:31:26]process_action close_receipt done [17:31:26]requested_data is exist [17:31:26]produce_requested_data [17:31:26]requested_item fm.sn is exist - process it [17:31:26]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 11 00 00 [17:31:27]Write to MH i2c: E2 08 00 F8 19 80 11 00 00 00 00 00 00 8B [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 F8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E4 [17:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:31:27]wFMCommunicate OK [17:31:27]requested_item fd.num is exist - process it [17:31:27]SAM_PROTO_GetFieldsCounters [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 13 00 00 [17:31:27]Write to MH i2c: E2 08 00 F9 19 80 13 00 00 00 00 00 00 8E [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 62 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 62 00 F9 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 86 F6 00 00 0E 04 04 00 20 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 95 [17:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_GetFieldsCounters done [17:31:27]requested_item shift.num is exist - process it [17:31:27]requested_item shift.opened is exist - process it [17:31:27]req_shift_opened [17:31:27]FM_GetShiftState [17:31:27]SAM_PROTO_GetShiftState [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 13 01 00 [17:31:27]Write to MH i2c: E2 08 00 FA 19 80 13 01 00 00 00 00 00 90 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 FA 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F0 [17:31:27]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_GetShiftState done [17:31:27]FM_GetShiftState done [17:31:27]req_shift_opened done [17:31:27]requested_item shift.open_date is exist - process it [17:31:27]req_shift_open_date [17:31:27]req_shift_open_date done [17:31:27]produce_requested_data done [17:31:27]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63110,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:31:27]process_action_free close_receipt [17:31:27]json_value_free [17:31:27]json_value_free done [17:31:27]process_json_proto returns [17:31:27]Send response to host [17:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63110,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:31:27]free response buf [17:31:27]execute_script done [17:31:27]execute_script returns [17:31:27]free content buf [17:31:27]Sock 10.Close socket [17:31:27]Sock 10.Thread stoped [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:30]accept exits with 9 [17:36:30]New connection [17:36:30]New thread 3067198820 created [17:36:30]Thread 3067055460 joined [17:36:30]Waiting for new connection... [17:36:30] Sock 9.Parse request [17:36:30]Sock 9.Check first char [17:36:30]Sock 9.First char is OK [17:36:30]request: POST /json_proto HTTP/1.0 [17:36:30]Method: POST [17:36:30]URL: /json_proto [17:36:30]Method is POST - this is cgi request [17:36:30]url: /json_proto [17:36:30]query_string will be loaded in cgi processing [17:36:30]execute_cgi json_proto POST (null) [17:36:30]execute_cgi path=json_proto method=POST [17:36:30]POST find Content-Length [17:36:30]Host: 172.17.42.132:8080 [17:36:30]Content-Length: 1540 [17:36:30]Content-Type: application/json [17:36:30] [17:36:30]POST finish read [17:36:30]Found Content-Length = 1540 [17:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47421", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "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" : 355.82 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:30]execute_script... [17:36: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)47421", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "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" : 355.82 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:30]POST & json_proto [17:36:30]process_json_proto [17:36:30]json parsed OK: [17:36:30]protocol is kg_v1.0 [17:36:30]action value=close_receipt [17:36:30]process_action close_receipt [17:36:30]cmd_close_receipt [17:36:30]MH_GetDate [17:36:30]Write to MH i2c: F0 00 00 FB 19 03 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: F0 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: F0 09 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: F0 09 00 FB 19 00 22 91 16 67 4C DF 56 66 23 [17:36:31]GetLastDocTimeStamp 1729531886 [17:36:31]current date 1729532194 [17:36:31]FM_GetShiftState [17:36:31]SAM_PROTO_GetShiftState [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 13 01 00 [17:36:31]Write to MH i2c: E2 08 00 FC 19 80 13 01 00 00 00 00 00 92 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0E 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0E 00 FC 19 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F2 [17:36:31]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:36:31]wFMCommunicate OK [17:36:31]SAM_PROTO_GetShiftState done [17:36:31]FM_GetShiftState done [17:36:31]opened in 1729469755 [17:36:31]opened+sec_in_day 1729556155 [17:36:31]quantity*price = 14867 [17:36:31]sum+1 = 14868 [17:36:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 59.47 = 59.47 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 98.12 = 98.12 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 49.56 = 49.56 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.82 НСП 1% : 3.16 НДС 12% : 37.78 Наличными: 0.00 Безнал.: 355.82 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 21.10.2024 17:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63111 ФПД: 229359273543213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63111&fm=229359273543213&tin=02508201610067®Number=0000000000091619&sum=35582 0 [17:36:32]StoreToDocumentArchive [17:36:32]shift 544 fd 63111 [17:36:32]save to /storage/0544/doc_00063111 [17:36:32]save last doc name /storage/0544/doc_00063111 to /storage/kkm_last_doc_name [17:36:32]save OK [17:36:32]Clear old archive folders... [17:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=602 [17:36:32]tlvbuf is B6EFD880 [17:36:32]SAM_PROTO_ClearQueue [17:36:32]wFMCommunicate request_size=4 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 09 00 00 [17:36:32]Write to MH i2c: E2 08 00 09 1A 80 09 00 00 00 00 00 00 95 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [17:36:32]RAPDU: 90 00 [17:36:32]wFMCommunicate OK [17:36:32]SAM_PROTO_ClearQueue done [17:36:32]KKMCreateOFDPacket [17:36:32]OFDProtocolAddRootSTLVToBuf [17:36:32]FM_MakeSignedData [17:36:32]FM_MakeSignedData [17:36:32]SAM_PROTO_SignData [17:36:32]wFMCommunicate request_size=4 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 0D 01 02 [17:36:32]Write to MH i2c: E2 08 00 0A 1A 80 0D 01 02 00 00 00 00 9D [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 0A 1A 00 90 00 98 [17:36:32]RAPDU: 90 00 [17:36:32]wFMCommunicate OK [17:36:32]wFMCommunicate request_size=255 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 0D 02 02 FA 03 00 5A 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF [17:36:32]Write to MH i2c: E2 02 01 0B 1A 80 0D 02 02 FA 00 03 00 5A 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF 00 00 FF [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 0B 1A 00 90 00 99 [17:36:32]RAPDU: 90 00 [17:36:32]wFMCommunicate OK [17:36:32]wFMCommunicate request_size=255 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 0D 02 02 FA 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 0E 00 00 00 00 07 04 06 00 00 00 00 [17:36:32]Write to MH i2c: E2 02 01 0C 1A 80 0D 02 02 FA 00 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 68 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:32]Read from MH i2c: E2 03 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 03 00 0C 1A 00 90 00 9A [17:36:32]RAPDU: 90 00 [17:36:32]wFMCommunicate OK [17:36:32]wFMCommunicate request_size=111 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 0D 02 02 6A 00 00 00 39 04 06 00 FE 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 91 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D0 99 DE 06 86 2D [17:36:32]Write to MH i2c: E2 72 00 0D 1A 80 0D 02 02 6A 00 00 00 00 39 04 06 00 FE 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 91 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D0 99 DE 06 86 2D 00 00 68 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 03 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [17:36:33]RAPDU: 90 00 [17:36:33]wFMCommunicate OK [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 0D 03 02 [17:36:33]Write to MH i2c: E2 08 00 0E 1A 80 0D 03 02 00 00 00 00 A3 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0B 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0B 00 0E 1A 00 03 69 67 68 3D 10 3A A6 90 00 0C [17:36:33]RAPDU: 03 69 67 68 3D 10 3A A6 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_SignData done [17:36:33]FM_MakeSignedData done [17:36:33]CreateOFDProtocolMessage [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 11 00 00 [17:36:33]Write to MH i2c: E2 08 00 0F 1A 80 11 00 00 00 00 00 00 A3 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 0F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FC [17:36: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:36:33]wFMCommunicate OK [17:36:33]CreateOFDProtocolMessage done [17:36:33]OFDSenderStorePacket 63111 [17:36:33]StoreOFDPacket docnum=63111 [17:36: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 6E 02 00 00 33 07 66 02 02 7F 5A 03 01 00 03 00 5A 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 91 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D0 99 DE 06 86 2D 03 69 67 68 3D 10 3A A6 [17:36:33]CheckFolder [17:36:33]dirname=/storage/ofd_packets [17:36:33]CheckFolder done [17:36:33]ProducePacketName [17:36:33]name=ofd_packets/00063111 [17:36:33]NVStorageSaveData ofd_packets/00063111 [17:36:33]File name is /storage/ofd_packets/00063111 [17:36:33]Write 652 bytes [17:36:33]NVStorageSaveData done [17:36:33]OFDSenderStorePacket done [17:36:33]KKMCreateOFDPacket done [17:36:33]NVStorageSaveData kkm_last_timestamp [17:36:33]File name is /storage/kkm_last_timestamp [17:36:33]Write 4 bytes [17:36:33]NVStorageSaveData done [17:36:33]ExternCall_PrintAddStr [17:36:33]wPrintStart [17:36:33]Write to MH i2c: 01 00 00 10 1A 2A [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 07 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 07 00 10 1A 00 00 00 00 00 FF 0F 3F [17:36:33]RasterBufferAndPrint [17:36:33]line Счет N : (3)47421 [17:36:33]line ИНН: 02508201610067 [17:36:33]line Контрольно-Кассовый Чек [17:36:33]line ПРОДАЖА [17:36:33]line Товар: 4640030090136 [17:36:33]line Сигареты ESSE Exchange W [17:36:33]line 1.000 * 148.67 [17:36:33]line = 148.67 [17:36:33]line НДС 12% НСП 1% [17:36:33]line > о реализуемом товаре [17:36:33]line Товар: 4700000310043 [17:36:33]line Вода Жалалабат 27 1л [17:36:33]line 1.000 * 59.47 [17:36:33]line = 59.47 [17:36:33]line НДС 12% НСП 1% [17:36:33]line > о реализуемом товаре [17:36:33]line Товар: 4870022003305 [17:36:33]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:36:33]line 1.000 * 98.12 [17:36:33]line = 98.12 [17:36:33]line НДС 12% НСП 1% [17:36:33]line > о реализуемом товаре [17:36:33]line Товар: 4700000160358 [17:36:33]line Вода Легенда 1л [17:36:33]line 1.000 * 49.56 [17:36:33]line = 49.56 [17:36:33]line НДС 12% НСП 1% [17:36:33]line > о реализуемом товаре [17:36:33]line ИТОГО: 355.82 [17:36:33]line НСП 1% : 3.16 [17:36:33]line НДС 12% : 37.78 [17:36:33]line Наличными: 0.00 [17:36:33]line Безнал.: 355.82 [17:36:33]line Место: АЗС № 86 "Партнер Нефть" [17:36:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:36:33]line СНО: Общий режим [17:36:33]line Чек 108 21.10.2024 17:36 [17:36:33]line Смена: 544 ФФД: 1.0 [17:36:33]line ЗНМ: 0300000154 [17:36:33]line РНМ: 0000000000091619 [17:36:33]line Версия ККМ: 001 [17:36:33]line Платежная система: Mbank [17:36:33]line ФМ: 0000000000874676 [17:36:33]line ФД: 63111 [17:36:33]line ФПД: 229359273543213 [17:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63111&fm=229359273543213&tin=02508201610067®Number=0000000000091619&sum=35582 [17:36:33]line 0 [17:36:33]OFD Sender: Processing packet 63111 [packets to send 232, broken 231] [17:36:33]ProducePacketName [17:36:33]name=ofd_packets/00063111 [17:36:33]OFD Sender: To server: pG, [17:36:33]CommunicateWithHost lk.salyk.kg:30040 [17:36:33]ConnectInit lk.salyk.kg [17:36:33]written 0, free lines is 4095 [17:36:33]Connected sock=7 [17:36: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 6E 02 00 00 33 07 66 02 02 7F 5A 03 01 00 03 00 5A 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 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 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 8A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 91 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D0 99 DE 06 86 2D 03 69 67 68 3D 10 3A A6 [17:36: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 CA ED 47 00 4D 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 87 F6 00 00 F4 03 04 00 1F 3B 16 67 B6 04 01 00 00 F7 D7 B4 C8 29 2F 51 81 [17:36:34]CommunicateWithHost err = 0 [17:36:34]CheckOFDResponse [17:36:34]1017 (14) - 77093643461234 [17:36:34]1041 (16) - 0000000000874676 [17:36:34]1040 (4) - 63111 [17:36:34]1012 (4) - 21.10.2024 11:29 [17:36:34]1206 (1) - 0 [17:36:34]OFD Sender: Remove packet 63111 [17:36:34]ProducePacketName [17:36:34]name=ofd_packets/00063111 [17:36:34]NVStorageDeleteData [17:36:34]Write to MH i2c: 01 00 00 4C 1A 66 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 07 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 07 00 4C 1A 00 00 00 00 00 36 0C AF [17:36:34]RasterBufferAndPrint [17:36:34]line [17:36:34]line [17:36:34]line [17:36:34]line [17:36:34]line [17:36:34]written 0, free lines is 3135 [17:36:34]MH_Cut [17:36:34]Write to MH i2c: D1 01 00 53 1A 01 3F [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: D1 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: D1 01 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: D1 01 00 53 1A 00 3E [17:36:34]Write to MH i2c: 01 00 00 54 1A 6E [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]OFD Sender: No OFD packet to send [17:36:35]*** Cut start [17:36:35]*** Partial cut [17:36:35]*** CUTSNS_PIN = 1 [17:36:35]*** CUTSNS_PIN = 0 [17:36:35]*** Brake cut motor [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]*** Stop cut motor [17:36:35]*** Cut end [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 54 1A 00 00 00 00 00 FF 0F 83 [17:36:35]process_action close_receipt done [17:36:35]requested_data is exist [17:36:35]produce_requested_data [17:36:35]requested_item fm.sn is exist - process it [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 11 00 00 [17:36:35]Write to MH i2c: E2 08 00 55 1A 80 11 00 00 00 00 00 00 E9 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 55 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 42 [17:36: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:36:35]wFMCommunicate OK [17:36:35]requested_item fd.num is exist - process it [17:36:35]SAM_PROTO_GetFieldsCounters [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 13 00 00 [17:36:35]Write to MH i2c: E2 08 00 56 1A 80 13 00 00 00 00 00 00 EC [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 62 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 62 00 56 1A 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 F6 00 00 0E 04 04 00 20 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 F7 [17:36: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 87 F6 00 00 0E 04 04 00 20 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 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_GetFieldsCounters done [17:36:35]requested_item shift.num is exist - process it [17:36:35]requested_item shift.opened is exist - process it [17:36:35]req_shift_opened [17:36:35]FM_GetShiftState [17:36:35]SAM_PROTO_GetShiftState [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 13 01 00 [17:36:35]Write to MH i2c: E2 08 00 57 1A 80 13 01 00 00 00 00 00 EE [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0E 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0E 00 57 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 4E [17:36:35]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_GetShiftState done [17:36:35]FM_GetShiftState done [17:36:35]req_shift_opened done [17:36:35]requested_item shift.open_date is exist - process it [17:36:35]req_shift_open_date [17:36:35]req_shift_open_date done [17:36:35]produce_requested_data done [17:36:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63111,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [17:36:35]process_action_free close_receipt [17:36:35]json_value_free [17:36:35]json_value_free done [17:36:35]process_json_proto returns [17:36:35]Send response to host [17:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63111,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [17:36:35]free response buf [17:36:35]execute_script done [17:36:35]execute_script returns [17:36:35]free content buf [17:36:35]Sock 9.Close socket [17:36:35]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54: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:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]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:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:54]accept exits with 10 [18:05:54]New connection [18:05:54]New thread 3067055460 created [18:05:54]Thread 3067198820 joined [18:05:54]Waiting for new connection... [18:05:54] Sock 10.Parse request [18:05:54]Sock 10.Check first char [18:05:54]Sock 10.First char is OK [18:05:54]request: POST /json_proto HTTP/1.0 [18:05:54]Method: POST [18:05:54]URL: /json_proto [18:05:54]Method is POST - this is cgi request [18:05:54]url: /json_proto [18:05:54]query_string will be loaded in cgi processing [18:05:54]execute_cgi json_proto POST (null) [18:05:54]execute_cgi path=json_proto method=POST [18:05:54]POST find Content-Length [18:05:54]Host: 172.17.42.132:8080 [18:05:54]Content-Length: 622 [18:05:54]Content-Type: application/json [18:05:54] [18:05:54]POST finish read [18:05:54]Found Content-Length = 622 [18:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47422", "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" ] } } [18:05:54]execute_script... [18:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47422", "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" ] } } [18:05:54]POST & json_proto [18:05:54]process_json_proto [18:05:54]json parsed OK: [18:05:54]protocol is kg_v1.0 [18:05:54]action value=close_receipt [18:05:54]process_action close_receipt [18:05:54]cmd_close_receipt [18:05:54]MH_GetDate [18:05:54]Write to MH i2c: F0 00 00 58 1A 61 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 58 1A 00 06 98 16 67 4C DF 56 66 6C [18:05:54]GetLastDocTimeStamp 1729532194 [18:05:54]current date 1729533958 [18:05:54]FM_GetShiftState [18:05:54]SAM_PROTO_GetShiftState [18:05:54]wFMCommunicate request_size=4 [18:05:54]MH_SAM_APDU [18:05:54]CAPDU: 80 13 01 00 [18:05:54]Write to MH i2c: E2 08 00 59 1A 80 13 01 00 00 00 00 00 F0 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:54]Read from MH i2c: E2 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 59 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 50 [18:05:54]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:05:54]wFMCommunicate OK [18:05:54]SAM_PROTO_GetShiftState done [18:05:54]FM_GetShiftState done [18:05:54]opened in 1729469755 [18:05:54]opened+sec_in_day 1729556155 [18:05:54]quantity*price = 14400 [18:05:54]sum+1 = 14401 [18:05:54]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 СНО: Общий режим Чек 109 21.10.2024 18:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63112 ФПД: 166724371674101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180558&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63112&fm=166724371674101&tin=02508201610067®Number=0000000000091619&sum=14400 0 [18:05:56]StoreToDocumentArchive [18:05:56]shift 544 fd 63112 [18:05:56]save to /storage/0544/doc_00063112 [18:05:56]save last doc name /storage/0544/doc_00063112 to /storage/kkm_last_doc_name [18:05:56]save OK [18:05:56]Clear old archive folders... [18:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:05:56]tlvbuf is B6F16AA0 [18:05:56]SAM_PROTO_ClearQueue [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 09 00 00 [18:05:56]Write to MH i2c: E2 08 00 66 1A 80 09 00 00 00 00 00 00 F2 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]SAM_PROTO_ClearQueue done [18:05:56]KKMCreateOFDPacket [18:05:56]OFDProtocolAddRootSTLVToBuf [18:05:56]FM_MakeSignedData [18:05:56]FM_MakeSignedData [18:05:56]SAM_PROTO_SignData [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 0D 01 02 [18:05:56]Write to MH i2c: E2 08 00 67 1A 80 0D 01 02 00 00 00 00 FA [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]wFMCommunicate request_size=255 [18:05:56]MH_SAM_APDU [18:05:56]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 6D 00 00 00 F4 03 04 00 06 98 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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:56]Write to MH i2c: E2 02 01 68 1A 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 6D 00 00 00 F4 03 04 00 06 98 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 AA [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]wFMCommunicate request_size=34 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F6 00 00 35 04 06 00 97 A2 8A F2 F3 F5 [18:05:56]Write to MH i2c: E2 25 00 69 1A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F6 00 00 35 04 06 00 97 A2 8A F2 F3 F5 00 00 DF [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 69 1A 00 90 00 F7 [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 0D 03 02 [18:05:56]Write to MH i2c: E2 08 00 6A 1A 80 0D 03 02 00 00 00 00 FF [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 0B 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 0B 00 6A 1A 00 48 D8 89 8A 9E 2C AD 17 90 00 C1 [18:05:56]RAPDU: 48 D8 89 8A 9E 2C AD 17 90 00 [18:05:56]wFMCommunicate OK [18:05:56]SAM_PROTO_SignData done [18:05:56]FM_MakeSignedData done [18:05:56]CreateOFDProtocolMessage [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 11 00 00 [18:05:56]Write to MH i2c: E2 08 00 6B 1A 80 11 00 00 00 00 00 00 FF [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 6B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [18:05:56]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:56]wFMCommunicate OK [18:05:56]CreateOFDProtocolMessage done [18:05:56]OFDSenderStorePacket 63112 [18:05:56]StoreOFDPacket docnum=63112 [18:05: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 27 01 00 00 99 24 1F 01 A9 03 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 6D 00 00 00 F4 03 04 00 06 98 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 97 A2 8A F2 F3 F5 48 D8 89 8A 9E 2C AD 17 [18:05:56]CheckFolder [18:05:56]dirname=/storage/ofd_packets [18:05:56]CheckFolder done [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00063112 [18:05:56]NVStorageSaveData ofd_packets/00063112 [18:05:56]File name is /storage/ofd_packets/00063112 [18:05:56]Write 325 bytes [18:05:56]NVStorageSaveData done [18:05:56]OFDSenderStorePacket done [18:05:56]KKMCreateOFDPacket done [18:05:56]NVStorageSaveData kkm_last_timestamp [18:05:56]File name is /storage/kkm_last_timestamp [18:05:56]Write 4 bytes [18:05:56]NVStorageSaveData done [18:05:56]ExternCall_PrintAddStr [18:05:56]wPrintStart [18:05:56]Write to MH i2c: 01 00 00 6C 1A 86 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 6C 1A 00 00 00 00 00 FF 0F 9B [18:05:56]RasterBufferAndPrint [18:05:56]line Счет N : (3)47422 [18:05:56]line ИНН: 02508201610067 [18:05:56]line Контрольно-Кассовый Чек [18:05:56]line ПРОДАЖА [18:05:56]line Товар: 48743587 [18:05:56]line Сигареты Winston XStyle Silver [18:05:56]line 1.000 * 144.00 [18:05:56]line = 144.00 [18:05:56]line НДС 12% НСП 1% [18:05:56]line > о реализуемом товаре [18:05:56]line ИТОГО: 144.00 [18:05:56]line НСП 1% : 1.27 [18:05:56]line НДС 12% : 15.29 [18:05:56]line Наличными: 144.00 [18:05:56]line Безнал.: 0.00 [18:05:56]line Место: АЗС № 86 "Партнер Нефть" [18:05:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:05:56]line СНО: Общий режим [18:05:56]line Чек 109 21.10.2024 18:05 [18:05:56]line Смена: 544 ФФД: 1.0 [18:05:56]line ЗНМ: 0300000154 [18:05:56]line РНМ: 0000000000091619 [18:05:56]line Версия ККМ: 001 [18:05:56]line ФМ: 0000000000874676 [18:05:56]line ФД: 63112 [18:05:56]line ФПД: 166724371674101 [18:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180558&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63112&fm=166724371674101&tin=02508201610067®Number=0000000000091619&sum=14400 [18:05:56]OFD Sender: Processing packet 63112 [packets to send 232, broken 231] [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00063112 [18:05:56]OFD Sender: To server: pG, [18:05:56]CommunicateWithHost lk.salyk.kg:30040 [18:05:56]ConnectInit lk.salyk.kg [18:05:56]line 0 [18:05:56]written 0, free lines is 4095 [18:05:57]Connected sock=7 [18:05: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 27 01 00 00 99 24 1F 01 A9 03 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 6D 00 00 00 F4 03 04 00 06 98 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 97 A2 8A F2 F3 F5 48 D8 89 8A 9E 2C AD 17 [18:05:57]Write to MH i2c: 01 00 00 95 1A AF [18:05:57]Write i2c OK [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: 01 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: 01 07 00 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 0C 0D CF [18:05:57]RasterBufferAndPrint [18:05:57]line [18:05:57]line [18:05:57]line [18:05:57]line [18:05:57]line [18:05:57]written 0, free lines is 3349 [18:05:57]MH_Cut [18:05:57]Write to MH i2c: D1 01 00 9C 1A 01 88 [18:05:57]Write i2c OK [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: D1 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: D1 01 00 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: D1 01 00 9C 1A 00 87 [18:05:57]Write to MH i2c: 01 00 00 9D 1A B7 [18:05:57]Write i2c OK [18:05:57]MH_I2C_Read... [18:05: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 BA 40 47 00 04 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F6 00 00 F4 03 04 00 03 42 16 67 B6 04 01 00 00 A5 FD D6 06 4C FF EE 47 [18:05:57]CommunicateWithHost err = 0 [18:05:57]CheckOFDResponse [18:05:57]1017 (14) - 77093643461234 [18:05:57]1041 (16) - 0000000000874676 [18:05:57]1040 (4) - 63112 [18:05:57]1012 (4) - 21.10.2024 11:58 [18:05:57]1206 (1) - 0 [18:05:57]OFD Sender: Remove packet 63112 [18:05:57]ProducePacketName [18:05:57]name=ofd_packets/00063112 [18:05:57]NVStorageDeleteData [18:05:58]OFD Sender: No OFD packet to send [18:05:58]*** Cut start [18:05:58]*** Partial cut [18:05:58]*** CUTSNS_PIN = 1 [18:05:58]*** CUTSNS_PIN = 0 [18:05:58]*** Brake cut motor [18:05:58]Read from MH i2c: 01 [18:05:58]MH_I2C_Read... [18:05:58]*** Stop cut motor [18:05:58]*** Cut end [18:05:58]Read from MH i2c: 01 07 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [18:05:58]process_action close_receipt done [18:05:58]requested_data is exist [18:05:58]produce_requested_data [18:05:58]requested_item fm.sn is exist - process it [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 11 00 00 [18:05:58]Write to MH i2c: E2 08 00 9E 1A 80 11 00 00 00 00 00 00 32 [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 17 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 17 00 9E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8B [18:05:58]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:58]wFMCommunicate OK [18:05:58]requested_item fd.num is exist - process it [18:05:58]SAM_PROTO_GetFieldsCounters [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 13 00 00 [18:05:58]Write to MH i2c: E2 08 00 9F 1A 80 13 00 00 00 00 00 00 35 [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 62 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 62 00 9F 1A 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 F6 00 00 0E 04 04 00 20 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 44 [18:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 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 [18:05:58]wFMCommunicate OK [18:05:58]SAM_PROTO_GetFieldsCounters done [18:05:58]requested_item shift.num is exist - process it [18:05:58]requested_item shift.opened is exist - process it [18:05:58]req_shift_opened [18:05:58]FM_GetShiftState [18:05:58]SAM_PROTO_GetShiftState [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 13 01 00 [18:05:58]Write to MH i2c: E2 08 00 A0 1A 80 13 01 00 00 00 00 00 37 [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:59]Read from MH i2c: E2 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 0E 00 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 0E 00 A0 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 97 [18:05:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:05:59]wFMCommunicate OK [18:05:59]SAM_PROTO_GetShiftState done [18:05:59]FM_GetShiftState done [18:05:59]req_shift_opened done [18:05:59]requested_item shift.open_date is exist - process it [18:05:59]req_shift_open_date [18:05:59]req_shift_open_date done [18:05:59]produce_requested_data done [18:05:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63112,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [18:05:59]process_action_free close_receipt [18:05:59]json_value_free [18:05:59]json_value_free done [18:05:59]process_json_proto returns [18:05:59]Send response to host [18:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63112,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [18:05:59]free response buf [18:05:59]execute_script done [18:05:59]execute_script returns [18:05:59]free content buf [18:05:59]Sock 10.Close socket [18:05:59]Sock 10.Thread stoped [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:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:48]accept exits with 9 [18:25:48]New connection [18:25:48]New thread 3067198820 created [18:25:48]Thread 3067055460 joined [18:25:48]Waiting for new connection... [18:25:48] Sock 9.Parse request [18:25:48]Sock 9.Check first char [18:25:48]Sock 9.First char is OK [18:25:48]request: POST /json_proto HTTP/1.0 [18:25:48]Method: POST [18:25:48]URL: /json_proto [18:25:48]Method is POST - this is cgi request [18:25:48]url: /json_proto [18:25:48]query_string will be loaded in cgi processing [18:25:48]execute_cgi json_proto POST (null) [18:25:48]execute_cgi path=json_proto method=POST [18:25:48]POST find Content-Length [18:25:48]Host: 172.17.42.132:8080 [18:25:48]Content-Length: 772 [18:25:48]Content-Type: application/json [18:25:48] [18:25:48]POST finish read [18:25:48]Found Content-Length = 772 [18:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47423", "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" ] } } [18:25:48]execute_script... [18:25: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)47423", "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" ] } } [18:25:48]POST & json_proto [18:25:48]process_json_proto [18:25:48]json parsed OK: [18:25:48]protocol is kg_v1.0 [18:25:48]action value=close_receipt [18:25:48]process_action close_receipt [18:25:48]cmd_close_receipt [18:25:48]MH_GetDate [18:25:48]Write to MH i2c: F0 00 00 A1 1A AA [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 A1 1A 00 B0 9C 16 67 4C DF 56 66 63 [18:25:48]GetLastDocTimeStamp 1729533958 [18:25:48]current date 1729535152 [18:25:48]FM_GetShiftState [18:25:48]SAM_PROTO_GetShiftState [18:25:48]wFMCommunicate request_size=4 [18:25:48]MH_SAM_APDU [18:25:48]CAPDU: 80 13 01 00 [18:25:48]Write to MH i2c: E2 08 00 A2 1A 80 13 01 00 00 00 00 00 39 [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:48]Read from MH i2c: E2 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 A2 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 99 [18:25:48]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:25:48]wFMCommunicate OK [18:25:48]SAM_PROTO_GetShiftState done [18:25:48]FM_GetShiftState done [18:25:48]opened in 1729469755 [18:25:48]opened+sec_in_day 1729556155 [18:25:48]quantity*price = 25770 [18:25:48]sum+1 = 25771 [18:25:48]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 СНО: Общий режим Чек 110 21.10.2024 18:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63113 ФПД: 196783815573200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182552&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63113&fm=196783815573200&tin=02508201610067®Number=0000000000091619&sum=25770 0 [18:25:49]StoreToDocumentArchive [18:25:49]shift 544 fd 63113 [18:25:49]save to /storage/0544/doc_00063113 [18:25:49]save last doc name /storage/0544/doc_00063113 to /storage/kkm_last_doc_name [18:25:49]save OK [18:25:49]Clear old archive folders... [18:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:25:49]tlvbuf is B6F16EB0 [18:25:49]SAM_PROTO_ClearQueue [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 09 00 00 [18:25:49]Write to MH i2c: E2 08 00 AF 1A 80 09 00 00 00 00 00 00 3B [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]SAM_PROTO_ClearQueue done [18:25:50]KKMCreateOFDPacket [18:25:50]OFDProtocolAddRootSTLVToBuf [18:25:50]FM_MakeSignedData [18:25:50]FM_MakeSignedData [18:25:50]SAM_PROTO_SignData [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 0D 01 02 [18:25:50]Write to MH i2c: E2 08 00 B0 1A 80 0D 01 02 00 00 00 00 43 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]wFMCommunicate request_size=255 [18:25:50]MH_SAM_APDU [18:25:50]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 6E 00 00 00 F4 03 04 00 B0 9C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [18:25:50]Write to MH i2c: E2 02 01 B1 1A 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 6E 00 00 00 F4 03 04 00 B0 9C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 24 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]wFMCommunicate request_size=41 [18:25:50]MH_SAM_APDU [18:25:50]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 89 F6 00 00 35 04 06 00 B2 F9 4D 6C BE D0 [18:25:50]Write to MH i2c: E2 2C 00 B2 1A 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 89 F6 00 00 35 04 06 00 B2 F9 4D 6C BE D0 00 00 8C [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 0D 03 02 [18:25:50]Write to MH i2c: E2 08 00 B3 1A 80 0D 03 02 00 00 00 00 48 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 B3 1A 00 DB 8A D1 3F C3 3C C3 8D 90 00 0D [18:25:50]RAPDU: DB 8A D1 3F C3 3C C3 8D 90 00 [18:25:50]wFMCommunicate OK [18:25:50]SAM_PROTO_SignData done [18:25:50]FM_MakeSignedData done [18:25:50]CreateOFDProtocolMessage [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 11 00 00 [18:25:50]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A1 [18:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:25:50]wFMCommunicate OK [18:25:50]CreateOFDProtocolMessage done [18:25:50]OFDSenderStorePacket 63113 [18:25:50]StoreOFDPacket docnum=63113 [18:25: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 2E 01 00 00 91 FD 26 01 A4 D4 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 6E 00 00 00 F4 03 04 00 B0 9C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 F9 4D 6C BE D0 DB 8A D1 3F C3 3C C3 8D [18:25:50]CheckFolder [18:25:50]dirname=/storage/ofd_packets [18:25:50]CheckFolder done [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00063113 [18:25:50]NVStorageSaveData ofd_packets/00063113 [18:25:50]File name is /storage/ofd_packets/00063113 [18:25:50]Write 332 bytes [18:25:50]NVStorageSaveData done [18:25:50]OFDSenderStorePacket done [18:25:50]KKMCreateOFDPacket done [18:25:50]NVStorageSaveData kkm_last_timestamp [18:25:50]File name is /storage/kkm_last_timestamp [18:25:50]Write 4 bytes [18:25:50]NVStorageSaveData done [18:25:50]ExternCall_PrintAddStr [18:25:50]wPrintStart [18:25:50]Write to MH i2c: 01 00 00 B5 1A CF [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 B5 1A 00 00 00 00 00 FF 0F E4 [18:25:50]RasterBufferAndPrint [18:25:50]line Счет N : (3)47423 [18:25:50]line ИНН: 02508201610067 [18:25:50]line Контрольно-Кассовый Чек [18:25:50]line ПРОДАЖА [18:25:50]line Товар: 2000036220012 [18:25:50]line Кофе Капучино XL(GABB TRADE) [18:25:50]line 2.000 * 128.85 [18:25:50]line = 257.70 [18:25:50]line НДС 12% НСП 1% [18:25:50]line > о реализуемом товаре [18:25:50]line ИТОГО: 257.70 [18:25:50]line НСП 1% : 2.28 [18:25:50]line НДС 12% : 27.37 [18:25:50]line Наличными: 0.00 [18:25:50]line Безнал.: 257.70 [18:25:50]line Место: АЗС № 86 "Партнер Нефть" [18:25:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:25:50]line СНО: Общий режим [18:25:50]line Чек 110 21.10.2024 18:25 [18:25:50]line Смена: 544 ФФД: 1.0 [18:25:50]line ЗНМ: 0300000154 [18:25:50]line РНМ: 0000000000091619 [18:25:50]line Версия ККМ: 001 [18:25:50]line Платежная система: Mbank [18:25:50]line ФМ: 0000000000874676 [18:25:50]line ФД: 63113 [18:25:50]line ФПД: 196783815573200 [18:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182552&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63113&fm=196783815573200&tin=02508201610067®Number=0000000000091619&sum=25770 [18:25:50]line 0 [18:25:50]OFD Sender: Processing packet 63113 [packets to send 232, broken 231] [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00063113 [18:25:50]OFD Sender: To server: pG, [18:25:50]CommunicateWithHost lk.salyk.kg:30040 [18:25:50]ConnectInit lk.salyk.kg [18:25:50]written 0, free lines is 4095 [18:25:51]Connected sock=10 [18:25: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 2E 01 00 00 91 FD 26 01 A4 D4 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 6E 00 00 00 F4 03 04 00 B0 9C 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B2 F9 4D 6C BE D0 DB 8A D1 3F C3 3C C3 8D [18:25:51]Write to MH i2c: 01 00 00 DF 1A F9 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 07 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 0C 0D 19 [18:25:51]RasterBufferAndPrint [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]written 0, free lines is 3347 [18:25:51]MH_Cut [18:25:51]Write to MH i2c: D1 01 00 E6 1A 01 D2 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 01 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 01 00 E6 1A 00 D1 [18:25:51]Write to MH i2c: 01 00 00 E7 1A 01 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25: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 8B D2 47 00 DC 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F6 00 00 F4 03 04 00 AD 46 16 67 B6 04 01 00 00 BD 0D BA 51 68 43 9A 1D [18:25:51]CommunicateWithHost err = 0 [18:25:51]CheckOFDResponse [18:25:51]1017 (14) - 77093643461234 [18:25:51]1041 (16) - 0000000000874676 [18:25:51]1040 (4) - 63113 [18:25:51]1012 (4) - 21.10.2024 12:18 [18:25:51]1206 (1) - 0 [18:25:51]OFD Sender: Remove packet 63113 [18:25:51]ProducePacketName [18:25:51]name=ofd_packets/00063113 [18:25:51]NVStorageDeleteData [18:25:51]OFD Sender: No OFD packet to send [18:25:51]*** Cut start [18:25:51]*** Partial cut [18:25:51]*** CUTSNS_PIN = 1 [18:25:52]*** CUTSNS_PIN = 0 [18:25:52]*** Brake cut motor [18:25:52]Read from MH i2c: 01 [18:25:52]MH_I2C_Read... [18:25:52]*** Stop cut motor [18:25:52]*** Cut end [18:25:52]Read from MH i2c: 01 07 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 FF 0F 16 [18:25:52]process_action close_receipt done [18:25:52]requested_data is exist [18:25:52]produce_requested_data [18:25:52]requested_item fm.sn is exist - process it [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 11 00 00 [18:25:52]Write to MH i2c: E2 08 00 E8 1A 80 11 00 00 00 00 00 00 7C [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 E8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D5 [18:25: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:25:52]wFMCommunicate OK [18:25:52]requested_item fd.num is exist - process it [18:25:52]SAM_PROTO_GetFieldsCounters [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 00 00 [18:25:52]Write to MH i2c: E2 08 00 E9 1A 80 13 00 00 00 00 00 00 7F [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 E9 1A 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 F6 00 00 0E 04 04 00 20 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 92 [18:25: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 89 F6 00 00 0E 04 04 00 20 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 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetFieldsCounters done [18:25:52]requested_item shift.num is exist - process it [18:25:52]requested_item shift.opened is exist - process it [18:25:52]req_shift_opened [18:25:52]FM_GetShiftState [18:25:52]SAM_PROTO_GetShiftState [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 01 00 [18:25:52]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E1 [18:25:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetShiftState done [18:25:52]FM_GetShiftState done [18:25:52]req_shift_opened done [18:25:52]requested_item shift.open_date is exist - process it [18:25:52]req_shift_open_date [18:25:52]req_shift_open_date done [18:25:52]produce_requested_data done [18:25:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63113,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [18:25:52]process_action_free close_receipt [18:25:52]json_value_free [18:25:52]json_value_free done [18:25:52]process_json_proto returns [18:25:52]Send response to host [18:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63113,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [18:25:52]free response buf [18:25:52]execute_script done [18:25:52]execute_script returns [18:25:52]free content buf [18:25:52]Sock 9.Close socket [18:25:52]Sock 9.Thread stoped [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:23]accept exits with 7 [18:43:23]New connection [18:43:23]New thread 3067055460 created [18:43:23]Thread 3067198820 joined [18:43:23]Waiting for new connection... [18:43:23] Sock 7.Parse request [18:43:23]Sock 7.Check first char [18:43:23]Sock 7.First char is OK [18:43:23]request: POST /json_proto HTTP/1.0 [18:43:23]Method: POST [18:43:23]URL: /json_proto [18:43:23]Method is POST - this is cgi request [18:43:23]url: /json_proto [18:43:23]query_string will be loaded in cgi processing [18:43:23]execute_cgi json_proto POST (null) [18:43:23]execute_cgi path=json_proto method=POST [18:43:23]POST find Content-Length [18:43:23]Host: 172.17.42.132:8080 [18:43:23]Content-Length: 670 [18:43:23]Content-Type: application/json [18:43:23] [18:43:23]POST finish read [18:43:23]Found Content-Length = 670 [18:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47424", "tax_sys" : 0, "items" : [ { "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" : 2.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" ] } } [18:43:23]execute_script... [18:43: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)47424", "tax_sys" : 0, "items" : [ { "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" : 2.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" ] } } [18:43:23]POST & json_proto [18:43:23]process_json_proto [18:43:23]json parsed OK: [18:43:23]protocol is kg_v1.0 [18:43:23]action value=close_receipt [18:43:23]process_action close_receipt [18:43:23]cmd_close_receipt [18:43:23]MH_GetDate [18:43:23]Write to MH i2c: F0 00 00 EB 1A F4 [18:43:23]Write i2c OK [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 09 00 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 09 00 EB 1A 00 CF A0 16 67 4C DF 56 66 D0 [18:43:23]GetLastDocTimeStamp 1729535152 [18:43:23]current date 1729536207 [18:43:23]FM_GetShiftState [18:43:23]SAM_PROTO_GetShiftState [18:43:23]wFMCommunicate request_size=4 [18:43:23]MH_SAM_APDU [18:43:23]CAPDU: 80 13 01 00 [18:43:23]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [18:43:23]Write i2c OK [18:43:23]MH_I2C_Read... [18:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:23]Read from MH i2c: E2 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E3 [18:43:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:43:23]wFMCommunicate OK [18:43:23]SAM_PROTO_GetShiftState done [18:43:23]FM_GetShiftState done [18:43:23]opened in 1729469755 [18:43:23]opened+sec_in_day 1729556155 [18:43:23]quantity*price = 10000 [18:43:23]sum+1 = 10001 [18:43:23]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 СНО: Общий режим Чек 111 21.10.2024 18:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63114 ФПД: 120705387741082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184327&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63114&fm=120705387741082&tin=02508201610067®Number=0000000000091619&sum=10000 0 [18:43:24]StoreToDocumentArchive [18:43:24]shift 544 fd 63114 [18:43:24]save to /storage/0544/doc_00063114 [18:43:24]save last doc name /storage/0544/doc_00063114 to /storage/kkm_last_doc_name [18:43:24]save OK [18:43:24]Clear old archive folders... [18:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=292 [18:43:24]tlvbuf is 018BD950 [18:43:24]SAM_PROTO_ClearQueue [18:43:24]wFMCommunicate request_size=4 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 09 00 00 [18:43:24]Write to MH i2c: E2 08 00 F9 1A 80 09 00 00 00 00 00 00 85 [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:24]Read from MH i2c: E2 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [18:43:24]RAPDU: 90 00 [18:43:24]wFMCommunicate OK [18:43:24]SAM_PROTO_ClearQueue done [18:43:24]KKMCreateOFDPacket [18:43:24]OFDProtocolAddRootSTLVToBuf [18:43:24]FM_MakeSignedData [18:43:24]FM_MakeSignedData [18:43:24]SAM_PROTO_SignData [18:43:24]wFMCommunicate request_size=4 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 0D 01 02 [18:43:24]Write to MH i2c: E2 08 00 FA 1A 80 0D 01 02 00 00 00 00 8D [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:24]Read from MH i2c: E2 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [18:43:24]RAPDU: 90 00 [18:43:24]wFMCommunicate OK [18:43:24]wFMCommunicate request_size=255 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 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 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 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 6F 00 00 00 F4 03 04 00 CF A0 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [18:43:24]Write to MH i2c: E2 02 01 FB 1A 80 0D 02 02 FA 00 03 00 24 01 1E 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 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 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 6F 00 00 00 F4 03 04 00 CF A0 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 5C [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=51 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 6D C7 E9 C2 3F 9A [18:43:25]Write to MH i2c: E2 36 00 FC 1A 80 0D 02 02 2E 00 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 6D C7 E9 C2 3F 9A 00 00 60 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 03 02 [18:43:25]Write to MH i2c: E2 08 00 FD 1A 80 0D 03 02 00 00 00 00 92 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 FD 1A 00 A2 78 6D 02 D3 76 80 DB 90 00 C0 [18:43:25]RAPDU: A2 78 6D 02 D3 76 80 DB 90 00 [18:43:25]wFMCommunicate OK [18:43:25]SAM_PROTO_SignData done [18:43:25]FM_MakeSignedData done [18:43:25]CreateOFDProtocolMessage [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 11 00 00 [18:43:25]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EB [18:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:43:25]wFMCommunicate OK [18:43:25]CreateOFDProtocolMessage done [18:43:25]OFDSenderStorePacket 63114 [18:43:25]StoreOFDPacket docnum=63114 [18:43: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 38 01 00 00 92 B1 30 01 AE 90 5A 03 01 00 03 00 24 01 1E 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 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 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 6F 00 00 00 F4 03 04 00 CF A0 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 6D C7 E9 C2 3F 9A A2 78 6D 02 D3 76 80 DB [18:43:25]CheckFolder [18:43:25]dirname=/storage/ofd_packets [18:43:25]CheckFolder done [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00063114 [18:43:25]NVStorageSaveData ofd_packets/00063114 [18:43:25]File name is /storage/ofd_packets/00063114 [18:43:25]Write 342 bytes [18:43:25]NVStorageSaveData done [18:43:25]OFDSenderStorePacket done [18:43:25]KKMCreateOFDPacket done [18:43:25]NVStorageSaveData kkm_last_timestamp [18:43:25]File name is /storage/kkm_last_timestamp [18:43:25]Write 4 bytes [18:43:25]NVStorageSaveData done [18:43:25]ExternCall_PrintAddStr [18:43:25]wPrintStart [18:43:25]Write to MH i2c: 01 00 00 FF 1A 19 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 FF 1A 00 00 00 00 00 FF 0F 2E [18:43:25]RasterBufferAndPrint [18:43:25]line Счет N : (3)47424 [18:43:25]line ИНН: 02508201610067 [18:43:25]line Контрольно-Кассовый Чек [18:43:25]line ПРОДАЖА [18:43:25]line Товар: 4700003010018 [18:43:25]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [18:43:25]line 2.000 * 50.00 [18:43:25]line = 100.00 [18:43:25]line НДС 12% НСП 1% [18:43:25]line > о реализуемом товаре [18:43:25]line ИТОГО: 100.00 [18:43:25]line НСП 1% : 0.88 [18:43:25]line НДС 12% : 10.62 [18:43:25]line Наличными: 100.00 [18:43:25]line Безнал.: 0.00 [18:43:25]line Место: АЗС № 86 "Партнер Нефть" [18:43:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:43:25]line СНО: Общий режим [18:43:25]line Чек 111 21.10.2024 18:43 [18:43:25]line Смена: 544 ФФД: 1.0 [18:43:25]line ЗНМ: 0300000154 [18:43:25]line РНМ: 0000000000091619 [18:43:25]line Версия ККМ: 001 [18:43:25]line ФМ: 0000000000874676 [18:43:25]line ФД: 63114 [18:43:25]line ФПД: 120705387741082 [18:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184327&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63114&fm=120705387741082&tin=02508201610067®Number=0000000000091619&sum=10000 [18:43:25]line 0 [18:43:25]written 0, free lines is 4095 [18:43:25]OFD Sender: Processing packet 63114 [packets to send 232, broken 231] [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00063114 [18:43:25]OFD Sender: To server: pG, [18:43:25]CommunicateWithHost lk.salyk.kg:30040 [18:43:25]ConnectInit lk.salyk.kg [18:43:25]Connected sock=9 [18:43: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 38 01 00 00 92 B1 30 01 AE 90 5A 03 01 00 03 00 24 01 1E 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 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 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 6F 00 00 00 F4 03 04 00 CF A0 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 6D C7 E9 C2 3F 9A A2 78 6D 02 D3 76 80 DB [18:43:25]Write to MH i2c: 01 00 00 28 1B 43 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 1F 0D 76 [18:43:25]RasterBufferAndPrint [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]written 0, free lines is 3365 [18:43:25]MH_Cut [18:43:25]Write to MH i2c: D1 01 00 2F 1B 01 1C [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 01 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 01 00 2F 1B 00 1B [18:43:25]Write to MH i2c: 01 00 00 30 1B 4B [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43: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 A6 D1 47 00 35 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8A F6 00 00 F4 03 04 00 CB 4A 16 67 B6 04 01 00 00 80 EF 36 1D 0F 56 CB A4 [18:43:26]CommunicateWithHost err = 0 [18:43:26]CheckOFDResponse [18:43:26]1017 (14) - 77093643461234 [18:43:26]1041 (16) - 0000000000874676 [18:43:26]1040 (4) - 63114 [18:43:26]1012 (4) - 21.10.2024 12:36 [18:43:26]1206 (1) - 0 [18:43:26]OFD Sender: Remove packet 63114 [18:43:26]ProducePacketName [18:43:26]name=ofd_packets/00063114 [18:43:26]NVStorageDeleteData [18:43:26]*** Cut start [18:43:26]*** Partial cut [18:43:26]*** CUTSNS_PIN = 1 [18:43:26]*** CUTSNS_PIN = 0 [18:43:26]OFD Sender: No OFD packet to send [18:43:26]*** Brake cut motor [18:43:27]Read from MH i2c: 01 [18:43:27]MH_I2C_Read... [18:43:27]*** Stop cut motor [18:43:27]*** Cut end [18:43:27]Read from MH i2c: 01 07 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: 01 07 00 30 1B 00 00 00 00 00 FF 0F 60 [18:43:27]process_action close_receipt done [18:43:27]requested_data is exist [18:43:27]produce_requested_data [18:43:27]requested_item fm.sn is exist - process it [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 11 00 00 [18:43:27]Write to MH i2c: E2 08 00 31 1B 80 11 00 00 00 00 00 00 C6 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 17 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 17 00 31 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1F [18:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:43:27]wFMCommunicate OK [18:43:27]requested_item fd.num is exist - process it [18:43:27]SAM_PROTO_GetFieldsCounters [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 13 00 00 [18:43:27]Write to MH i2c: E2 08 00 32 1B 80 13 00 00 00 00 00 00 C9 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 62 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 62 00 32 1B 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 F6 00 00 0E 04 04 00 20 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 E0 [18:43: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 8A F6 00 00 0E 04 04 00 20 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 [18:43:27]wFMCommunicate OK [18:43:27]SAM_PROTO_GetFieldsCounters done [18:43:27]requested_item shift.num is exist - process it [18:43:27]requested_item shift.opened is exist - process it [18:43:27]req_shift_opened [18:43:27]FM_GetShiftState [18:43:27]SAM_PROTO_GetShiftState [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 13 01 00 [18:43:27]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0E 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2B [18:43:27]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:43:27]wFMCommunicate OK [18:43:27]SAM_PROTO_GetShiftState done [18:43:27]FM_GetShiftState done [18:43:27]req_shift_opened done [18:43:27]requested_item shift.open_date is exist - process it [18:43:27]req_shift_open_date [18:43:27]req_shift_open_date done [18:43:27]produce_requested_data done [18:43:27]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63114,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [18:43:27]process_action_free close_receipt [18:43:27]json_value_free [18:43:27]json_value_free done [18:43:27]process_json_proto returns [18:43:27]Send response to host [18:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63114,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [18:43:27]free response buf [18:43:27]execute_script done [18:43:27]execute_script returns [18:43:27]free content buf [18:43:27]Sock 7.Close socket [18:43:27]Sock 7.Thread stoped [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:45]accept exits with 10 [18:48:45]New connection [18:48:45]New thread 3067198820 created [18:48:45]Thread 3067055460 joined [18:48:45]Waiting for new connection... [18:48:45] Sock 10.Parse request [18:48:45]Sock 10.Check first char [18:48:45]Sock 10.First char is OK [18:48:45]request: POST /json_proto HTTP/1.0 [18:48:45]Method: POST [18:48:45]URL: /json_proto [18:48:45]Method is POST - this is cgi request [18:48:45]url: /json_proto [18:48:45]query_string will be loaded in cgi processing [18:48:45]execute_cgi json_proto POST (null) [18:48:45]execute_cgi path=json_proto method=POST [18:48:45]POST find Content-Length [18:48:45]Host: 172.17.42.132:8080 [18:48:45]Content-Length: 1037 [18:48:45]Content-Type: application/json [18:48:45] [18:48:45]POST finish read [18:48:45]Found Content-Length = 1037 [18:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47425", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 49.56, "quantity" : 2.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 58.48, "quantity" : 1.000, "sum" : 58.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" : 157.60 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:45]execute_script... [18:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47425", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 49.56, "quantity" : 2.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 58.48, "quantity" : 1.000, "sum" : 58.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" : 157.60 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:45]POST & json_proto [18:48:45]process_json_proto [18:48:45]json parsed OK: [18:48:45]protocol is kg_v1.0 [18:48:45]action value=close_receipt [18:48:45]process_action close_receipt [18:48:45]cmd_close_receipt [18:48:45]MH_GetDate [18:48:45]Write to MH i2c: F0 00 00 34 1B 3E [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 09 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 09 00 34 1B 00 11 A2 16 67 4C DF 56 66 5E [18:48:45]GetLastDocTimeStamp 1729536207 [18:48:45]current date 1729536529 [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 35 1B 80 13 01 00 00 00 00 00 CD [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 35 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2D [18:48:46]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_GetShiftState done [18:48:46]FM_GetShiftState done [18:48:46]opened in 1729469755 [18:48:46]opened+sec_in_day 1729556155 [18:48:46]quantity*price = 9912 [18:48:46]sum+1 = 9913 [18:48:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100091108 Шок Батончик Марс 50г 1.000 * 58.48 = 58.48 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 157.60 НСП 1% : 1.40 НДС 12% : 16.74 Наличными: 0.00 Безнал.: 157.60 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 112 21.10.2024 18:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63115 ФПД: 129736544812912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184849&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63115&fm=129736544812912&tin=02508201610067®Number=0000000000091619&sum=15760 0 [18:48:47]StoreToDocumentArchive [18:48:47]shift 544 fd 63115 [18:48:47]save to /storage/0544/doc_00063115 [18:48:47]save last doc name /storage/0544/doc_00063115 to /storage/kkm_last_doc_name [18:48:47]save OK [18:48:47]Clear old archive folders... [18:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=381 [18:48:47]tlvbuf is B6F168F0 [18:48:47]SAM_PROTO_ClearQueue [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 09 00 00 [18:48:47]Write to MH i2c: E2 08 00 42 1B 80 09 00 00 00 00 00 00 CF [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [18:48:47]RAPDU: 90 00 [18:48:47]wFMCommunicate OK [18:48:47]SAM_PROTO_ClearQueue done [18:48:47]KKMCreateOFDPacket [18:48:47]OFDProtocolAddRootSTLVToBuf [18:48:47]FM_MakeSignedData [18:48:47]FM_MakeSignedData [18:48:47]SAM_PROTO_SignData [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 0D 01 02 [18:48:47]Write to MH i2c: E2 08 00 43 1B 80 0D 01 02 00 00 00 00 D7 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [18:48:47]RAPDU: 90 00 [18:48:47]wFMCommunicate OK [18:48:47]wFMCommunicate request_size=255 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 [18:48:47]Write to MH i2c: E2 02 01 44 1B 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [18:48:47]RAPDU: 90 00 [18:48:47]wFMCommunicate OK [18:48:47]wFMCommunicate request_size=140 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 11 A2 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 75 FE A4 AA FF 70 [18:48:47]Write to MH i2c: E2 8F 00 45 1B 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 11 A2 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 75 FE A4 AA FF 70 00 00 EC [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [18:48:47]RAPDU: 90 00 [18:48:47]wFMCommunicate OK [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 0D 03 02 [18:48:47]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0B 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0B 00 46 1B 00 15 7B 0C 46 A4 F6 43 C7 90 00 63 [18:48:47]RAPDU: 15 7B 0C 46 A4 F6 43 C7 90 00 [18:48:47]wFMCommunicate OK [18:48:47]SAM_PROTO_SignData done [18:48:47]FM_MakeSignedData done [18:48:47]CreateOFDProtocolMessage [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 11 00 00 [18:48:47]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 17 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 35 [18:48:47]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:47]wFMCommunicate OK [18:48:47]CreateOFDProtocolMessage done [18:48:47]OFDSenderStorePacket 63115 [18:48:47]StoreOFDPacket docnum=63115 [18:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 91 01 00 00 95 89 89 01 BD B3 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 8A 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 11 A2 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 75 FE A4 AA FF 70 15 7B 0C 46 A4 F6 43 C7 [18:48:47]CheckFolder [18:48:47]dirname=/storage/ofd_packets [18:48:47]CheckFolder done [18:48:47]ProducePacketName [18:48:47]name=ofd_packets/00063115 [18:48:47]NVStorageSaveData ofd_packets/00063115 [18:48:47]File name is /storage/ofd_packets/00063115 [18:48:47]Write 431 bytes [18:48:47]NVStorageSaveData done [18:48:47]OFDSenderStorePacket done [18:48:47]KKMCreateOFDPacket done [18:48:47]NVStorageSaveData kkm_last_timestamp [18:48:47]File name is /storage/kkm_last_timestamp [18:48:47]Write 4 bytes [18:48:47]NVStorageSaveData done [18:48:47]ExternCall_PrintAddStr [18:48:47]wPrintStart [18:48:47]Write to MH i2c: 01 00 00 48 1B 63 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [18:48:47]RasterBufferAndPrint [18:48:48]line Счет N : (3)47425 [18:48:48]line ИНН: 02508201610067 [18:48:48]line Контрольно-Кассовый Чек [18:48:48]line ПРОДАЖА [18:48:48]line Товар: 4700000160051 [18:48:48]line Вода Ыссык Ата 1л [18:48:48]line 2.000 * 49.56 [18:48:48]line = 99.12 [18:48:48]line НДС 12% НСП 1% [18:48:48]line > о реализуемом товаре [18:48:48]line Товар: 4011100091108 [18:48:48]line Шок Батончик Марс 50г [18:48:48]line 1.000 * 58.48 [18:48:48]line = 58.48 [18:48:48]line НДС 12% НСП 1% [18:48:48]line > о реализуемом товаре [18:48:48]line ИТОГО: 157.60 [18:48:48]line НСП 1% : 1.40 [18:48:48]line НДС 12% : 16.74 [18:48:48]line Наличными: 0.00 [18:48:48]line Безнал.: 157.60 [18:48:48]line Место: АЗС № 86 "Партнер Нефть" [18:48:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:48:48]line СНО: Общий режим [18:48:48]line Чек 112 21.10.2024 18:48 [18:48:48]line Смена: 544 ФФД: 1.0 [18:48:48]line ЗНМ: 0300000154 [18:48:48]line РНМ: 0000000000091619 [18:48:48]line Версия ККМ: 001 [18:48:48]line Платежная система: Mbank [18:48:48]line ФМ: 0000000000874676 [18:48:48]line ФД: 63115 [18:48:48]line ФПД: 129736544812912 [18:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184849&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63115&fm=129736544812912&tin=02508201610067®Number=0000000000091619&sum=15760 [18:48:48]line 0 [18:48:48]OFD Sender: Processing packet 63115 [packets to send 232, broken 231] [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00063115 [18:48:48]OFD Sender: To server: pG, [18:48:48]CommunicateWithHost lk.salyk.kg:30040 [18:48:48]ConnectInit lk.salyk.kg [18:48:48]written 0, free lines is 4095 [18:48:48]Connected sock=11 [18:48: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 91 01 00 00 95 89 89 01 BD B3 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 8A 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 11 A2 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 75 FE A4 AA FF 70 15 7B 0C 46 A4 F6 43 C7 [18:48:48]Write to MH i2c: 01 00 00 77 1B 92 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 77 1B 00 00 00 00 00 C6 0C 6B [18:48:48]RasterBufferAndPrint [18:48:48]line [18:48:48]line [18:48:48]line [18:48:48]line [18:48:48]line [18:48:48]written 0, free lines is 3276 [18:48:48]MH_Cut [18:48:48]Write to MH i2c: D1 01 00 7E 1B 01 6B [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: D1 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: D1 01 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: D1 01 00 7E 1B 00 6A [18:48:48]Write to MH i2c: 01 00 00 7F 1B 9A [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]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 23 34 47 00 37 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 0E 4C 16 67 B6 04 01 00 00 E6 3D 96 AA 0D 80 11 A3 [18:48:48]CommunicateWithHost err = 0 [18:48:48]CheckOFDResponse [18:48:48]1017 (14) - 77093643461234 [18:48:48]1041 (16) - 0000000000874676 [18:48:48]1040 (4) - 63115 [18:48:48]1012 (4) - 21.10.2024 12:41 [18:48:48]1206 (1) - 0 [18:48:48]OFD Sender: Remove packet 63115 [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00063115 [18:48:48]NVStorageDeleteData [18:48:49]OFD Sender: No OFD packet to send [18:48:49]*** Cut start [18:48:49]*** Partial cut [18:48:49]*** CUTSNS_PIN = 1 [18:48:49]*** CUTSNS_PIN = 0 [18:48:49]*** Brake cut motor [18:48:49]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]*** Stop cut motor [18:48:50]*** Cut end [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FF 0F AF [18:48:50]process_action close_receipt done [18:48:50]requested_data is exist [18:48:50]produce_requested_data [18:48:50]requested_item fm.sn is exist - process it [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 11 00 00 [18:48:50]Write to MH i2c: E2 08 00 80 1B 80 11 00 00 00 00 00 00 15 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 80 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6E [18:48:50]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:50]wFMCommunicate OK [18:48:50]requested_item fd.num is exist - process it [18:48:50]SAM_PROTO_GetFieldsCounters [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 13 00 00 [18:48:50]Write to MH i2c: E2 08 00 81 1B 80 13 00 00 00 00 00 00 18 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 62 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 62 00 81 1B 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:48: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 8B F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_GetFieldsCounters done [18:48:50]requested_item shift.num is exist - process it [18:48:50]requested_item shift.opened is exist - process it [18:48:50]req_shift_opened [18:48:50]FM_GetShiftState [18:48:50]SAM_PROTO_GetShiftState [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 13 01 00 [18:48:50]Write to MH i2c: E2 08 00 82 1B 80 13 01 00 00 00 00 00 1A [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0E 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0E 00 82 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 7A [18:48:50]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_GetShiftState done [18:48:50]FM_GetShiftState done [18:48:50]req_shift_opened done [18:48:50]requested_item shift.open_date is exist - process it [18:48:50]req_shift_open_date [18:48:50]req_shift_open_date done [18:48:50]produce_requested_data done [18:48:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63115,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [18:48:50]process_action_free close_receipt [18:48:50]json_value_free [18:48:50]json_value_free done [18:48:50]process_json_proto returns [18:48:50]Send response to host [18:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63115,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [18:48:50]free response buf [18:48:50]execute_script done [18:48:50]execute_script returns [18:48:50]free content buf [18:48:50]Sock 10.Close socket [18:48:50]Sock 10.Thread stoped [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51: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:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:11]accept exits with 7 [18:56:11]New connection [18:56:11]New thread 3067055460 created [18:56:11]Thread 3067198820 joined [18:56:11]Waiting for new connection... [18:56:11] Sock 7.Parse request [18:56:11]Sock 7.Check first char [18:56:11]Sock 7.First char is OK [18:56:11]request: POST /json_proto HTTP/1.0 [18:56:11]Method: POST [18:56:11]URL: /json_proto [18:56:11]Method is POST - this is cgi request [18:56:11]url: /json_proto [18:56:11]query_string will be loaded in cgi processing [18:56:11]execute_cgi json_proto POST (null) [18:56:11]execute_cgi path=json_proto method=POST [18:56:11]POST find Content-Length [18:56:11]Host: 172.17.42.132:8080 [18:56:11]Content-Length: 894 [18:56:11]Content-Type: application/json [18:56:11] [18:56:11]POST finish read [18:56:11]Found Content-Length = 894 [18:56:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47426", "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": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" ] } } [18:56:11]execute_script... [18:56: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)47426", "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": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" ] } } [18:56:11]POST & json_proto [18:56:11]process_json_proto [18:56:11]json parsed OK: [18:56:11]protocol is kg_v1.0 [18:56:11]action value=close_receipt [18:56:11]process_action close_receipt [18:56:11]cmd_close_receipt [18:56:11]MH_GetDate [18:56:11]Write to MH i2c: F0 00 00 83 1B 8D [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 83 1B 00 CF A3 16 67 4C DF 56 66 6C [18:56:11]GetLastDocTimeStamp 1729536529 [18:56:11]current date 1729536975 [18:56:11]FM_GetShiftState [18:56:11]SAM_PROTO_GetShiftState [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 13 01 00 [18:56:11]Write to MH i2c: E2 08 00 84 1B 80 13 01 00 00 00 00 00 1C [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 84 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 7C [18:56:11]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:56:11]wFMCommunicate OK [18:56:11]SAM_PROTO_GetShiftState done [18:56:11]FM_GetShiftState done [18:56:11]opened in 1729469755 [18:56:11]opened+sec_in_day 1729556155 [18:56:11]quantity*price = 6500 [18:56:11]sum+1 = 6501 [18:56:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700025313937 ВОДКА МЯГКАЯ 0,1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 113 21.10.2024 18:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63116 ФПД: 267091280116055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185615&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63116&fm=267091280116055&tin=02508201610067®Number=0000000000091619&sum=12500 0 [18:56:12]StoreToDocumentArchive [18:56:12]shift 544 fd 63116 [18:56:12]save to /storage/0544/doc_00063116 [18:56:12]save last doc name /storage/0544/doc_00063116 to /storage/kkm_last_doc_name [18:56:12]save OK [18:56:12]Clear old archive folders... [18:56:12]ProcessDocumentItem done err = 0, tmpTLVsize=373 [18:56:12]tlvbuf is B6F91810 [18:56:12]SAM_PROTO_ClearQueue [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 09 00 00 [18:56:12]Write to MH i2c: E2 08 00 91 1B 80 09 00 00 00 00 00 00 1E [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]SAM_PROTO_ClearQueue done [18:56:12]KKMCreateOFDPacket [18:56:12]OFDProtocolAddRootSTLVToBuf [18:56:12]FM_MakeSignedData [18:56:12]FM_MakeSignedData [18:56:12]SAM_PROTO_SignData [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 01 02 [18:56:12]Write to MH i2c: E2 08 00 92 1B 80 0D 01 02 00 00 00 00 26 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [18:56:13]RAPDU: 90 00 [18:56:13]wFMCommunicate OK [18:56:13]wFMCommunicate request_size=255 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 0D 02 02 FA 03 00 75 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 6E 00 00 00 00 00 EE 03 0F 00 F2 [18:56:13]Write to MH i2c: E2 02 01 93 1B 80 0D 02 02 FA 00 03 00 75 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 6E 00 00 00 00 00 EE 03 0F 00 F2 00 00 09 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 93 1B 00 90 00 22 [18:56:13]RAPDU: 90 00 [18:56:13]wFMCommunicate OK [18:56:13]wFMCommunicate request_size=132 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 0D 02 02 7F 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 71 00 00 00 F4 03 04 00 CF A3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F2 EB 08 DF B9 57 [18:56:13]Write to MH i2c: E2 87 00 94 1B 80 0D 02 02 7F 00 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 71 00 00 00 F4 03 04 00 CF A3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F2 EB 08 DF B9 57 00 00 79 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [18:56:13]RAPDU: 90 00 [18:56:13]wFMCommunicate OK [18:56:13]wFMCommunicate request_size=4 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 0D 03 02 [18:56:13]Write to MH i2c: E2 08 00 95 1B 80 0D 03 02 00 00 00 00 2B [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 0B 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 0B 00 95 1B 00 02 03 FD 17 25 81 4A 01 90 00 36 [18:56:13]RAPDU: 02 03 FD 17 25 81 4A 01 90 00 [18:56:13]wFMCommunicate OK [18:56:13]SAM_PROTO_SignData done [18:56:13]FM_MakeSignedData done [18:56:13]CreateOFDProtocolMessage [18:56:13]wFMCommunicate request_size=4 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 11 00 00 [18:56:13]Write to MH i2c: E2 08 00 96 1B 80 11 00 00 00 00 00 00 2B [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 17 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 17 00 96 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 84 [18:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:56:13]wFMCommunicate OK [18:56:13]CreateOFDProtocolMessage done [18:56:13]OFDSenderStorePacket 63116 [18:56:13]StoreOFDPacket docnum=63116 [18:56: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 89 01 00 00 4D 54 81 01 F9 41 5A 03 01 00 03 00 75 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 6E 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 71 00 00 00 F4 03 04 00 CF A3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F2 EB 08 DF B9 57 02 03 FD 17 25 81 4A 01 [18:56:13]CheckFolder [18:56:13]dirname=/storage/ofd_packets [18:56:13]CheckFolder done [18:56:13]ProducePacketName [18:56:13]name=ofd_packets/00063116 [18:56:13]NVStorageSaveData ofd_packets/00063116 [18:56:13]File name is /storage/ofd_packets/00063116 [18:56:13]Write 423 bytes [18:56:13]NVStorageSaveData done [18:56:13]OFDSenderStorePacket done [18:56:13]KKMCreateOFDPacket done [18:56:13]NVStorageSaveData kkm_last_timestamp [18:56:13]File name is /storage/kkm_last_timestamp [18:56:13]Write 4 bytes [18:56:13]NVStorageSaveData done [18:56:13]ExternCall_PrintAddStr [18:56:13]wPrintStart [18:56:13]Write to MH i2c: 01 00 00 97 1B B2 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 97 1B 00 00 00 00 00 FF 0F C7 [18:56:13]RasterBufferAndPrint [18:56:13]line Счет N : (3)47426 [18:56:13]line ИНН: 02508201610067 [18:56:13]line Контрольно-Кассовый Чек [18:56:13]line ПРОДАЖА [18:56:13]line Товар: 47011656 [18:56:13]line Водка Пшеничная 0,1л [18:56:13]line 1.000 * 65.00 [18:56:13]line = 65.00 [18:56:13]line НДС 12% НСП 1% [18:56:13]line > о реализуемом товаре [18:56:13]line Товар: 4700025313937 [18:56:13]line ВОДКА МЯГКАЯ 0,1л [18:56:13]line 1.000 * 60.00 [18:56:13]line = 60.00 [18:56:13]line НДС 12% НСП 1% [18:56:13]line > о реализуемом товаре [18:56:13]line ИТОГО: 125.00 [18:56:13]line НСП 1% : 1.10 [18:56:13]line НДС 12% : 13.27 [18:56:13]line Наличными: 125.00 [18:56:13]line Безнал.: 0.00 [18:56:13]line Место: АЗС № 86 "Партнер Нефть" [18:56:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:56:13]line СНО: Общий режим [18:56:13]line Чек 113 21.10.2024 18:56 [18:56:13]line Смена: 544 ФФД: 1.0 [18:56:13]line ЗНМ: 0300000154 [18:56:13]line РНМ: 0000000000091619 [18:56:13]line Версия ККМ: 001 [18:56:13]line ФМ: 0000000000874676 [18:56:13]line ФД: 63116 [18:56:13]line ФПД: 267091280116055 [18:56:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185615&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63116&fm=267091280116055&tin=02508201610067®Number=0000000000091619&sum=12500 [18:56:13]line 0 [18:56:13]OFD Sender: Processing packet 63116 [packets to send 232, broken 231] [18:56:13]ProducePacketName [18:56:13]name=ofd_packets/00063116 [18:56:13]OFD Sender: To server: pG, [18:56:13]CommunicateWithHost lk.salyk.kg:30040 [18:56:13]ConnectInit lk.salyk.kg [18:56:13]written 0, free lines is 4095 [18:56:14]Connected sock=10 [18:56: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 89 01 00 00 4D 54 81 01 F9 41 5A 03 01 00 03 00 75 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 6E 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 71 00 00 00 F4 03 04 00 CF A3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F2 EB 08 DF B9 57 02 03 FD 17 25 81 4A 01 [18:56:14]Write to MH i2c: 01 00 00 C5 1B E0 [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 07 00 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 07 00 C5 1B 00 00 00 00 00 BC 0C AF [18:56:14]RasterBufferAndPrint [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]written 0, free lines is 3271 [18:56:14]MH_Cut [18:56:14]Write to MH i2c: D1 01 00 CC 1B 01 B9 [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 01 00 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 01 00 CC 1B 00 B8 [18:56:14]Write to MH i2c: 01 00 00 CD 1B E8 [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56: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 7C 25 47 00 96 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F6 00 00 F4 03 04 00 CC 4D 16 67 B6 04 01 00 00 C1 20 87 DF 85 44 81 7D [18:56:14]CommunicateWithHost err = 0 [18:56:14]CheckOFDResponse [18:56:14]1017 (14) - 77093643461234 [18:56:14]1041 (16) - 0000000000874676 [18:56:14]1040 (4) - 63116 [18:56:14]1012 (4) - 21.10.2024 12:49 [18:56:14]1206 (1) - 0 [18:56:14]OFD Sender: Remove packet 63116 [18:56:14]ProducePacketName [18:56:14]name=ofd_packets/00063116 [18:56:14]NVStorageDeleteData [18:56:15]OFD Sender: No OFD packet to send [18:56:15]*** Cut start [18:56:15]*** Partial cut [18:56:15]*** CUTSNS_PIN = 1 [18:56:15]*** CUTSNS_PIN = 0 [18:56:15]*** Brake cut motor [18:56:15]Read from MH i2c: 01 [18:56:15]MH_I2C_Read... [18:56:15]*** Stop cut motor [18:56:15]*** Cut end [18:56:15]Read from MH i2c: 01 07 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [18:56:15]process_action close_receipt done [18:56:15]requested_data is exist [18:56:15]produce_requested_data [18:56:15]requested_item fm.sn is exist - process it [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 11 00 00 [18:56:15]Write to MH i2c: E2 08 00 CE 1B 80 11 00 00 00 00 00 00 63 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 CE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BC [18:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:56:15]wFMCommunicate OK [18:56:15]requested_item fd.num is exist - process it [18:56:15]SAM_PROTO_GetFieldsCounters [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 00 00 [18:56:15]Write to MH i2c: E2 08 00 CF 1B 80 13 00 00 00 00 00 00 66 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:15]Read from MH i2c: E2 62 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 62 00 CF 1B 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [18:56: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 8C F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetFieldsCounters done [18:56:15]requested_item shift.num is exist - process it [18:56:15]requested_item shift.opened is exist - process it [18:56:15]req_shift_opened [18:56:15]FM_GetShiftState [18:56:15]SAM_PROTO_GetShiftState [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 01 00 [18:56:15]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C8 [18:56:15]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetShiftState done [18:56:15]FM_GetShiftState done [18:56:15]req_shift_opened done [18:56:15]requested_item shift.open_date is exist - process it [18:56:15]req_shift_open_date [18:56:15]req_shift_open_date done [18:56:15]produce_requested_data done [18:56:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63116,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [18:56:15]process_action_free close_receipt [18:56:15]json_value_free [18:56:15]json_value_free done [18:56:15]process_json_proto returns [18:56:15]Send response to host [18:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63116,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [18:56:15]free response buf [18:56:15]execute_script done [18:56:15]execute_script returns [18:56:15]free content buf [18:56:15]Sock 7.Close socket [18:56:15]Sock 7.Thread stoped [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:29]accept exits with 9 [19:02:29]New connection [19:02:29]New thread 3067198820 created [19:02:29]Thread 3067055460 joined [19:02:29]Waiting for new connection... [19:02:29] Sock 9.Parse request [19:02:29]Sock 9.Check first char [19:02:29]Sock 9.First char is OK [19:02:29]request: POST /json_proto HTTP/1.0 [19:02:29]Method: POST [19:02:29]URL: /json_proto [19:02:29]Method is POST - this is cgi request [19:02:29]url: /json_proto [19:02:29]query_string will be loaded in cgi processing [19:02:29]execute_cgi json_proto POST (null) [19:02:29]execute_cgi path=json_proto method=POST [19:02:29]POST find Content-Length [19:02:29]Host: 172.17.42.132:8080 [19:02:29]Content-Length: 590 [19:02:29]Content-Type: application/json [19:02:29] [19:02:29]POST finish read [19:02:29]Found Content-Length = 590 [19:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47427", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:29]execute_script... [19:02: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)47427", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:29]POST & json_proto [19:02:29]process_json_proto [19:02:29]json parsed OK: [19:02:29]protocol is kg_v1.0 [19:02:29]action value=close_receipt [19:02:29]process_action close_receipt [19:02:29]cmd_close_receipt [19:02:29]MH_GetDate [19:02:29]Write to MH i2c: F0 00 00 D1 1B DB [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: F0 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: F0 09 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: F0 09 00 D1 1B 00 49 A5 16 67 4C DF 56 66 36 [19:02:29]GetLastDocTimeStamp 1729536975 [19:02:29]current date 1729537353 [19:02:29]FM_GetShiftState [19:02:29]SAM_PROTO_GetShiftState [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 13 01 00 [19:02:29]Write to MH i2c: E2 08 00 D2 1B 80 13 01 00 00 00 00 00 6A [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0E 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0E 00 D2 1B 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CA [19:02:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:02:29]wFMCommunicate OK [19:02:29]SAM_PROTO_GetShiftState done [19:02:29]FM_GetShiftState done [19:02:29]opened in 1729469755 [19:02:29]opened+sec_in_day 1729556155 [19:02:29]quantity*price = 4900 [19:02:29]sum+1 = 4901 [19:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 114 21.10.2024 19:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63117 ФПД: 272939908658146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190233&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63117&fm=272939908658146&tin=02508201610067®Number=0000000000091619&sum=4900 0 [19:02:30]StoreToDocumentArchive [19:02:30]shift 544 fd 63117 [19:02:30]save to /storage/0544/doc_00063117 [19:02:30]save last doc name /storage/0544/doc_00063117 to /storage/kkm_last_doc_name [19:02:30]save OK [19:02:30]Clear old archive folders... [19:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=258 [19:02:30]tlvbuf is B6F165F0 [19:02:30]SAM_PROTO_ClearQueue [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 09 00 00 [19:02:30]Write to MH i2c: E2 08 00 DF 1B 80 09 00 00 00 00 00 00 6C [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 03 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [19:02:30]RAPDU: 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_ClearQueue done [19:02:30]KKMCreateOFDPacket [19:02:30]OFDProtocolAddRootSTLVToBuf [19:02:30]FM_MakeSignedData [19:02:30]FM_MakeSignedData [19:02:30]SAM_PROTO_SignData [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 0D 01 02 [19:02:30]Write to MH i2c: E2 08 00 E0 1B 80 0D 01 02 00 00 00 00 74 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 03 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [19:02:30]RAPDU: 90 00 [19:02:30]wFMCommunicate OK [19:02:30]wFMCommunicate request_size=255 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 0D 02 02 FA 03 00 02 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 A5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 [19:02:30]Write to MH i2c: E2 02 01 E1 1B 80 0D 02 02 FA 00 03 00 02 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 A5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 EC [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 E1 1B 00 90 00 70 [19:02:31]RAPDU: 90 00 [19:02:31]wFMCommunicate OK [19:02:31]wFMCommunicate request_size=17 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 F8 3C C6 4C F3 E2 [19:02:31]Write to MH i2c: E2 14 00 E2 1B 80 0D 02 02 0C 00 00 00 35 04 06 00 F8 3C C6 4C F3 E2 00 00 E9 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [19:02:31]RAPDU: 90 00 [19:02:31]wFMCommunicate OK [19:02:31]wFMCommunicate request_size=4 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 0D 03 02 [19:02:31]Write to MH i2c: E2 08 00 E3 1B 80 0D 03 02 00 00 00 00 79 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 0B 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 0B 00 E3 1B 00 07 C8 F9 9D 72 05 D6 6C 90 00 98 [19:02:31]RAPDU: 07 C8 F9 9D 72 05 D6 6C 90 00 [19:02:31]wFMCommunicate OK [19:02:31]SAM_PROTO_SignData done [19:02:31]FM_MakeSignedData done [19:02:31]CreateOFDProtocolMessage [19:02:31]wFMCommunicate request_size=4 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 11 00 00 [19:02:31]Write to MH i2c: E2 08 00 E4 1B 80 11 00 00 00 00 00 00 79 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 17 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 17 00 E4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D2 [19:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:02:31]wFMCommunicate OK [19:02:31]CreateOFDProtocolMessage done [19:02:31]OFDSenderStorePacket 63117 [19:02:31]StoreOFDPacket docnum=63117 [19:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 16 01 00 00 73 DE 0E 01 FB C2 5A 03 01 00 03 00 02 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 A5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F8 3C C6 4C F3 E2 07 C8 F9 9D 72 05 D6 6C [19:02:31]CheckFolder [19:02:31]dirname=/storage/ofd_packets [19:02:31]CheckFolder done [19:02:31]ProducePacketName [19:02:31]name=ofd_packets/00063117 [19:02:31]NVStorageSaveData ofd_packets/00063117 [19:02:31]File name is /storage/ofd_packets/00063117 [19:02:31]Write 308 bytes [19:02:31]NVStorageSaveData done [19:02:31]OFDSenderStorePacket done [19:02:31]KKMCreateOFDPacket done [19:02:31]NVStorageSaveData kkm_last_timestamp [19:02:31]File name is /storage/kkm_last_timestamp [19:02:31]Write 4 bytes [19:02:31]NVStorageSaveData done [19:02:31]OFD Sender: Processing packet 63117 [packets to send 232, broken 231] [19:02:31]ProducePacketName [19:02:31]name=ofd_packets/00063117 [19:02:31]OFD Sender: To server: pG, [19:02:31]CommunicateWithHost lk.salyk.kg:30040 [19:02:31]ConnectInit lk.salyk.kg [19:02:31]ExternCall_PrintAddStr [19:02:31]wPrintStart [19:02:31]Write to MH i2c: 01 00 00 E5 1B 00 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: 01 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: 01 07 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: 01 07 00 E5 1B 00 00 00 00 00 FF 0F 15 [19:02:31]RasterBufferAndPrint [19:02:31]line Счет N : (3)47427 [19:02:31]line ИНН: 02508201610067 [19:02:31]line Контрольно-Кассовый Чек [19:02:31]line ПРОДАЖА [19:02:31]line Товар: 4700026030031 [19:02:31]line Курут orbit [19:02:31]line 1.000 * 49.00 [19:02:31]line = 49.00 [19:02:31]line НДС 12% НСП 1% [19:02:31]line > о реализуемом товаре [19:02:31]line ИТОГО: 49.00 [19:02:31]line НСП 1% : 0.43 [19:02:31]line НДС 12% : 5.20 [19:02:31]line Наличными: 49.00 [19:02:31]line Безнал.: 0.00 [19:02:31]line Место: АЗС № 86 "Партнер Нефть" [19:02:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:02:31]line СНО: Общий режим [19:02:31]line Чек 114 21.10.2024 19:02 [19:02:31]line Смена: 544 ФФД: 1.0 [19:02:31]line ЗНМ: 0300000154 [19:02:31]line РНМ: 0000000000091619 [19:02:31]line Версия ККМ: 001 [19:02:31]line ФМ: 0000000000874676 [19:02:31]line ФД: 63117 [19:02:31]line ФПД: 272939908658146 [19:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190233&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63117&fm=272939908658146&tin=02508201610067®Number=0000000000091619&sum=4900 [19:02:31]Connected sock=11 [19:02: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 16 01 00 00 73 DE 0E 01 FB C2 5A 03 01 00 03 00 02 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 49 A5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 F8 3C C6 4C F3 E2 07 C8 F9 9D 72 05 D6 6C [19:02:31]line 0 [19:02:31]written 0, free lines is 4095 [19:02: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 09 30 47 00 08 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 8D F6 00 00 F4 03 04 00 45 4F 16 67 B6 04 01 00 00 A3 31 FE B9 1B 21 AA A8 [19:02:32]CommunicateWithHost err = 0 [19:02:32]CheckOFDResponse [19:02:32]1017 (14) - 77093643461234 [19:02:32]1041 (16) - 0000000000874676 [19:02:32]1040 (4) - 63117 [19:02:32]1012 (4) - 21.10.2024 12:55 [19:02:32]1206 (1) - 0 [19:02:32]OFD Sender: Remove packet 63117 [19:02:32]ProducePacketName [19:02:32]name=ofd_packets/00063117 [19:02:32]NVStorageDeleteData [19:02:32]Write to MH i2c: 01 00 00 0D 1C 29 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 07 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 07 00 0D 1C 00 00 00 00 00 0C 0D 49 [19:02:32]RasterBufferAndPrint [19:02:32]line [19:02:32]line [19:02:32]line [19:02:32]line [19:02:32]line [19:02:32]written 0, free lines is 3346 [19:02:32]MH_Cut [19:02:32]Write to MH i2c: D1 01 00 14 1C 01 02 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: D1 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: D1 01 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: D1 01 00 14 1C 00 01 [19:02:32]Write to MH i2c: 01 00 00 15 1C 31 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]OFD Sender: No OFD packet to send [19:02:32]*** Cut start [19:02:32]*** Partial cut [19:02:32]*** CUTSNS_PIN = 1 [19:02:32]*** CUTSNS_PIN = 0 [19:02:33]*** Brake cut motor [19:02:33]Read from MH i2c: 01 [19:02:33]MH_I2C_Read... [19:02:33]*** Stop cut motor [19:02:33]*** Cut end [19:02:33]Read from MH i2c: 01 07 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [19:02:33]process_action close_receipt done [19:02:33]requested_data is exist [19:02:33]produce_requested_data [19:02:33]requested_item fm.sn is exist - process it [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 11 00 00 [19:02:33]Write to MH i2c: E2 08 00 16 1C 80 11 00 00 00 00 00 00 AC [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 16 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 05 [19:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:02:33]wFMCommunicate OK [19:02:33]requested_item fd.num is exist - process it [19:02:33]SAM_PROTO_GetFieldsCounters [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 00 00 [19:02:33]Write to MH i2c: E2 08 00 17 1C 80 13 00 00 00 00 00 00 AF [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 62 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 62 00 17 1C 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:02: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 8D F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetFieldsCounters done [19:02:33]requested_item shift.num is exist - process it [19:02:33]requested_item shift.opened is exist - process it [19:02:33]req_shift_opened [19:02:33]FM_GetShiftState [19:02:33]SAM_PROTO_GetShiftState [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 01 00 [19:02:33]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 11 [19:02:33]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetShiftState done [19:02:33]FM_GetShiftState done [19:02:33]req_shift_opened done [19:02:33]requested_item shift.open_date is exist - process it [19:02:33]req_shift_open_date [19:02:33]req_shift_open_date done [19:02:33]produce_requested_data done [19:02:33]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63117,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:02:33]process_action_free close_receipt [19:02:33]json_value_free [19:02:33]json_value_free done [19:02:33]process_json_proto returns [19:02:33]Send response to host [19:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63117,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:02:33]free response buf [19:02:33]execute_script done [19:02:33]execute_script returns [19:02:33]free content buf [19:02:33]Sock 9.Close socket [19:02:33]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]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:37]accept exits with 7 [19:08:37]New connection [19:08:37]New thread 3067055460 created [19:08:37]Thread 3067198820 joined [19:08:37]Waiting for new connection... [19:08:37] Sock 7.Parse request [19:08:37]Sock 7.Check first char [19:08:37]Sock 7.First char is OK [19:08:37]request: POST /json_proto HTTP/1.0 [19:08:37]Method: POST [19:08:37]URL: /json_proto [19:08:37]Method is POST - this is cgi request [19:08:37]url: /json_proto [19:08:37]query_string will be loaded in cgi processing [19:08:37]execute_cgi json_proto POST (null) [19:08:37]execute_cgi path=json_proto method=POST [19:08:37]POST find Content-Length [19:08:37]Host: 172.17.42.132:8080 [19:08:37]Content-Length: 645 [19:08:37]Content-Type: application/json [19:08:37] [19:08:37]POST finish read [19:08:37]Found Content-Length = 645 [19:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47428", "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" ] } } [19:08:37]execute_script... [19:08: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)47428", "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" ] } } [19:08:37]POST & json_proto [19:08:37]process_json_proto [19:08:37]json parsed OK: [19:08:37]protocol is kg_v1.0 [19:08:37]action value=close_receipt [19:08:37]process_action close_receipt [19:08:37]cmd_close_receipt [19:08:37]MH_GetDate [19:08:37]Write to MH i2c: F0 00 00 19 1C 24 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 09 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: F0 09 00 19 1C 00 B9 A6 16 67 4C DF 56 66 F0 [19:08:37]GetLastDocTimeStamp 1729537353 [19:08:37]current date 1729537721 [19:08:37]FM_GetShiftState [19:08:37]SAM_PROTO_GetShiftState [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 13 01 00 [19:08:37]Write to MH i2c: E2 08 00 1A 1C 80 13 01 00 00 00 00 00 B3 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 1A 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 13 [19:08:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_GetShiftState done [19:08:37]FM_GetShiftState done [19:08:37]opened in 1729469755 [19:08:37]opened+sec_in_day 1729556155 [19:08:37]quantity*price = 13000 [19:08:37]sum+1 = 13001 [19:08:37]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 СНО: Общий режим Чек 115 21.10.2024 19:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63118 ФПД: 234605244333408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63118&fm=234605244333408&tin=02508201610067®Number=0000000000091619&sum=13000 0 [19:08:38]StoreToDocumentArchive [19:08:38]shift 544 fd 63118 [19:08:38]save to /storage/0544/doc_00063118 [19:08:38]save last doc name /storage/0544/doc_00063118 to /storage/kkm_last_doc_name [19:08:38]save OK [19:08:38]Clear old archive folders... [19:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:08:38]tlvbuf is 019382F0 [19:08:38]SAM_PROTO_ClearQueue [19:08:38]wFMCommunicate request_size=4 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 09 00 00 [19:08:38]Write to MH i2c: E2 08 00 27 1C 80 09 00 00 00 00 00 00 B5 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [19:08:38]RAPDU: 90 00 [19:08:38]wFMCommunicate OK [19:08:38]SAM_PROTO_ClearQueue done [19:08:38]KKMCreateOFDPacket [19:08:38]OFDProtocolAddRootSTLVToBuf [19:08:38]FM_MakeSignedData [19:08:38]FM_MakeSignedData [19:08:38]SAM_PROTO_SignData [19:08:38]wFMCommunicate request_size=4 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 0D 01 02 [19:08:38]Write to MH i2c: E2 08 00 28 1C 80 0D 01 02 00 00 00 00 BD [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [19:08:38]RAPDU: 90 00 [19:08:38]wFMCommunicate OK [19:08:38]wFMCommunicate request_size=255 [19:08:38]MH_SAM_APDU [19:08:38]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 73 00 00 00 F4 03 04 00 B9 A6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [19:08:38]Write to MH i2c: E2 02 01 29 1C 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 73 00 00 00 F4 03 04 00 B9 A6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 3E [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 29 1C 00 90 00 B9 [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]wFMCommunicate request_size=41 [19:08:39]MH_SAM_APDU [19:08:39]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 8E F6 00 00 35 04 06 00 D5 5F 4A 40 3D 60 [19:08:39]Write to MH i2c: E2 2C 00 2A 1C 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 8E F6 00 00 35 04 06 00 D5 5F 4A 40 3D 60 00 00 74 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [19:08:39]RAPDU: 90 00 [19:08:39]wFMCommunicate OK [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 0D 03 02 [19:08:39]Write to MH i2c: E2 08 00 2B 1C 80 0D 03 02 00 00 00 00 C2 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0B 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0B 00 2B 1C 00 E7 00 A9 56 17 31 13 E5 90 00 E9 [19:08:39]RAPDU: E7 00 A9 56 17 31 13 E5 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_SignData done [19:08:39]FM_MakeSignedData done [19:08:39]CreateOFDProtocolMessage [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 11 00 00 [19:08:39]Write to MH i2c: E2 08 00 2C 1C 80 11 00 00 00 00 00 00 C2 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 2C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1B [19:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:08:39]wFMCommunicate OK [19:08:39]CreateOFDProtocolMessage done [19:08:39]OFDSenderStorePacket 63118 [19:08:39]StoreOFDPacket docnum=63118 [19:08: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 2E 01 00 00 D2 A6 26 01 64 36 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 73 00 00 00 F4 03 04 00 B9 A6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 5F 4A 40 3D 60 E7 00 A9 56 17 31 13 E5 [19:08:39]CheckFolder [19:08:39]dirname=/storage/ofd_packets [19:08:39]CheckFolder done [19:08:39]ProducePacketName [19:08:39]name=ofd_packets/00063118 [19:08:39]NVStorageSaveData ofd_packets/00063118 [19:08:39]File name is /storage/ofd_packets/00063118 [19:08:39]Write 332 bytes [19:08:39]NVStorageSaveData done [19:08:39]OFDSenderStorePacket done [19:08:39]KKMCreateOFDPacket done [19:08:39]NVStorageSaveData kkm_last_timestamp [19:08:39]File name is /storage/kkm_last_timestamp [19:08:39]Write 4 bytes [19:08:39]NVStorageSaveData done [19:08:39]ExternCall_PrintAddStr [19:08:39]wPrintStart [19:08:39]Write to MH i2c: 01 00 00 2D 1C 49 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 FF 0F 5E [19:08:39]RasterBufferAndPrint [19:08:39]line Счет N : (3)47428 [19:08:39]line ИНН: 02508201610067 [19:08:39]line Контрольно-Кассовый Чек [19:08:39]line ПРОДАЖА [19:08:39]line Товар: 2000036220012 [19:08:39]line Кофе Капучино XL(GABB TRADE) [19:08:39]line 1.000 * 130.00 [19:08:39]line = 130.00 [19:08:39]line НДС 12% НСП 1% [19:08:39]line > о реализуемом товаре [19:08:39]line ИТОГО: 130.00 [19:08:39]line НСП 1% : 1.15 [19:08:39]line НДС 12% : 13.80 [19:08:39]line Наличными: 130.00 [19:08:39]line Безнал.: 0.00 [19:08:39]line Место: АЗС № 86 "Партнер Нефть" [19:08:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:08:39]line СНО: Общий режим [19:08:39]line Чек 115 21.10.2024 19:08 [19:08:39]line Смена: 544 ФФД: 1.0 [19:08:39]line ЗНМ: 0300000154 [19:08:39]line РНМ: 0000000000091619 [19:08:39]line Версия ККМ: 001 [19:08:39]line ФМ: 0000000000874676 [19:08:39]line ФД: 63118 [19:08:39]line ФПД: 234605244333408 [19:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63118&fm=234605244333408&tin=02508201610067®Number=0000000000091619&sum=13000 [19:08:39]line 0 [19:08:39]OFD Sender: Processing packet 63118 [packets to send 232, broken 231] [19:08:39]ProducePacketName [19:08:39]name=ofd_packets/00063118 [19:08:39]OFD Sender: To server: pG, [19:08:39]CommunicateWithHost lk.salyk.kg:30040 [19:08:39]ConnectInit lk.salyk.kg [19:08:39]written 0, free lines is 4095 [19:08:39]Connected sock=10 [19:08: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 2E 01 00 00 D2 A6 26 01 64 36 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 73 00 00 00 F4 03 04 00 B9 A6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D5 5F 4A 40 3D 60 E7 00 A9 56 17 31 13 E5 [19:08:40]Write to MH i2c: 01 00 00 56 1C 72 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 07 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 03 0D 89 [19:08:40]RasterBufferAndPrint [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]line [19:08:40]written 0, free lines is 3337 [19:08:40]MH_Cut [19:08:40]Write to MH i2c: D1 01 00 5D 1C 01 4B [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 01 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: D1 01 00 5D 1C 00 4A [19:08:40]Write to MH i2c: 01 00 00 5E 1C 7A [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08: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 39 2E 47 00 88 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 8E F6 00 00 F4 03 04 00 B5 50 16 67 B6 04 01 00 00 01 1C C4 FD 56 1A 2D DE [19:08:40]CommunicateWithHost err = 0 [19:08:40]CheckOFDResponse [19:08:40]1017 (14) - 77093643461234 [19:08:40]1041 (16) - 0000000000874676 [19:08:40]1040 (4) - 63118 [19:08:40]1012 (4) - 21.10.2024 13:01 [19:08:40]1206 (1) - 0 [19:08:40]OFD Sender: Remove packet 63118 [19:08:40]ProducePacketName [19:08:40]name=ofd_packets/00063118 [19:08:40]NVStorageDeleteData [19:08:40]OFD Sender: No OFD packet to send [19:08:40]*** Cut start [19:08:40]*** Partial cut [19:08:40]*** CUTSNS_PIN = 1 [19:08:40]*** CUTSNS_PIN = 0 [19:08:40]*** Brake cut motor [19:08:41]Read from MH i2c: 01 [19:08:41]MH_I2C_Read... [19:08:41]*** Stop cut motor [19:08:41]*** Cut end [19:08:41]Read from MH i2c: 01 07 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 FF 0F 8F [19:08:41]process_action close_receipt done [19:08:41]requested_data is exist [19:08:41]produce_requested_data [19:08:41]requested_item fm.sn is exist - process it [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 11 00 00 [19:08:41]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4E [19:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:08:41]wFMCommunicate OK [19:08:41]requested_item fd.num is exist - process it [19:08:41]SAM_PROTO_GetFieldsCounters [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 13 00 00 [19:08:41]Write to MH i2c: E2 08 00 60 1C 80 13 00 00 00 00 00 00 F8 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 62 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 62 00 60 1C 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [19:08: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 8E F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:41]wFMCommunicate OK [19:08:41]SAM_PROTO_GetFieldsCounters done [19:08:41]requested_item shift.num is exist - process it [19:08:41]requested_item shift.opened is exist - process it [19:08:41]req_shift_opened [19:08:41]FM_GetShiftState [19:08:41]SAM_PROTO_GetShiftState [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 13 01 00 [19:08:41]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0E 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5A [19:08:41]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:08:41]wFMCommunicate OK [19:08:41]SAM_PROTO_GetShiftState done [19:08:41]FM_GetShiftState done [19:08:41]req_shift_opened done [19:08:41]requested_item shift.open_date is exist - process it [19:08:41]req_shift_open_date [19:08:41]req_shift_open_date done [19:08:41]produce_requested_data done [19:08:41]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63118,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:08:41]process_action_free close_receipt [19:08:41]json_value_free [19:08:41]json_value_free done [19:08:41]process_json_proto returns [19:08:41]Send response to host [19:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63118,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:08:41]free response buf [19:08:41]execute_script done [19:08:41]execute_script returns [19:08:41]free content buf [19:08:41]Sock 7.Close socket [19:08:41]Sock 7.Thread stoped [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]accept exits with 9 [19:11:30]New connection [19:11:30]New thread 3067198820 created [19:11:30]Thread 3067055460 joined [19:11:30]Waiting for new connection... [19:11:30] Sock 9.Parse request [19:11:30]Sock 9.Check first char [19:11:30]Sock 9.First char is OK [19:11:30]request: POST /json_proto HTTP/1.0 [19:11:30]Method: POST [19:11:30]URL: /json_proto [19:11:30]Method is POST - this is cgi request [19:11:30]url: /json_proto [19:11:30]query_string will be loaded in cgi processing [19:11:30]execute_cgi json_proto POST (null) [19:11:30]execute_cgi path=json_proto method=POST [19:11:30]POST find Content-Length [19:11:30]Host: 172.17.42.132:8080 [19:11:30]Content-Length: 627 [19:11:30]Content-Type: application/json [19:11:30] [19:11:30]POST finish read [19:11:30]Found Content-Length = 627 [19:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47429", "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" ] } } [19:11:30]execute_script... [19:11: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)47429", "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" ] } } [19:11:30]POST & json_proto [19:11:30]process_json_proto [19:11:30]json parsed OK: [19:11:30]protocol is kg_v1.0 [19:11:30]action value=close_receipt [19:11:30]process_action close_receipt [19:11:30]cmd_close_receipt [19:11:30]MH_GetDate [19:11:30]Write to MH i2c: F0 00 00 62 1C 6D [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 09 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 09 00 62 1C 00 66 A7 16 67 4C DF 56 66 E7 [19:11:30]GetLastDocTimeStamp 1729537721 [19:11:30]current date 1729537894 [19:11:30]FM_GetShiftState [19:11:30]SAM_PROTO_GetShiftState [19:11:30]wFMCommunicate request_size=4 [19:11:30]MH_SAM_APDU [19:11:30]CAPDU: 80 13 01 00 [19:11:30]Write to MH i2c: E2 08 00 63 1C 80 13 01 00 00 00 00 00 FC [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:30]Read from MH i2c: E2 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 63 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 5C [19:11:30]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:11:30]wFMCommunicate OK [19:11:30]SAM_PROTO_GetShiftState done [19:11:30]FM_GetShiftState done [19:11:30]opened in 1729469755 [19:11:30]opened+sec_in_day 1729556155 [19:11:30]quantity*price = 13000 [19:11:30]sum+1 = 13001 [19:11:30]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 СНО: Общий режим Чек 116 21.10.2024 19:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63119 ФПД: 232485992503690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191134&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63119&fm=232485992503690&tin=02508201610067®Number=0000000000091619&sum=13000 0 [19:11:31]StoreToDocumentArchive [19:11:31]shift 544 fd 63119 [19:11:31]save to /storage/0544/doc_00063119 [19:11:31]save last doc name /storage/0544/doc_00063119 to /storage/kkm_last_doc_name [19:11:31]save OK [19:11:31]Clear old archive folders... [19:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:11:31]tlvbuf is 0184F200 [19:11:31]SAM_PROTO_ClearQueue [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 09 00 00 [19:11:31]Write to MH i2c: E2 08 00 70 1C 80 09 00 00 00 00 00 00 FE [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:31]Read from MH i2c: E2 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [19:11:31]RAPDU: 90 00 [19:11:31]wFMCommunicate OK [19:11:31]SAM_PROTO_ClearQueue done [19:11:31]KKMCreateOFDPacket [19:11:31]OFDProtocolAddRootSTLVToBuf [19:11:31]FM_MakeSignedData [19:11:31]FM_MakeSignedData [19:11:31]SAM_PROTO_SignData [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 0D 01 02 [19:11:31]Write to MH i2c: E2 08 00 71 1C 80 0D 01 02 00 00 00 00 06 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:31]Read from MH i2c: E2 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [19:11:31]RAPDU: 90 00 [19:11:31]wFMCommunicate OK [19:11:31]wFMCommunicate request_size=255 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 66 A7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [19:11:31]Write to MH i2c: E2 02 01 72 1C 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 74 00 00 00 F4 03 04 00 66 A7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 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 42 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [19:11:32]RAPDU: 90 00 [19:11:32]wFMCommunicate OK [19:11:32]wFMCommunicate request_size=35 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F6 00 00 35 04 06 00 D3 71 DC FF 99 8A [19:11:32]Write to MH i2c: E2 26 00 73 1C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F6 00 00 35 04 06 00 D3 71 DC FF 99 8A 00 00 C9 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [19:11:32]RAPDU: 90 00 [19:11:32]wFMCommunicate OK [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 0D 03 02 [19:11:32]Write to MH i2c: E2 08 00 74 1C 80 0D 03 02 00 00 00 00 0B [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0B 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0B 00 74 1C 00 A8 71 A1 6B EA 9D BE B9 90 00 2F [19:11:32]RAPDU: A8 71 A1 6B EA 9D BE B9 90 00 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_SignData done [19:11:32]FM_MakeSignedData done [19:11:32]CreateOFDProtocolMessage [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 11 00 00 [19:11:32]Write to MH i2c: E2 08 00 75 1C 80 11 00 00 00 00 00 00 0B [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 75 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 64 [19:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:11:32]wFMCommunicate OK [19:11:32]CreateOFDProtocolMessage done [19:11:32]OFDSenderStorePacket 63119 [19:11:32]StoreOFDPacket docnum=63119 [19:11: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 28 01 00 00 61 C8 20 01 E5 F4 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 74 00 00 00 F4 03 04 00 66 A7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D3 71 DC FF 99 8A A8 71 A1 6B EA 9D BE B9 [19:11:32]CheckFolder [19:11:32]dirname=/storage/ofd_packets [19:11:32]CheckFolder done [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00063119 [19:11:32]NVStorageSaveData ofd_packets/00063119 [19:11:32]File name is /storage/ofd_packets/00063119 [19:11:32]Write 326 bytes [19:11:32]NVStorageSaveData done [19:11:32]OFDSenderStorePacket done [19:11:32]KKMCreateOFDPacket done [19:11:32]NVStorageSaveData kkm_last_timestamp [19:11:32]File name is /storage/kkm_last_timestamp [19:11:32]Write 4 bytes [19:11:32]NVStorageSaveData done [19:11:32]ExternCall_PrintAddStr [19:11:32]wPrintStart [19:11:32]Write to MH i2c: 01 00 00 76 1C 92 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 07 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [19:11:32]RasterBufferAndPrint [19:11:32]line Счет N : (3)47429 [19:11:32]line ИНН: 02508201610067 [19:11:32]line Контрольно-Кассовый Чек [19:11:32]line ПРОДАЖА [19:11:32]line Товар: 2000036230011 [19:11:32]line Кофе Латте XL(GABB TRADE) [19:11:32]line 1.000 * 130.00 [19:11:32]line = 130.00 [19:11:32]line НДС 12% НСП 1% [19:11:32]line > о реализуемом товаре [19:11:32]line ИТОГО: 130.00 [19:11:32]line НСП 1% : 1.15 [19:11:32]line НДС 12% : 13.80 [19:11:32]line Наличными: 130.00 [19:11:32]line Безнал.: 0.00 [19:11:32]line Место: АЗС № 86 "Партнер Нефть" [19:11:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:11:32]line СНО: Общий режим [19:11:32]line Чек 116 21.10.2024 19:11 [19:11:32]line Смена: 544 ФФД: 1.0 [19:11:32]line ЗНМ: 0300000154 [19:11:32]line РНМ: 0000000000091619 [19:11:32]line Версия ККМ: 001 [19:11:32]line ФМ: 0000000000874676 [19:11:32]line ФД: 63119 [19:11:32]line ФПД: 232485992503690 [19:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191134&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63119&fm=232485992503690&tin=02508201610067®Number=0000000000091619&sum=13000 [19:11:32]OFD Sender: Processing packet 63119 [packets to send 232, broken 231] [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00063119 [19:11:32]OFD Sender: To server: pG, [19:11:32]CommunicateWithHost lk.salyk.kg:30040 [19:11:32]ConnectInit lk.salyk.kg [19:11:32]line 0 [19:11:32]written 0, free lines is 4095 [19:11:32]Connected sock=11 [19:11: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 28 01 00 00 61 C8 20 01 E5 F4 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 74 00 00 00 F4 03 04 00 66 A7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 D3 71 DC FF 99 8A A8 71 A1 6B EA 9D BE B9 [19:11:33]Write to MH i2c: 01 00 00 9E 1C BA [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 07 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 23 0D F1 [19:11:33]RasterBufferAndPrint [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]written 0, free lines is 3370 [19:11:33]MH_Cut [19:11:33]Write to MH i2c: D1 01 00 A5 1C 01 93 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 01 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 01 00 A5 1C 00 92 [19:11:33]Write to MH i2c: 01 00 00 A6 1C C2 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]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 1B ED 47 00 A2 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F6 00 00 F4 03 04 00 63 51 16 67 B6 04 01 00 00 C6 66 09 53 27 E7 94 06 [19:11:33]CommunicateWithHost err = 0 [19:11:33]CheckOFDResponse [19:11:33]1017 (14) - 77093643461234 [19:11:33]1041 (16) - 0000000000874676 [19:11:33]1040 (4) - 63119 [19:11:33]1012 (4) - 21.10.2024 13:04 [19:11:33]1206 (1) - 0 [19:11:33]OFD Sender: Remove packet 63119 [19:11:33]ProducePacketName [19:11:33]name=ofd_packets/00063119 [19:11:33]NVStorageDeleteData [19:11:33]*** Cut start [19:11:33]*** Partial cut [19:11:33]*** CUTSNS_PIN = 1 [19:11:33]*** CUTSNS_PIN = 0 [19:11:33]OFD Sender: No OFD packet to send [19:11:33]*** Brake cut motor [19:11:34]Read from MH i2c: 01 [19:11:34]MH_I2C_Read... [19:11:34]*** Stop cut motor [19:11:34]*** Cut end [19:11:34]Read from MH i2c: 01 07 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [19:11:34]process_action close_receipt done [19:11:34]requested_data is exist [19:11:34]produce_requested_data [19:11:34]requested_item fm.sn is exist - process it [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 11 00 00 [19:11:34]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 96 [19:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:11:34]wFMCommunicate OK [19:11:34]requested_item fd.num is exist - process it [19:11:34]SAM_PROTO_GetFieldsCounters [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 13 00 00 [19:11:34]Write to MH i2c: E2 08 00 A8 1C 80 13 00 00 00 00 00 00 40 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 62 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 62 00 A8 1C 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [19:11: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 8F F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_GetFieldsCounters done [19:11:34]requested_item shift.num is exist - process it [19:11:34]requested_item shift.opened is exist - process it [19:11:34]req_shift_opened [19:11:34]FM_GetShiftState [19:11:34]SAM_PROTO_GetShiftState [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 13 01 00 [19:11:34]Write to MH i2c: E2 08 00 A9 1C 80 13 01 00 00 00 00 00 42 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0E 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0E 00 A9 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A2 [19:11:34]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_GetShiftState done [19:11:34]FM_GetShiftState done [19:11:34]req_shift_opened done [19:11:34]requested_item shift.open_date is exist - process it [19:11:34]req_shift_open_date [19:11:34]req_shift_open_date done [19:11:34]produce_requested_data done [19:11:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63119,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:11:34]process_action_free close_receipt [19:11:34]json_value_free [19:11:34]json_value_free done [19:11:34]process_json_proto returns [19:11:34]Send response to host [19:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63119,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:11:34]free response buf [19:11:34]execute_script done [19:11:34]execute_script returns [19:11:34]free content buf [19:11:34]Sock 9.Close socket [19:11:34]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:55]ConnectInit Can't connect to host [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24: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:26]accept exits with 7 [19:28:26]New connection [19:28:26]New thread 3067055460 created [19:28:26]Thread 3067198820 joined [19:28:26]Waiting for new connection... [19:28:26] Sock 7.Parse request [19:28:26]Sock 7.Check first char [19:28:26]Sock 7.First char is OK [19:28:26]request: POST /json_proto HTTP/1.0 [19:28:26]Method: POST [19:28:26]URL: /json_proto [19:28:26]Method is POST - this is cgi request [19:28:26]url: /json_proto [19:28:26]query_string will be loaded in cgi processing [19:28:26]execute_cgi json_proto POST (null) [19:28:26]execute_cgi path=json_proto method=POST [19:28:26]POST find Content-Length [19:28:26]Host: 172.17.42.132:8080 [19:28:26]Content-Length: 784 [19:28:26]Content-Type: application/json [19:28:26] [19:28:26]POST finish read [19:28:26]Found Content-Length = 784 [19:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47430", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.89 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:26]execute_script... [19:28: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)47430", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.89 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:26]POST & json_proto [19:28:26]process_json_proto [19:28:26]json parsed OK: [19:28:26]protocol is kg_v1.0 [19:28:26]action value=close_receipt [19:28:26]process_action close_receipt [19:28:26]cmd_close_receipt [19:28:26]MH_GetDate [19:28:26]Write to MH i2c: F0 00 00 AA 1C B5 [19:28:26]Write i2c OK [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: F0 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: F0 09 00 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: F0 09 00 AA 1C 00 5E AB 16 67 4C DF 56 66 2B [19:28:26]GetLastDocTimeStamp 1729537894 [19:28:26]current date 1729538910 [19:28:26]FM_GetShiftState [19:28:26]SAM_PROTO_GetShiftState [19:28:26]wFMCommunicate request_size=4 [19:28:26]MH_SAM_APDU [19:28:26]CAPDU: 80 13 01 00 [19:28:26]Write to MH i2c: E2 08 00 AB 1C 80 13 01 00 00 00 00 00 44 [19:28:26]Write i2c OK [19:28:26]MH_I2C_Read... [19:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:26]Read from MH i2c: E2 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 0E 00 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 0E 00 AB 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A4 [19:28:26]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:28:26]wFMCommunicate OK [19:28:26]SAM_PROTO_GetShiftState done [19:28:26]FM_GetShiftState done [19:28:26]opened in 1729469755 [19:28:26]opened+sec_in_day 1729556155 [19:28:26]quantity*price = 12389 [19:28:26]sum+1 = 12390 [19:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 123.89 НСП 1% : 1.10 НДС 12% : 13.16 Наличными: 0.00 Безнал.: 123.89 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 117 21.10.2024 19:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63120 ФПД: 85256708993907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192830&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63120&fm=85256708993907&tin=02508201610067®Number=0000000000091619&sum=12389 0 [19:28:27]StoreToDocumentArchive [19:28:27]shift 544 fd 63120 [19:28:27]save to /storage/0544/doc_00063120 [19:28:27]save last doc name /storage/0544/doc_00063120 to /storage/kkm_last_doc_name [19:28:27]save OK [19:28:27]Clear old archive folders... [19:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:28:27]tlvbuf is B6F169F0 [19:28:27]SAM_PROTO_ClearQueue [19:28:27]wFMCommunicate request_size=4 [19:28:27]MH_SAM_APDU [19:28:27]CAPDU: 80 09 00 00 [19:28:27]Write to MH i2c: E2 08 00 B8 1C 80 09 00 00 00 00 00 00 46 [19:28:27]Write i2c OK [19:28:27]MH_I2C_Read... [19:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:27]Read from MH i2c: E2 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [19:28:27]RAPDU: 90 00 [19:28:27]wFMCommunicate OK [19:28:27]SAM_PROTO_ClearQueue done [19:28:27]KKMCreateOFDPacket [19:28:27]OFDProtocolAddRootSTLVToBuf [19:28:27]FM_MakeSignedData [19:28:27]FM_MakeSignedData [19:28:27]SAM_PROTO_SignData [19:28:27]wFMCommunicate request_size=4 [19:28:27]MH_SAM_APDU [19:28:27]CAPDU: 80 0D 01 02 [19:28:27]Write to MH i2c: E2 08 00 B9 1C 80 0D 01 02 00 00 00 00 4E [19:28:27]Write i2c OK [19:28:27]MH_I2C_Read... [19:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:27]Read from MH i2c: E2 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [19:28:27]RAPDU: 90 00 [19:28:27]wFMCommunicate OK [19:28:27]wFMCommunicate request_size=255 [19:28:27]MH_SAM_APDU [19:28:27]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 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 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5E AB 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [19:28:27]Write to MH i2c: E2 02 01 BA 1C 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 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 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5E AB 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 50 [19:28:27]Write i2c OK [19:28:27]MH_I2C_Read... [19:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:27]Read from MH i2c: E2 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [19:28:27]RAPDU: 90 00 [19:28:27]wFMCommunicate OK [19:28:27]wFMCommunicate request_size=37 [19:28:27]MH_SAM_APDU [19:28:27]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F6 00 00 35 04 06 00 4D 8A 5F DA B3 73 [19:28:27]Write to MH i2c: E2 28 00 BB 1C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F6 00 00 35 04 06 00 4D 8A 5F DA B3 73 00 00 6A [19:28:27]Write i2c OK [19:28:27]MH_I2C_Read... [19:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:27]Read from MH i2c: E2 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 [19:28:27]MH_I2C_Read... [19:28:27]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [19:28:27]RAPDU: 90 00 [19:28:27]wFMCommunicate OK [19:28:27]wFMCommunicate request_size=4 [19:28:27]MH_SAM_APDU [19:28:27]CAPDU: 80 0D 03 02 [19:28:27]Write to MH i2c: E2 08 00 BC 1C 80 0D 03 02 00 00 00 00 53 [19:28:27]Write i2c OK [19:28:27]MH_I2C_Read... [19:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:28]Read from MH i2c: E2 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: E2 0B 00 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: E2 0B 00 BC 1C 00 BF AF 3B A9 5E 8E D4 C7 90 00 2D [19:28:28]RAPDU: BF AF 3B A9 5E 8E D4 C7 90 00 [19:28:28]wFMCommunicate OK [19:28:28]SAM_PROTO_SignData done [19:28:28]FM_MakeSignedData done [19:28:28]CreateOFDProtocolMessage [19:28:28]wFMCommunicate request_size=4 [19:28:28]MH_SAM_APDU [19:28:28]CAPDU: 80 11 00 00 [19:28:28]Write to MH i2c: E2 08 00 BD 1C 80 11 00 00 00 00 00 00 53 [19:28:28]Write i2c OK [19:28:28]MH_I2C_Read... [19:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:28]Read from MH i2c: E2 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: E2 17 00 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: E2 17 00 BD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AC [19:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:28:28]wFMCommunicate OK [19:28:28]CreateOFDProtocolMessage done [19:28:28]OFDSenderStorePacket 63120 [19:28:28]StoreOFDPacket docnum=63120 [19:28: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 2A 01 00 00 15 C6 22 01 27 48 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 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 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5E AB 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 4D 8A 5F DA B3 73 BF AF 3B A9 5E 8E D4 C7 [19:28:28]CheckFolder [19:28:28]dirname=/storage/ofd_packets [19:28:28]CheckFolder done [19:28:28]ProducePacketName [19:28:28]name=ofd_packets/00063120 [19:28:28]NVStorageSaveData ofd_packets/00063120 [19:28:28]File name is /storage/ofd_packets/00063120 [19:28:28]Write 328 bytes [19:28:28]NVStorageSaveData done [19:28:28]OFDSenderStorePacket done [19:28:28]KKMCreateOFDPacket done [19:28:28]NVStorageSaveData kkm_last_timestamp [19:28:28]File name is /storage/kkm_last_timestamp [19:28:28]Write 4 bytes [19:28:28]NVStorageSaveData done [19:28:28]ExternCall_PrintAddStr [19:28:28]wPrintStart [19:28:28]Write to MH i2c: 01 00 00 BE 1C DA [19:28:28]Write i2c OK [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 07 00 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [19:28:28]RasterBufferAndPrint [19:28:28]line Счет N : (3)47430 [19:28:28]line ИНН: 02508201610067 [19:28:28]line Контрольно-Кассовый Чек [19:28:28]line ПРОДАЖА [19:28:28]line Товар: 5449000054227 [19:28:28]line Напиток Кока-Кола 1л [19:28:28]line 1.000 * 123.89 [19:28:28]line = 123.89 [19:28:28]line НДС 12% НСП 1% [19:28:28]line > о реализуемом товаре [19:28:28]line ИТОГО: 123.89 [19:28:28]line НСП 1% : 1.10 [19:28:28]line НДС 12% : 13.16 [19:28:28]line Наличными: 0.00 [19:28:28]line Безнал.: 123.89 [19:28:28]line Место: АЗС № 86 "Партнер Нефть" [19:28:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:28:28]line СНО: Общий режим [19:28:28]line Чек 117 21.10.2024 19:28 [19:28:28]line Смена: 544 ФФД: 1.0 [19:28:28]line ЗНМ: 0300000154 [19:28:28]line РНМ: 0000000000091619 [19:28:28]line Версия ККМ: 001 [19:28:28]line Платежная система: Mbank [19:28:28]line ФМ: 0000000000874676 [19:28:28]line ФД: 63120 [19:28:28]line ФПД: 85256708993907 [19:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192830&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63120&fm=85256708993907&tin=02508201610067®Number=0000000000091619&sum=12389 [19:28:28]line 0 [19:28:28]written 0, free lines is 4095 [19:28:28]OFD Sender: Processing packet 63120 [packets to send 232, broken 231] [19:28:28]ProducePacketName [19:28:28]name=ofd_packets/00063120 [19:28:28]OFD Sender: To server: pG, [19:28:28]CommunicateWithHost lk.salyk.kg:30040 [19:28:28]ConnectInit lk.salyk.kg [19:28:28]Write to MH i2c: 01 00 00 E7 1C 03 [19:28:28]Write i2c OK [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 07 00 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: 01 07 00 E7 1C 00 00 00 00 00 13 0D 2A [19:28:28]RasterBufferAndPrint [19:28:28]line [19:28:28]line [19:28:28]line [19:28:28]line [19:28:28]line [19:28:28]written 0, free lines is 3354 [19:28:28]MH_Cut [19:28:28]Write to MH i2c: D1 01 00 EE 1C 01 DC [19:28:28]Write i2c OK [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: D1 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: D1 01 00 [19:28:28]MH_I2C_Read... [19:28:28]Read from MH i2c: D1 01 00 EE 1C 00 DB [19:28:28]Write to MH i2c: 01 00 00 EF 1C 0B [19:28:28]Write i2c OK [19:28:28]MH_I2C_Read... [19:28:29]*** Cut start [19:28:29]*** Partial cut [19:28:29]*** CUTSNS_PIN = 1 [19:28:29]*** CUTSNS_PIN = 0 [19:28:29]*** Brake cut motor [19:28:29]Read from MH i2c: 01 [19:28:29]MH_I2C_Read... [19:28:29]*** Stop cut motor [19:28:29]*** Cut end [19:28:29]Read from MH i2c: 01 07 00 [19:28:29]MH_I2C_Read... [19:28:29]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 FF 0F 20 [19:28:29]process_action close_receipt done [19:28:29]requested_data is exist [19:28:29]produce_requested_data [19:28:29]requested_item fm.sn is exist - process it [19:28:29]wFMCommunicate request_size=4 [19:28:29]MH_SAM_APDU [19:28:29]CAPDU: 80 11 00 00 [19:28:29]Write to MH i2c: E2 08 00 F0 1C 80 11 00 00 00 00 00 00 86 [19:28:29]Write i2c OK [19:28:29]MH_I2C_Read... [19:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:29]Read from MH i2c: E2 [19:28:29]MH_I2C_Read... [19:28:29]Read from MH i2c: E2 17 00 [19:28:29]MH_I2C_Read... [19:28:29]Read from MH i2c: E2 17 00 F0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DF [19:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:28:29]wFMCommunicate OK [19:28:29]requested_item fd.num is exist - process it [19:28:29]SAM_PROTO_GetFieldsCounters [19:28:29]wFMCommunicate request_size=4 [19:28:29]MH_SAM_APDU [19:28:29]CAPDU: 80 13 00 00 [19:28:29]Write to MH i2c: E2 08 00 F1 1C 80 13 00 00 00 00 00 00 89 [19:28:29]Write i2c OK [19:28:29]MH_I2C_Read... [19:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:30]Read from MH i2c: E2 [19:28:30]MH_I2C_Read... [19:28:30]Read from MH i2c: E2 62 00 [19:28:30]MH_I2C_Read... [19:28:30]Read from MH i2c: E2 62 00 F1 1C 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [19:28: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 90 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:30]wFMCommunicate OK [19:28:30]SAM_PROTO_GetFieldsCounters done [19:28:30]requested_item shift.num is exist - process it [19:28:30]requested_item shift.opened is exist - process it [19:28:30]req_shift_opened [19:28:30]FM_GetShiftState [19:28:30]SAM_PROTO_GetShiftState [19:28:30]wFMCommunicate request_size=4 [19:28:30]MH_SAM_APDU [19:28:30]CAPDU: 80 13 01 00 [19:28:30]Write to MH i2c: E2 08 00 F2 1C 80 13 01 00 00 00 00 00 8B [19:28:30]Write i2c OK [19:28:30]MH_I2C_Read... [19:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:30]Read from MH i2c: E2 [19:28:30]MH_I2C_Read... [19:28:30]Read from MH i2c: E2 0E 00 [19:28:30]MH_I2C_Read... [19:28:30]Read from MH i2c: E2 0E 00 F2 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 EB [19:28:30]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:28:30]wFMCommunicate OK [19:28:30]SAM_PROTO_GetShiftState done [19:28:30]FM_GetShiftState done [19:28:30]req_shift_opened done [19:28:30]requested_item shift.open_date is exist - process it [19:28:30]req_shift_open_date [19:28:30]req_shift_open_date done [19:28:30]produce_requested_data done [19:28:30]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63120,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:28:30]process_action_free close_receipt [19:28:30]json_value_free [19:28:30]json_value_free done [19:28:30]process_json_proto returns [19:28:30]Send response to host [19:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63120,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:28:30]free response buf [19:28:30]execute_script done [19:28:30]execute_script returns [19:28:30]free content buf [19:28:30]Sock 7.Close socket [19:28:30]Sock 7.Thread stoped [19:30:41]ConnectInit Can't connect to host [19:30:41]CommunicateWithHost connect error [19:30:41]CommunicateWithHost err = -1 [19:30:41]OFD Sender: Server communicate error [19:30:46]OFD Sender: Processing packet 63120 [packets to send 232, broken 231] [19:30:46]ProducePacketName [19:30:46]name=ofd_packets/00063120 [19:30:46]OFD Sender: To server: pG, [19:30:46]CommunicateWithHost lk.salyk.kg:30040 [19:30:46]ConnectInit lk.salyk.kg [19:30:47]Connected sock=7 [19:30:47]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 15 C6 22 01 27 48 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 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 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 5E AB 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 4D 8A 5F DA B3 73 BF AF 3B A9 5E 8E D4 C7 [19:30:47]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 B3 2C 47 00 99 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 E5 55 16 67 B6 04 01 00 00 69 81 EE 82 B9 74 C3 EC [19:30:47]CommunicateWithHost err = 0 [19:30:47]CheckOFDResponse [19:30:47]1017 (14) - 77093643461234 [19:30:47]1041 (16) - 0000000000874676 [19:30:47]1040 (4) - 63120 [19:30:47]1012 (4) - 21.10.2024 13:23 [19:30:47]1206 (1) - 0 [19:30:47]OFD Sender: Remove packet 63120 [19:30:47]ProducePacketName [19:30:47]name=ofd_packets/00063120 [19:30:47]NVStorageDeleteData [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]accept exits with 9 [19:32:03]New connection [19:32:03]New thread 3067198820 created [19:32:03]Thread 3067055460 joined [19:32:03]Waiting for new connection... [19:32:03] Sock 9.Parse request [19:32:03]Sock 9.Check first char [19:32:03]Sock 9.First char is OK [19:32:03]request: POST /json_proto HTTP/1.0 [19:32:03]Method: POST [19:32:03]URL: /json_proto [19:32:03]Method is POST - this is cgi request [19:32:03]url: /json_proto [19:32:03]query_string will be loaded in cgi processing [19:32:03]execute_cgi json_proto POST (null) [19:32:03]execute_cgi path=json_proto method=POST [19:32:03]POST find Content-Length [19:32:03]Host: 172.17.42.132:8080 [19:32:03]Content-Length: 1570 [19:32:03]Content-Type: application/json [19:32:03] [19:32:03]POST finish read [19:32:03]Found Content-Length = 1570 [19:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47431", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "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" : 59.47, "quantity" : 1.000, "sum" : 59.47, "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" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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: Mbank", "payments": [ { "type": 1, "sum" : 559.02 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:03]execute_script... [19:32: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)47431", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "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" : 59.47, "quantity" : 1.000, "sum" : 59.47, "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" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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: Mbank", "payments": [ { "type": 1, "sum" : 559.02 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:03]POST & json_proto [19:32:03]process_json_proto [19:32:03]json parsed OK: [19:32:03]protocol is kg_v1.0 [19:32:03]action value=close_receipt [19:32:03]process_action close_receipt [19:32:03]cmd_close_receipt [19:32:03]MH_GetDate [19:32:03]Write to MH i2c: F0 00 00 F3 1C FE [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: F0 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: F0 09 00 [19:32:03]MH_I2C_Read... [19:32:03]OFD Sender: No OFD packet to send [19:32:03]Read from MH i2c: F0 09 00 F3 1C 00 36 AC 16 67 4C DF 56 66 4D [19:32:03]GetLastDocTimeStamp 1729538910 [19:32:03]current date 1729539126 [19:32:03]FM_GetShiftState [19:32:03]SAM_PROTO_GetShiftState [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 13 01 00 [19:32:03]Write to MH i2c: E2 08 00 F4 1C 80 13 01 00 00 00 00 00 8D [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0E 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0E 00 F4 1C 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 ED [19:32:03]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:32:03]wFMCommunicate OK [19:32:03]SAM_PROTO_GetShiftState done [19:32:03]FM_GetShiftState done [19:32:03]opened in 1729469755 [19:32:03]opened+sec_in_day 1729556155 [19:32:03]quantity*price = 9912 [19:32:03]sum+1 = 9913 [19:32:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 59.47 = 59.47 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 128.85 = 257.70 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 142.73 = 142.73 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 559.02 НСП 1% : 4.95 НДС 12% : 59.37 Наличными: 0.00 Безнал.: 559.02 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 118 21.10.2024 19:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63121 ФПД: 56464225442215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193207&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63121&fm=56464225442215&tin=02508201610067®Number=0000000000091619&sum=55902 0 [19:32:04]StoreToDocumentArchive [19:32:04]shift 544 fd 63121 [19:32:04]save to /storage/0544/doc_00063121 [19:32:04]save last doc name /storage/0544/doc_00063121 to /storage/kkm_last_doc_name [19:32:04]save OK [19:32:04]Clear old archive folders... [19:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=614 [19:32:04]tlvbuf is 018D69B0 [19:32:04]SAM_PROTO_ClearQueue [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 09 00 00 [19:32:04]Write to MH i2c: E2 08 00 01 1D 80 09 00 00 00 00 00 00 90 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]SAM_PROTO_ClearQueue done [19:32:04]KKMCreateOFDPacket [19:32:04]OFDProtocolAddRootSTLVToBuf [19:32:04]FM_MakeSignedData [19:32:04]FM_MakeSignedData [19:32:04]SAM_PROTO_SignData [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 01 02 [19:32:04]Write to MH i2c: E2 08 00 02 1D 80 0D 01 02 00 00 00 00 98 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]wFMCommunicate request_size=255 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 02 02 FA 03 00 66 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 [19:32:04]Write to MH i2c: E2 02 01 03 1D 80 0D 02 02 FA 00 03 00 66 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 00 00 F9 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]wFMCommunicate request_size=255 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 02 02 FA 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 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 5E DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 [19:32:04]Write to MH i2c: E2 02 01 04 1D 80 0D 02 02 FA 00 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 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 5E DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 00 00 8B [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 03 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [19:32:05]RAPDU: 90 00 [19:32:05]wFMCommunicate OK [19:32:05]wFMCommunicate request_size=123 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 0D 02 02 76 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 37 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 5A 9A 19 99 A7 [19:32:05]Write to MH i2c: E2 7E 00 05 1D 80 0D 02 02 76 00 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 37 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 5A 9A 19 99 A7 00 00 17 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 03 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [19:32:05]RAPDU: 90 00 [19:32:05]wFMCommunicate OK [19:32:05]wFMCommunicate request_size=4 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 0D 03 02 [19:32:05]Write to MH i2c: E2 08 00 06 1D 80 0D 03 02 00 00 00 00 9E [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 0B 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 0B 00 06 1D 00 DA 7C 3E 08 66 AB AD CE 90 00 C7 [19:32:05]RAPDU: DA 7C 3E 08 66 AB AD CE 90 00 [19:32:05]wFMCommunicate OK [19:32:05]SAM_PROTO_SignData done [19:32:05]FM_MakeSignedData done [19:32:05]CreateOFDProtocolMessage [19:32:05]wFMCommunicate request_size=4 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 11 00 00 [19:32:05]Write to MH i2c: E2 08 00 07 1D 80 11 00 00 00 00 00 00 9E [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 17 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 17 00 07 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F7 [19:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:32:05]wFMCommunicate OK [19:32:05]CreateOFDProtocolMessage done [19:32:05]OFDSenderStorePacket 63121 [19:32:05]StoreOFDPacket docnum=63121 [19:32: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 7A 02 00 00 AE B1 72 02 81 F2 5A 03 01 00 03 00 66 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 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 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 5E DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 37 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 5A 9A 19 99 A7 DA 7C 3E 08 66 AB AD CE [19:32:05]CheckFolder [19:32:05]dirname=/storage/ofd_packets [19:32:05]CheckFolder done [19:32:05]ProducePacketName [19:32:05]name=ofd_packets/00063121 [19:32:05]NVStorageSaveData ofd_packets/00063121 [19:32:05]File name is /storage/ofd_packets/00063121 [19:32:05]Write 664 bytes [19:32:05]NVStorageSaveData done [19:32:05]OFDSenderStorePacket done [19:32:05]KKMCreateOFDPacket done [19:32:05]NVStorageSaveData kkm_last_timestamp [19:32:05]File name is /storage/kkm_last_timestamp [19:32:05]Write 4 bytes [19:32:05]NVStorageSaveData done [19:32:05]ExternCall_PrintAddStr [19:32:05]wPrintStart [19:32:05]Write to MH i2c: 01 00 00 08 1D 25 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 07 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 07 00 08 1D 00 00 00 00 00 FF 0F 3A [19:32:05]RasterBufferAndPrint [19:32:05]line Счет N : (3)47431 [19:32:05]line ИНН: 02508201610067 [19:32:05]line Контрольно-Кассовый Чек [19:32:05]line ПРОДАЖА [19:32:05]line Товар: 4870001571528 [19:32:05]line Вода ASU пит н.газ персик ПЭТ 1,0 л [19:32:05]line 1.000 * 99.12 [19:32:05]line = 99.12 [19:32:05]line НДС 12% НСП 1% [19:32:05]line > о реализуемом товаре [19:32:05]line Товар: 4700000160204 [19:32:05]line Вода Легенда 1,5л [19:32:05]line 1.000 * 59.47 [19:32:05]line = 59.47 [19:32:05]line НДС 12% НСП 1% [19:32:05]line > о реализуемом товаре [19:32:05]line Товар: 2000036220012 [19:32:05]line Кофе Капучино XL(GABB TRADE) [19:32:05]line 2.000 * 128.85 [19:32:05]line = 257.70 [19:32:05]line НДС 12% НСП 1% [19:32:05]line > о реализуемом товаре [19:32:05]line Товар: 48743570 [19:32:05]line Сигареты Winston XStyle Blue [19:32:05]line 1.000 * 142.73 [19:32:05]line = 142.73 [19:32:05]line НДС 12% НСП 1% [19:32:05]line > о реализуемом товаре [19:32:05]line ИТОГО: 559.02 [19:32:05]line НСП 1% : 4.95 [19:32:05]line НДС 12% : 59.37 [19:32:05]line Наличными: 0.00 [19:32:05]line Безнал.: 559.02 [19:32:05]line Место: АЗС № 86 "Партнер Нефть" [19:32:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:32:05]line СНО: Общий режим [19:32:05]line Чек 118 21.10.2024 19:32 [19:32:05]line Смена: 544 ФФД: 1.0 [19:32:05]line ЗНМ: 0300000154 [19:32:05]line РНМ: 0000000000091619 [19:32:05]line Версия ККМ: 001 [19:32:05]line Платежная система: Mbank [19:32:05]line ФМ: 0000000000874676 [19:32:05]line ФД: 63121 [19:32:05]line ФПД: 56464225442215 [19:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193207&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63121&fm=56464225442215&tin=02508201610067®Number=0000000000091619&sum=55902 [19:32:05]line 0 [19:32:05]OFD Sender: Processing packet 63121 [packets to send 232, broken 231] [19:32:05]ProducePacketName [19:32:05]name=ofd_packets/00063121 [19:32:05]OFD Sender: To server: pG, [19:32:05]CommunicateWithHost lk.salyk.kg:30040 [19:32:05]ConnectInit lk.salyk.kg [19:32:05]written 0, free lines is 4095 [19:32:06]Connected sock=7 [19:32: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 7A 02 00 00 AE B1 72 02 81 F2 5A 03 01 00 03 00 66 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 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 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 3B 17 00 00 00 00 13 04 06 00 3B 17 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 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 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 5E DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 37 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 33 5A 9A 19 99 A7 DA 7C 3E 08 66 AB AD CE [19:32:06]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 34 26 47 00 68 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F6 00 00 F4 03 04 00 34 56 16 67 B6 04 01 00 00 99 52 17 9A 31 82 BE 23 [19:32:06]CommunicateWithHost err = 0 [19:32:06]CheckOFDResponse [19:32:06]1017 (14) - 77093643461234 [19:32:06]1041 (16) - 0000000000874676 [19:32:06]1040 (4) - 63121 [19:32:06]1012 (4) - 21.10.2024 13:25 [19:32:06]1206 (1) - 0 [19:32:06]OFD Sender: Remove packet 63121 [19:32:06]ProducePacketName [19:32:06]name=ofd_packets/00063121 [19:32:06]NVStorageDeleteData [19:32:06]Write to MH i2c: 01 00 00 45 1D 62 [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 07 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: 01 07 00 45 1D 00 00 00 00 00 34 0C A9 [19:32:06]RasterBufferAndPrint [19:32:06]line [19:32:06]line [19:32:06]line [19:32:06]line [19:32:06]line [19:32:06]written 0, free lines is 3133 [19:32:06]MH_Cut [19:32:06]Write to MH i2c: D1 01 00 4C 1D 01 3B [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: D1 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: D1 01 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: D1 01 00 4C 1D 00 3A [19:32:06]Write to MH i2c: 01 00 00 4D 1D 6A [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]OFD Sender: No OFD packet to send [19:32:07]*** Cut start [19:32:07]*** Partial cut [19:32:07]*** CUTSNS_PIN = 1 [19:32:07]*** CUTSNS_PIN = 0 [19:32:07]*** Brake cut motor [19:32:07]Read from MH i2c: 01 [19:32:07]MH_I2C_Read... [19:32:07]*** Stop cut motor [19:32:07]*** Cut end [19:32:07]Read from MH i2c: 01 07 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: 01 07 00 4D 1D 00 00 00 00 00 FF 0F 7F [19:32:07]process_action close_receipt done [19:32:07]requested_data is exist [19:32:07]produce_requested_data [19:32:07]requested_item fm.sn is exist - process it [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:08]CAPDU: 80 11 00 00 [19:32:08]Write to MH i2c: E2 08 00 4E 1D 80 11 00 00 00 00 00 00 E5 [19:32:08]Write i2c OK [19:32:08]MH_I2C_Read... [19:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:08]Read from MH i2c: E2 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 17 00 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 17 00 4E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3E [19:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:32:08]wFMCommunicate OK [19:32:08]requested_item fd.num is exist - process it [19:32:08]SAM_PROTO_GetFieldsCounters [19:32:08]wFMCommunicate request_size=4 [19:32:08]MH_SAM_APDU [19:32:08]CAPDU: 80 13 00 00 [19:32:08]Write to MH i2c: E2 08 00 4F 1D 80 13 00 00 00 00 00 00 E8 [19:32:08]Write i2c OK [19:32:08]MH_I2C_Read... [19:32:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:08]Read from MH i2c: E2 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 62 00 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 62 00 4F 1D 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:32: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 91 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:08]wFMCommunicate OK [19:32:08]SAM_PROTO_GetFieldsCounters done [19:32:08]requested_item shift.num is exist - process it [19:32:08]requested_item shift.opened is exist - process it [19:32:08]req_shift_opened [19:32:08]FM_GetShiftState [19:32:08]SAM_PROTO_GetShiftState [19:32:08]wFMCommunicate request_size=4 [19:32:08]MH_SAM_APDU [19:32:08]CAPDU: 80 13 01 00 [19:32:08]Write to MH i2c: E2 08 00 50 1D 80 13 01 00 00 00 00 00 EA [19:32:08]Write i2c OK [19:32:08]MH_I2C_Read... [19:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:08]Read from MH i2c: E2 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 0E 00 [19:32:08]MH_I2C_Read... [19:32:08]Read from MH i2c: E2 0E 00 50 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 4A [19:32:08]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:32:08]wFMCommunicate OK [19:32:08]SAM_PROTO_GetShiftState done [19:32:08]FM_GetShiftState done [19:32:08]req_shift_opened done [19:32:08]requested_item shift.open_date is exist - process it [19:32:08]req_shift_open_date [19:32:08]req_shift_open_date done [19:32:08]produce_requested_data done [19:32:08]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63121,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:32:08]process_action_free close_receipt [19:32:08]json_value_free [19:32:08]json_value_free done [19:32:08]process_json_proto returns [19:32:08]Send response to host [19:32:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63121,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:32:08]free response buf [19:32:08]execute_script done [19:32:08]execute_script returns [19:32:08]free content buf [19:32:08]Sock 9.Close socket [19:32:08]Sock 9.Thread stoped [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:41]accept exits with 10 [19:33:41]New connection [19:33:41]New thread 3067055460 created [19:33:41]Thread 3067198820 joined [19:33:41]Waiting for new connection... [19:33:41] Sock 10.Parse request [19:33:41]Sock 10.Check first char [19:33:41]Sock 10.First char is OK [19:33:41]request: POST /json_proto HTTP/1.0 [19:33:41]Method: POST [19:33:41]URL: /json_proto [19:33:41]Method is POST - this is cgi request [19:33:41]url: /json_proto [19:33:41]query_string will be loaded in cgi processing [19:33:41]execute_cgi json_proto POST (null) [19:33:41]execute_cgi path=json_proto method=POST [19:33:41]POST find Content-Length [19:33:41]Host: 172.17.42.132:8080 [19:33:41]Content-Length: 1134 [19:33:41]Content-Type: application/json [19:33:41] [19:33:41]POST finish read [19:33:41]Found Content-Length = 1134 [19:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47432", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:41]execute_script... [19:33:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47432", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:41]POST & json_proto [19:33:41]process_json_proto [19:33:41]json parsed OK: [19:33:41]protocol is kg_v1.0 [19:33:41]action value=close_receipt [19:33:41]process_action close_receipt [19:33:41]cmd_close_receipt [19:33:41]MH_GetDate [19:33:41]Write to MH i2c: F0 00 00 51 1D 5D [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: F0 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: F0 09 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: F0 09 00 51 1D 00 99 AC 16 67 4C DF 56 66 0F [19:33:41]GetLastDocTimeStamp 1729539127 [19:33:41]current date 1729539225 [19:33:41]FM_GetShiftState [19:33:41]SAM_PROTO_GetShiftState [19:33:41]wFMCommunicate request_size=4 [19:33:41]MH_SAM_APDU [19:33:41]CAPDU: 80 13 01 00 [19:33:41]Write to MH i2c: E2 08 00 52 1D 80 13 01 00 00 00 00 00 EC [19:33:41]Write i2c OK [19:33:41]MH_I2C_Read... [19:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:41]Read from MH i2c: E2 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 0E 00 [19:33:41]MH_I2C_Read... [19:33:41]Read from MH i2c: E2 0E 00 52 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 4C [19:33:41]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:33:41]wFMCommunicate OK [19:33:41]SAM_PROTO_GetShiftState done [19:33:41]FM_GetShiftState done [19:33:41]opened in 1729469755 [19:33:41]opened+sec_in_day 1729556155 [19:33:41]quantity*price = 13900 [19:33:41]sum+1 = 13901 [19:33:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 119 21.10.2024 19:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63122 ФПД: 107944610957630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193345&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63122&fm=107944610957630&tin=02508201610067®Number=0000000000091619&sum=19900 0 [19:33:42]StoreToDocumentArchive [19:33:42]shift 544 fd 63122 [19:33:42]save to /storage/0544/doc_00063122 [19:33:42]save last doc name /storage/0544/doc_00063122 to /storage/kkm_last_doc_name [19:33:42]save OK [19:33:42]Clear old archive folders... [19:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=487 [19:33:42]tlvbuf is 01956160 [19:33:42]SAM_PROTO_ClearQueue [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 09 00 00 [19:33:42]Write to MH i2c: E2 08 00 5F 1D 80 09 00 00 00 00 00 00 EE [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:42]Read from MH i2c: E2 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 03 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 03 00 5F 1D 00 90 00 F0 [19:33:42]RAPDU: 90 00 [19:33:42]wFMCommunicate OK [19:33:42]SAM_PROTO_ClearQueue done [19:33:42]KKMCreateOFDPacket [19:33:42]OFDProtocolAddRootSTLVToBuf [19:33:42]FM_MakeSignedData [19:33:42]FM_MakeSignedData [19:33:42]SAM_PROTO_SignData [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 0D 01 02 [19:33:42]Write to MH i2c: E2 08 00 60 1D 80 0D 01 02 00 00 00 00 F6 [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 60 1D 00 90 00 F1 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=255 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 02 02 FA 03 00 E7 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 [19:33:43]Write to MH i2c: E2 02 01 61 1D 80 0D 02 02 FA 00 03 00 E7 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 00 00 4A [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 61 1D 00 90 00 F2 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=246 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 02 02 F1 1B 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 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 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 62 2C D0 31 09 3E [19:33:43]Write to MH i2c: E2 F9 00 62 1D 80 0D 02 02 F1 00 1B 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 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 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 62 2C D0 31 09 3E 00 00 BC [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 62 1D 00 90 00 F3 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 03 02 [19:33:43]Write to MH i2c: E2 08 00 63 1D 80 0D 03 02 00 00 00 00 FB [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 0B 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 0B 00 63 1D 00 46 95 28 D2 7C 0E 5F 85 90 00 3F [19:33:43]RAPDU: 46 95 28 D2 7C 0E 5F 85 90 00 [19:33:43]wFMCommunicate OK [19:33:43]SAM_PROTO_SignData done [19:33:43]FM_MakeSignedData done [19:33:43]CreateOFDProtocolMessage [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 11 00 00 [19:33:43]Write to MH i2c: E2 08 00 64 1D 80 11 00 00 00 00 00 00 FB [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:44]Read from MH i2c: E2 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: E2 17 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: E2 17 00 64 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 54 [19:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:33:44]wFMCommunicate OK [19:33:44]CreateOFDProtocolMessage done [19:33:44]OFDSenderStorePacket 63122 [19:33:44]StoreOFDPacket docnum=63122 [19:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 FB 01 00 00 C9 1C F3 01 0E C1 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 62 2C D0 31 09 3E 46 95 28 D2 7C 0E 5F 85 [19:33:44]CheckFolder [19:33:44]dirname=/storage/ofd_packets [19:33:44]CheckFolder done [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00063122 [19:33:44]NVStorageSaveData ofd_packets/00063122 [19:33:44]File name is /storage/ofd_packets/00063122 [19:33:44]Write 537 bytes [19:33:44]NVStorageSaveData done [19:33:44]OFDSenderStorePacket done [19:33:44]KKMCreateOFDPacket done [19:33:44]NVStorageSaveData kkm_last_timestamp [19:33:44]File name is /storage/kkm_last_timestamp [19:33:44]Write 4 bytes [19:33:44]NVStorageSaveData done [19:33:44]ExternCall_PrintAddStr [19:33:44]wPrintStart [19:33:44]Write to MH i2c: 01 00 00 65 1D 82 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 FF 0F 97 [19:33:44]RasterBufferAndPrint [19:33:44]line Счет N : (3)47432 [19:33:44]line ИНН: 02508201610067 [19:33:44]line Контрольно-Кассовый Чек [19:33:44]line ПРОДАЖА [19:33:44]line Товар: 48741224 [19:33:44]line Сигареты Winston Super Slims Blue [19:33:44]line 1.000 * 139.00 [19:33:44]line = 139.00 [19:33:44]line НДС 12% НСП 1% [19:33:44]line > о реализуемом товаре [19:33:44]line Товар: 46226617 [19:33:44]line Mentos ПВ Нежная Мята 6*100*2г [19:33:44]line 1.000 * 10.00 [19:33:44]line = 10.00 [19:33:44]line НДС 12% НСП 1% [19:33:44]line > о реализуемом товаре [19:33:44]line Товар: 4700000160358 [19:33:44]line Вода Легенда 1л [19:33:44]line 1.000 * 50.00 [19:33:44]line = 50.00 [19:33:44]line НДС 12% НСП 1% [19:33:44]line > о реализуемом товаре [19:33:44]line ИТОГО: 199.00 [19:33:44]line НСП 1% : 1.76 [19:33:44]line НДС 12% : 21.13 [19:33:44]line Наличными: 199.00 [19:33:44]line Безнал.: 0.00 [19:33:44]line Место: АЗС № 86 "Партнер Нефть" [19:33:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:33:44]line СНО: Общий режим [19:33:44]line Чек 119 21.10.2024 19:33 [19:33:44]line Смена: 544 ФФД: 1.0 [19:33:44]line ЗНМ: 0300000154 [19:33:44]line РНМ: 0000000000091619 [19:33:44]line Версия ККМ: 001 [19:33:44]line ФМ: 0000000000874676 [19:33:44]line ФД: 63122 [19:33:44]line ФПД: 107944610957630 [19:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193345&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63122&fm=107944610957630&tin=02508201610067®Number=0000000000091619&sum=19900 [19:33:44]line 0 [19:33:44]written 0, free lines is 4095 [19:33:44]OFD Sender: Processing packet 63122 [packets to send 232, broken 231] [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00063122 [19:33:44]OFD Sender: To server: pG, [19:33:44]CommunicateWithHost lk.salyk.kg:30040 [19:33:44]ConnectInit lk.salyk.kg [19:33:44]Connected sock=9 [19:33: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 FB 01 00 00 C9 1C F3 01 0E C1 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 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 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 AC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 62 2C D0 31 09 3E 46 95 28 D2 7C 0E 5F 85 [19:33:44]Write to MH i2c: 01 00 00 9B 1D B8 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 9B 1D 00 00 00 00 00 49 0C 14 [19:33:44]RasterBufferAndPrint [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]written 0, free lines is 3154 [19:33:44]MH_Cut [19:33:44]Write to MH i2c: D1 01 00 A2 1D 01 91 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 01 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 01 00 A2 1D 00 90 [19:33:44]Write to MH i2c: 01 00 00 A3 1D C0 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33: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 9F A3 47 00 28 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F6 00 00 F4 03 04 00 96 56 16 67 B6 04 01 00 00 9E EF 37 AC 21 45 A2 80 [19:33:44]CommunicateWithHost err = 0 [19:33:44]CheckOFDResponse [19:33:44]1017 (14) - 77093643461234 [19:33:44]1041 (16) - 0000000000874676 [19:33:44]1040 (4) - 63122 [19:33:44]1012 (4) - 21.10.2024 13:26 [19:33:44]1206 (1) - 0 [19:33:44]OFD Sender: Remove packet 63122 [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00063122 [19:33:44]NVStorageDeleteData [19:33:45]OFD Sender: No OFD packet to send [19:33:45]*** Cut start [19:33:45]*** Partial cut [19:33:45]*** CUTSNS_PIN = 1 [19:33:45]*** CUTSNS_PIN = 0 [19:33:45]*** Brake cut motor [19:33:46]Read from MH i2c: 01 [19:33:46]MH_I2C_Read... [19:33:46]*** Stop cut motor [19:33:46]*** Cut end [19:33:46]Read from MH i2c: 01 07 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 FF 0F D5 [19:33:46]process_action close_receipt done [19:33:46]requested_data is exist [19:33:46]produce_requested_data [19:33:46]requested_item fm.sn is exist - process it [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 11 00 00 [19:33:46]Write to MH i2c: E2 08 00 A4 1D 80 11 00 00 00 00 00 00 3B [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 17 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 17 00 A4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 94 [19:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:33:46]wFMCommunicate OK [19:33:46]requested_item fd.num is exist - process it [19:33:46]SAM_PROTO_GetFieldsCounters [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 13 00 00 [19:33:46]Write to MH i2c: E2 08 00 A5 1D 80 13 00 00 00 00 00 00 3E [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 62 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 62 00 A5 1D 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:46]wFMCommunicate OK [19:33:46]SAM_PROTO_GetFieldsCounters done [19:33:46]requested_item shift.num is exist - process it [19:33:46]requested_item shift.opened is exist - process it [19:33:46]req_shift_opened [19:33:46]FM_GetShiftState [19:33:46]SAM_PROTO_GetShiftState [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 13 01 00 [19:33:46]Write to MH i2c: E2 08 00 A6 1D 80 13 01 00 00 00 00 00 40 [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 A6 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A0 [19:33:46]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:33:46]wFMCommunicate OK [19:33:46]SAM_PROTO_GetShiftState done [19:33:46]FM_GetShiftState done [19:33:46]req_shift_opened done [19:33:46]requested_item shift.open_date is exist - process it [19:33:46]req_shift_open_date [19:33:46]req_shift_open_date done [19:33:46]produce_requested_data done [19:33:46]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63122,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:33:46]process_action_free close_receipt [19:33:46]json_value_free [19:33:46]json_value_free done [19:33:46]process_json_proto returns [19:33:46]Send response to host [19:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63122,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:33:46]free response buf [19:33:46]execute_script done [19:33:46]execute_script returns [19:33:46]free content buf [19:33:46]Sock 10.Close socket [19:33:46]Sock 10.Thread stoped [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:43]accept exits with 7 [19:40:43]New connection [19:40:43]New thread 3067198820 created [19:40:43]Thread 3067055460 joined [19:40:43]Waiting for new connection... [19:40:43] Sock 7.Parse request [19:40:43]Sock 7.Check first char [19:40:43]Sock 7.First char is OK [19:40:43]request: POST /json_proto HTTP/1.0 [19:40:43]Method: POST [19:40:43]URL: /json_proto [19:40:43]Method is POST - this is cgi request [19:40:43]url: /json_proto [19:40:43]query_string will be loaded in cgi processing [19:40:43]execute_cgi json_proto POST (null) [19:40:43]execute_cgi path=json_proto method=POST [19:40:43]POST find Content-Length [19:40:43]Host: 172.17.42.132:8080 [19:40:43]Content-Length: 1189 [19:40:43]Content-Type: application/json [19:40:43] [19:40:43]POST finish read [19:40:43]Found Content-Length = 1189 [19:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47433", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]execute_script... [19:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47433", "tax_sys" : 0, "items" : [ { "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]POST & json_proto [19:40:43]process_json_proto [19:40:43]json parsed OK: [19:40:43]protocol is kg_v1.0 [19:40:43]action value=close_receipt [19:40:43]process_action close_receipt [19:40:43]cmd_close_receipt [19:40:43]MH_GetDate [19:40:43]Write to MH i2c: F0 00 00 A7 1D B3 [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 A7 1D 00 3F AE 16 67 4C DF 56 66 0D [19:40:43]GetLastDocTimeStamp 1729539225 [19:40:43]current date 1729539647 [19:40:43]FM_GetShiftState [19:40:43]SAM_PROTO_GetShiftState [19:40:43]wFMCommunicate request_size=4 [19:40:43]MH_SAM_APDU [19:40:43]CAPDU: 80 13 01 00 [19:40:43]Write to MH i2c: E2 08 00 A8 1D 80 13 01 00 00 00 00 00 42 [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:43]Read from MH i2c: E2 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 A8 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 A2 [19:40:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:40:43]wFMCommunicate OK [19:40:43]SAM_PROTO_GetShiftState done [19:40:43]FM_GetShiftState done [19:40:43]opened in 1729469755 [19:40:43]opened+sec_in_day 1729556155 [19:40:43]quantity*price = 14000 [19:40:43]sum+1 = 14001 [19:40:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 120 21.10.2024 19:40 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63123 ФПД: 206567052761388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63123&fm=206567052761388&tin=02508201610067®Number=0000000000091619&sum=19500 0 [19:40:44]StoreToDocumentArchive [19:40:44]shift 544 fd 63123 [19:40:44]save to /storage/0544/doc_00063123 [19:40:44]save last doc name /storage/0544/doc_00063123 to /storage/kkm_last_doc_name [19:40:44]save OK [19:40:44]Clear old archive folders... [19:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=498 [19:40:44]tlvbuf is 018BD4D0 [19:40:44]SAM_PROTO_ClearQueue [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 09 00 00 [19:40:44]Write to MH i2c: E2 08 00 B5 1D 80 09 00 00 00 00 00 00 44 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 B5 1D 00 90 00 46 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]SAM_PROTO_ClearQueue done [19:40:45]KKMCreateOFDPacket [19:40:45]OFDProtocolAddRootSTLVToBuf [19:40:45]FM_MakeSignedData [19:40:45]FM_MakeSignedData [19:40:45]SAM_PROTO_SignData [19:40:45]wFMCommunicate request_size=4 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 01 02 [19:40:45]Write to MH i2c: E2 08 00 B6 1D 80 0D 01 02 00 00 00 00 4C [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]wFMCommunicate request_size=255 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E [19:40:45]Write to MH i2c: E2 02 01 B7 1D 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 00 00 20 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 B7 1D 00 90 00 48 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]wFMCommunicate request_size=255 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 02 02 FA 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3F AE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BB DF 23 CD [19:40:45]Write to MH i2c: E2 02 01 B8 1D 80 0D 02 02 FA 00 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3F AE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BB DF 23 CD 00 00 3B [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]OFD Sender: No OFD packet to send [19:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 B8 1D 00 90 00 49 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]wFMCommunicate request_size=7 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 02 02 02 59 2C [19:40:45]Write to MH i2c: E2 0A 00 B9 1D 80 0D 02 02 02 00 59 2C 00 00 D9 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 03 00 B9 1D 00 90 00 4A [19:40:46]RAPDU: 90 00 [19:40:46]wFMCommunicate OK [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 0D 03 02 [19:40:46]Write to MH i2c: E2 08 00 BA 1D 80 0D 03 02 00 00 00 00 52 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 0B 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 0B 00 BA 1D 00 CF 17 86 04 C4 38 11 7D 90 00 4D [19:40:46]RAPDU: CF 17 86 04 C4 38 11 7D 90 00 [19:40:46]wFMCommunicate OK [19:40:46]SAM_PROTO_SignData done [19:40:46]FM_MakeSignedData done [19:40:46]CreateOFDProtocolMessage [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 11 00 00 [19:40:46]Write to MH i2c: E2 08 00 BB 1D 80 11 00 00 00 00 00 00 52 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 17 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 17 00 BB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AB [19:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:40:46]wFMCommunicate OK [19:40:46]CreateOFDProtocolMessage done [19:40:46]OFDSenderStorePacket 63123 [19:40:46]StoreOFDPacket docnum=63123 [19:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 17 1B FE 01 F3 94 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3F AE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BB DF 23 CD 59 2C CF 17 86 04 C4 38 11 7D [19:40:46]CheckFolder [19:40:46]dirname=/storage/ofd_packets [19:40:46]CheckFolder done [19:40:46]ProducePacketName [19:40:46]name=ofd_packets/00063123 [19:40:46]NVStorageSaveData ofd_packets/00063123 [19:40:46]File name is /storage/ofd_packets/00063123 [19:40:46]Write 548 bytes [19:40:46]NVStorageSaveData done [19:40:46]OFDSenderStorePacket done [19:40:46]KKMCreateOFDPacket done [19:40:46]NVStorageSaveData kkm_last_timestamp [19:40:46]File name is /storage/kkm_last_timestamp [19:40:46]Write 4 bytes [19:40:46]NVStorageSaveData done [19:40:46]ExternCall_PrintAddStr [19:40:46]wPrintStart [19:40:46]Write to MH i2c: 01 00 00 BC 1D D9 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 07 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 FF 0F EE [19:40:46]RasterBufferAndPrint [19:40:46]line Счет N : (3)47433 [19:40:46]line ИНН: 02508201610067 [19:40:46]line Контрольно-Кассовый Чек [19:40:46]line ПРОДАЖА [19:40:46]line Товар: 8904103304060 [19:40:46]line Презерватив ITEX жев резинка 3 шт [19:40:46]line 1.000 * 140.00 [19:40:46]line = 140.00 [19:40:46]line НДС 12% НСП 1% [19:40:46]line > о реализуемом товаре [19:40:46]line Товар: 42113270 [19:40:46]line Жев Orbit арбуз [19:40:46]line 1.000 * 45.00 [19:40:46]line = 45.00 [19:40:46]line НДС 12% НСП 1% [19:40:46]line > о реализуемом товаре [19:40:46]line Товар: 46226617 [19:40:46]line Mentos ПВ Нежная Мята 6*100*2г [19:40:46]line 1.000 * 10.00 [19:40:46]line = 10.00 [19:40:46]line НДС 12% НСП 1% [19:40:46]line > о реализуемом товаре [19:40:46]line ИТОГО: 195.00 [19:40:46]line НСП 1% : 1.73 [19:40:46]line НДС 12% : 20.71 [19:40:46]line Наличными: 195.00 [19:40:46]line Безнал.: 0.00 [19:40:46]line Место: АЗС № 86 "Партнер Нефть" [19:40:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:40:46]line СНО: Общий режим [19:40:46]line Чек 120 21.10.2024 19:40 [19:40:46]line Смена: 544 ФФД: 1.0 [19:40:46]line ЗНМ: 0300000154 [19:40:46]line РНМ: 0000000000091619 [19:40:46]line Версия ККМ: 001 [19:40:46]line ФМ: 0000000000874676 [19:40:46]line ФД: 63123 [19:40:46]line ФПД: 206567052761388 [19:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63123&fm=206567052761388&tin=02508201610067®Number=0000000000091619&sum=19500 [19:40:46]line 0 [19:40:46]written 0, free lines is 4095 [19:40:46]OFD Sender: Processing packet 63123 [packets to send 232, broken 231] [19:40:46]ProducePacketName [19:40:46]name=ofd_packets/00063123 [19:40:46]OFD Sender: To server: pG, [19:40:46]CommunicateWithHost lk.salyk.kg:30040 [19:40:46]ConnectInit lk.salyk.kg [19:40:46]Connected sock=10 [19:40:46]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 06 02 00 00 17 1B FE 01 F3 94 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3F AE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 BB DF 23 CD 59 2C CF 17 86 04 C4 38 11 7D [19:40:46]Write to MH i2c: 01 00 00 F2 1D 0F [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 07 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 4E 0C 70 [19:40:46]RasterBufferAndPrint [19:40:46]line [19:40:46]line [19:40:46]line [19:40:46]line [19:40:46]line [19:40:46]written 0, free lines is 3159 [19:40:46]MH_Cut [19:40:46]Write to MH i2c: D1 01 00 F9 1D 01 E8 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 01 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 01 00 F9 1D 00 E7 [19:40:46]Write to MH i2c: 01 00 00 FA 1D 17 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40: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 74 14 47 00 B7 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F6 00 00 F4 03 04 00 3C 58 16 67 B6 04 01 00 00 81 82 36 D3 F8 E8 B7 63 [19:40:46]CommunicateWithHost err = 0 [19:40:46]CheckOFDResponse [19:40:46]1017 (14) - 77093643461234 [19:40:46]1041 (16) - 0000000000874676 [19:40:46]1040 (4) - 63123 [19:40:46]1012 (4) - 21.10.2024 13:33 [19:40:46]1206 (1) - 0 [19:40:46]OFD Sender: Remove packet 63123 [19:40:46]ProducePacketName [19:40:46]name=ofd_packets/00063123 [19:40:46]NVStorageDeleteData [19:40:47]OFD Sender: No OFD packet to send [19:40:47]*** Cut start [19:40:47]*** Partial cut [19:40:47]*** CUTSNS_PIN = 1 [19:40:47]*** CUTSNS_PIN = 0 [19:40:47]*** Brake cut motor [19:40:48]Read from MH i2c: 01 [19:40:48]MH_I2C_Read... [19:40:48]*** Stop cut motor [19:40:48]*** Cut end [19:40:48]Read from MH i2c: 01 07 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: 01 07 00 FA 1D 00 00 00 00 00 FF 0F 2C [19:40:48]process_action close_receipt done [19:40:48]requested_data is exist [19:40:48]produce_requested_data [19:40:48]requested_item fm.sn is exist - process it [19:40:48]wFMCommunicate request_size=4 [19:40:48]MH_SAM_APDU [19:40:48]CAPDU: 80 11 00 00 [19:40:48]Write to MH i2c: E2 08 00 FB 1D 80 11 00 00 00 00 00 00 92 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:48]Read from MH i2c: E2 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 17 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 17 00 FB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EB [19:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:40:48]wFMCommunicate OK [19:40:48]requested_item fd.num is exist - process it [19:40:48]SAM_PROTO_GetFieldsCounters [19:40:48]wFMCommunicate request_size=4 [19:40:48]MH_SAM_APDU [19:40:48]CAPDU: 80 13 00 00 [19:40:48]Write to MH i2c: E2 08 00 FC 1D 80 13 00 00 00 00 00 00 95 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:48]Read from MH i2c: E2 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 62 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 62 00 FC 1D 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:40:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:48]wFMCommunicate OK [19:40:48]SAM_PROTO_GetFieldsCounters done [19:40:48]requested_item shift.num is exist - process it [19:40:48]requested_item shift.opened is exist - process it [19:40:48]req_shift_opened [19:40:48]FM_GetShiftState [19:40:48]SAM_PROTO_GetShiftState [19:40:48]wFMCommunicate request_size=4 [19:40:48]MH_SAM_APDU [19:40:48]CAPDU: 80 13 01 00 [19:40:48]Write to MH i2c: E2 08 00 FD 1D 80 13 01 00 00 00 00 00 97 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:48]Read from MH i2c: E2 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 0E 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 0E 00 FD 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F7 [19:40:48]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:40:48]wFMCommunicate OK [19:40:48]SAM_PROTO_GetShiftState done [19:40:48]FM_GetShiftState done [19:40:48]req_shift_opened done [19:40:48]requested_item shift.open_date is exist - process it [19:40:48]req_shift_open_date [19:40:48]req_shift_open_date done [19:40:48]produce_requested_data done [19:40:48]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63123,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:40:48]process_action_free close_receipt [19:40:48]json_value_free [19:40:48]json_value_free done [19:40:48]process_json_proto returns [19:40:48]Send response to host [19:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63123,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:40:48]free response buf [19:40:48]execute_script done [19:40:48]execute_script returns [19:40:48]free content buf [19:40:48]Sock 7.Close socket [19:40:48]Sock 7.Thread stoped [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]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]accept exits with 9 [19:44:32]New connection [19:44:32]New thread 3067055460 created [19:44:32]Thread 3067198820 joined [19:44:32]Waiting for new connection... [19:44:32] Sock 9.Parse request [19:44:32]Sock 9.Check first char [19:44:32]Sock 9.First char is OK [19:44:32]request: POST /json_proto HTTP/1.0 [19:44:32]Method: POST [19:44:32]URL: /json_proto [19:44:32]Method is POST - this is cgi request [19:44:32]url: /json_proto [19:44:32]query_string will be loaded in cgi processing [19:44:32]execute_cgi json_proto POST (null) [19:44:32]execute_cgi path=json_proto method=POST [19:44:32]POST find Content-Length [19:44:32]Host: 172.17.42.132:8080 [19:44:32]Content-Length: 646 [19:44:32]Content-Type: application/json [19:44:32] [19:44:32]POST finish read [19:44:32]Found Content-Length = 646 [19:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47434", "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" ] } } [19:44:32]execute_script... [19:44: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)47434", "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" ] } } [19:44:32]POST & json_proto [19:44:32]process_json_proto [19:44:32]json parsed OK: [19:44:32]protocol is kg_v1.0 [19:44:32]action value=close_receipt [19:44:32]process_action close_receipt [19:44:32]cmd_close_receipt [19:44:32]MH_GetDate [19:44:32]Write to MH i2c: F0 00 00 FE 1D 0A [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: F0 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: F0 09 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: F0 09 00 FE 1D 00 24 AF 16 67 4C DF 56 66 4A [19:44:32]GetLastDocTimeStamp 1729539647 [19:44:32]current date 1729539876 [19:44:32]FM_GetShiftState [19:44:32]SAM_PROTO_GetShiftState [19:44:32]wFMCommunicate request_size=4 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 13 01 00 [19:44:32]Write to MH i2c: E2 08 00 FF 1D 80 13 01 00 00 00 00 00 99 [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 0E 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 0E 00 FF 1D 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F9 [19:44:32]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:44:32]wFMCommunicate OK [19:44:32]SAM_PROTO_GetShiftState done [19:44:32]FM_GetShiftState done [19:44:32]opened in 1729469755 [19:44:32]opened+sec_in_day 1729556155 [19:44:32]quantity*price = 13000 [19:44:32]sum+1 = 13001 [19:44:32]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 СНО: Общий режим Чек 121 21.10.2024 19:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63124 ФПД: 199539098592726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194436&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63124&fm=199539098592726&tin=02508201610067®Number=0000000000091619&sum=13000 0 [19:44:33]StoreToDocumentArchive [19:44:33]shift 544 fd 63124 [19:44:33]save to /storage/0544/doc_00063124 [19:44:33]save last doc name /storage/0544/doc_00063124 to /storage/kkm_last_doc_name [19:44:33]save OK [19:44:33]Clear old archive folders... [19:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:44:33]tlvbuf is 019568D0 [19:44:33]SAM_PROTO_ClearQueue [19:44:33]wFMCommunicate request_size=4 [19:44:33]MH_SAM_APDU [19:44:33]CAPDU: 80 09 00 00 [19:44:33]Write to MH i2c: E2 08 00 0C 1E 80 09 00 00 00 00 00 00 9C [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [19:44:33]RAPDU: 90 00 [19:44:33]wFMCommunicate OK [19:44:33]SAM_PROTO_ClearQueue done [19:44:33]KKMCreateOFDPacket [19:44:33]OFDProtocolAddRootSTLVToBuf [19:44:33]FM_MakeSignedData [19:44:33]FM_MakeSignedData [19:44:33]SAM_PROTO_SignData [19:44:33]wFMCommunicate request_size=4 [19:44:33]MH_SAM_APDU [19:44:33]CAPDU: 80 0D 01 02 [19:44:33]Write to MH i2c: E2 08 00 0D 1E 80 0D 01 02 00 00 00 00 A4 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 0D 1E 00 90 00 9F [19:44:33]RAPDU: 90 00 [19:44:33]wFMCommunicate OK [19:44:33]wFMCommunicate request_size=255 [19:44:33]MH_SAM_APDU [19:44: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 79 00 00 00 F4 03 04 00 24 AF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [19:44:33]Write to MH i2c: E2 02 01 0E 1E 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 79 00 00 00 F4 03 04 00 24 AF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 2E [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 0E 1E 00 90 00 A0 [19:44:33]RAPDU: 90 00 [19:44:33]wFMCommunicate OK [19:44:33]wFMCommunicate request_size=31 [19:44:33]MH_SAM_APDU [19:44:33]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 94 F6 00 00 35 04 06 00 B5 7A D1 17 25 D6 [19:44:33]Write to MH i2c: E2 22 00 0F 1E 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 94 F6 00 00 35 04 06 00 B5 7A D1 17 25 D6 00 00 74 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 03 00 0F 1E 00 90 00 A1 [19:44:33]RAPDU: 90 00 [19:44:33]wFMCommunicate OK [19:44:33]wFMCommunicate request_size=4 [19:44:33]MH_SAM_APDU [19:44:33]CAPDU: 80 0D 03 02 [19:44:33]Write to MH i2c: E2 08 00 10 1E 80 0D 03 02 00 00 00 00 A9 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 0B 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 0B 00 10 1E 00 30 C1 32 BB 71 FF A7 6D 90 00 0C [19:44:33]RAPDU: 30 C1 32 BB 71 FF A7 6D 90 00 [19:44:33]wFMCommunicate OK [19:44:33]SAM_PROTO_SignData done [19:44:33]FM_MakeSignedData done [19:44:33]CreateOFDProtocolMessage [19:44:33]wFMCommunicate request_size=4 [19:44:33]MH_SAM_APDU [19:44:33]CAPDU: 80 11 00 00 [19:44:33]Write to MH i2c: E2 08 00 11 1E 80 11 00 00 00 00 00 00 A9 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:33]Read from MH i2c: E2 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 17 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: E2 17 00 11 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 02 [19:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:44:33]wFMCommunicate OK [19:44:33]CreateOFDProtocolMessage done [19:44:33]OFDSenderStorePacket 63124 [19:44:33]StoreOFDPacket docnum=63124 [19:44: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 23 0E 1C 01 CE E2 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 79 00 00 00 F4 03 04 00 24 AF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B5 7A D1 17 25 D6 30 C1 32 BB 71 FF A7 6D [19:44:33]CheckFolder [19:44:33]dirname=/storage/ofd_packets [19:44:33]CheckFolder done [19:44:33]ProducePacketName [19:44:33]name=ofd_packets/00063124 [19:44:33]NVStorageSaveData ofd_packets/00063124 [19:44:33]File name is /storage/ofd_packets/00063124 [19:44:33]Write 322 bytes [19:44:33]NVStorageSaveData done [19:44:33]OFDSenderStorePacket done [19:44:33]KKMCreateOFDPacket done [19:44:33]NVStorageSaveData kkm_last_timestamp [19:44:33]File name is /storage/kkm_last_timestamp [19:44:33]Write 4 bytes [19:44:33]NVStorageSaveData done [19:44:33]ExternCall_PrintAddStr [19:44:33]wPrintStart [19:44:33]Write to MH i2c: 01 00 00 12 1E 30 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 FF 0F 45 [19:44:33]RasterBufferAndPrint [19:44:33]line Счет N : (3)47434 [19:44:33]line ИНН: 02508201610067 [19:44:33]line Контрольно-Кассовый Чек [19:44:33]line ПРОДАЖА [19:44:33]line Товар: 47011656 [19:44:33]line Водка Пшеничная 0,1л [19:44:33]line 2.000 * 65.00 [19:44:33]line = 130.00 [19:44:33]line НДС 12% НСП 1% [19:44:33]line > о реализуемом товаре [19:44:33]line ИТОГО: 130.00 [19:44:33]line НСП 1% : 1.15 [19:44:33]line НДС 12% : 13.80 [19:44:33]line Наличными: 130.00 [19:44:33]line Безнал.: 0.00 [19:44:33]line Место: АЗС № 86 "Партнер Нефть" [19:44:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:44:33]line СНО: Общий режим [19:44:33]line Чек 121 21.10.2024 19:44 [19:44:33]line Смена: 544 ФФД: 1.0 [19:44:33]line ЗНМ: 0300000154 [19:44:33]line РНМ: 0000000000091619 [19:44:33]line Версия ККМ: 001 [19:44:33]line ФМ: 0000000000874676 [19:44:33]line ФД: 63124 [19:44:33]line ФПД: 199539098592726 [19:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194436&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63124&fm=199539098592726&tin=02508201610067®Number=0000000000091619&sum=13000 [19:44:34]OFD Sender: Processing packet 63124 [packets to send 232, broken 231] [19:44:34]ProducePacketName [19:44:34]name=ofd_packets/00063124 [19:44:34]OFD Sender: To server: pG, [19:44:34]CommunicateWithHost lk.salyk.kg:30040 [19:44:34]ConnectInit lk.salyk.kg [19:44:34]line 0 [19:44:34]written 0, free lines is 4095 [19:44:34]Connected sock=7 [19:44: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 23 0E 1C 01 CE E2 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 79 00 00 00 F4 03 04 00 24 AF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 B5 7A D1 17 25 D6 30 C1 32 BB 71 FF A7 6D [19:44:34]Write to MH i2c: 01 00 00 3A 1E 58 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 0B 0D 77 [19:44:34]RasterBufferAndPrint [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]written 0, free lines is 3348 [19:44:34]MH_Cut [19:44:34]Write to MH i2c: D1 01 00 41 1E 01 31 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 01 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 01 00 41 1E 00 30 [19:44:34]Write to MH i2c: 01 00 00 42 1E 60 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44: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 AC A6 47 00 88 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 F6 00 00 F4 03 04 00 20 59 16 67 B6 04 01 00 00 04 57 6E C4 A5 BE FE 21 [19:44:34]CommunicateWithHost err = 0 [19:44:34]CheckOFDResponse [19:44:34]1017 (14) - 77093643461234 [19:44:34]1041 (16) - 0000000000874676 [19:44:34]1040 (4) - 63124 [19:44:34]1012 (4) - 21.10.2024 13:37 [19:44:34]1206 (1) - 0 [19:44:34]OFD Sender: Remove packet 63124 [19:44:34]ProducePacketName [19:44:34]name=ofd_packets/00063124 [19:44:34]NVStorageDeleteData [19:44:35]*** Cut start [19:44:35]*** Partial cut [19:44:35]*** CUTSNS_PIN = 1 [19:44:35]OFD Sender: No OFD packet to send [19:44:35]*** CUTSNS_PIN = 0 [19:44:35]*** Brake cut motor [19:44:36]Read from MH i2c: 01 [19:44:36]MH_I2C_Read... [19:44:36]*** Stop cut motor [19:44:36]*** Cut end [19:44:36]Read from MH i2c: 01 07 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [19:44:36]process_action close_receipt done [19:44:36]requested_data is exist [19:44:36]produce_requested_data [19:44:36]requested_item fm.sn is exist - process it [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 11 00 00 [19:44:36]Write to MH i2c: E2 08 00 43 1E 80 11 00 00 00 00 00 00 DB [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 17 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 17 00 43 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 34 [19:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:44:36]wFMCommunicate OK [19:44:36]requested_item fd.num is exist - process it [19:44:36]SAM_PROTO_GetFieldsCounters [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 13 00 00 [19:44:36]Write to MH i2c: E2 08 00 44 1E 80 13 00 00 00 00 00 00 DE [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 62 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 62 00 44 1E 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [19:44: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 94 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:36]wFMCommunicate OK [19:44:36]SAM_PROTO_GetFieldsCounters done [19:44:36]requested_item shift.num is exist - process it [19:44:36]requested_item shift.opened is exist - process it [19:44:36]req_shift_opened [19:44:36]FM_GetShiftState [19:44:36]SAM_PROTO_GetShiftState [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 13 01 00 [19:44:36]Write to MH i2c: E2 08 00 45 1E 80 13 01 00 00 00 00 00 E0 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0E 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0E 00 45 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 40 [19:44:36]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [19:44:36]wFMCommunicate OK [19:44:36]SAM_PROTO_GetShiftState done [19:44:36]FM_GetShiftState done [19:44:36]req_shift_opened done [19:44:36]requested_item shift.open_date is exist - process it [19:44:36]req_shift_open_date [19:44:36]req_shift_open_date done [19:44:36]produce_requested_data done [19:44:36]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63124,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [19:44:36]process_action_free close_receipt [19:44:36]json_value_free [19:44:36]json_value_free done [19:44:36]process_json_proto returns [19:44:36]Send response to host [19:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63124,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [19:44:36]free response buf [19:44:36]execute_script done [19:44:36]execute_script returns [19:44:36]free content buf [19:44:36]Sock 9.Close socket [19:44:36]Sock 9.Thread stoped [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:25]accept exits with 10 [20:31:25]New connection [20:31:25]New thread 3067198820 created [20:31:25]Thread 3067055460 joined [20:31:25]Waiting for new connection... [20:31:25] Sock 10.Parse request [20:31:25]Sock 10.Check first char [20:31:25]Sock 10.First char is OK [20:31:25]request: POST /json_proto HTTP/1.0 [20:31:25]Method: POST [20:31:25]URL: /json_proto [20:31:25]Method is POST - this is cgi request [20:31:25]url: /json_proto [20:31:25]query_string will be loaded in cgi processing [20:31:25]execute_cgi json_proto POST (null) [20:31:25]execute_cgi path=json_proto method=POST [20:31:25]POST find Content-Length [20:31:25]Host: 172.17.42.132:8080 [20:31:25]Content-Length: 720 [20:31:25]Content-Type: application/json [20:31:25] [20:31:25]POST finish read [20:31:25]Found Content-Length = 720 [20:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47435", "tax_sys" : 0, "items" : [ { "code": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "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:31:25]execute_script... [20:31: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)47435", "tax_sys" : 0, "items" : [ { "code": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "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:31:25]POST & json_proto [20:31:25]process_json_proto [20:31:25]json parsed OK: [20:31:25]protocol is kg_v1.0 [20:31:25]action value=close_receipt [20:31:25]process_action close_receipt [20:31:25]cmd_close_receipt [20:31:25]MH_GetDate [20:31:25]Write to MH i2c: F0 00 00 46 1E 53 [20:31:25]Write i2c OK [20:31:25]MH_I2C_Read... [20:31:25]Read from MH i2c: F0 [20:31:25]MH_I2C_Read... [20:31:25]Read from MH i2c: F0 09 00 [20:31:25]MH_I2C_Read... [20:31:25]Read from MH i2c: F0 09 00 46 1E 00 20 BA 16 67 4C DF 56 66 9A [20:31:25]GetLastDocTimeStamp 1729539876 [20:31:25]current date 1729542688 [20:31:25]FM_GetShiftState [20:31:25]SAM_PROTO_GetShiftState [20:31:25]wFMCommunicate request_size=4 [20:31:25]MH_SAM_APDU [20:31:25]CAPDU: 80 13 01 00 [20:31:25]Write to MH i2c: E2 08 00 47 1E 80 13 01 00 00 00 00 00 E2 [20:31:25]Write i2c OK [20:31:25]MH_I2C_Read... [20:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:25]Read from MH i2c: E2 [20:31:25]MH_I2C_Read... [20:31:25]Read from MH i2c: E2 0E 00 [20:31:25]MH_I2C_Read... [20:31:25]Read from MH i2c: E2 0E 00 47 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 42 [20:31:25]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [20:31:25]wFMCommunicate OK [20:31:25]SAM_PROTO_GetShiftState done [20:31:25]FM_GetShiftState done [20:31:25]opened in 1729469755 [20:31:25]opened+sec_in_day 1729556155 [20:31:25]quantity*price = 10000 [20:31:25]sum+1 = 10001 [20:31:25]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 СНО: Общий режим Чек 122 21.10.2024 20:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63125 ФПД: 4683034925594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203129&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63125&fm=4683034925594&tin=02508201610067®Number=0000000000091619&sum=10000 0 [20:31:26]StoreToDocumentArchive [20:31:26]shift 544 fd 63125 [20:31:26]save to /storage/0544/doc_00063125 [20:31:26]save last doc name /storage/0544/doc_00063125 to /storage/kkm_last_doc_name [20:31:26]save OK [20:31:26]Clear old archive folders... [20:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=301 [20:31:26]tlvbuf is 01956320 [20:31:26]SAM_PROTO_ClearQueue [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 09 00 00 [20:31:26]Write to MH i2c: E2 08 00 54 1E 80 09 00 00 00 00 00 00 E4 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [20:31:26]RAPDU: 90 00 [20:31:26]wFMCommunicate OK [20:31:26]SAM_PROTO_ClearQueue done [20:31:26]KKMCreateOFDPacket [20:31:26]OFDProtocolAddRootSTLVToBuf [20:31:26]FM_MakeSignedData [20:31:26]FM_MakeSignedData [20:31:26]SAM_PROTO_SignData [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 0D 01 02 [20:31:26]Write to MH i2c: E2 08 00 55 1E 80 0D 01 02 00 00 00 00 EC [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [20:31:26]RAPDU: 90 00 [20:31:26]wFMCommunicate OK [20:31:26]wFMCommunicate request_size=255 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 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 7A 00 00 00 F4 03 04 00 21 BA 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 [20:31:26]Write to MH i2c: E2 02 01 56 1E 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 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 7A 00 00 00 F4 03 04 00 21 BA 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 00 F8 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [20:31:26]RAPDU: 90 00 [20:31:26]wFMCommunicate OK [20:31:26]wFMCommunicate request_size=60 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 04 42 5A A2 1A 1A [20:31:26]Write to MH i2c: E2 3F 00 57 1E 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 04 42 5A A2 1A 1A 00 00 1A [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 03 00 57 1E 00 90 00 E9 [20:31:26]RAPDU: 90 00 [20:31:26]wFMCommunicate OK [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 0D 03 02 [20:31:26]Write to MH i2c: E2 08 00 58 1E 80 0D 03 02 00 00 00 00 F1 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 0B 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 0B 00 58 1E 00 4D 25 C3 DE D1 F9 B4 6D 90 00 F0 [20:31:26]RAPDU: 4D 25 C3 DE D1 F9 B4 6D 90 00 [20:31:26]wFMCommunicate OK [20:31:26]SAM_PROTO_SignData done [20:31:26]FM_MakeSignedData done [20:31:26]CreateOFDProtocolMessage [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 11 00 00 [20:31:26]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 17 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4A [20:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:31:26]wFMCommunicate OK [20:31:26]CreateOFDProtocolMessage done [20:31:26]OFDSenderStorePacket 63125 [20:31:26]StoreOFDPacket docnum=63125 [20:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 41 01 00 00 F3 EE 39 01 97 D1 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 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 7A 00 00 00 F4 03 04 00 21 BA 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 04 42 5A A2 1A 1A 4D 25 C3 DE D1 F9 B4 6D [20:31:26]CheckFolder [20:31:26]dirname=/storage/ofd_packets [20:31:26]CheckFolder done [20:31:26]ProducePacketName [20:31:26]name=ofd_packets/00063125 [20:31:26]NVStorageSaveData ofd_packets/00063125 [20:31:26]File name is /storage/ofd_packets/00063125 [20:31:26]Write 351 bytes [20:31:26]NVStorageSaveData done [20:31:26]OFDSenderStorePacket done [20:31:26]KKMCreateOFDPacket done [20:31:26]NVStorageSaveData kkm_last_timestamp [20:31:26]File name is /storage/kkm_last_timestamp [20:31:26]Write 4 bytes [20:31:26]NVStorageSaveData done [20:31:26]ExternCall_PrintAddStr [20:31:26]wPrintStart [20:31:26]Write to MH i2c: 01 00 00 5A 1E 78 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 07 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 07 00 5A 1E 00 00 00 00 00 FF 0F 8D [20:31:26]RasterBufferAndPrint [20:31:26]line Счет N : (3)47435 [20:31:26]line ИНН: 02508201610067 [20:31:26]line Контрольно-Кассовый Чек [20:31:26]line ПРОДАЖА [20:31:26]line Товар: 4630007400266 [20:31:26]line Арахис жарен Караван орехов 90 гр [20:31:26]line 1.000 * 100.00 [20:31:26]line = 100.00 [20:31:26]line НДС 12% НСП 1% [20:31:26]line > о реализуемом товаре [20:31:26]line ИТОГО: 100.00 [20:31:26]line НСП 1% : 0.88 [20:31:26]line НДС 12% : 10.62 [20:31:26]line Наличными: 100.00 [20:31:26]line Безнал.: 0.00 [20:31:26]line Место: АЗС № 86 "Партнер Нефть" [20:31:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:31:26]line СНО: Общий режим [20:31:26]line Чек 122 21.10.2024 20:31 [20:31:26]line Смена: 544 ФФД: 1.0 [20:31:26]line ЗНМ: 0300000154 [20:31:26]line РНМ: 0000000000091619 [20:31:26]line Версия ККМ: 001 [20:31:26]line ФМ: 0000000000874676 [20:31:26]line ФД: 63125 [20:31:26]line ФПД: 4683034925594 [20:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203129&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63125&fm=4683034925594&tin=02508201610067®Number=0000000000091619&sum=10000 [20:31:27]line 0 [20:31:27]OFD Sender: Processing packet 63125 [packets to send 232, broken 231] [20:31:27]ProducePacketName [20:31:27]name=ofd_packets/00063125 [20:31:27]OFD Sender: To server: pG, [20:31:27]CommunicateWithHost lk.salyk.kg:30040 [20:31:27]ConnectInit lk.salyk.kg [20:31:27]written 0, free lines is 4095 [20:31:27]Connected sock=9 [20:31: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 41 01 00 00 F3 EE 39 01 97 D1 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 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 7A 00 00 00 F4 03 04 00 21 BA 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 04 42 5A A2 1A 1A 4D 25 C3 DE D1 F9 B4 6D [20:31:27]Write to MH i2c: 01 00 00 83 1E A1 [20:31:27]Write i2c OK [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: 01 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: 01 07 00 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: 01 07 00 83 1E 00 00 00 00 00 0C 0D C1 [20:31:27]RasterBufferAndPrint [20:31:27]line [20:31:27]line [20:31:27]line [20:31:27]line [20:31:27]line [20:31:27]written 0, free lines is 3346 [20:31:27]MH_Cut [20:31:27]Write to MH i2c: D1 01 00 8A 1E 01 7A [20:31:27]Write i2c OK [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: D1 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: D1 01 00 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: D1 01 00 8A 1E 00 79 [20:31:27]Write to MH i2c: 01 00 00 8B 1E A9 [20:31:27]Write i2c OK [20:31:27]MH_I2C_Read... [20:31:27]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 9C 47 00 64 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F6 00 00 F4 03 04 00 1D 64 16 67 B6 04 01 00 00 37 81 B2 D5 3C 09 BD 81 [20:31:27]CommunicateWithHost err = 0 [20:31:27]CheckOFDResponse [20:31:27]1017 (14) - 77093643461234 [20:31:27]1041 (16) - 0000000000874676 [20:31:27]1040 (4) - 63125 [20:31:27]1012 (4) - 21.10.2024 14:24 [20:31:27]1206 (1) - 0 [20:31:27]OFD Sender: Remove packet 63125 [20:31:27]ProducePacketName [20:31:27]name=ofd_packets/00063125 [20:31:27]NVStorageDeleteData [20:31:28]*** Cut start [20:31:28]*** Partial cut [20:31:28]*** CUTSNS_PIN = 1 [20:31:28]*** CUTSNS_PIN = 0 [20:31:28]OFD Sender: No OFD packet to send [20:31:28]*** Brake cut motor [20:31:28]Read from MH i2c: 01 [20:31:28]MH_I2C_Read... [20:31:28]*** Stop cut motor [20:31:28]*** Cut end [20:31:28]Read from MH i2c: 01 07 00 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: 01 07 00 8B 1E 00 00 00 00 00 FF 0F BE [20:31:28]process_action close_receipt done [20:31:28]requested_data is exist [20:31:28]produce_requested_data [20:31:28]requested_item fm.sn is exist - process it [20:31:28]wFMCommunicate request_size=4 [20:31:28]MH_SAM_APDU [20:31:28]CAPDU: 80 11 00 00 [20:31:28]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [20:31:28]Write i2c OK [20:31:28]MH_I2C_Read... [20:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:28]Read from MH i2c: E2 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 17 00 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 17 00 8C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7D [20:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:31:28]wFMCommunicate OK [20:31:28]requested_item fd.num is exist - process it [20:31:28]SAM_PROTO_GetFieldsCounters [20:31:28]wFMCommunicate request_size=4 [20:31:28]MH_SAM_APDU [20:31:28]CAPDU: 80 13 00 00 [20:31:28]Write to MH i2c: E2 08 00 8D 1E 80 13 00 00 00 00 00 00 27 [20:31:28]Write i2c OK [20:31:28]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 62 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 62 00 8D 1E 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [20:31: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 95 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:29]wFMCommunicate OK [20:31:29]SAM_PROTO_GetFieldsCounters done [20:31:29]requested_item shift.num is exist - process it [20:31:29]requested_item shift.opened is exist - process it [20:31:29]req_shift_opened [20:31:29]FM_GetShiftState [20:31:29]SAM_PROTO_GetShiftState [20:31:29]wFMCommunicate request_size=4 [20:31:29]MH_SAM_APDU [20:31:29]CAPDU: 80 13 01 00 [20:31:29]Write to MH i2c: E2 08 00 8E 1E 80 13 01 00 00 00 00 00 29 [20:31:29]Write i2c OK [20:31:29]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 0E 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 0E 00 8E 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 89 [20:31:29]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [20:31:29]wFMCommunicate OK [20:31:29]SAM_PROTO_GetShiftState done [20:31:29]FM_GetShiftState done [20:31:29]req_shift_opened done [20:31:29]requested_item shift.open_date is exist - process it [20:31:29]req_shift_open_date [20:31:29]req_shift_open_date done [20:31:29]produce_requested_data done [20:31:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63125,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [20:31:29]process_action_free close_receipt [20:31:29]json_value_free [20:31:29]json_value_free done [20:31:29]process_json_proto returns [20:31:29]Send response to host [20:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63125,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [20:31:29]free response buf [20:31:29]execute_script done [20:31:29]execute_script returns [20:31:29]free content buf [20:31:29]Sock 10.Close socket [20:31:29]Sock 10.Thread stoped [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:35]accept exits with 7 [20:41:35]New connection [20:41:35]New thread 3067055460 created [20:41:35]Thread 3067198820 joined [20:41:35]Waiting for new connection... [20:41:35] Sock 7.Parse request [20:41:35]Sock 7.Check first char [20:41:35]Sock 7.First char is OK [20:41:35]request: POST /json_proto HTTP/1.0 [20:41:35]Method: POST [20:41:35]URL: /json_proto [20:41:35]Method is POST - this is cgi request [20:41:35]url: /json_proto [20:41:35]query_string will be loaded in cgi processing [20:41:35]execute_cgi json_proto POST (null) [20:41:35]execute_cgi path=json_proto method=POST [20:41:35]POST find Content-Length [20:41:35]Host: 172.17.42.132:8080 [20:41:35]Content-Length: 667 [20:41:35]Content-Type: application/json [20:41:35] [20:41:35]POST finish read [20:41:35]Found Content-Length = 667 [20:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47436", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]execute_script... [20:41: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)47436", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]POST & json_proto [20:41:35]process_json_proto [20:41:35]json parsed OK: [20:41:35]protocol is kg_v1.0 [20:41:35]action value=close_receipt [20:41:35]process_action close_receipt [20:41:35]cmd_close_receipt [20:41:35]MH_GetDate [20:41:35]Write to MH i2c: F0 00 00 8F 1E 9C [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 8F 1E 00 83 BC 16 67 4C DF 56 66 48 [20:41:35]GetLastDocTimeStamp 1729542689 [20:41:35]current date 1729543299 [20:41:35]FM_GetShiftState [20:41:35]SAM_PROTO_GetShiftState [20:41:35]wFMCommunicate request_size=4 [20:41:35]MH_SAM_APDU [20:41:35]CAPDU: 80 13 01 00 [20:41:35]Write to MH i2c: E2 08 00 90 1E 80 13 01 00 00 00 00 00 2B [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:35]Read from MH i2c: E2 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 90 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8B [20:41:35]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [20:41:35]wFMCommunicate OK [20:41:35]SAM_PROTO_GetShiftState done [20:41:35]FM_GetShiftState done [20:41:35]opened in 1729469755 [20:41:35]opened+sec_in_day 1729556155 [20:41:35]quantity*price = 22500 [20:41:35]sum+1 = 22501 [20:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 123 21.10.2024 20:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63126 ФПД: 33175665217457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204139&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63126&fm=33175665217457&tin=02508201610067®Number=0000000000091619&sum=22500 0 [20:41:37]StoreToDocumentArchive [20:41:37]shift 544 fd 63126 [20:41:37]save to /storage/0544/doc_00063126 [20:41:37]save last doc name /storage/0544/doc_00063126 to /storage/kkm_last_doc_name [20:41:37]save OK [20:41:37]Clear old archive folders... [20:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=296 [20:41:37]tlvbuf is 0193E760 [20:41:37]SAM_PROTO_ClearQueue [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 09 00 00 [20:41:37]Write to MH i2c: E2 08 00 9D 1E 80 09 00 00 00 00 00 00 2D [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [20:41:37]RAPDU: 90 00 [20:41:37]wFMCommunicate OK [20:41:37]SAM_PROTO_ClearQueue done [20:41:37]KKMCreateOFDPacket [20:41:37]OFDProtocolAddRootSTLVToBuf [20:41:37]FM_MakeSignedData [20:41:37]FM_MakeSignedData [20:41:37]SAM_PROTO_SignData [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 0D 01 02 [20:41:37]Write to MH i2c: E2 08 00 9E 1E 80 0D 01 02 00 00 00 00 35 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [20:41:37]RAPDU: 90 00 [20:41:37]wFMCommunicate OK [20:41:37]wFMCommunicate request_size=255 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 83 BC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [20:41:37]Write to MH i2c: E2 02 01 9F 1E 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 83 BC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 21 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [20:41:37]RAPDU: 90 00 [20:41:37]wFMCommunicate OK [20:41:37]wFMCommunicate request_size=55 [20:41:37]MH_SAM_APDU [20:41:37]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 96 F6 00 00 35 04 06 00 1E 2C 4F BD 8F B1 [20:41:37]Write to MH i2c: E2 3A 00 A0 1E 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 96 F6 00 00 35 04 06 00 1E 2C 4F BD 8F B1 00 00 BA [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [20:41:37]RAPDU: 90 00 [20:41:37]wFMCommunicate OK [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 0D 03 02 [20:41:37]Write to MH i2c: E2 08 00 A1 1E 80 0D 03 02 00 00 00 00 3A [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 0B 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 0B 00 A1 1E 00 BB F9 04 7E D7 7A 71 9E 90 00 D1 [20:41:37]RAPDU: BB F9 04 7E D7 7A 71 9E 90 00 [20:41:37]wFMCommunicate OK [20:41:37]SAM_PROTO_SignData done [20:41:37]FM_MakeSignedData done [20:41:37]CreateOFDProtocolMessage [20:41:37]wFMCommunicate request_size=4 [20:41:37]MH_SAM_APDU [20:41:37]CAPDU: 80 11 00 00 [20:41:37]Write to MH i2c: E2 08 00 A2 1E 80 11 00 00 00 00 00 00 3A [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:37]Read from MH i2c: E2 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 17 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: E2 17 00 A2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 93 [20:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:41:37]wFMCommunicate OK [20:41:37]CreateOFDProtocolMessage done [20:41:37]OFDSenderStorePacket 63126 [20:41:37]StoreOFDPacket docnum=63126 [20:41:37]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 D4 DE 34 01 C6 AE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 83 BC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 1E 2C 4F BD 8F B1 BB F9 04 7E D7 7A 71 9E [20:41:37]CheckFolder [20:41:37]dirname=/storage/ofd_packets [20:41:37]CheckFolder done [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00063126 [20:41:37]NVStorageSaveData ofd_packets/00063126 [20:41:37]File name is /storage/ofd_packets/00063126 [20:41:37]Write 346 bytes [20:41:37]NVStorageSaveData done [20:41:37]OFDSenderStorePacket done [20:41:37]KKMCreateOFDPacket done [20:41:37]NVStorageSaveData kkm_last_timestamp [20:41:37]File name is /storage/kkm_last_timestamp [20:41:37]Write 4 bytes [20:41:37]NVStorageSaveData done [20:41:37]ExternCall_PrintAddStr [20:41:37]wPrintStart [20:41:37]Write to MH i2c: 01 00 00 A3 1E C1 [20:41:37]OFD Sender: Processing packet 63126 [packets to send 232, broken 231] [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00063126 [20:41:37]OFD Sender: To server: pG, [20:41:37]CommunicateWithHost lk.salyk.kg:30040 [20:41:37]ConnectInit lk.salyk.kg [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 FF 0F D6 [20:41:37]RasterBufferAndPrint [20:41:37]line Счет N : (3)47436 [20:41:37]line ИНН: 02508201610067 [20:41:37]line Контрольно-Кассовый Чек [20:41:37]line ПРОДАЖА [20:41:37]line Товар: 4670003195728 [20:41:37]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [20:41:37]line 1.000 * 225.00 [20:41:37]line = 225.00 [20:41:37]line НДС 12% НСП 1% [20:41:37]line > о реализуемом товаре [20:41:37]line ИТОГО: 225.00 [20:41:37]line НСП 1% : 1.99 [20:41:37]line НДС 12% : 23.89 [20:41:37]line Наличными: 225.00 [20:41:37]line Безнал.: 0.00 [20:41:37]line Место: АЗС № 86 "Партнер Нефть" [20:41:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:41:37]line СНО: Общий режим [20:41:37]line Чек 123 21.10.2024 20:41 [20:41:37]line Смена: 544 ФФД: 1.0 [20:41:37]line ЗНМ: 0300000154 [20:41:37]line РНМ: 0000000000091619 [20:41:37]line Версия ККМ: 001 [20:41:37]line ФМ: 0000000000874676 [20:41:37]line ФД: 63126 [20:41:37]line ФПД: 33175665217457 [20:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204139&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63126&fm=33175665217457&tin=02508201610067®Number=0000000000091619&sum=22500 [20:41:38]line 0 [20:41:38]Connected sock=9 [20:41: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 3C 01 00 00 D4 DE 34 01 C6 AE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 83 BC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 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 F6 00 00 35 04 06 00 1E 2C 4F BD 8F B1 BB F9 04 7E D7 7A 71 9E [20:41:38]written 0, free lines is 4095 [20:41:38]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 26 49 47 00 6F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 96 F6 00 00 F4 03 04 00 80 66 16 67 B6 04 01 00 00 FF 21 CD F9 0E B4 14 09 [20:41:38]CommunicateWithHost err = 0 [20:41:38]CheckOFDResponse [20:41:38]1017 (14) - 77093643461234 [20:41:38]1041 (16) - 0000000000874676 [20:41:38]1040 (4) - 63126 [20:41:38]1012 (4) - 21.10.2024 14:34 [20:41:38]1206 (1) - 0 [20:41:38]OFD Sender: Remove packet 63126 [20:41:38]ProducePacketName [20:41:38]name=ofd_packets/00063126 [20:41:38]NVStorageDeleteData [20:41:38]Write to MH i2c: 01 00 00 CC 1E EA [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: 01 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: 01 07 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 20 0D 1E [20:41:38]RasterBufferAndPrint [20:41:38]line [20:41:38]line [20:41:38]line [20:41:38]line [20:41:38]line [20:41:38]written 0, free lines is 3365 [20:41:38]MH_Cut [20:41:38]Write to MH i2c: D1 01 00 D3 1E 01 C3 [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: D1 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: D1 01 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: D1 01 00 D3 1E 00 C2 [20:41:38]Write to MH i2c: 01 00 00 D4 1E F2 [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]OFD Sender: No OFD packet to send [20:41:39]*** Cut start [20:41:39]*** Partial cut [20:41:39]*** CUTSNS_PIN = 1 [20:41:39]*** CUTSNS_PIN = 0 [20:41:39]*** Brake cut motor [20:41:39]Read from MH i2c: 01 [20:41:39]MH_I2C_Read... [20:41:39]*** Stop cut motor [20:41:39]*** Cut end [20:41:39]Read from MH i2c: 01 07 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: 01 07 00 D4 1E 00 00 00 00 00 FF 0F 07 [20:41:39]process_action close_receipt done [20:41:39]requested_data is exist [20:41:39]produce_requested_data [20:41:39]requested_item fm.sn is exist - process it [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 11 00 00 [20:41:39]Write to MH i2c: E2 08 00 D5 1E 80 11 00 00 00 00 00 00 6D [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 17 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 17 00 D5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C6 [20:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:41:39]wFMCommunicate OK [20:41:39]requested_item fd.num is exist - process it [20:41:39]SAM_PROTO_GetFieldsCounters [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 13 00 00 [20:41:39]Write to MH i2c: E2 08 00 D6 1E 80 13 00 00 00 00 00 00 70 [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:40]Read from MH i2c: E2 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 62 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 62 00 D6 1E 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 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:41: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 96 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:40]wFMCommunicate OK [20:41:40]SAM_PROTO_GetFieldsCounters done [20:41:40]requested_item shift.num is exist - process it [20:41:40]requested_item shift.opened is exist - process it [20:41:40]req_shift_opened [20:41:40]FM_GetShiftState [20:41:40]SAM_PROTO_GetShiftState [20:41:40]wFMCommunicate request_size=4 [20:41:40]MH_SAM_APDU [20:41:40]CAPDU: 80 13 01 00 [20:41:40]Write to MH i2c: E2 08 00 D7 1E 80 13 01 00 00 00 00 00 72 [20:41:40]Write i2c OK [20:41:40]MH_I2C_Read... [20:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:40]Read from MH i2c: E2 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 0E 00 [20:41:40]MH_I2C_Read... [20:41:40]Read from MH i2c: E2 0E 00 D7 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D2 [20:41:40]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [20:41:40]wFMCommunicate OK [20:41:40]SAM_PROTO_GetShiftState done [20:41:40]FM_GetShiftState done [20:41:40]req_shift_opened done [20:41:40]requested_item shift.open_date is exist - process it [20:41:40]req_shift_open_date [20:41:40]req_shift_open_date done [20:41:40]produce_requested_data done [20:41:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63126,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [20:41:40]process_action_free close_receipt [20:41:40]json_value_free [20:41:40]json_value_free done [20:41:40]process_json_proto returns [20:41:40]Send response to host [20:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63126,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [20:41:40]free response buf [20:41:40]execute_script done [20:41:40]execute_script returns [20:41:40]free content buf [20:41:40]Sock 7.Close socket [20:41:40]Sock 7.Thread stoped [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]ConnectInit Can't connect to host [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:17]accept exits with 10 [21:01:17]New connection [21:01:17]New thread 3067198820 created [21:01:17]Thread 3067055460 joined [21:01:17]Waiting for new connection... [21:01:17] Sock 10.Parse request [21:01:17]Sock 10.Check first char [21:01:17]Sock 10.First char is OK [21:01:17]request: POST /json_proto HTTP/1.0 [21:01:17]Method: POST [21:01:17]URL: /json_proto [21:01:17]Method is POST - this is cgi request [21:01:17]url: /json_proto [21:01:17]query_string will be loaded in cgi processing [21:01:17]execute_cgi json_proto POST (null) [21:01:17]execute_cgi path=json_proto method=POST [21:01:17]POST find Content-Length [21:01:17]Host: 172.17.42.132:8080 [21:01:17]Content-Length: 648 [21:01:17]Content-Type: application/json [21:01:17] [21:01:17]POST finish read [21:01:17]Found Content-Length = 648 [21:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47437", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:17]execute_script... [21:01: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)47437", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:17]POST & json_proto [21:01:17]process_json_proto [21:01:17]json parsed OK: [21:01:17]protocol is kg_v1.0 [21:01:17]action value=close_receipt [21:01:17]process_action close_receipt [21:01:17]cmd_close_receipt [21:01:17]MH_GetDate [21:01:17]Write to MH i2c: F0 00 00 D8 1E E5 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: F0 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: F0 09 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: F0 09 00 D8 1E 00 21 C1 16 67 4C DF 56 66 34 [21:01:17]GetLastDocTimeStamp 1729543299 [21:01:17]current date 1729544481 [21:01:17]FM_GetShiftState [21:01:17]SAM_PROTO_GetShiftState [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 13 01 00 [21:01:17]Write to MH i2c: E2 08 00 D9 1E 80 13 01 00 00 00 00 00 74 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0E 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0E 00 D9 1E 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D4 [21:01:17]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:01:17]wFMCommunicate OK [21:01:17]SAM_PROTO_GetShiftState done [21:01:17]FM_GetShiftState done [21:01:17]opened in 1729469755 [21:01:17]opened+sec_in_day 1729556155 [21:01:17]quantity*price = 17000 [21:01:17]sum+1 = 17001 [21:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 124 21.10.2024 21:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63127 ФПД: 155447429485954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210121&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63127&fm=155447429485954&tin=02508201610067®Number=0000000000091619&sum=17000 0 [21:01:19]StoreToDocumentArchive [21:01:19]shift 544 fd 63127 [21:01:19]save to /storage/0544/doc_00063127 [21:01:19]save last doc name /storage/0544/doc_00063127 to /storage/kkm_last_doc_name [21:01:19]save OK [21:01:19]Clear old archive folders... [21:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=277 [21:01:19]tlvbuf is B6DE4150 [21:01:19]SAM_PROTO_ClearQueue [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 09 00 00 [21:01:19]Write to MH i2c: E2 08 00 E6 1E 80 09 00 00 00 00 00 00 76 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [21:01:19]RAPDU: 90 00 [21:01:19]wFMCommunicate OK [21:01:19]SAM_PROTO_ClearQueue done [21:01:19]KKMCreateOFDPacket [21:01:19]OFDProtocolAddRootSTLVToBuf [21:01:19]FM_MakeSignedData [21:01:19]FM_MakeSignedData [21:01:19]SAM_PROTO_SignData [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 0D 01 02 [21:01:19]Write to MH i2c: E2 08 00 E7 1E 80 0D 01 02 00 00 00 00 7E [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [21:01:19]RAPDU: 90 00 [21:01:19]wFMCommunicate OK [21:01:19]wFMCommunicate request_size=255 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 C1 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 [21:01:19]Write to MH i2c: E2 02 01 E8 1E 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 C1 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 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 AB [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 E8 1E 00 90 00 7A [21:01:19]RAPDU: 90 00 [21:01:19]wFMCommunicate OK [21:01:19]wFMCommunicate request_size=36 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 97 F6 00 00 35 04 06 00 8D 60 EC D0 D5 82 [21:01:19]Write to MH i2c: E2 27 00 E9 1E 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 97 F6 00 00 35 04 06 00 8D 60 EC D0 D5 82 00 00 39 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 03 00 E9 1E 00 90 00 7B [21:01:19]RAPDU: 90 00 [21:01:19]wFMCommunicate OK [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 0D 03 02 [21:01:19]Write to MH i2c: E2 08 00 EA 1E 80 0D 03 02 00 00 00 00 83 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 0B 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 0B 00 EA 1E 00 BD DE B6 E5 CA 66 3E 49 90 00 71 [21:01:19]RAPDU: BD DE B6 E5 CA 66 3E 49 90 00 [21:01:19]wFMCommunicate OK [21:01:19]SAM_PROTO_SignData done [21:01:19]FM_MakeSignedData done [21:01:19]CreateOFDProtocolMessage [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 11 00 00 [21:01:19]Write to MH i2c: E2 08 00 EB 1E 80 11 00 00 00 00 00 00 83 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 EB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DC [21:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:01:19]wFMCommunicate OK [21:01:19]CreateOFDProtocolMessage done [21:01:19]OFDSenderStorePacket 63127 [21:01:19]StoreOFDPacket docnum=63127 [21:01: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 29 01 00 00 B5 A3 21 01 1D E2 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 C1 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 97 F6 00 00 35 04 06 00 8D 60 EC D0 D5 82 BD DE B6 E5 CA 66 3E 49 [21:01:19]CheckFolder [21:01:19]dirname=/storage/ofd_packets [21:01:19]CheckFolder done [21:01:19]ProducePacketName [21:01:19]name=ofd_packets/00063127 [21:01:19]NVStorageSaveData ofd_packets/00063127 [21:01:19]File name is /storage/ofd_packets/00063127 [21:01:19]Write 327 bytes [21:01:19]NVStorageSaveData done [21:01:19]OFDSenderStorePacket done [21:01:19]KKMCreateOFDPacket done [21:01:19]NVStorageSaveData kkm_last_timestamp [21:01:19]File name is /storage/kkm_last_timestamp [21:01:19]Write 4 bytes [21:01:19]NVStorageSaveData done [21:01:19]ExternCall_PrintAddStr [21:01:19]wPrintStart [21:01:19]Write to MH i2c: 01 00 00 EC 1E 0A [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: 01 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: 01 07 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FF 0F 1F [21:01:19]RasterBufferAndPrint [21:01:19]line Счет N : (3)47437 [21:01:19]line ИНН: 02508201610067 [21:01:19]line Контрольно-Кассовый Чек [21:01:19]line ПРОДАЖА [21:01:19]line Товар: 8901086040008 [21:01:19]line Жид/ст ПН летняя 4,5л [21:01:19]line 1.000 * 170.00 [21:01:19]line = 170.00 [21:01:19]line НДС 12% НСП 1% [21:01:19]line > о реализуемом товаре [21:01:19]line ИТОГО: 170.00 [21:01:19]line НСП 1% : 1.50 [21:01:19]line НДС 12% : 18.05 [21:01:19]line Наличными: 170.00 [21:01:19]line Безнал.: 0.00 [21:01:19]line Место: АЗС № 86 "Партнер Нефть" [21:01:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:19]line СНО: Общий режим [21:01:19]line Чек 124 21.10.2024 21:01 [21:01:19]line Смена: 544 ФФД: 1.0 [21:01:19]line ЗНМ: 0300000154 [21:01:19]line РНМ: 0000000000091619 [21:01:19]line Версия ККМ: 001 [21:01:19]line ФМ: 0000000000874676 [21:01:19]line ФД: 63127 [21:01:19]line ФПД: 155447429485954 [21:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210121&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63127&fm=155447429485954&tin=02508201610067®Number=0000000000091619&sum=17000 [21:01:19]line 0 [21:01:19]OFD Sender: Processing packet 63127 [packets to send 232, broken 231] [21:01:19]ProducePacketName [21:01:19]name=ofd_packets/00063127 [21:01:19]OFD Sender: To server: pG, [21:01:19]CommunicateWithHost lk.salyk.kg:30040 [21:01:19]ConnectInit lk.salyk.kg [21:01:19]written 0, free lines is 4095 [21:01:20]Connected sock=9 [21:01:20]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 B5 A3 21 01 1D E2 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 C1 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 97 F6 00 00 35 04 06 00 8D 60 EC D0 D5 82 BD DE B6 E5 CA 66 3E 49 [21:01:20]Write to MH i2c: 01 00 00 14 1F 33 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 14 1F 00 00 00 00 00 1C 0D 63 [21:01:20]RasterBufferAndPrint [21:01:20]line [21:01:20]line [21:01:20]line [21:01:20]line [21:01:20]line [21:01:20]written 0, free lines is 3362 [21:01:20]MH_Cut [21:01:20]Write to MH i2c: D1 01 00 1B 1F 01 0C [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: D1 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: D1 01 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: D1 01 00 1B 1F 00 0B [21:01:20]Write to MH i2c: 01 00 00 1C 1F 3B [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01: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 BE 17 47 00 84 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 97 F6 00 00 F4 03 04 00 1E 6B 16 67 B6 04 01 00 00 80 07 FC C4 E8 3D 55 BB [21:01:20]CommunicateWithHost err = 0 [21:01:20]CheckOFDResponse [21:01:20]1017 (14) - 77093643461234 [21:01:20]1041 (16) - 0000000000874676 [21:01:20]1040 (4) - 63127 [21:01:20]1012 (4) - 21.10.2024 14:54 [21:01:20]1206 (1) - 0 [21:01:20]OFD Sender: Remove packet 63127 [21:01:20]ProducePacketName [21:01:20]name=ofd_packets/00063127 [21:01:20]NVStorageDeleteData [21:01:20]*** Cut start [21:01:20]*** Partial cut [21:01:20]*** CUTSNS_PIN = 1 [21:01:21]OFD Sender: No OFD packet to send [21:01:21]*** CUTSNS_PIN = 0 [21:01:21]*** Brake cut motor [21:01:21]Read from MH i2c: 01 [21:01:21]MH_I2C_Read... [21:01:21]*** Stop cut motor [21:01:21]*** Cut end [21:01:21]Read from MH i2c: 01 07 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: 01 07 00 1C 1F 00 00 00 00 00 FF 0F 50 [21:01:21]process_action close_receipt done [21:01:21]requested_data is exist [21:01:21]produce_requested_data [21:01:21]requested_item fm.sn is exist - process it [21:01:21]wFMCommunicate request_size=4 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 11 00 00 [21:01:21]Write to MH i2c: E2 08 00 1D 1F 80 11 00 00 00 00 00 00 B6 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:21]Read from MH i2c: E2 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 17 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 17 00 1D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0F [21:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:01:21]wFMCommunicate OK [21:01:21]requested_item fd.num is exist - process it [21:01:21]SAM_PROTO_GetFieldsCounters [21:01:21]wFMCommunicate request_size=4 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 13 00 00 [21:01:21]Write to MH i2c: E2 08 00 1E 1F 80 13 00 00 00 00 00 00 B9 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:21]Read from MH i2c: E2 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 62 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 62 00 1E 1F 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 97 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [21:01: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 97 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:21]wFMCommunicate OK [21:01:21]SAM_PROTO_GetFieldsCounters done [21:01:21]requested_item shift.num is exist - process it [21:01:21]requested_item shift.opened is exist - process it [21:01:21]req_shift_opened [21:01:21]FM_GetShiftState [21:01:21]SAM_PROTO_GetShiftState [21:01:21]wFMCommunicate request_size=4 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 13 01 00 [21:01:21]Write to MH i2c: E2 08 00 1F 1F 80 13 01 00 00 00 00 00 BB [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:21]Read from MH i2c: E2 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 0E 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 0E 00 1F 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 1B [21:01:21]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:01:21]wFMCommunicate OK [21:01:21]SAM_PROTO_GetShiftState done [21:01:21]FM_GetShiftState done [21:01:21]req_shift_opened done [21:01:21]requested_item shift.open_date is exist - process it [21:01:21]req_shift_open_date [21:01:21]req_shift_open_date done [21:01:21]produce_requested_data done [21:01:21]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63127,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [21:01:21]process_action_free close_receipt [21:01:21]json_value_free [21:01:21]json_value_free done [21:01:21]process_json_proto returns [21:01:21]Send response to host [21:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63127,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [21:01:21]free response buf [21:01:21]execute_script done [21:01:21]execute_script returns [21:01:21]free content buf [21:01:21]Sock 10.Close socket [21:01:21]Sock 10.Thread stoped [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:07]accept exits with 7 [21:23:07]New connection [21:23:07]New thread 3067055460 created [21:23:07]Thread 3067198820 joined [21:23:07]Waiting for new connection... [21:23:07] Sock 7.Parse request [21:23:07]Sock 7.Check first char [21:23:07]Sock 7.First char is OK [21:23:07]request: POST /json_proto HTTP/1.0 [21:23:07]Method: POST [21:23:07]URL: /json_proto [21:23:07]Method is POST - this is cgi request [21:23:07]url: /json_proto [21:23:07]query_string will be loaded in cgi processing [21:23:07]execute_cgi json_proto POST (null) [21:23:07]execute_cgi path=json_proto method=POST [21:23:07]POST find Content-Length [21:23:07]Host: 172.17.42.132:8080 [21:23:07]Content-Length: 687 [21:23:07]Content-Type: application/json [21:23:07] [21:23:07]POST finish read [21:23:07]Found Content-Length = 687 [21:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47438", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:07]execute_script... [21:23: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)47438", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:07]POST & json_proto [21:23:07]process_json_proto [21:23:07]json parsed OK: [21:23:07]protocol is kg_v1.0 [21:23:07]action value=close_receipt [21:23:07]process_action close_receipt [21:23:07]cmd_close_receipt [21:23:07]MH_GetDate [21:23:07]Write to MH i2c: F0 00 00 20 1F 2E [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: F0 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: F0 09 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: F0 09 00 20 1F 00 3F C6 16 67 4C DF 56 66 A0 [21:23:07]GetLastDocTimeStamp 1729544481 [21:23:07]current date 1729545791 [21:23:07]FM_GetShiftState [21:23:07]SAM_PROTO_GetShiftState [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 13 01 00 [21:23:07]Write to MH i2c: E2 08 00 21 1F 80 13 01 00 00 00 00 00 BD [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 21 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 1D [21:23:07]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:23:07]wFMCommunicate OK [21:23:07]SAM_PROTO_GetShiftState done [21:23:07]FM_GetShiftState done [21:23:07]opened in 1729469755 [21:23:07]opened+sec_in_day 1729556155 [21:23:07]quantity*price = 9500 [21:23:07]sum+1 = 9501 [21:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 125 21.10.2024 21:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63128 ФПД: 232701002826821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212311&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63128&fm=232701002826821&tin=02508201610067®Number=0000000000091619&sum=9500 0 [21:23:08]StoreToDocumentArchive [21:23:08]shift 544 fd 63128 [21:23:08]save to /storage/0544/doc_00063128 [21:23:08]save last doc name /storage/0544/doc_00063128 to /storage/kkm_last_doc_name [21:23:08]save OK [21:23:08]Clear old archive folders... [21:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:23:08]tlvbuf is 018C7D00 [21:23:08]SAM_PROTO_ClearQueue [21:23:08]wFMCommunicate request_size=4 [21:23:08]MH_SAM_APDU [21:23:08]CAPDU: 80 09 00 00 [21:23:08]Write to MH i2c: E2 08 00 2E 1F 80 09 00 00 00 00 00 00 BF [21:23:08]Write i2c OK [21:23:08]MH_I2C_Read... [21:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:08]Read from MH i2c: E2 [21:23:08]MH_I2C_Read... [21:23:08]Read from MH i2c: E2 03 00 [21:23:08]MH_I2C_Read... [21:23:08]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [21:23:08]RAPDU: 90 00 [21:23:08]wFMCommunicate OK [21:23:08]SAM_PROTO_ClearQueue done [21:23:08]KKMCreateOFDPacket [21:23:08]OFDProtocolAddRootSTLVToBuf [21:23:08]FM_MakeSignedData [21:23:08]FM_MakeSignedData [21:23:08]SAM_PROTO_SignData [21:23:08]wFMCommunicate request_size=4 [21:23:08]MH_SAM_APDU [21:23:08]CAPDU: 80 0D 01 02 [21:23:08]Write to MH i2c: E2 08 00 2F 1F 80 0D 01 02 00 00 00 00 C7 [21:23:08]Write i2c OK [21:23:08]MH_I2C_Read... [21:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:08]Read from MH i2c: E2 [21:23:08]MH_I2C_Read... [21:23:08]Read from MH i2c: E2 03 00 [21:23:08]MH_I2C_Read... [21:23:08]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [21:23:08]RAPDU: 90 00 [21:23:08]wFMCommunicate OK [21:23:08]wFMCommunicate request_size=255 [21:23:08]MH_SAM_APDU [21:23:08]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3F C6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:23:08]Write to MH i2c: E2 02 01 30 1F 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3F C6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 8F [21:23:08]Write i2c OK [21:23:08]MH_I2C_Read... [21:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:09]Read from MH i2c: E2 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 03 00 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [21:23:09]RAPDU: 90 00 [21:23:09]wFMCommunicate OK [21:23:09]wFMCommunicate request_size=58 [21:23:09]MH_SAM_APDU [21:23:09]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 98 F6 00 00 35 04 06 00 D3 A3 EC 9C C4 45 [21:23:09]Write to MH i2c: E2 3D 00 31 1F 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 98 F6 00 00 35 04 06 00 D3 A3 EC 9C C4 45 00 00 55 [21:23:09]Write i2c OK [21:23:09]MH_I2C_Read... [21:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:09]Read from MH i2c: E2 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 03 00 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [21:23:09]RAPDU: 90 00 [21:23:09]wFMCommunicate OK [21:23:09]wFMCommunicate request_size=4 [21:23:09]MH_SAM_APDU [21:23:09]CAPDU: 80 0D 03 02 [21:23:09]Write to MH i2c: E2 08 00 32 1F 80 0D 03 02 00 00 00 00 CC [21:23:09]Write i2c OK [21:23:09]MH_I2C_Read... [21:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:09]Read from MH i2c: E2 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 0B 00 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 0B 00 32 1F 00 0F EA DE 2F CB 31 C5 03 90 00 97 [21:23:09]RAPDU: 0F EA DE 2F CB 31 C5 03 90 00 [21:23:09]wFMCommunicate OK [21:23:09]SAM_PROTO_SignData done [21:23:09]FM_MakeSignedData done [21:23:09]CreateOFDProtocolMessage [21:23:09]wFMCommunicate request_size=4 [21:23:09]MH_SAM_APDU [21:23:09]CAPDU: 80 11 00 00 [21:23:09]Write to MH i2c: E2 08 00 33 1F 80 11 00 00 00 00 00 00 CC [21:23:09]Write i2c OK [21:23:09]MH_I2C_Read... [21:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:09]Read from MH i2c: E2 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 17 00 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: E2 17 00 33 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 25 [21:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:23:09]wFMCommunicate OK [21:23:09]CreateOFDProtocolMessage done [21:23:09]OFDSenderStorePacket 63128 [21:23:09]StoreOFDPacket docnum=63128 [21:23: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 3F 01 00 00 97 73 37 01 67 96 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3F C6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 98 F6 00 00 35 04 06 00 D3 A3 EC 9C C4 45 0F EA DE 2F CB 31 C5 03 [21:23:09]CheckFolder [21:23:09]dirname=/storage/ofd_packets [21:23:09]CheckFolder done [21:23:09]ProducePacketName [21:23:09]name=ofd_packets/00063128 [21:23:09]NVStorageSaveData ofd_packets/00063128 [21:23:09]File name is /storage/ofd_packets/00063128 [21:23:09]Write 349 bytes [21:23:09]NVStorageSaveData done [21:23:09]OFDSenderStorePacket done [21:23:09]KKMCreateOFDPacket done [21:23:09]NVStorageSaveData kkm_last_timestamp [21:23:09]File name is /storage/kkm_last_timestamp [21:23:09]Write 4 bytes [21:23:09]NVStorageSaveData done [21:23:09]ExternCall_PrintAddStr [21:23:09]wPrintStart [21:23:09]Write to MH i2c: 01 00 00 34 1F 53 [21:23:09]OFD Sender: Processing packet 63128 [packets to send 232, broken 231] [21:23:09]ProducePacketName [21:23:09]name=ofd_packets/00063128 [21:23:09]OFD Sender: To server: pG, [21:23:09]CommunicateWithHost lk.salyk.kg:30040 [21:23:09]ConnectInit lk.salyk.kg [21:23:09]Write i2c OK [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: 01 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: 01 07 00 [21:23:09]MH_I2C_Read... [21:23:09]Read from MH i2c: 01 07 00 34 1F 00 00 00 00 00 FF 0F 68 [21:23:09]RasterBufferAndPrint [21:23:09]line Счет N : (3)47438 [21:23:09]line ИНН: 02508201610067 [21:23:09]line Контрольно-Кассовый Чек [21:23:09]line ПРОДАЖА [21:23:09]line Товар: 4700003010070 [21:23:09]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [21:23:09]line 1.000 * 95.00 [21:23:09]line = 95.00 [21:23:09]line НДС 12% НСП 1% [21:23:09]line > о реализуемом товаре [21:23:09]line ИТОГО: 95.00 [21:23:09]line НСП 1% : 0.84 [21:23:09]line НДС 12% : 10.09 [21:23:09]line Наличными: 95.00 [21:23:09]line Безнал.: 0.00 [21:23:09]line Место: АЗС № 86 "Партнер Нефть" [21:23:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:23:09]line СНО: Общий режим [21:23:09]line Чек 125 21.10.2024 21:23 [21:23:09]line Смена: 544 ФФД: 1.0 [21:23:09]line ЗНМ: 0300000154 [21:23:09]line РНМ: 0000000000091619 [21:23:09]line Версия ККМ: 001 [21:23:09]line ФМ: 0000000000874676 [21:23:09]line ФД: 63128 [21:23:09]line ФПД: 232701002826821 [21:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212311&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63128&fm=232701002826821&tin=02508201610067®Number=0000000000091619&sum=9500 [21:23:09]line 0 [21:23:09]Connected sock=9 [21:23: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 3F 01 00 00 97 73 37 01 67 96 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3F C6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 98 F6 00 00 35 04 06 00 D3 A3 EC 9C C4 45 0F EA DE 2F CB 31 C5 03 [21:23:09]written 0, free lines is 4095 [21:23: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 BA 04 47 00 9D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 98 F6 00 00 F4 03 04 00 3C 70 16 67 B6 04 01 00 00 F7 CC 89 FA 27 14 90 4F [21:23:10]CommunicateWithHost err = 0 [21:23:10]CheckOFDResponse [21:23:10]1017 (14) - 77093643461234 [21:23:10]1041 (16) - 0000000000874676 [21:23:10]1040 (4) - 63128 [21:23:10]1012 (4) - 21.10.2024 15:16 [21:23:10]1206 (1) - 0 [21:23:10]OFD Sender: Remove packet 63128 [21:23:10]ProducePacketName [21:23:10]name=ofd_packets/00063128 [21:23:10]NVStorageDeleteData [21:23:10]Write to MH i2c: 01 00 00 5D 1F 7C [21:23:10]Write i2c OK [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: 01 [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: 01 07 00 [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 01 0D 91 [21:23:10]RasterBufferAndPrint [21:23:10]line [21:23:10]line [21:23:10]line [21:23:10]line [21:23:10]line [21:23:10]written 0, free lines is 3338 [21:23:10]MH_Cut [21:23:10]Write to MH i2c: D1 01 00 64 1F 01 55 [21:23:10]Write i2c OK [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: D1 [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: D1 01 00 [21:23:10]MH_I2C_Read... [21:23:10]Read from MH i2c: D1 01 00 64 1F 00 54 [21:23:10]Write to MH i2c: 01 00 00 65 1F 84 [21:23:10]Write i2c OK [21:23:10]MH_I2C_Read... [21:23:10]OFD Sender: No OFD packet to send [21:23:10]*** Cut start [21:23:10]*** Partial cut [21:23:10]*** CUTSNS_PIN = 1 [21:23:10]*** CUTSNS_PIN = 0 [21:23:11]*** Brake cut motor [21:23:11]Read from MH i2c: 01 [21:23:11]MH_I2C_Read... [21:23:11]*** Stop cut motor [21:23:11]*** Cut end [21:23:11]Read from MH i2c: 01 07 00 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: 01 07 00 65 1F 00 00 00 00 00 FF 0F 99 [21:23:11]process_action close_receipt done [21:23:11]requested_data is exist [21:23:11]produce_requested_data [21:23:11]requested_item fm.sn is exist - process it [21:23:11]wFMCommunicate request_size=4 [21:23:11]MH_SAM_APDU [21:23:11]CAPDU: 80 11 00 00 [21:23:11]Write to MH i2c: E2 08 00 66 1F 80 11 00 00 00 00 00 00 FF [21:23:11]Write i2c OK [21:23:11]MH_I2C_Read... [21:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:11]Read from MH i2c: E2 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 17 00 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 17 00 66 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [21:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:23:11]wFMCommunicate OK [21:23:11]requested_item fd.num is exist - process it [21:23:11]SAM_PROTO_GetFieldsCounters [21:23:11]wFMCommunicate request_size=4 [21:23:11]MH_SAM_APDU [21:23:11]CAPDU: 80 13 00 00 [21:23:11]Write to MH i2c: E2 08 00 67 1F 80 13 00 00 00 00 00 00 02 [21:23:11]Write i2c OK [21:23:11]MH_I2C_Read... [21:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:11]Read from MH i2c: E2 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 62 00 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 62 00 67 1F 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 98 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [21:23: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 98 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:11]wFMCommunicate OK [21:23:11]SAM_PROTO_GetFieldsCounters done [21:23:11]requested_item shift.num is exist - process it [21:23:11]requested_item shift.opened is exist - process it [21:23:11]req_shift_opened [21:23:11]FM_GetShiftState [21:23:11]SAM_PROTO_GetShiftState [21:23:11]wFMCommunicate request_size=4 [21:23:11]MH_SAM_APDU [21:23:11]CAPDU: 80 13 01 00 [21:23:11]Write to MH i2c: E2 08 00 68 1F 80 13 01 00 00 00 00 00 04 [21:23:11]Write i2c OK [21:23:11]MH_I2C_Read... [21:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:11]Read from MH i2c: E2 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 0E 00 [21:23:11]MH_I2C_Read... [21:23:11]Read from MH i2c: E2 0E 00 68 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 64 [21:23:11]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:23:11]wFMCommunicate OK [21:23:11]SAM_PROTO_GetShiftState done [21:23:11]FM_GetShiftState done [21:23:11]req_shift_opened done [21:23:11]requested_item shift.open_date is exist - process it [21:23:11]req_shift_open_date [21:23:11]req_shift_open_date done [21:23:11]produce_requested_data done [21:23:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63128,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [21:23:11]process_action_free close_receipt [21:23:11]json_value_free [21:23:11]json_value_free done [21:23:11]process_json_proto returns [21:23:11]Send response to host [21:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63128,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [21:23:11]free response buf [21:23:11]execute_script done [21:23:11]execute_script returns [21:23:11]free content buf [21:23:11]Sock 7.Close socket [21:23:11]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32: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:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:37]accept exits with 10 [21:49:37]New connection [21:49:37]New thread 3067198820 created [21:49:37]Thread 3067055460 joined [21:49:37]Waiting for new connection... [21:49:37] Sock 10.Parse request [21:49:37]Sock 10.Check first char [21:49:37]Sock 10.First char is OK [21:49:37]request: POST /json_proto HTTP/1.0 [21:49:37]Method: POST [21:49:37]URL: /json_proto [21:49:37]Method is POST - this is cgi request [21:49:37]url: /json_proto [21:49:37]query_string will be loaded in cgi processing [21:49:37]execute_cgi json_proto POST (null) [21:49:37]execute_cgi path=json_proto method=POST [21:49:37]POST find Content-Length [21:49:37]Host: 172.17.42.132:8080 [21:49:37]Content-Length: 667 [21:49:37]Content-Type: application/json [21:49:37] [21:49:37]POST finish read [21:49:37]Found Content-Length = 667 [21:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47439", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:37]execute_script... [21:49: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)47439", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:37]POST & json_proto [21:49:37]process_json_proto [21:49:37]json parsed OK: [21:49:37]protocol is kg_v1.0 [21:49:37]action value=close_receipt [21:49:37]process_action close_receipt [21:49:37]cmd_close_receipt [21:49:37]MH_GetDate [21:49:37]Write to MH i2c: F0 00 00 69 1F 77 [21:49:37]Write i2c OK [21:49:37]MH_I2C_Read... [21:49:37]Read from MH i2c: F0 [21:49:37]MH_I2C_Read... [21:49:37]Read from MH i2c: F0 09 00 [21:49:37]MH_I2C_Read... [21:49:37]Read from MH i2c: F0 09 00 69 1F 00 75 CC 16 67 4C DF 56 66 25 [21:49:37]GetLastDocTimeStamp 1729545791 [21:49:37]current date 1729547381 [21:49:37]FM_GetShiftState [21:49:37]SAM_PROTO_GetShiftState [21:49:37]wFMCommunicate request_size=4 [21:49:37]MH_SAM_APDU [21:49:37]CAPDU: 80 13 01 00 [21:49:37]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [21:49:37]Write i2c OK [21:49:37]MH_I2C_Read... [21:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:37]Read from MH i2c: E2 [21:49:37]MH_I2C_Read... [21:49:37]Read from MH i2c: E2 0E 00 [21:49:37]MH_I2C_Read... [21:49:37]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 66 [21:49:37]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:49:37]wFMCommunicate OK [21:49:37]SAM_PROTO_GetShiftState done [21:49:37]FM_GetShiftState done [21:49:37]opened in 1729469755 [21:49:37]opened+sec_in_day 1729556155 [21:49:37]quantity*price = 22500 [21:49:37]sum+1 = 22501 [21:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 126 21.10.2024 21:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63129 ФПД: 43598248559473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214941&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63129&fm=43598248559473&tin=02508201610067®Number=0000000000091619&sum=22500 0 [21:49:38]StoreToDocumentArchive [21:49:38]shift 544 fd 63129 [21:49:38]save to /storage/0544/doc_00063129 [21:49:38]save last doc name /storage/0544/doc_00063129 to /storage/kkm_last_doc_name [21:49:38]save OK [21:49:38]Clear old archive folders... [21:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=296 [21:49:38]tlvbuf is B6F94230 [21:49:38]SAM_PROTO_ClearQueue [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 09 00 00 [21:49:38]Write to MH i2c: E2 08 00 77 1F 80 09 00 00 00 00 00 00 08 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]SAM_PROTO_ClearQueue done [21:49:38]KKMCreateOFDPacket [21:49:38]OFDProtocolAddRootSTLVToBuf [21:49:38]FM_MakeSignedData [21:49:38]FM_MakeSignedData [21:49:38]SAM_PROTO_SignData [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 01 02 [21:49:38]Write to MH i2c: E2 08 00 78 1F 80 0D 01 02 00 00 00 00 10 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 78 1F 00 90 00 0B [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]wFMCommunicate request_size=255 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 75 CC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [21:49:38]Write to MH i2c: E2 02 01 79 1F 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 75 CC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 EF [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 79 1F 00 90 00 0C [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]wFMCommunicate request_size=55 [21:49:39]MH_SAM_APDU [21:49:39]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 99 F6 00 00 35 04 06 00 27 A7 02 1E 43 71 [21:49:39]Write to MH i2c: E2 3A 00 7A 1F 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 99 F6 00 00 35 04 06 00 27 A7 02 1E 43 71 00 00 A4 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [21:49:39]RAPDU: 90 00 [21:49:39]wFMCommunicate OK [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 0D 03 02 [21:49:39]Write to MH i2c: E2 08 00 7B 1F 80 0D 03 02 00 00 00 00 15 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 0B 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 0B 00 7B 1F 00 5C 17 10 71 F3 62 4E 93 90 00 40 [21:49:39]RAPDU: 5C 17 10 71 F3 62 4E 93 90 00 [21:49:39]wFMCommunicate OK [21:49:39]SAM_PROTO_SignData done [21:49:39]FM_MakeSignedData done [21:49:39]CreateOFDProtocolMessage [21:49:39]wFMCommunicate request_size=4 [21:49:39]MH_SAM_APDU [21:49:39]CAPDU: 80 11 00 00 [21:49:39]Write to MH i2c: E2 08 00 7C 1F 80 11 00 00 00 00 00 00 15 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:39]Read from MH i2c: E2 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 17 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: E2 17 00 7C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6E [21:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:49:39]wFMCommunicate OK [21:49:39]CreateOFDProtocolMessage done [21:49:39]OFDSenderStorePacket 63129 [21:49:39]StoreOFDPacket docnum=63129 [21:49: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 3C 01 00 00 EE 8D 34 01 DA 88 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 75 CC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 99 F6 00 00 35 04 06 00 27 A7 02 1E 43 71 5C 17 10 71 F3 62 4E 93 [21:49:39]CheckFolder [21:49:39]dirname=/storage/ofd_packets [21:49:39]CheckFolder done [21:49:39]ProducePacketName [21:49:39]name=ofd_packets/00063129 [21:49:39]NVStorageSaveData ofd_packets/00063129 [21:49:39]File name is /storage/ofd_packets/00063129 [21:49:39]Write 346 bytes [21:49:39]NVStorageSaveData done [21:49:39]OFDSenderStorePacket done [21:49:39]KKMCreateOFDPacket done [21:49:39]NVStorageSaveData kkm_last_timestamp [21:49:39]File name is /storage/kkm_last_timestamp [21:49:39]Write 4 bytes [21:49:39]NVStorageSaveData done [21:49:39]ExternCall_PrintAddStr [21:49:39]wPrintStart [21:49:39]Write to MH i2c: 01 00 00 7D 1F 9C [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 7D 1F 00 00 00 00 00 FF 0F B1 [21:49:39]RasterBufferAndPrint [21:49:39]line Счет N : (3)47439 [21:49:39]line ИНН: 02508201610067 [21:49:39]line Контрольно-Кассовый Чек [21:49:39]line ПРОДАЖА [21:49:39]line Товар: 4670003190013 [21:49:39]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [21:49:39]line 1.000 * 225.00 [21:49:39]line = 225.00 [21:49:39]line НДС 12% НСП 1% [21:49:39]line > о реализуемом товаре [21:49:39]line ИТОГО: 225.00 [21:49:39]line НСП 1% : 1.99 [21:49:39]line НДС 12% : 23.89 [21:49:39]line Наличными: 225.00 [21:49:39]line Безнал.: 0.00 [21:49:39]line Место: АЗС № 86 "Партнер Нефть" [21:49:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:49:39]line СНО: Общий режим [21:49:39]line Чек 126 21.10.2024 21:49 [21:49:39]line Смена: 544 ФФД: 1.0 [21:49:39]line ЗНМ: 0300000154 [21:49:39]line РНМ: 0000000000091619 [21:49:39]line Версия ККМ: 001 [21:49:39]line ФМ: 0000000000874676 [21:49:39]line ФД: 63129 [21:49:39]line ФПД: 43598248559473 [21:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214941&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63129&fm=43598248559473&tin=02508201610067®Number=0000000000091619&sum=22500 [21:49:39]line 0 [21:49:39]OFD Sender: Processing packet 63129 [packets to send 232, broken 231] [21:49:39]ProducePacketName [21:49:39]name=ofd_packets/00063129 [21:49:39]OFD Sender: To server: pG, [21:49:39]CommunicateWithHost lk.salyk.kg:30040 [21:49:39]ConnectInit lk.salyk.kg [21:49:39]written 0, free lines is 4095 [21:49:39]Connected sock=11 [21:49: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 3C 01 00 00 EE 8D 34 01 DA 88 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 75 CC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 99 F6 00 00 35 04 06 00 27 A7 02 1E 43 71 5C 17 10 71 F3 62 4E 93 [21:49:39]Write to MH i2c: 01 00 00 A6 1F C5 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 A6 1F 00 00 00 00 00 13 0D EC [21:49:39]RasterBufferAndPrint [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]written 0, free lines is 3353 [21:49:39]MH_Cut [21:49:39]Write to MH i2c: D1 01 00 AD 1F 01 9E [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 01 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 01 00 AD 1F 00 9D [21:49:39]Write to MH i2c: 01 00 00 AE 1F CD [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49: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 FB BA 47 00 1A 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 99 F6 00 00 F4 03 04 00 72 76 16 67 B6 04 01 00 00 F0 C2 54 82 75 20 24 C4 [21:49:40]CommunicateWithHost err = 0 [21:49:40]CheckOFDResponse [21:49:40]1017 (14) - 77093643461234 [21:49:40]1041 (16) - 0000000000874676 [21:49:40]1040 (4) - 63129 [21:49:40]1012 (4) - 21.10.2024 15:42 [21:49:40]1206 (1) - 0 [21:49:40]OFD Sender: Remove packet 63129 [21:49:40]ProducePacketName [21:49:40]name=ofd_packets/00063129 [21:49:40]NVStorageDeleteData [21:49:40]*** Cut start [21:49:40]*** Partial cut [21:49:40]*** CUTSNS_PIN = 1 [21:49:40]*** CUTSNS_PIN = 0 [21:49:40]OFD Sender: No OFD packet to send [21:49:40]*** Brake cut motor [21:49:41]Read from MH i2c: 01 [21:49:41]MH_I2C_Read... [21:49:41]*** Stop cut motor [21:49:41]*** Cut end [21:49:41]Read from MH i2c: 01 07 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: 01 07 00 AE 1F 00 00 00 00 00 FF 0F E2 [21:49:41]process_action close_receipt done [21:49:41]requested_data is exist [21:49:41]produce_requested_data [21:49:41]requested_item fm.sn is exist - process it [21:49:41]wFMCommunicate request_size=4 [21:49:41]MH_SAM_APDU [21:49:41]CAPDU: 80 11 00 00 [21:49:41]Write to MH i2c: E2 08 00 AF 1F 80 11 00 00 00 00 00 00 48 [21:49:41]Write i2c OK [21:49:41]MH_I2C_Read... [21:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:41]Read from MH i2c: E2 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 17 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 17 00 AF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A1 [21:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:49:41]wFMCommunicate OK [21:49:41]requested_item fd.num is exist - process it [21:49:41]SAM_PROTO_GetFieldsCounters [21:49:41]wFMCommunicate request_size=4 [21:49:41]MH_SAM_APDU [21:49:41]CAPDU: 80 13 00 00 [21:49:41]Write to MH i2c: E2 08 00 B0 1F 80 13 00 00 00 00 00 00 4B [21:49:41]Write i2c OK [21:49:41]MH_I2C_Read... [21:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:41]Read from MH i2c: E2 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 62 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 62 00 B0 1F 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 99 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [21:49: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 99 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:41]wFMCommunicate OK [21:49:41]SAM_PROTO_GetFieldsCounters done [21:49:41]requested_item shift.num is exist - process it [21:49:41]requested_item shift.opened is exist - process it [21:49:41]req_shift_opened [21:49:41]FM_GetShiftState [21:49:41]SAM_PROTO_GetShiftState [21:49:41]wFMCommunicate request_size=4 [21:49:41]MH_SAM_APDU [21:49:41]CAPDU: 80 13 01 00 [21:49:41]Write to MH i2c: E2 08 00 B1 1F 80 13 01 00 00 00 00 00 4D [21:49:41]Write i2c OK [21:49:41]MH_I2C_Read... [21:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:41]Read from MH i2c: E2 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 0E 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 0E 00 B1 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 AD [21:49:41]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:49:41]wFMCommunicate OK [21:49:41]SAM_PROTO_GetShiftState done [21:49:41]FM_GetShiftState done [21:49:41]req_shift_opened done [21:49:41]requested_item shift.open_date is exist - process it [21:49:41]req_shift_open_date [21:49:41]req_shift_open_date done [21:49:41]produce_requested_data done [21:49:41]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63129,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [21:49:41]process_action_free close_receipt [21:49:41]json_value_free [21:49:41]json_value_free done [21:49:41]process_json_proto returns [21:49:41]Send response to host [21:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63129,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [21:49:41]free response buf [21:49:41]execute_script done [21:49:41]execute_script returns [21:49:41]free content buf [21:49:41]Sock 10.Close socket [21:49:41]Sock 10.Thread stoped [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:57:58]accept exits with 7 [21:57:58]New connection [21:57:58]New thread 3067055460 created [21:57:58]Thread 3067198820 joined [21:57:58]Waiting for new connection... [21:57:58] Sock 7.Parse request [21:57:58]Sock 7.Check first char [21:57:58]Sock 7.First char is OK [21:57:58]request: POST /json_proto HTTP/1.0 [21:57:58]Method: POST [21:57:58]URL: /json_proto [21:57:58]Method is POST - this is cgi request [21:57:58]url: /json_proto [21:57:58]query_string will be loaded in cgi processing [21:57:58]execute_cgi json_proto POST (null) [21:57:58]execute_cgi path=json_proto method=POST [21:57:58]POST find Content-Length [21:57:58]Host: 172.17.42.132:8080 [21:57:58]Content-Length: 689 [21:57:58]Content-Type: application/json [21:57:58] [21:57:58]POST finish read [21:57:58]Found Content-Length = 689 [21:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47440", "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" ] } } [21:57:58]execute_script... [21:57: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)47440", "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" ] } } [21:57:58]POST & json_proto [21:57:58]process_json_proto [21:57:58]json parsed OK: [21:57:58]protocol is kg_v1.0 [21:57:58]action value=close_receipt [21:57:58]process_action close_receipt [21:57:58]cmd_close_receipt [21:57:58]MH_GetDate [21:57:58]Write to MH i2c: F0 00 00 B2 1F C0 [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: F0 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: F0 09 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: F0 09 00 B2 1F 00 6A CE 16 67 4C DF 56 66 65 [21:57:58]GetLastDocTimeStamp 1729547381 [21:57:58]current date 1729547882 [21:57:58]FM_GetShiftState [21:57:58]SAM_PROTO_GetShiftState [21:57:58]wFMCommunicate request_size=4 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 13 01 00 [21:57:58]Write to MH i2c: E2 08 00 B3 1F 80 13 01 00 00 00 00 00 4F [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 0E 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 0E 00 B3 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 AF [21:57:58]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:57:58]wFMCommunicate OK [21:57:58]SAM_PROTO_GetShiftState done [21:57:58]FM_GetShiftState done [21:57:58]opened in 1729469755 [21:57:58]opened+sec_in_day 1729556155 [21:57:58]quantity*price = 10400 [21:57:58]sum+1 = 10401 [21:57:58]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 СНО: Общий режим Чек 127 21.10.2024 21:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63130 ФПД: 37423618498993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215802&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63130&fm=37423618498993&tin=02508201610067®Number=0000000000091619&sum=10400 0 [21:57:59]StoreToDocumentArchive [21:57:59]shift 544 fd 63130 [21:57:59]save to /storage/0544/doc_00063130 [21:57:59]save last doc name /storage/0544/doc_00063130 to /storage/kkm_last_doc_name [21:57:59]save OK [21:57:59]Clear old archive folders... [21:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=294 [21:57:59]tlvbuf is 01926F80 [21:57:59]SAM_PROTO_ClearQueue [21:57:59]wFMCommunicate request_size=4 [21:57:59]MH_SAM_APDU [21:57:59]CAPDU: 80 09 00 00 [21:57:59]Write to MH i2c: E2 08 00 C0 1F 80 09 00 00 00 00 00 00 51 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:59]Read from MH i2c: E2 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 03 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [21:57:59]RAPDU: 90 00 [21:57:59]wFMCommunicate OK [21:57:59]SAM_PROTO_ClearQueue done [21:57:59]KKMCreateOFDPacket [21:57:59]OFDProtocolAddRootSTLVToBuf [21:57:59]FM_MakeSignedData [21:57:59]FM_MakeSignedData [21:57:59]SAM_PROTO_SignData [21:57:59]wFMCommunicate request_size=4 [21:57:59]MH_SAM_APDU [21:57:59]CAPDU: 80 0D 01 02 [21:57:59]Write to MH i2c: E2 08 00 C1 1F 80 0D 01 02 00 00 00 00 59 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:59]Read from MH i2c: E2 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 03 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [21:57:59]RAPDU: 90 00 [21:57:59]wFMCommunicate OK [21:57:59]wFMCommunicate request_size=255 [21:57:59]MH_SAM_APDU [21:57:59]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 7F 00 00 00 F4 03 04 00 6A CE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [21:57:59]Write to MH i2c: E2 02 01 C2 1F 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 7F 00 00 00 F4 03 04 00 6A CE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4F [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:00]Read from MH i2c: E2 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 03 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [21:58:00]RAPDU: 90 00 [21:58:00]wFMCommunicate OK [21:58:00]wFMCommunicate request_size=53 [21:58:00]MH_SAM_APDU [21:58: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 9A F6 00 00 35 04 06 00 22 09 5D 7C A1 B1 [21:58:00]Write to MH i2c: E2 38 00 C3 1F 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 9A F6 00 00 35 04 06 00 22 09 5D 7C A1 B1 00 00 3E [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:00]Read from MH i2c: E2 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 03 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [21:58:00]RAPDU: 90 00 [21:58:00]wFMCommunicate OK [21:58:00]wFMCommunicate request_size=4 [21:58:00]MH_SAM_APDU [21:58:00]CAPDU: 80 0D 03 02 [21:58:00]Write to MH i2c: E2 08 00 C4 1F 80 0D 03 02 00 00 00 00 5E [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:00]Read from MH i2c: E2 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 0B 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 0B 00 C4 1F 00 E1 A4 98 59 66 79 14 A5 90 00 6D [21:58:00]RAPDU: E1 A4 98 59 66 79 14 A5 90 00 [21:58:00]wFMCommunicate OK [21:58:00]SAM_PROTO_SignData done [21:58:00]FM_MakeSignedData done [21:58:00]CreateOFDProtocolMessage [21:58:00]wFMCommunicate request_size=4 [21:58:00]MH_SAM_APDU [21:58:00]CAPDU: 80 11 00 00 [21:58:00]Write to MH i2c: E2 08 00 C5 1F 80 11 00 00 00 00 00 00 5E [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:00]Read from MH i2c: E2 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 17 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 17 00 C5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B7 [21:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:58:00]wFMCommunicate OK [21:58:00]CreateOFDProtocolMessage done [21:58:00]OFDSenderStorePacket 63130 [21:58:00]StoreOFDPacket docnum=63130 [21:58: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 FD AE 32 01 DD AC 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 7F 00 00 00 F4 03 04 00 6A CE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9A F6 00 00 35 04 06 00 22 09 5D 7C A1 B1 E1 A4 98 59 66 79 14 A5 [21:58:00]CheckFolder [21:58:00]dirname=/storage/ofd_packets [21:58:00]CheckFolder done [21:58:00]ProducePacketName [21:58:00]name=ofd_packets/00063130 [21:58:00]NVStorageSaveData ofd_packets/00063130 [21:58:00]File name is /storage/ofd_packets/00063130 [21:58:00]Write 344 bytes [21:58:00]NVStorageSaveData done [21:58:00]OFDSenderStorePacket done [21:58:00]KKMCreateOFDPacket done [21:58:00]NVStorageSaveData kkm_last_timestamp [21:58:00]File name is /storage/kkm_last_timestamp [21:58:00]Write 4 bytes [21:58:00]NVStorageSaveData done [21:58:00]ExternCall_PrintAddStr [21:58:00]wPrintStart [21:58:00]Write to MH i2c: 01 00 00 C6 1F E5 [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 07 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 FF 0F FA [21:58:00]RasterBufferAndPrint [21:58:00]line Счет N : (3)47440 [21:58:00]line ИНН: 02508201610067 [21:58:00]line Контрольно-Кассовый Чек [21:58:00]line ПРОДАЖА [21:58:00]line Товар: 4870202521247 [21:58:00]line Напиток MAXI чай 1,2 черн.персик [21:58:00]line 1.000 * 104.00 [21:58:00]line = 104.00 [21:58:00]line НДС 12% НСП 1% [21:58:00]line > о реализуемом товаре [21:58:00]line ИТОГО: 104.00 [21:58:00]line НСП 1% : 0.92 [21:58:00]line НДС 12% : 11.04 [21:58:00]line Наличными: 104.00 [21:58:00]line Безнал.: 0.00 [21:58:00]line Место: АЗС № 86 "Партнер Нефть" [21:58:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:58:00]line СНО: Общий режим [21:58:00]line Чек 127 21.10.2024 21:58 [21:58:00]line Смена: 544 ФФД: 1.0 [21:58:00]line ЗНМ: 0300000154 [21:58:00]line РНМ: 0000000000091619 [21:58:00]line Версия ККМ: 001 [21:58:00]line ФМ: 0000000000874676 [21:58:00]line ФД: 63130 [21:58:00]line ФПД: 37423618498993 [21:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215802&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63130&fm=37423618498993&tin=02508201610067®Number=0000000000091619&sum=10400 [21:58:00]line 0 [21:58:00]OFD Sender: Processing packet 63130 [packets to send 232, broken 231] [21:58:00]ProducePacketName [21:58:00]name=ofd_packets/00063130 [21:58:00]OFD Sender: To server: pG, [21:58:00]CommunicateWithHost lk.salyk.kg:30040 [21:58:00]ConnectInit lk.salyk.kg [21:58:00]written 0, free lines is 4095 [21:58:00]Connected sock=10 [21:58: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 3A 01 00 00 FD AE 32 01 DD AC 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 7F 00 00 00 F4 03 04 00 6A CE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9A F6 00 00 35 04 06 00 22 09 5D 7C A1 B1 E1 A4 98 59 66 79 14 A5 [21:58:00]Write to MH i2c: 01 00 00 EF 1F 0E [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 07 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 0A 0D 2C [21:58:00]RasterBufferAndPrint [21:58:00]line [21:58:00]line [21:58:00]line [21:58:00]line [21:58:00]line [21:58:00]written 0, free lines is 3344 [21:58:00]MH_Cut [21:58:00]Write to MH i2c: D1 01 00 F6 1F 01 E7 [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: D1 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: D1 01 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: D1 01 00 F6 1F 00 E6 [21:58:00]Write to MH i2c: 01 00 00 F7 1F 16 [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58: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 EA CD 47 00 AC 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 9A F6 00 00 F4 03 04 00 67 78 16 67 B6 04 01 00 00 C6 1C AC 01 1D C3 B9 94 [21:58:01]CommunicateWithHost err = 0 [21:58:01]CheckOFDResponse [21:58:01]1017 (14) - 77093643461234 [21:58:01]1041 (16) - 0000000000874676 [21:58:01]1040 (4) - 63130 [21:58:01]1012 (4) - 21.10.2024 15:51 [21:58:01]1206 (1) - 0 [21:58:01]OFD Sender: Remove packet 63130 [21:58:01]ProducePacketName [21:58:01]name=ofd_packets/00063130 [21:58:01]NVStorageDeleteData [21:58:01]*** Cut start [21:58:01]*** Partial cut [21:58:01]*** CUTSNS_PIN = 1 [21:58:01]*** CUTSNS_PIN = 0 [21:58:01]OFD Sender: No OFD packet to send [21:58:01]*** Brake cut motor [21:58:02]Read from MH i2c: 01 [21:58:02]MH_I2C_Read... [21:58:02]*** Stop cut motor [21:58:02]*** Cut end [21:58:02]Read from MH i2c: 01 07 00 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 FF 0F 2B [21:58:02]process_action close_receipt done [21:58:02]requested_data is exist [21:58:02]produce_requested_data [21:58:02]requested_item fm.sn is exist - process it [21:58:02]wFMCommunicate request_size=4 [21:58:02]MH_SAM_APDU [21:58:02]CAPDU: 80 11 00 00 [21:58:02]Write to MH i2c: E2 08 00 F8 1F 80 11 00 00 00 00 00 00 91 [21:58:02]Write i2c OK [21:58:02]MH_I2C_Read... [21:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:02]Read from MH i2c: E2 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 17 00 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 17 00 F8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EA [21:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:58:02]wFMCommunicate OK [21:58:02]requested_item fd.num is exist - process it [21:58:02]SAM_PROTO_GetFieldsCounters [21:58:02]wFMCommunicate request_size=4 [21:58:02]MH_SAM_APDU [21:58:02]CAPDU: 80 13 00 00 [21:58:02]Write to MH i2c: E2 08 00 F9 1F 80 13 00 00 00 00 00 00 94 [21:58:02]Write i2c OK [21:58:02]MH_I2C_Read... [21:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:02]Read from MH i2c: E2 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 62 00 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 62 00 F9 1F 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 9A F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:58: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 9A F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:02]wFMCommunicate OK [21:58:02]SAM_PROTO_GetFieldsCounters done [21:58:02]requested_item shift.num is exist - process it [21:58:02]requested_item shift.opened is exist - process it [21:58:02]req_shift_opened [21:58:02]FM_GetShiftState [21:58:02]SAM_PROTO_GetShiftState [21:58:02]wFMCommunicate request_size=4 [21:58:02]MH_SAM_APDU [21:58:02]CAPDU: 80 13 01 00 [21:58:02]Write to MH i2c: E2 08 00 FA 1F 80 13 01 00 00 00 00 00 96 [21:58:02]Write i2c OK [21:58:02]MH_I2C_Read... [21:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:02]Read from MH i2c: E2 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 0E 00 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: E2 0E 00 FA 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F6 [21:58:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [21:58:02]wFMCommunicate OK [21:58:02]SAM_PROTO_GetShiftState done [21:58:02]FM_GetShiftState done [21:58:02]req_shift_opened done [21:58:02]requested_item shift.open_date is exist - process it [21:58:02]req_shift_open_date [21:58:02]req_shift_open_date done [21:58:02]produce_requested_data done [21:58:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63130,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [21:58:02]process_action_free close_receipt [21:58:02]json_value_free [21:58:02]json_value_free done [21:58:02]process_json_proto returns [21:58:02]Send response to host [21:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63130,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [21:58:02]free response buf [21:58:02]execute_script done [21:58:02]execute_script returns [21:58:02]free content buf [21:58:02]Sock 7.Close socket [21:58:02]Sock 7.Thread stoped [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:48]accept exits with 9 [22:03:48]New connection [22:03:48]New thread 3067198820 created [22:03:48]Thread 3067055460 joined [22:03:48]Waiting for new connection... [22:03:48] Sock 9.Parse request [22:03:48]Sock 9.Check first char [22:03:48]Sock 9.First char is OK [22:03:48]request: POST /json_proto HTTP/1.0 [22:03:48]Method: POST [22:03:48]URL: /json_proto [22:03:48]Method is POST - this is cgi request [22:03:48]url: /json_proto [22:03:48]query_string will be loaded in cgi processing [22:03:48]execute_cgi json_proto POST (null) [22:03:48]execute_cgi path=json_proto method=POST [22:03:48]POST find Content-Length [22:03:48]Host: 172.17.42.132:8080 [22:03:48]Content-Length: 649 [22:03:48]Content-Type: application/json [22:03:48] [22:03:48]POST finish read [22:03:48]Found Content-Length = 649 [22:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47441", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:48]execute_script... [22:03: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)47441", "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 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:48]POST & json_proto [22:03:48]process_json_proto [22:03:48]json parsed OK: [22:03:48]protocol is kg_v1.0 [22:03:48]action value=close_receipt [22:03:48]process_action close_receipt [22:03:48]cmd_close_receipt [22:03:48]MH_GetDate [22:03:48]Write to MH i2c: F0 00 00 FB 1F 09 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: F0 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: F0 09 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: F0 09 00 FB 1F 00 C8 CF 16 67 4C DF 56 66 0D [22:03:48]GetLastDocTimeStamp 1729547882 [22:03:48]current date 1729548232 [22:03:48]FM_GetShiftState [22:03:48]SAM_PROTO_GetShiftState [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 13 01 00 [22:03:48]Write to MH i2c: E2 08 00 FC 1F 80 13 01 00 00 00 00 00 98 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0E 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 0E 00 FC 1F 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 F8 [22:03:48]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_GetShiftState done [22:03:48]FM_GetShiftState done [22:03:48]opened in 1729469755 [22:03:48]opened+sec_in_day 1729556155 [22:03:48]quantity*price = 10500 [22:03:48]sum+1 = 10501 [22:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 128 21.10.2024 22:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63131 ФПД: 136261430003642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220352&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63131&fm=136261430003642&tin=02508201610067®Number=0000000000091619&sum=10500 0 [22:03:49]StoreToDocumentArchive [22:03:49]shift 544 fd 63131 [22:03:49]save to /storage/0544/doc_00063131 [22:03:49]save last doc name /storage/0544/doc_00063131 to /storage/kkm_last_doc_name [22:03:49]save OK [22:03:49]Clear old archive folders... [22:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:03:49]tlvbuf is 018CBCF0 [22:03:49]SAM_PROTO_ClearQueue [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 09 00 00 [22:03:49]Write to MH i2c: E2 08 00 09 20 80 09 00 00 00 00 00 00 9B [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]SAM_PROTO_ClearQueue done [22:03:49]KKMCreateOFDPacket [22:03:49]OFDProtocolAddRootSTLVToBuf [22:03:49]FM_MakeSignedData [22:03:49]FM_MakeSignedData [22:03:49]SAM_PROTO_SignData [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 0D 01 02 [22:03:49]Write to MH i2c: E2 08 00 0A 20 80 0D 01 02 00 00 00 00 A3 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]wFMCommunicate request_size=255 [22:03:49]MH_SAM_APDU [22:03: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 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C8 CF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [22:03:49]Write to MH i2c: E2 02 01 0B 20 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C8 CF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 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 22 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]wFMCommunicate request_size=41 [22:03:49]MH_SAM_APDU [22:03: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 9B F6 00 00 35 04 06 00 7B ED D6 21 C7 BA [22:03:49]Write to MH i2c: E2 2C 00 0C 20 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 9B F6 00 00 35 04 06 00 7B ED D6 21 C7 BA 00 00 EC [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 0D 03 02 [22:03:49]Write to MH i2c: E2 08 00 0D 20 80 0D 03 02 00 00 00 00 A8 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 0B 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 0B 00 0D 20 00 4E A1 80 DC 93 9D 78 D8 90 00 74 [22:03:49]RAPDU: 4E A1 80 DC 93 9D 78 D8 90 00 [22:03:49]wFMCommunicate OK [22:03:49]SAM_PROTO_SignData done [22:03:49]FM_MakeSignedData done [22:03:49]CreateOFDProtocolMessage [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 11 00 00 [22:03:49]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 17 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 01 [22:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:03:49]wFMCommunicate OK [22:03:49]CreateOFDProtocolMessage done [22:03:49]OFDSenderStorePacket 63131 [22:03:49]StoreOFDPacket docnum=63131 [22:03: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 AE F7 26 01 5B 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C8 CF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9B F6 00 00 35 04 06 00 7B ED D6 21 C7 BA 4E A1 80 DC 93 9D 78 D8 [22:03:49]CheckFolder [22:03:49]dirname=/storage/ofd_packets [22:03:49]CheckFolder done [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00063131 [22:03:49]NVStorageSaveData ofd_packets/00063131 [22:03:49]File name is /storage/ofd_packets/00063131 [22:03:49]Write 332 bytes [22:03:49]NVStorageSaveData done [22:03:49]OFDSenderStorePacket done [22:03:49]KKMCreateOFDPacket done [22:03:49]NVStorageSaveData kkm_last_timestamp [22:03:49]File name is /storage/kkm_last_timestamp [22:03:49]Write 4 bytes [22:03:49]NVStorageSaveData done [22:03:49]ExternCall_PrintAddStr [22:03:49]wPrintStart [22:03:49]Write to MH i2c: 01 00 00 0F 20 2F [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 FF 0F 44 [22:03:49]RasterBufferAndPrint [22:03:49]line Счет N : (3)47441 [22:03:49]line ИНН: 02508201610067 [22:03:49]line Контрольно-Кассовый Чек [22:03:49]line ПРОДАЖА [22:03:49]line Товар: 2000034730018 [22:03:49]line Кофе Американо (GABB TRADE) [22:03:49]line 1.000 * 105.00 [22:03:49]line = 105.00 [22:03:49]line НДС 12% НСП 1% [22:03:49]line > о реализуемом товаре [22:03:49]line ИТОГО: 105.00 [22:03:49]line НСП 1% : 0.93 [22:03:49]line НДС 12% : 11.15 [22:03:49]line Наличными: 105.00 [22:03:49]line Безнал.: 0.00 [22:03:49]line Место: АЗС № 86 "Партнер Нефть" [22:03:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:03:49]line СНО: Общий режим [22:03:49]line Чек 128 21.10.2024 22:03 [22:03:49]line Смена: 544 ФФД: 1.0 [22:03:49]line ЗНМ: 0300000154 [22:03:49]line РНМ: 0000000000091619 [22:03:49]line Версия ККМ: 001 [22:03:49]line ФМ: 0000000000874676 [22:03:49]line ФД: 63131 [22:03:49]line ФПД: 136261430003642 [22:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220352&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63131&fm=136261430003642&tin=02508201610067®Number=0000000000091619&sum=10500 [22:03:50]line 0 [22:03:50]OFD Sender: Processing packet 63131 [packets to send 232, broken 231] [22:03:50]ProducePacketName [22:03:50]name=ofd_packets/00063131 [22:03:50]OFD Sender: To server: pG, [22:03:50]CommunicateWithHost lk.salyk.kg:30040 [22:03:50]ConnectInit lk.salyk.kg [22:03:50]written 0, free lines is 4095 [22:03:50]Connected sock=10 [22:03: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 AE F7 26 01 5B 59 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C8 CF 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9B F6 00 00 35 04 06 00 7B ED D6 21 C7 BA 4E A1 80 DC 93 9D 78 D8 [22:03:50]Write to MH i2c: 01 00 00 38 20 58 [22:03:50]Write i2c OK [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: 01 [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: 01 07 00 [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: 01 07 00 38 20 00 00 00 00 00 01 0D 6D [22:03:50]RasterBufferAndPrint [22:03:50]line [22:03:50]line [22:03:50]line [22:03:50]line [22:03:50]line [22:03:50]written 0, free lines is 3335 [22:03:50]MH_Cut [22:03:50]Write to MH i2c: D1 01 00 3F 20 01 31 [22:03:50]Write i2c OK [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: D1 [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: D1 01 00 [22:03:50]MH_I2C_Read... [22:03:50]Read from MH i2c: D1 01 00 3F 20 00 30 [22:03:50]Write to MH i2c: 01 00 00 40 20 60 [22:03:50]Write i2c OK [22:03:50]MH_I2C_Read... [22:03: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 CD 07 47 00 4E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9B F6 00 00 F4 03 04 00 C5 79 16 67 B6 04 01 00 00 14 3B 9E D1 24 41 7A 58 [22:03:50]CommunicateWithHost err = 0 [22:03:50]CheckOFDResponse [22:03:50]1017 (14) - 77093643461234 [22:03:50]1041 (16) - 0000000000874676 [22:03:50]1040 (4) - 63131 [22:03:50]1012 (4) - 21.10.2024 15:56 [22:03:50]1206 (1) - 0 [22:03:50]OFD Sender: Remove packet 63131 [22:03:50]ProducePacketName [22:03:50]name=ofd_packets/00063131 [22:03:50]NVStorageDeleteData [22:03:51]*** Cut start [22:03:51]*** Partial cut [22:03:51]*** CUTSNS_PIN = 1 [22:03:51]OFD Sender: No OFD packet to send [22:03:51]*** CUTSNS_PIN = 0 [22:03:51]*** Brake cut motor [22:03:52]Read from MH i2c: 01 [22:03:52]MH_I2C_Read... [22:03:52]*** Stop cut motor [22:03:52]*** Cut end [22:03:52]Read from MH i2c: 01 07 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: 01 07 00 40 20 00 00 00 00 00 FF 0F 75 [22:03:52]process_action close_receipt done [22:03:52]requested_data is exist [22:03:52]produce_requested_data [22:03:52]requested_item fm.sn is exist - process it [22:03:52]wFMCommunicate request_size=4 [22:03:52]MH_SAM_APDU [22:03:52]CAPDU: 80 11 00 00 [22:03:52]Write to MH i2c: E2 08 00 41 20 80 11 00 00 00 00 00 00 DB [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:52]Read from MH i2c: E2 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 17 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 17 00 41 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 34 [22:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:03:52]wFMCommunicate OK [22:03:52]requested_item fd.num is exist - process it [22:03:52]SAM_PROTO_GetFieldsCounters [22:03:52]wFMCommunicate request_size=4 [22:03:52]MH_SAM_APDU [22:03:52]CAPDU: 80 13 00 00 [22:03:52]Write to MH i2c: E2 08 00 42 20 80 13 00 00 00 00 00 00 DE [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:52]Read from MH i2c: E2 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 62 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 62 00 42 20 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 9B F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:03: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 9B F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:52]wFMCommunicate OK [22:03:52]SAM_PROTO_GetFieldsCounters done [22:03:52]requested_item shift.num is exist - process it [22:03:52]requested_item shift.opened is exist - process it [22:03:52]req_shift_opened [22:03:52]FM_GetShiftState [22:03:52]SAM_PROTO_GetShiftState [22:03:52]wFMCommunicate request_size=4 [22:03:52]MH_SAM_APDU [22:03:52]CAPDU: 80 13 01 00 [22:03:52]Write to MH i2c: E2 08 00 43 20 80 13 01 00 00 00 00 00 E0 [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:52]Read from MH i2c: E2 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 43 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 40 [22:03:52]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:03:52]wFMCommunicate OK [22:03:52]SAM_PROTO_GetShiftState done [22:03:52]FM_GetShiftState done [22:03:52]req_shift_opened done [22:03:52]requested_item shift.open_date is exist - process it [22:03:52]req_shift_open_date [22:03:52]req_shift_open_date done [22:03:52]produce_requested_data done [22:03:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63131,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [22:03:52]process_action_free close_receipt [22:03:52]json_value_free [22:03:52]json_value_free done [22:03:52]process_json_proto returns [22:03:52]Send response to host [22:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63131,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [22:03:52]free response buf [22:03:52]execute_script done [22:03:52]execute_script returns [22:03:52]free content buf [22:03:52]Sock 9.Close socket [22:03:52]Sock 9.Thread stoped [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:53]accept exits with 7 [22:19:53]New connection [22:19:53]New thread 3067055460 created [22:19:53]Thread 3067198820 joined [22:19:53]Waiting for new connection... [22:19:53] Sock 7.Parse request [22:19:53]Sock 7.Check first char [22:19:53]Sock 7.First char is OK [22:19:53]request: POST /json_proto HTTP/1.0 [22:19:53]Method: POST [22:19:53]URL: /json_proto [22:19:53]Method is POST - this is cgi request [22:19:53]url: /json_proto [22:19:53]query_string will be loaded in cgi processing [22:19:53]execute_cgi json_proto POST (null) [22:19:53]execute_cgi path=json_proto method=POST [22:19:53]POST find Content-Length [22:19:53]Host: 172.17.42.132:8080 [22:19:53]Content-Length: 631 [22:19:53]Content-Type: application/json [22:19:53] [22:19:53]POST finish read [22:19:53]Found Content-Length = 631 [22:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47442", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:53]execute_script... [22:19: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)47442", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:53]POST & json_proto [22:19:53]process_json_proto [22:19:53]json parsed OK: [22:19:53]protocol is kg_v1.0 [22:19:53]action value=close_receipt [22:19:53]process_action close_receipt [22:19:53]cmd_close_receipt [22:19:53]MH_GetDate [22:19:53]Write to MH i2c: F0 00 00 44 20 53 [22:19:53]Write i2c OK [22:19:53]MH_I2C_Read... [22:19:53]Read from MH i2c: F0 [22:19:53]MH_I2C_Read... [22:19:53]Read from MH i2c: F0 09 00 [22:19:53]MH_I2C_Read... [22:19:53]Read from MH i2c: F0 09 00 44 20 00 8D D3 16 67 4C DF 56 66 20 [22:19:53]GetLastDocTimeStamp 1729548232 [22:19:53]current date 1729549197 [22:19:53]FM_GetShiftState [22:19:53]SAM_PROTO_GetShiftState [22:19:53]wFMCommunicate request_size=4 [22:19:53]MH_SAM_APDU [22:19:53]CAPDU: 80 13 01 00 [22:19:53]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [22:19:53]Write i2c OK [22:19:53]MH_I2C_Read... [22:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:53]Read from MH i2c: E2 [22:19:53]MH_I2C_Read... [22:19:53]Read from MH i2c: E2 0E 00 [22:19:53]MH_I2C_Read... [22:19:53]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 42 [22:19:53]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:19:53]wFMCommunicate OK [22:19:53]SAM_PROTO_GetShiftState done [22:19:53]FM_GetShiftState done [22:19:53]opened in 1729469755 [22:19:53]opened+sec_in_day 1729556155 [22:19:53]quantity*price = 6000 [22:19:53]sum+1 = 6001 [22:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 129 21.10.2024 22:19 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63132 ФПД: 154534551350484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221957&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63132&fm=154534551350484&tin=02508201610067®Number=0000000000091619&sum=6000 0 [22:19:54]StoreToDocumentArchive [22:19:54]shift 544 fd 63132 [22:19:54]save to /storage/0544/doc_00063132 [22:19:54]save last doc name /storage/0544/doc_00063132 to /storage/kkm_last_doc_name [22:19:54]save OK [22:19:54]Clear old archive folders... [22:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:19:54]tlvbuf is 01934490 [22:19:54]SAM_PROTO_ClearQueue [22:19:54]wFMCommunicate request_size=4 [22:19:54]MH_SAM_APDU [22:19:54]CAPDU: 80 09 00 00 [22:19:54]Write to MH i2c: E2 08 00 52 20 80 09 00 00 00 00 00 00 E4 [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [22:19:54]RAPDU: 90 00 [22:19:54]wFMCommunicate OK [22:19:54]SAM_PROTO_ClearQueue done [22:19:54]KKMCreateOFDPacket [22:19:54]OFDProtocolAddRootSTLVToBuf [22:19:54]FM_MakeSignedData [22:19:54]FM_MakeSignedData [22:19:54]SAM_PROTO_SignData [22:19:54]wFMCommunicate request_size=4 [22:19:54]MH_SAM_APDU [22:19:54]CAPDU: 80 0D 01 02 [22:19:54]Write to MH i2c: E2 08 00 53 20 80 0D 01 02 00 00 00 00 EC [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [22:19:54]RAPDU: 90 00 [22:19:54]wFMCommunicate OK [22:19:54]wFMCommunicate request_size=255 [22:19:54]MH_SAM_APDU [22:19:54]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 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8D D3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:19:54]Write to MH i2c: E2 02 01 54 20 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 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8D D3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 9C [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [22:19:54]RAPDU: 90 00 [22:19:54]wFMCommunicate OK [22:19:54]wFMCommunicate request_size=30 [22:19:54]MH_SAM_APDU [22:19:54]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 9C F6 00 00 35 04 06 00 8C 8C 61 09 EC D4 [22:19:54]Write to MH i2c: E2 21 00 55 20 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 9C F6 00 00 35 04 06 00 8C 8C 61 09 EC D4 00 00 C2 [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [22:19:54]RAPDU: 90 00 [22:19:54]wFMCommunicate OK [22:19:54]wFMCommunicate request_size=4 [22:19:54]MH_SAM_APDU [22:19:54]CAPDU: 80 0D 03 02 [22:19:54]Write to MH i2c: E2 08 00 56 20 80 0D 03 02 00 00 00 00 F1 [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 0B 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 0B 00 56 20 00 6A 15 56 F3 5A 35 A1 E6 90 00 D0 [22:19:54]RAPDU: 6A 15 56 F3 5A 35 A1 E6 90 00 [22:19:54]wFMCommunicate OK [22:19:54]SAM_PROTO_SignData done [22:19:54]FM_MakeSignedData done [22:19:54]CreateOFDProtocolMessage [22:19:54]wFMCommunicate request_size=4 [22:19:54]MH_SAM_APDU [22:19:54]CAPDU: 80 11 00 00 [22:19:54]Write to MH i2c: E2 08 00 57 20 80 11 00 00 00 00 00 00 F1 [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:54]Read from MH i2c: E2 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 17 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: E2 17 00 57 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4A [22:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:19:54]wFMCommunicate OK [22:19:54]CreateOFDProtocolMessage done [22:19:54]OFDSenderStorePacket 63132 [22:19:54]StoreOFDPacket docnum=63132 [22:19: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 23 01 00 00 23 09 1B 01 27 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 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8D D3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9C F6 00 00 35 04 06 00 8C 8C 61 09 EC D4 6A 15 56 F3 5A 35 A1 E6 [22:19:54]CheckFolder [22:19:54]dirname=/storage/ofd_packets [22:19:54]CheckFolder done [22:19:54]ProducePacketName [22:19:54]name=ofd_packets/00063132 [22:19:54]NVStorageSaveData ofd_packets/00063132 [22:19:54]File name is /storage/ofd_packets/00063132 [22:19:54]Write 321 bytes [22:19:54]NVStorageSaveData done [22:19:54]OFDSenderStorePacket done [22:19:54]KKMCreateOFDPacket done [22:19:54]NVStorageSaveData kkm_last_timestamp [22:19:54]File name is /storage/kkm_last_timestamp [22:19:54]Write 4 bytes [22:19:54]NVStorageSaveData done [22:19:54]ExternCall_PrintAddStr [22:19:54]wPrintStart [22:19:54]Write to MH i2c: 01 00 00 58 20 78 [22:19:54]Write i2c OK [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: 01 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: 01 07 00 [22:19:54]MH_I2C_Read... [22:19:54]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 FF 0F 8D [22:19:54]RasterBufferAndPrint [22:19:54]line Счет N : (3)47442 [22:19:54]line ИНН: 02508201610067 [22:19:54]line Контрольно-Кассовый Чек [22:19:54]line ПРОДАЖА [22:19:54]line Товар: 4700000160204 [22:19:54]line Вода Легенда 1,5л [22:19:54]line 1.000 * 60.00 [22:19:54]line = 60.00 [22:19:54]line НДС 12% НСП 1% [22:19:54]line > о реализуемом товаре [22:19:54]line ИТОГО: 60.00 [22:19:54]line НСП 1% : 0.53 [22:19:54]line НДС 12% : 6.37 [22:19:54]line Наличными: 60.00 [22:19:54]line Безнал.: 0.00 [22:19:54]line Место: АЗС № 86 "Партнер Нефть" [22:19:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:19:54]line СНО: Общий режим [22:19:54]line Чек 129 21.10.2024 22:19 [22:19:54]line Смена: 544 ФФД: 1.0 [22:19:54]line ЗНМ: 0300000154 [22:19:54]line РНМ: 0000000000091619 [22:19:54]line Версия ККМ: 001 [22:19:54]line ФМ: 0000000000874676 [22:19:54]line ФД: 63132 [22:19:54]line ФПД: 154534551350484 [22:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221957&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63132&fm=154534551350484&tin=02508201610067®Number=0000000000091619&sum=6000 [22:19:55]OFD Sender: Processing packet 63132 [packets to send 232, broken 231] [22:19:55]ProducePacketName [22:19:55]name=ofd_packets/00063132 [22:19:55]OFD Sender: To server: pG, [22:19:55]CommunicateWithHost lk.salyk.kg:30040 [22:19:55]ConnectInit lk.salyk.kg [22:19:55]line 0 [22:19:55]written 0, free lines is 4095 [22:19:55]Connected sock=10 [22:19: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 23 01 00 00 23 09 1B 01 27 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 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 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 8D D3 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9C F6 00 00 35 04 06 00 8C 8C 61 09 EC D4 6A 15 56 F3 5A 35 A1 E6 [22:19:55]Write to MH i2c: 01 00 00 80 20 A0 [22:19:55]Write i2c OK [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: 01 [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: 01 07 00 [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: 01 07 00 80 20 00 00 00 00 00 01 0D B5 [22:19:55]RasterBufferAndPrint [22:19:55]line [22:19:55]line [22:19:55]line [22:19:55]line [22:19:55]line [22:19:55]written 0, free lines is 3335 [22:19:55]MH_Cut [22:19:55]Write to MH i2c: D1 01 00 87 20 01 79 [22:19:55]Write i2c OK [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: D1 [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: D1 01 00 [22:19:55]MH_I2C_Read... [22:19:55]Read from MH i2c: D1 01 00 87 20 00 78 [22:19:55]Write to MH i2c: 01 00 00 88 20 A8 [22:19:55]Write i2c OK [22:19:55]MH_I2C_Read... [22:19: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 BB 71 47 00 3D 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9C F6 00 00 F4 03 04 00 89 7D 16 67 B6 04 01 00 00 BC A7 DD DC B5 9E 3E 5E [22:19:55]CommunicateWithHost err = 0 [22:19:55]CheckOFDResponse [22:19:55]1017 (14) - 77093643461234 [22:19:55]1041 (16) - 0000000000874676 [22:19:55]1040 (4) - 63132 [22:19:55]1012 (4) - 21.10.2024 16:12 [22:19:55]1206 (1) - 0 [22:19:55]OFD Sender: Remove packet 63132 [22:19:55]ProducePacketName [22:19:55]name=ofd_packets/00063132 [22:19:55]NVStorageDeleteData [22:19:56]*** Cut start [22:19:56]*** Partial cut [22:19:56]*** CUTSNS_PIN = 1 [22:19:56]*** CUTSNS_PIN = 0 [22:19:56]OFD Sender: No OFD packet to send [22:19:56]*** Brake cut motor [22:19:56]Read from MH i2c: 01 [22:19:56]MH_I2C_Read... [22:19:56]*** Stop cut motor [22:19:56]*** Cut end [22:19:56]Read from MH i2c: 01 07 00 [22:19:56]MH_I2C_Read... [22:19:56]Read from MH i2c: 01 07 00 88 20 00 00 00 00 00 FF 0F BD [22:19:56]process_action close_receipt done [22:19:56]requested_data is exist [22:19:56]produce_requested_data [22:19:56]requested_item fm.sn is exist - process it [22:19:56]wFMCommunicate request_size=4 [22:19:56]MH_SAM_APDU [22:19:56]CAPDU: 80 11 00 00 [22:19:56]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [22:19:56]Write i2c OK [22:19:56]MH_I2C_Read... [22:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:57]Read from MH i2c: E2 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 17 00 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7C [22:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:19:57]wFMCommunicate OK [22:19:57]requested_item fd.num is exist - process it [22:19:57]SAM_PROTO_GetFieldsCounters [22:19:57]wFMCommunicate request_size=4 [22:19:57]MH_SAM_APDU [22:19:57]CAPDU: 80 13 00 00 [22:19:57]Write to MH i2c: E2 08 00 8A 20 80 13 00 00 00 00 00 00 26 [22:19:57]Write i2c OK [22:19:57]MH_I2C_Read... [22:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:57]Read from MH i2c: E2 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 62 00 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 62 00 8A 20 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 9C F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:19: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 9C F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:57]wFMCommunicate OK [22:19:57]SAM_PROTO_GetFieldsCounters done [22:19:57]requested_item shift.num is exist - process it [22:19:57]requested_item shift.opened is exist - process it [22:19:57]req_shift_opened [22:19:57]FM_GetShiftState [22:19:57]SAM_PROTO_GetShiftState [22:19:57]wFMCommunicate request_size=4 [22:19:57]MH_SAM_APDU [22:19:57]CAPDU: 80 13 01 00 [22:19:57]Write to MH i2c: E2 08 00 8B 20 80 13 01 00 00 00 00 00 28 [22:19:57]Write i2c OK [22:19:57]MH_I2C_Read... [22:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:57]Read from MH i2c: E2 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 0E 00 [22:19:57]MH_I2C_Read... [22:19:57]Read from MH i2c: E2 0E 00 8B 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 88 [22:19:57]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:19:57]wFMCommunicate OK [22:19:57]SAM_PROTO_GetShiftState done [22:19:57]FM_GetShiftState done [22:19:57]req_shift_opened done [22:19:57]requested_item shift.open_date is exist - process it [22:19:57]req_shift_open_date [22:19:57]req_shift_open_date done [22:19:57]produce_requested_data done [22:19:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63132,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [22:19:57]process_action_free close_receipt [22:19:57]json_value_free [22:19:57]json_value_free done [22:19:57]process_json_proto returns [22:19:57]Send response to host [22:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63132,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [22:19:57]free response buf [22:19:57]execute_script done [22:19:57]execute_script returns [22:19:57]free content buf [22:19:57]Sock 7.Close socket [22:19:57]Sock 7.Thread stoped [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:54]accept exits with 9 [22:29:54]New connection [22:29:54]New thread 3067198820 created [22:29:54]Thread 3067055460 joined [22:29:54]Waiting for new connection... [22:29:54] Sock 9.Parse request [22:29:54]Sock 9.Check first char [22:29:54]Sock 9.First char is OK [22:29:54]request: POST /json_proto HTTP/1.0 [22:29:54]Method: POST [22:29:54]URL: /json_proto [22:29:54]Method is POST - this is cgi request [22:29:54]url: /json_proto [22:29:54]query_string will be loaded in cgi processing [22:29:54]execute_cgi json_proto POST (null) [22:29:54]execute_cgi path=json_proto method=POST [22:29:54]POST find Content-Length [22:29:54]Host: 172.17.42.132:8080 [22:29:54]Content-Length: 1328 [22:29:54]Content-Type: application/json [22:29:54] [22:29:54]POST finish read [22:29:54]Found Content-Length = 1328 [22:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47443", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:54]execute_script... [22:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47443", "tax_sys" : 0, "items" : [ { "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:54]POST & json_proto [22:29:54]process_json_proto [22:29:54]json parsed OK: [22:29:54]protocol is kg_v1.0 [22:29:54]action value=close_receipt [22:29:54]process_action close_receipt [22:29:54]cmd_close_receipt [22:29:54]MH_GetDate [22:29:54]Write to MH i2c: F0 00 00 8C 20 9B [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 09 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 09 00 8C 20 00 E6 D5 16 67 4C DF 56 66 C3 [22:29:54]GetLastDocTimeStamp 1729549197 [22:29:54]current date 1729549798 [22:29:54]FM_GetShiftState [22:29:54]SAM_PROTO_GetShiftState [22:29:54]wFMCommunicate request_size=4 [22:29:54]MH_SAM_APDU [22:29:54]CAPDU: 80 13 01 00 [22:29:54]Write to MH i2c: E2 08 00 8D 20 80 13 01 00 00 00 00 00 2A [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 0E 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 0E 00 8D 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 8A [22:29:54]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:29:54]wFMCommunicate OK [22:29:54]SAM_PROTO_GetShiftState done [22:29:54]FM_GetShiftState done [22:29:54]opened in 1729469755 [22:29:54]opened+sec_in_day 1729556155 [22:29:54]quantity*price = 9000 [22:29:54]sum+1 = 9001 [22:29:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.67 НДС 12% : 44.07 Наличными: 415.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 130 21.10.2024 22:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63133 ФПД: 204801904182878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222959&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63133&fm=204801904182878&tin=02508201610067®Number=0000000000091619&sum=41500 0 [22:29:55]StoreToDocumentArchive [22:29:55]shift 544 fd 63133 [22:29:55]save to /storage/0544/doc_00063133 [22:29:55]save last doc name /storage/0544/doc_00063133 to /storage/kkm_last_doc_name [22:29:55]save OK [22:29:55]Clear old archive folders... [22:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=549 [22:29:55]tlvbuf is 01949F80 [22:29:55]SAM_PROTO_ClearQueue [22:29:55]wFMCommunicate request_size=4 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 09 00 00 [22:29:55]Write to MH i2c: E2 08 00 9A 20 80 09 00 00 00 00 00 00 2C [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:55]Read from MH i2c: E2 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 03 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [22:29:55]RAPDU: 90 00 [22:29:55]wFMCommunicate OK [22:29:55]SAM_PROTO_ClearQueue done [22:29:55]KKMCreateOFDPacket [22:29:55]OFDProtocolAddRootSTLVToBuf [22:29:55]FM_MakeSignedData [22:29:55]FM_MakeSignedData [22:29:55]SAM_PROTO_SignData [22:29:55]wFMCommunicate request_size=4 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 0D 01 02 [22:29:55]Write to MH i2c: E2 08 00 9B 20 80 0D 01 02 00 00 00 00 34 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:55]Read from MH i2c: E2 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 03 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [22:29:55]RAPDU: 90 00 [22:29:55]wFMCommunicate OK [22:29:55]wFMCommunicate request_size=255 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 0D 02 02 FA 03 00 25 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 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 30 2C 33 33 20 D0 B6 2F D0 B1 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 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [22:29:56]Write to MH i2c: E2 02 01 9C 20 80 0D 02 02 FA 00 03 00 25 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 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 30 2C 33 33 20 D0 B6 2F D0 B1 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 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 BB [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 9C 20 00 90 00 30 [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=255 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 02 02 FA 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [22:29:56]Write to MH i2c: E2 02 01 9D 20 80 0D 02 02 FA 00 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 13 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=58 [22:29:56]MH_SAM_APDU [22:29:56]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 9D F6 00 00 35 04 06 00 BA 44 28 BF 86 5E [22:29:56]Write to MH i2c: E2 3D 00 9E 20 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 9D F6 00 00 35 04 06 00 BA 44 28 BF 86 5E 00 00 8A [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 03 02 [22:29:56]Write to MH i2c: E2 08 00 9F 20 80 0D 03 02 00 00 00 00 3A [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0B 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0B 00 9F 20 00 3F 11 26 C8 73 ED 2A C8 90 00 CB [22:29:56]RAPDU: 3F 11 26 C8 73 ED 2A C8 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_SignData done [22:29:56]FM_MakeSignedData done [22:29:56]CreateOFDProtocolMessage [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 11 00 00 [22:29:56]Write to MH i2c: E2 08 00 A0 20 80 11 00 00 00 00 00 00 3A [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 A0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 93 [22:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:29:56]wFMCommunicate OK [22:29:56]CreateOFDProtocolMessage done [22:29:56]OFDSenderStorePacket 63133 [22:29:56]StoreOFDPacket docnum=63133 [22:29: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 39 02 00 00 36 FC 31 02 C5 4D 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 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 30 2C 33 33 20 D0 B6 2F D0 B1 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 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9D F6 00 00 35 04 06 00 BA 44 28 BF 86 5E 3F 11 26 C8 73 ED 2A C8 [22:29:56]CheckFolder [22:29:56]dirname=/storage/ofd_packets [22:29:56]CheckFolder done [22:29:56]ProducePacketName [22:29:56]name=ofd_packets/00063133 [22:29:56]NVStorageSaveData ofd_packets/00063133 [22:29:56]File name is /storage/ofd_packets/00063133 [22:29:56]Write 599 bytes [22:29:56]NVStorageSaveData done [22:29:56]OFDSenderStorePacket done [22:29:56]KKMCreateOFDPacket done [22:29:56]NVStorageSaveData kkm_last_timestamp [22:29:56]File name is /storage/kkm_last_timestamp [22:29:56]Write 4 bytes [22:29:56]NVStorageSaveData done [22:29:56]ExternCall_PrintAddStr [22:29:56]wPrintStart [22:29:56]Write to MH i2c: 01 00 00 A1 20 C1 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 07 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 07 00 A1 20 00 00 00 00 00 FF 0F D6 [22:29:56]RasterBufferAndPrint [22:29:56]line Счет N : (3)47443 [22:29:56]line ИНН: 02508201610067 [22:29:56]line Контрольно-Кассовый Чек [22:29:56]line ПРОДАЖА [22:29:56]line Товар: 5449000134912 [22:29:56]line Холодный чай Fuse манго,ромашка 0,33 ж/б [22:29:56]line 1.000 * 90.00 [22:29:56]line = 90.00 [22:29:56]line НДС 12% НСП 1% [22:29:56]line > о реализуемом товаре [22:29:56]line Товар: 90448300 [22:29:56]line Энерг напиток Red Bull 0,355л [22:29:56]line 1.000 * 265.00 [22:29:56]line = 265.00 [22:29:56]line НДС 12% НСП 1% [22:29:56]line > о реализуемом товаре [22:29:56]line Товар: 4700000160792 [22:29:56]line Снек Курут классический (круглый) [22:29:56]line 1.000 * 60.00 [22:29:56]line = 60.00 [22:29:56]line НДС 12% НСП 1% [22:29:56]line > о реализуемом товаре [22:29:56]line ИТОГО: 415.00 [22:29:56]line НСП 1% : 3.67 [22:29:56]line НДС 12% : 44.07 [22:29:56]line Наличными: 415.00 [22:29:56]line Безнал.: 0.00 [22:29:56]line Место: АЗС № 86 "Партнер Нефть" [22:29:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:29:56]line СНО: Общий режим [22:29:56]line Чек 130 21.10.2024 22:29 [22:29:56]line Смена: 544 ФФД: 1.0 [22:29:56]line ЗНМ: 0300000154 [22:29:56]line РНМ: 0000000000091619 [22:29:56]line Версия ККМ: 001 [22:29:56]line ФМ: 0000000000874676 [22:29:56]line ФД: 63133 [22:29:56]line ФПД: 204801904182878 [22:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222959&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63133&fm=204801904182878&tin=02508201610067®Number=0000000000091619&sum=41500 [22:29:57]line 0 [22:29:57]OFD Sender: Processing packet 63133 [packets to send 232, broken 231] [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00063133 [22:29:57]OFD Sender: To server: pG, [22:29:57]CommunicateWithHost lk.salyk.kg:30040 [22:29:57]ConnectInit lk.salyk.kg [22:29:57]written 0, free lines is 4095 [22:29:57]Connected sock=7 [22:29: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 39 02 00 00 36 FC 31 02 C5 4D 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 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 30 2C 33 33 20 D0 B6 2F D0 B1 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 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9D F6 00 00 35 04 06 00 BA 44 28 BF 86 5E 3F 11 26 C8 73 ED 2A C8 [22:29: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 0D 10 47 00 CF 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9D F6 00 00 F4 03 04 00 E3 7F 16 67 B6 04 01 00 00 42 C3 C9 77 85 D8 FD B0 [22:29:57]CommunicateWithHost err = 0 [22:29:57]CheckOFDResponse [22:29:57]1017 (14) - 77093643461234 [22:29:57]1041 (16) - 0000000000874676 [22:29:57]1040 (4) - 63133 [22:29:57]1012 (4) - 21.10.2024 16:22 [22:29:57]1206 (1) - 0 [22:29:57]OFD Sender: Remove packet 63133 [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00063133 [22:29:57]NVStorageDeleteData [22:29:57]Write to MH i2c: 01 00 00 D7 20 F7 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 62 0C 6C [22:29:57]RasterBufferAndPrint [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]written 0, free lines is 3182 [22:29:57]MH_Cut [22:29:57]Write to MH i2c: D1 01 00 DE 20 01 D0 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 DE 20 00 CF [22:29:57]Write to MH i2c: 01 00 00 DF 20 FF [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:58]OFD Sender: No OFD packet to send [22:29:58]*** Cut start [22:29:58]*** Partial cut [22:29:58]*** CUTSNS_PIN = 1 [22:29:58]*** CUTSNS_PIN = 0 [22:29:58]*** Brake cut motor [22:29:59]Read from MH i2c: 01 [22:29:59]MH_I2C_Read... [22:29:59]*** Stop cut motor [22:29:59]*** Cut end [22:29:59]Read from MH i2c: 01 07 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [22:29:59]process_action close_receipt done [22:29:59]requested_data is exist [22:29:59]produce_requested_data [22:29:59]requested_item fm.sn is exist - process it [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 11 00 00 [22:29:59]Write to MH i2c: E2 08 00 E0 20 80 11 00 00 00 00 00 00 7A [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 E0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D3 [22:29: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:29:59]wFMCommunicate OK [22:29:59]requested_item fd.num is exist - process it [22:29:59]SAM_PROTO_GetFieldsCounters [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 00 00 [22:29:59]Write to MH i2c: E2 08 00 E1 20 80 13 00 00 00 00 00 00 7D [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 E1 20 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 9D F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [22:29: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 9D F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetFieldsCounters done [22:29:59]requested_item shift.num is exist - process it [22:29:59]requested_item shift.opened is exist - process it [22:29:59]req_shift_opened [22:29:59]FM_GetShiftState [22:29:59]SAM_PROTO_GetShiftState [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 01 00 [22:29:59]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 DF [22:29:59]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetShiftState done [22:29:59]FM_GetShiftState done [22:29:59]req_shift_opened done [22:29:59]requested_item shift.open_date is exist - process it [22:29:59]req_shift_open_date [22:29:59]req_shift_open_date done [22:29:59]produce_requested_data done [22:29:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63133,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [22:29:59]process_action_free close_receipt [22:29:59]json_value_free [22:29:59]json_value_free done [22:29:59]process_json_proto returns [22:29:59]Send response to host [22:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63133,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [22:29:59]free response buf [22:29:59]execute_script done [22:29:59]execute_script returns [22:29:59]free content buf [22:29:59]Sock 9.Close socket [22:29:59]Sock 9.Thread stoped [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:19]accept exits with 10 [22:30:19]New connection [22:30:19]New thread 3067055460 created [22:30:19]Thread 3067198820 joined [22:30:19]Waiting for new connection... [22:30:19] Sock 10.Parse request [22:30:19]Sock 10.Check first char [22:30:19]Sock 10.First char is OK [22:30:19]request: POST /json_proto HTTP/1.0 [22:30:19]Method: POST [22:30:19]URL: /json_proto [22:30:19]Method is POST - this is cgi request [22:30:19]url: /json_proto [22:30:19]query_string will be loaded in cgi processing [22:30:19]execute_cgi json_proto POST (null) [22:30:19]execute_cgi path=json_proto method=POST [22:30:19]POST find Content-Length [22:30:19]Host: 172.17.42.132:8080 [22:30:19]Content-Length: 678 [22:30:19]Content-Type: application/json [22:30:19] [22:30:19]POST finish read [22:30:19]Found Content-Length = 678 [22:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47444", "tax_sys" : 0, "items" : [ { "code": "4780111550491", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:19]execute_script... [22:30: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)47444", "tax_sys" : 0, "items" : [ { "code": "4780111550491", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:19]POST & json_proto [22:30:19]process_json_proto [22:30:19]json parsed OK: [22:30:19]protocol is kg_v1.0 [22:30:19]action value=close_receipt [22:30:19]process_action close_receipt [22:30:19]cmd_close_receipt [22:30:19]MH_GetDate [22:30:19]Write to MH i2c: F0 00 00 E3 20 F2 [22:30:19]Write i2c OK [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: F0 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: F0 09 00 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: F0 09 00 E3 20 00 FF D5 16 67 4C DF 56 66 33 [22:30:19]GetLastDocTimeStamp 1729549799 [22:30:19]current date 1729549823 [22:30:19]FM_GetShiftState [22:30:19]SAM_PROTO_GetShiftState [22:30:19]wFMCommunicate request_size=4 [22:30:19]MH_SAM_APDU [22:30:19]CAPDU: 80 13 01 00 [22:30:19]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [22:30:19]Write i2c OK [22:30:19]MH_I2C_Read... [22:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:19]Read from MH i2c: E2 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 0E 00 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 E1 [22:30:19]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:30:19]wFMCommunicate OK [22:30:19]SAM_PROTO_GetShiftState done [22:30:19]FM_GetShiftState done [22:30:19]opened in 1729469755 [22:30:19]opened+sec_in_day 1729556155 [22:30:19]quantity*price = 12500 [22:30:19]sum+1 = 12501 [22:30:19]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 СНО: Общий режим Чек 131 21.10.2024 22:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63134 ФПД: 68215465313456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223023&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63134&fm=68215465313456&tin=02508201610067®Number=0000000000091619&sum=12500 0 [22:30:20]StoreToDocumentArchive [22:30:20]shift 544 fd 63134 [22:30:20]save to /storage/0544/doc_00063134 [22:30:20]save last doc name /storage/0544/doc_00063134 to /storage/kkm_last_doc_name [22:30:20]save OK [22:30:20]Clear old archive folders... [22:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=295 [22:30:20]tlvbuf is 01934950 [22:30:20]SAM_PROTO_ClearQueue [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 09 00 00 [22:30:20]Write to MH i2c: E2 08 00 F1 20 80 09 00 00 00 00 00 00 83 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]SAM_PROTO_ClearQueue done [22:30:20]KKMCreateOFDPacket [22:30:20]OFDProtocolAddRootSTLVToBuf [22:30:20]FM_MakeSignedData [22:30:20]FM_MakeSignedData [22:30:20]SAM_PROTO_SignData [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 01 02 [22:30:20]Write to MH i2c: E2 08 00 F2 20 80 0D 01 02 00 00 00 00 8B [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]wFMCommunicate request_size=255 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 39 31 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 83 00 00 00 F4 03 04 00 FF D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [22:30:20]Write to MH i2c: E2 02 01 F3 20 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 39 31 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 83 00 00 00 F4 03 04 00 FF D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 54 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 F3 20 00 90 00 87 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]wFMCommunicate request_size=54 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9E F6 00 00 35 04 06 00 3E 0A A6 94 04 B0 [22:30:20]Write to MH i2c: E2 39 00 F4 20 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9E F6 00 00 35 04 06 00 3E 0A A6 94 04 B0 00 00 86 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 F4 20 00 90 00 88 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 03 02 [22:30:20]Write to MH i2c: E2 08 00 F5 20 80 0D 03 02 00 00 00 00 90 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 0B 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 0B 00 F5 20 00 3E 17 7E E7 2C CD F8 03 90 00 3F [22:30:20]RAPDU: 3E 17 7E E7 2C CD F8 03 90 00 [22:30:20]wFMCommunicate OK [22:30:20]SAM_PROTO_SignData done [22:30:20]FM_MakeSignedData done [22:30:20]CreateOFDProtocolMessage [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 11 00 00 [22:30:20]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 17 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E9 [22:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:30:20]wFMCommunicate OK [22:30:20]CreateOFDProtocolMessage done [22:30:20]OFDSenderStorePacket 63134 [22:30:20]StoreOFDPacket docnum=63134 [22:30: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 3B 01 00 00 0C 76 33 01 DF 8B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 39 31 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 83 00 00 00 F4 03 04 00 FF D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9E F6 00 00 35 04 06 00 3E 0A A6 94 04 B0 3E 17 7E E7 2C CD F8 03 [22:30:20]CheckFolder [22:30:20]dirname=/storage/ofd_packets [22:30:20]CheckFolder done [22:30:20]ProducePacketName [22:30:20]name=ofd_packets/00063134 [22:30:20]NVStorageSaveData ofd_packets/00063134 [22:30:20]File name is /storage/ofd_packets/00063134 [22:30:20]Write 345 bytes [22:30:20]NVStorageSaveData done [22:30:20]OFDSenderStorePacket done [22:30:20]KKMCreateOFDPacket done [22:30:20]NVStorageSaveData kkm_last_timestamp [22:30:20]File name is /storage/kkm_last_timestamp [22:30:20]Write 4 bytes [22:30:20]NVStorageSaveData done [22:30:20]ExternCall_PrintAddStr [22:30:20]wPrintStart [22:30:20]Write to MH i2c: 01 00 00 F7 20 17 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 07 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 07 00 F7 20 00 00 00 00 00 FF 0F 2C [22:30:20]RasterBufferAndPrint [22:30:20]line Счет N : (3)47444 [22:30:20]line ИНН: 02508201610067 [22:30:20]line Контрольно-Кассовый Чек [22:30:20]line ПРОДАЖА [22:30:20]line Товар: 4780111550491 [22:30:20]line Напиток Лимонад 0,5л ст (Gabb trade) [22:30:20]line 1.000 * 125.00 [22:30:20]line = 125.00 [22:30:20]line НДС 12% НСП 1% [22:30:20]line > о реализуемом товаре [22:30:20]line ИТОГО: 125.00 [22:30:20]line НСП 1% : 1.11 [22:30:20]line НДС 12% : 13.27 [22:30:20]line Наличными: 125.00 [22:30:20]line Безнал.: 0.00 [22:30:20]line Место: АЗС № 86 "Партнер Нефть" [22:30:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:30:20]line СНО: Общий режим [22:30:20]line Чек 131 21.10.2024 22:30 [22:30:20]line Смена: 544 ФФД: 1.0 [22:30:20]line ЗНМ: 0300000154 [22:30:20]line РНМ: 0000000000091619 [22:30:20]line Версия ККМ: 001 [22:30:20]line ФМ: 0000000000874676 [22:30:20]line ФД: 63134 [22:30:20]line ФПД: 68215465313456 [22:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223023&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63134&fm=68215465313456&tin=02508201610067®Number=0000000000091619&sum=12500 [22:30:21]line 0 [22:30:21]OFD Sender: Processing packet 63134 [packets to send 232, broken 231] [22:30:21]ProducePacketName [22:30:21]name=ofd_packets/00063134 [22:30:21]OFD Sender: To server: pG, [22:30:21]CommunicateWithHost lk.salyk.kg:30040 [22:30:21]ConnectInit lk.salyk.kg [22:30:21]written 0, free lines is 4095 [22:30:21]Connected sock=9 [22:30: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 3B 01 00 00 0C 76 33 01 DF 8B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 39 31 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 83 00 00 00 F4 03 04 00 FF D5 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9E F6 00 00 35 04 06 00 3E 0A A6 94 04 B0 3E 17 7E E7 2C CD F8 03 [22:30:21]Write to MH i2c: 01 00 00 20 21 41 [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 07 00 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 07 00 20 21 00 00 00 00 00 04 0D 59 [22:30:21]RasterBufferAndPrint [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]written 0, free lines is 3338 [22:30:21]MH_Cut [22:30:21]Write to MH i2c: D1 01 00 27 21 01 1A [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 01 00 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 01 00 27 21 00 19 [22:30:21]Write to MH i2c: 01 00 00 28 21 49 [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30: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 91 E3 47 00 CD CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9E F6 00 00 F4 03 04 00 FB 7F 16 67 B6 04 01 00 00 3A 2D 50 5D 6D F0 84 39 [22:30:21]CommunicateWithHost err = 0 [22:30:21]CheckOFDResponse [22:30:21]1017 (14) - 77093643461234 [22:30:21]1041 (16) - 0000000000874676 [22:30:21]1040 (4) - 63134 [22:30:21]1012 (4) - 21.10.2024 16:23 [22:30:21]1206 (1) - 0 [22:30:21]OFD Sender: Remove packet 63134 [22:30:21]ProducePacketName [22:30:21]name=ofd_packets/00063134 [22:30:21]NVStorageDeleteData [22:30:22]*** Cut start [22:30:22]*** Partial cut [22:30:22]*** CUTSNS_PIN = 1 [22:30:22]*** CUTSNS_PIN = 0 [22:30:22]OFD Sender: No OFD packet to send [22:30:22]*** Brake cut motor [22:30:22]Read from MH i2c: 01 [22:30:22]MH_I2C_Read... [22:30:22]*** Stop cut motor [22:30:22]*** Cut end [22:30:22]Read from MH i2c: 01 07 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 FF 0F 5E [22:30:22]process_action close_receipt done [22:30:22]requested_data is exist [22:30:22]produce_requested_data [22:30:22]requested_item fm.sn is exist - process it [22:30:22]wFMCommunicate request_size=4 [22:30:22]MH_SAM_APDU [22:30:22]CAPDU: 80 11 00 00 [22:30:22]Write to MH i2c: E2 08 00 29 21 80 11 00 00 00 00 00 00 C4 [22:30:22]Write i2c OK [22:30:22]MH_I2C_Read... [22:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:22]Read from MH i2c: E2 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 17 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 17 00 29 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1D [22:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:30:22]wFMCommunicate OK [22:30:22]requested_item fd.num is exist - process it [22:30:22]SAM_PROTO_GetFieldsCounters [22:30:22]wFMCommunicate request_size=4 [22:30:22]MH_SAM_APDU [22:30:22]CAPDU: 80 13 00 00 [22:30:22]Write to MH i2c: E2 08 00 2A 21 80 13 00 00 00 00 00 00 C7 [22:30:22]Write i2c OK [22:30:22]MH_I2C_Read... [22:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:23]Read from MH i2c: E2 [22:30:23]MH_I2C_Read... [22:30:23]Read from MH i2c: E2 62 00 [22:30:23]MH_I2C_Read... [22:30:23]Read from MH i2c: E2 62 00 2A 21 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 9E F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [22:30: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 9E F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:23]wFMCommunicate OK [22:30:23]SAM_PROTO_GetFieldsCounters done [22:30:23]requested_item shift.num is exist - process it [22:30:23]requested_item shift.opened is exist - process it [22:30:23]req_shift_opened [22:30:23]FM_GetShiftState [22:30:23]SAM_PROTO_GetShiftState [22:30:23]wFMCommunicate request_size=4 [22:30:23]MH_SAM_APDU [22:30:23]CAPDU: 80 13 01 00 [22:30:23]Write to MH i2c: E2 08 00 2B 21 80 13 01 00 00 00 00 00 C9 [22:30:23]Write i2c OK [22:30:23]MH_I2C_Read... [22:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:23]Read from MH i2c: E2 [22:30:23]MH_I2C_Read... [22:30:23]Read from MH i2c: E2 0E 00 [22:30:23]MH_I2C_Read... [22:30:23]Read from MH i2c: E2 0E 00 2B 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 29 [22:30:23]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:30:23]wFMCommunicate OK [22:30:23]SAM_PROTO_GetShiftState done [22:30:23]FM_GetShiftState done [22:30:23]req_shift_opened done [22:30:23]requested_item shift.open_date is exist - process it [22:30:23]req_shift_open_date [22:30:23]req_shift_open_date done [22:30:23]produce_requested_data done [22:30:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63134,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [22:30:23]process_action_free close_receipt [22:30:23]json_value_free [22:30:23]json_value_free done [22:30:23]process_json_proto returns [22:30:23]Send response to host [22:30:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63134,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [22:30:23]free response buf [22:30:23]execute_script done [22:30:23]execute_script returns [22:30:23]free content buf [22:30:23]Sock 10.Close socket [22:30:23]Sock 10.Thread stoped [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:38]accept exits with 7 [22:31:38]New connection [22:31:38]New thread 3067198820 created [22:31:38]Thread 3067055460 joined [22:31:38]Waiting for new connection... [22:31:38] Sock 7.Parse request [22:31:38]Sock 7.Check first char [22:31:38]Sock 7.First char is OK [22:31:38]request: POST /json_proto HTTP/1.0 [22:31:38]Method: POST [22:31:38]URL: /json_proto [22:31:38]Method is POST - this is cgi request [22:31:38]url: /json_proto [22:31:38]query_string will be loaded in cgi processing [22:31:38]execute_cgi json_proto POST (null) [22:31:38]execute_cgi path=json_proto method=POST [22:31:38]POST find Content-Length [22:31:38]Host: 172.17.42.132:8080 [22:31:38]Content-Length: 1274 [22:31:38]Content-Type: application/json [22:31:38] [22:31:38]POST finish read [22:31:38]Found Content-Length = 1274 [22:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47445", "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 }]} ,{ "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 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:38]execute_script... [22:31: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)47445", "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 }]} ,{ "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 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:38]POST & json_proto [22:31:38]process_json_proto [22:31:38]json parsed OK: [22:31:38]protocol is kg_v1.0 [22:31:38]action value=close_receipt [22:31:38]process_action close_receipt [22:31:38]cmd_close_receipt [22:31:38]MH_GetDate [22:31:38]Write to MH i2c: F0 00 00 2C 21 3C [22:31:38]Write i2c OK [22:31:38]MH_I2C_Read... [22:31:38]Read from MH i2c: F0 [22:31:38]MH_I2C_Read... [22:31:38]Read from MH i2c: F0 09 00 [22:31:38]MH_I2C_Read... [22:31:38]Read from MH i2c: F0 09 00 2C 21 00 4F D6 16 67 4C DF 56 66 CE [22:31:38]GetLastDocTimeStamp 1729549823 [22:31:38]current date 1729549903 [22:31:38]FM_GetShiftState [22:31:38]SAM_PROTO_GetShiftState [22:31:38]wFMCommunicate request_size=4 [22:31:38]MH_SAM_APDU [22:31:38]CAPDU: 80 13 01 00 [22:31:38]Write to MH i2c: E2 08 00 2D 21 80 13 01 00 00 00 00 00 CB [22:31:38]Write i2c OK [22:31:38]MH_I2C_Read... [22:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:38]Read from MH i2c: E2 [22:31:38]MH_I2C_Read... [22:31:38]Read from MH i2c: E2 0E 00 [22:31:38]MH_I2C_Read... [22:31:38]Read from MH i2c: E2 0E 00 2D 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2B [22:31:38]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:31:38]wFMCommunicate OK [22:31:38]SAM_PROTO_GetShiftState done [22:31:38]FM_GetShiftState done [22:31:38]opened in 1729469755 [22:31:38]opened+sec_in_day 1729556155 [22:31:38]quantity*price = 19800 [22:31:38]sum+1 = 19801 [22:31:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 132 21.10.2024 22:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63135 ФПД: 151891973978065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223143&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63135&fm=151891973978065&tin=02508201610067®Number=0000000000091619&sum=26800 0 [22:31:39]StoreToDocumentArchive [22:31:39]shift 544 fd 63135 [22:31:39]save to /storage/0544/doc_00063135 [22:31:39]save last doc name /storage/0544/doc_00063135 to /storage/kkm_last_doc_name [22:31:39]save OK [22:31:39]Clear old archive folders... [22:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=536 [22:31:39]tlvbuf is 01934460 [22:31:39]SAM_PROTO_ClearQueue [22:31:39]wFMCommunicate request_size=4 [22:31:39]MH_SAM_APDU [22:31:39]CAPDU: 80 09 00 00 [22:31:39]Write to MH i2c: E2 08 00 3A 21 80 09 00 00 00 00 00 00 CD [22:31:39]Write i2c OK [22:31:39]MH_I2C_Read... [22:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:39]Read from MH i2c: E2 [22:31:39]MH_I2C_Read... [22:31:39]Read from MH i2c: E2 03 00 [22:31:39]MH_I2C_Read... [22:31:39]Read from MH i2c: E2 03 00 3A 21 00 90 00 CF [22:31:39]RAPDU: 90 00 [22:31:39]wFMCommunicate OK [22:31:39]SAM_PROTO_ClearQueue done [22:31:39]KKMCreateOFDPacket [22:31:39]OFDProtocolAddRootSTLVToBuf [22:31:39]FM_MakeSignedData [22:31:39]FM_MakeSignedData [22:31:39]SAM_PROTO_SignData [22:31:39]wFMCommunicate request_size=4 [22:31:39]MH_SAM_APDU [22:31:39]CAPDU: 80 0D 01 02 [22:31:39]Write to MH i2c: E2 08 00 3B 21 80 0D 01 02 00 00 00 00 D5 [22:31:39]Write i2c OK [22:31:39]MH_I2C_Read... [22:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:39]Read from MH i2c: E2 [22:31:39]MH_I2C_Read... [22:31:39]Read from MH i2c: E2 03 00 [22:31:39]MH_I2C_Read... [22:31:39]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [22:31:39]RAPDU: 90 00 [22:31:39]wFMCommunicate OK [22:31:39]wFMCommunicate request_size=255 [22:31:39]MH_SAM_APDU [22:31:39]CAPDU: 80 0D 02 02 FA 03 00 18 02 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 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 [22:31:40]Write to MH i2c: E2 02 01 3C 21 80 0D 02 02 FA 00 03 00 18 02 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 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 00 00 8F [22:31:40]Write i2c OK [22:31:40]MH_I2C_Read... [22:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:40]Read from MH i2c: E2 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [22:31:40]RAPDU: 90 00 [22:31:40]wFMCommunicate OK [22:31:40]wFMCommunicate request_size=255 [22:31:40]MH_SAM_APDU [22:31:40]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4F D6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [22:31:40]Write to MH i2c: E2 02 01 3D 21 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4F D6 16 67 0E 04 04 00 20 02 00 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 45 [22:31:40]Write i2c OK [22:31:40]MH_I2C_Read... [22:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:40]Read from MH i2c: E2 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [22:31:40]RAPDU: 90 00 [22:31:40]wFMCommunicate OK [22:31:40]wFMCommunicate request_size=45 [22:31:40]MH_SAM_APDU [22:31:40]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 9F F6 00 00 35 04 06 00 8A 25 1B 27 37 D1 [22:31:40]Write to MH i2c: E2 30 00 3E 21 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 9F F6 00 00 35 04 06 00 8A 25 1B 27 37 D1 00 00 C3 [22:31:40]Write i2c OK [22:31:40]MH_I2C_Read... [22:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:40]Read from MH i2c: E2 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [22:31:40]RAPDU: 90 00 [22:31:40]wFMCommunicate OK [22:31:40]wFMCommunicate request_size=4 [22:31:40]MH_SAM_APDU [22:31:40]CAPDU: 80 0D 03 02 [22:31:40]Write to MH i2c: E2 08 00 3F 21 80 0D 03 02 00 00 00 00 DB [22:31:40]Write i2c OK [22:31:40]MH_I2C_Read... [22:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:40]Read from MH i2c: E2 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 0B 00 [22:31:40]MH_I2C_Read... [22:31:40]Read from MH i2c: E2 0B 00 3F 21 00 B5 FD 1B B2 3F 14 C0 57 90 00 C5 [22:31:40]RAPDU: B5 FD 1B B2 3F 14 C0 57 90 00 [22:31:40]wFMCommunicate OK [22:31:40]SAM_PROTO_SignData done [22:31:40]FM_MakeSignedData done [22:31:40]CreateOFDProtocolMessage [22:31:40]wFMCommunicate request_size=4 [22:31:40]MH_SAM_APDU [22:31:40]CAPDU: 80 11 00 00 [22:31:40]Write to MH i2c: E2 08 00 40 21 80 11 00 00 00 00 00 00 DB [22:31:40]Write i2c OK [22:31:40]MH_I2C_Read... [22:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:41]Read from MH i2c: E2 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: E2 17 00 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: E2 17 00 40 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 34 [22:31:41]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:41]wFMCommunicate OK [22:31:41]CreateOFDProtocolMessage done [22:31:41]OFDSenderStorePacket 63135 [22:31:41]StoreOFDPacket docnum=63135 [22:31: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 2C 02 00 00 CC 68 24 02 4A 28 5A 03 01 00 03 00 18 02 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4F D6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9F F6 00 00 35 04 06 00 8A 25 1B 27 37 D1 B5 FD 1B B2 3F 14 C0 57 [22:31:41]CheckFolder [22:31:41]dirname=/storage/ofd_packets [22:31:41]CheckFolder done [22:31:41]ProducePacketName [22:31:41]name=ofd_packets/00063135 [22:31:41]NVStorageSaveData ofd_packets/00063135 [22:31:41]File name is /storage/ofd_packets/00063135 [22:31:41]Write 586 bytes [22:31:41]NVStorageSaveData done [22:31:41]OFDSenderStorePacket done [22:31:41]KKMCreateOFDPacket done [22:31:41]NVStorageSaveData kkm_last_timestamp [22:31:41]File name is /storage/kkm_last_timestamp [22:31:41]Write 4 bytes [22:31:41]NVStorageSaveData done [22:31:41]ExternCall_PrintAddStr [22:31:41]wPrintStart [22:31:41]Write to MH i2c: 01 00 00 41 21 62 [22:31:41]Write i2c OK [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 07 00 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 07 00 41 21 00 00 00 00 00 FF 0F 77 [22:31:41]RasterBufferAndPrint [22:31:41]line Счет N : (3)47445 [22:31:41]line ИНН: 02508201610067 [22:31:41]line Контрольно-Кассовый Чек [22:31:41]line ПРОДАЖА [22:31:41]line Товар: 4870022003305 [22:31:41]line Напиток Gorilla эн нат ж/б 0,5/0,45л [22:31:41]line 2.000 * 99.00 [22:31:41]line = 198.00 [22:31:41]line НДС 12% НСП 1% [22:31:41]line > о реализуемом товаре [22:31:41]line Товар: 4700000160792 [22:31:41]line Снек Курут классический (круглый) [22:31:41]line 1.000 * 60.00 [22:31:41]line = 60.00 [22:31:41]line НДС 12% НСП 1% [22:31:41]line > о реализуемом товаре [22:31:41]line Товар: 46226617 [22:31:41]line Mentos ПВ Нежная Мята 6*100*2г [22:31:41]line 1.000 * 10.00 [22:31:41]line = 10.00 [22:31:41]line НДС 12% НСП 1% [22:31:41]line > о реализуемом товаре [22:31:41]line ИТОГО: 268.00 [22:31:41]OFD Sender: Processing packet 63135 [packets to send 232, broken 231] [22:31:41]line НСП 1% : 2.37 [22:31:41]line НДС 12% : 28.46 [22:31:41]line Наличными: 268.00 [22:31:41]line Безнал.: 0.00 [22:31:41]ProducePacketName [22:31:41]name=ofd_packets/00063135 [22:31:41]OFD Sender: To server: pG, [22:31:41]CommunicateWithHost lk.salyk.kg:30040 [22:31:41]ConnectInit lk.salyk.kg [22:31:41]line Место: АЗС № 86 "Партнер Нефть" [22:31:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:31:41]line СНО: Общий режим [22:31:41]line Чек 132 21.10.2024 22:31 [22:31:41]line Смена: 544 ФФД: 1.0 [22:31:41]line ЗНМ: 0300000154 [22:31:41]line РНМ: 0000000000091619 [22:31:41]line Версия ККМ: 001 [22:31:41]line ФМ: 0000000000874676 [22:31:41]line ФД: 63135 [22:31:41]line ФПД: 151891973978065 [22:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223143&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63135&fm=151891973978065&tin=02508201610067®Number=0000000000091619&sum=26800 [22:31:41]line 0 [22:31:41]written 0, free lines is 4095 [22:31:41]Connected sock=11 [22:31: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 2C 02 00 00 CC 68 24 02 4A 28 5A 03 01 00 03 00 18 02 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 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 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 4F D6 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 9F F6 00 00 35 04 06 00 8A 25 1B 27 37 D1 B5 FD 1B B2 3F 14 C0 57 [22:31: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 9E 8A 47 00 27 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 9F F6 00 00 F4 03 04 00 4B 80 16 67 B6 04 01 00 00 2E 55 03 39 0E 44 4D BF [22:31:41]CommunicateWithHost err = 0 [22:31:41]CheckOFDResponse [22:31:41]1017 (14) - 77093643461234 [22:31:41]1041 (16) - 0000000000874676 [22:31:41]1040 (4) - 63135 [22:31:41]1012 (4) - 21.10.2024 16:24 [22:31:41]1206 (1) - 0 [22:31:41]OFD Sender: Remove packet 63135 [22:31:41]ProducePacketName [22:31:41]name=ofd_packets/00063135 [22:31:41]NVStorageDeleteData [22:31:41]Write to MH i2c: 01 00 00 78 21 99 [22:31:41]Write i2c OK [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 07 00 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: 01 07 00 78 21 00 00 00 00 00 4D 0C F9 [22:31:41]RasterBufferAndPrint [22:31:41]line [22:31:41]line [22:31:41]line [22:31:41]line [22:31:41]line [22:31:41]written 0, free lines is 3158 [22:31:41]MH_Cut [22:31:41]Write to MH i2c: D1 01 00 7F 21 01 72 [22:31:41]Write i2c OK [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: D1 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: D1 01 00 [22:31:41]MH_I2C_Read... [22:31:41]Read from MH i2c: D1 01 00 7F 21 00 71 [22:31:41]Write to MH i2c: 01 00 00 80 21 A1 [22:31:41]Write i2c OK [22:31:41]MH_I2C_Read... [22:31:42]OFD Sender: No OFD packet to send [22:31:42]*** Cut start [22:31:42]*** Partial cut [22:31:42]*** CUTSNS_PIN = 1 [22:31:42]*** CUTSNS_PIN = 0 [22:31:43]*** Brake cut motor [22:31:43]Read from MH i2c: 01 [22:31:43]MH_I2C_Read... [22:31:43]*** Stop cut motor [22:31:43]*** Cut end [22:31:43]Read from MH i2c: 01 07 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: 01 07 00 80 21 00 00 00 00 00 FF 0F B6 [22:31:43]process_action close_receipt done [22:31:43]requested_data is exist [22:31:43]produce_requested_data [22:31:43]requested_item fm.sn is exist - process it [22:31:43]wFMCommunicate request_size=4 [22:31:43]MH_SAM_APDU [22:31:43]CAPDU: 80 11 00 00 [22:31:43]Write to MH i2c: E2 08 00 81 21 80 11 00 00 00 00 00 00 1C [22:31:43]Write i2c OK [22:31:43]MH_I2C_Read... [22:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:43]Read from MH i2c: E2 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 17 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 17 00 81 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 75 [22:31:43]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:43]wFMCommunicate OK [22:31:43]requested_item fd.num is exist - process it [22:31:43]SAM_PROTO_GetFieldsCounters [22:31:43]wFMCommunicate request_size=4 [22:31:43]MH_SAM_APDU [22:31:43]CAPDU: 80 13 00 00 [22:31:43]Write to MH i2c: E2 08 00 82 21 80 13 00 00 00 00 00 00 1F [22:31:43]Write i2c OK [22:31:43]MH_I2C_Read... [22:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:43]Read from MH i2c: E2 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 62 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 62 00 82 21 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 9F F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [22:31: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 9F F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:43]wFMCommunicate OK [22:31:43]SAM_PROTO_GetFieldsCounters done [22:31:43]requested_item shift.num is exist - process it [22:31:43]requested_item shift.opened is exist - process it [22:31:43]req_shift_opened [22:31:43]FM_GetShiftState [22:31:43]SAM_PROTO_GetShiftState [22:31:43]wFMCommunicate request_size=4 [22:31:43]MH_SAM_APDU [22:31:43]CAPDU: 80 13 01 00 [22:31:43]Write to MH i2c: E2 08 00 83 21 80 13 01 00 00 00 00 00 21 [22:31:43]Write i2c OK [22:31:43]MH_I2C_Read... [22:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:43]Read from MH i2c: E2 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 0E 00 [22:31:43]MH_I2C_Read... [22:31:43]Read from MH i2c: E2 0E 00 83 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 81 [22:31:43]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [22:31:43]wFMCommunicate OK [22:31:43]SAM_PROTO_GetShiftState done [22:31:43]FM_GetShiftState done [22:31:43]req_shift_opened done [22:31:43]requested_item shift.open_date is exist - process it [22:31:43]req_shift_open_date [22:31:43]req_shift_open_date done [22:31:43]produce_requested_data done [22:31:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63135,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [22:31:43]process_action_free close_receipt [22:31:43]json_value_free [22:31:43]json_value_free done [22:31:43]process_json_proto returns [22:31:43]Send response to host [22:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63135,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [22:31:43]free response buf [22:31:43]execute_script done [22:31:43]execute_script returns [22:31:43]free content buf [22:31:43]Sock 7.Close socket [22:31:43]Sock 7.Thread stoped [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:18]recv_with_timeout no data received [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:31]accept exits with 9 [23:06:31]New connection [23:06:31]New thread 3067055460 created [23:06:31]Thread 3067198820 joined [23:06:31]Waiting for new connection... [23:06:31] Sock 9.Parse request [23:06:31]Sock 9.Check first char [23:06:31]Sock 9.First char is OK [23:06:31]request: POST /json_proto HTTP/1.0 [23:06:31]Method: POST [23:06:31]URL: /json_proto [23:06:31]Method is POST - this is cgi request [23:06:31]url: /json_proto [23:06:31]query_string will be loaded in cgi processing [23:06:31]execute_cgi json_proto POST (null) [23:06:31]execute_cgi path=json_proto method=POST [23:06:31]POST find Content-Length [23:06:31]Host: 172.17.42.132:8080 [23:06:31]Content-Length: 1449 [23:06:31]Content-Type: application/json [23:06:31] [23:06:31]POST finish read [23:06:31]Found Content-Length = 1449 [23:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47446", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "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" : 58.48, "quantity" : 1.000, "sum" : 58.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" : 207.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:31]execute_script... [23:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47446", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 74.34, "quantity" : 1.000, "sum" : 74.34, "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" : 58.48, "quantity" : 1.000, "sum" : 58.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" : 207.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:31]POST & json_proto [23:06:31]process_json_proto [23:06:31]json parsed OK: [23:06:31]protocol is kg_v1.0 [23:06:31]action value=close_receipt [23:06:31]process_action close_receipt [23:06:31]cmd_close_receipt [23:06:31]MH_GetDate [23:06:31]Write to MH i2c: F0 00 00 84 21 94 [23:06:31]Write i2c OK [23:06:31]MH_I2C_Read... [23:06:31]Read from MH i2c: F0 [23:06:31]MH_I2C_Read... [23:06:31]Read from MH i2c: F0 09 00 [23:06:31]MH_I2C_Read... [23:06:31]Read from MH i2c: F0 09 00 84 21 00 7B DE 16 67 4C DF 56 66 5A [23:06:31]GetLastDocTimeStamp 1729549903 [23:06:31]current date 1729551995 [23:06:31]FM_GetShiftState [23:06:31]SAM_PROTO_GetShiftState [23:06:31]wFMCommunicate request_size=4 [23:06:31]MH_SAM_APDU [23:06:31]CAPDU: 80 13 01 00 [23:06:31]Write to MH i2c: E2 08 00 85 21 80 13 01 00 00 00 00 00 23 [23:06:31]Write i2c OK [23:06:31]MH_I2C_Read... [23:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:31]Read from MH i2c: E2 [23:06:31]MH_I2C_Read... [23:06:31]Read from MH i2c: E2 0E 00 [23:06:31]MH_I2C_Read... [23:06:31]Read from MH i2c: E2 0E 00 85 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 83 [23:06:31]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:06:31]wFMCommunicate OK [23:06:31]SAM_PROTO_GetShiftState done [23:06:31]FM_GetShiftState done [23:06:31]opened in 1729469755 [23:06:31]opened+sec_in_day 1729556155 [23:06:31]quantity*price = 7434 [23:06:31]sum+1 = 7435 [23:06:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310258 Напиток Лимонад Келечек 1л 1.000 * 74.34 = 74.34 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 58.48 = 58.48 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.16 НСП 1% : 1.84 НДС 12% : 21.99 Наличными: 0.00 Безнал.: 207.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 133 21.10.2024 23:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63136 ФПД: 246772488125281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230636&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63136&fm=246772488125281&tin=02508201610067®Number=0000000000091619&sum=20716 0 [23:06:32]StoreToDocumentArchive [23:06:32]shift 544 fd 63136 [23:06:32]save to /storage/0544/doc_00063136 [23:06:32]save last doc name /storage/0544/doc_00063136 to /storage/kkm_last_doc_name [23:06:32]save OK [23:06:32]Clear old archive folders... [23:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=545 [23:06:32]tlvbuf is 018D6A40 [23:06:32]SAM_PROTO_ClearQueue [23:06:32]wFMCommunicate request_size=4 [23:06:32]MH_SAM_APDU [23:06:32]CAPDU: 80 09 00 00 [23:06:32]Write to MH i2c: E2 08 00 92 21 80 09 00 00 00 00 00 00 25 [23:06:32]Write i2c OK [23:06:32]MH_I2C_Read... [23:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:32]Read from MH i2c: E2 [23:06:32]MH_I2C_Read... [23:06:32]Read from MH i2c: E2 03 00 [23:06:32]MH_I2C_Read... [23:06:32]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [23:06:32]RAPDU: 90 00 [23:06:32]wFMCommunicate OK [23:06:32]SAM_PROTO_ClearQueue done [23:06:32]KKMCreateOFDPacket [23:06:32]OFDProtocolAddRootSTLVToBuf [23:06:32]FM_MakeSignedData [23:06:32]FM_MakeSignedData [23:06:32]SAM_PROTO_SignData [23:06:32]wFMCommunicate request_size=4 [23:06:32]MH_SAM_APDU [23:06:32]CAPDU: 80 0D 01 02 [23:06:32]Write to MH i2c: E2 08 00 93 21 80 0D 01 02 00 00 00 00 2D [23:06:32]Write i2c OK [23:06:32]MH_I2C_Read... [23:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:32]Read from MH i2c: E2 [23:06:32]MH_I2C_Read... [23:06:32]Read from MH i2c: E2 03 00 [23:06:32]MH_I2C_Read... [23:06:32]Read from MH i2c: E2 03 00 93 21 00 90 00 28 [23:06:32]RAPDU: 90 00 [23:06:32]wFMCommunicate OK [23:06:32]wFMCommunicate request_size=255 [23:06:32]MH_SAM_APDU [23:06:32]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 [23:06:33]Write to MH i2c: E2 02 01 94 21 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 00 00 88 [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [23:06:33]RAPDU: 90 00 [23:06:33]wFMCommunicate OK [23:06:33]wFMCommunicate request_size=255 [23:06:33]MH_SAM_APDU [23:06:33]CAPDU: 80 0D 02 02 FA 06 00 0A 1D 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 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 50 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 97 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7C DE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [23:06:33]Write to MH i2c: E2 02 01 95 21 80 0D 02 02 FA 00 06 00 0A 1D 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 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 50 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 97 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7C DE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 02 [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 95 21 00 90 00 2A [23:06:33]RAPDU: 90 00 [23:06:33]wFMCommunicate OK [23:06:33]wFMCommunicate request_size=54 [23:06:33]MH_SAM_APDU [23:06:33]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A0 F6 00 00 35 04 06 00 E0 70 32 7E BB 61 [23:06:33]Write to MH i2c: E2 39 00 96 21 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A0 F6 00 00 35 04 06 00 E0 70 32 7E BB 61 00 00 11 [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 03 00 96 21 00 90 00 2B [23:06:33]RAPDU: 90 00 [23:06:33]wFMCommunicate OK [23:06:33]wFMCommunicate request_size=4 [23:06:33]MH_SAM_APDU [23:06:33]CAPDU: 80 0D 03 02 [23:06:33]Write to MH i2c: E2 08 00 97 21 80 0D 03 02 00 00 00 00 33 [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 0B 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 0B 00 97 21 00 98 3F E0 D3 9D F3 98 F4 90 00 DA [23:06:33]RAPDU: 98 3F E0 D3 9D F3 98 F4 90 00 [23:06:33]wFMCommunicate OK [23:06:33]SAM_PROTO_SignData done [23:06:33]FM_MakeSignedData done [23:06:33]CreateOFDProtocolMessage [23:06:33]wFMCommunicate request_size=4 [23:06:33]MH_SAM_APDU [23:06:33]CAPDU: 80 11 00 00 [23:06:33]Write to MH i2c: E2 08 00 98 21 80 11 00 00 00 00 00 00 33 [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 17 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 17 00 98 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8C [23:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:06:33]wFMCommunicate OK [23:06:33]CreateOFDProtocolMessage done [23:06:33]OFDSenderStorePacket 63136 [23:06:33]StoreOFDPacket docnum=63136 [23:06: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 35 02 00 00 EA 2A 2D 02 B0 37 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 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 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 50 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 97 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7C DE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A0 F6 00 00 35 04 06 00 E0 70 32 7E BB 61 98 3F E0 D3 9D F3 98 F4 [23:06:33]CheckFolder [23:06:33]dirname=/storage/ofd_packets [23:06:33]CheckFolder done [23:06:33]ProducePacketName [23:06:33]name=ofd_packets/00063136 [23:06:33]NVStorageSaveData ofd_packets/00063136 [23:06:33]File name is /storage/ofd_packets/00063136 [23:06:33]Write 595 bytes [23:06:33]NVStorageSaveData done [23:06:33]OFDSenderStorePacket done [23:06:33]KKMCreateOFDPacket done [23:06:33]NVStorageSaveData kkm_last_timestamp [23:06:33]File name is /storage/kkm_last_timestamp [23:06:33]Write 4 bytes [23:06:33]NVStorageSaveData done [23:06:33]ExternCall_PrintAddStr [23:06:33]wPrintStart [23:06:33]Write to MH i2c: 01 00 00 99 21 BA [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: 01 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: 01 07 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: 01 07 00 99 21 00 00 00 00 00 FF 0F CF [23:06:33]RasterBufferAndPrint [23:06:33]line Счет N : (3)47446 [23:06:33]line ИНН: 02508201610067 [23:06:33]line Контрольно-Кассовый Чек [23:06:33]line ПРОДАЖА [23:06:33]line Товар: 4630007400976 [23:06:33]line Арахис жарен Караван орехов Стандарт 90 [23:06:33]line 1.000 * 74.34 [23:06:33]line = 74.34 [23:06:33]line НДС 12% НСП 1% [23:06:33]line > о реализуемом товаре [23:06:33]line Товар: 4700000310258 [23:06:33]line Напиток Лимонад Келечек 1л [23:06:33]line 1.000 * 74.34 [23:06:33]line = 74.34 [23:06:33]line НДС 12% НСП 1% [23:06:33]line > о реализуемом товаре [23:06:33]line Товар: 4607065001445 [23:06:33]line Шок батончик Snickers 50,5г [23:06:33]line 1.000 * 58.48 [23:06:33]line = 58.48 [23:06:33]line НДС 12% НСП 1% [23:06:33]line > о реализуемом товаре [23:06:33]line ИТОГО: 207.16 [23:06:33]line НСП 1% : 1.84 [23:06:33]line НДС 12% : 21.99 [23:06:33]line Наличными: 0.00 [23:06:33]line Безнал.: 207.16 [23:06:33]line Место: АЗС № 86 "Партнер Нефть" [23:06:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:06:33]line СНО: Общий режим [23:06:33]line Чек 133 21.10.2024 23:06 [23:06:33]line Смена: 544 ФФД: 1.0 [23:06:33]line ЗНМ: 0300000154 [23:06:33]line РНМ: 0000000000091619 [23:06:33]line Версия ККМ: 001 [23:06:33]line Платежная система: Mbank [23:06:33]line ФМ: 0000000000874676 [23:06:33]line ФД: 63136 [23:06:33]line ФПД: 246772488125281 [23:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230636&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63136&fm=246772488125281&tin=02508201610067®Number=0000000000091619&sum=20716 [23:06:34]OFD Sender: Processing packet 63136 [packets to send 232, broken 231] [23:06:34]ProducePacketName [23:06:34]name=ofd_packets/00063136 [23:06:34]OFD Sender: To server: pG, [23:06:34]CommunicateWithHost lk.salyk.kg:30040 [23:06:34]ConnectInit lk.salyk.kg [23:06:34]line 0 [23:06:34]written 0, free lines is 4095 [23:06:34]Connected sock=10 [23:06: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 35 02 00 00 EA 2A 2D 02 B0 37 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0A 1D 00 00 00 00 13 04 06 00 0A 1D 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 D8 16 00 00 00 00 13 04 06 00 D8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 50 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 97 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7C DE 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A0 F6 00 00 35 04 06 00 E0 70 32 7E BB 61 98 3F E0 D3 9D F3 98 F4 [23:06: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 40 A7 47 00 98 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 A0 F6 00 00 F4 03 04 00 78 88 16 67 B6 04 01 00 00 EA 86 CA D2 47 64 00 62 [23:06:34]CommunicateWithHost err = 0 [23:06:34]CheckOFDResponse [23:06:34]1017 (14) - 77093643461234 [23:06:34]1041 (16) - 0000000000874676 [23:06:34]1040 (4) - 63136 [23:06:34]1012 (4) - 21.10.2024 16:59 [23:06:34]1206 (1) - 0 [23:06:34]OFD Sender: Remove packet 63136 [23:06:34]ProducePacketName [23:06:34]name=ofd_packets/00063136 [23:06:34]NVStorageDeleteData [23:06:34]Write to MH i2c: 01 00 00 CF 21 F0 [23:06:34]Write i2c OK [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: 01 [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: 01 07 00 [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: 01 07 00 CF 21 00 00 00 00 00 77 0C 7A [23:06:34]RasterBufferAndPrint [23:06:34]line [23:06:34]line [23:06:34]line [23:06:34]line [23:06:34]line [23:06:34]written 0, free lines is 3200 [23:06:34]MH_Cut [23:06:34]Write to MH i2c: D1 01 00 D6 21 01 C9 [23:06:34]Write i2c OK [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: D1 [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: D1 01 00 [23:06:34]MH_I2C_Read... [23:06:34]Read from MH i2c: D1 01 00 D6 21 00 C8 [23:06:34]Write to MH i2c: 01 00 00 D7 21 F8 [23:06:34]Write i2c OK [23:06:34]MH_I2C_Read... [23:06:35]OFD Sender: No OFD packet to send [23:06:35]*** Cut start [23:06:35]*** Partial cut [23:06:35]*** CUTSNS_PIN = 1 [23:06:35]*** CUTSNS_PIN = 0 [23:06:35]*** Brake cut motor [23:06:36]Read from MH i2c: 01 [23:06:36]MH_I2C_Read... [23:06:36]*** Stop cut motor [23:06:36]*** Cut end [23:06:36]Read from MH i2c: 01 07 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: 01 07 00 D7 21 00 00 00 00 00 FF 0F 0D [23:06:36]process_action close_receipt done [23:06:36]requested_data is exist [23:06:36]produce_requested_data [23:06:36]requested_item fm.sn is exist - process it [23:06:36]wFMCommunicate request_size=4 [23:06:36]MH_SAM_APDU [23:06:36]CAPDU: 80 11 00 00 [23:06:36]Write to MH i2c: E2 08 00 D8 21 80 11 00 00 00 00 00 00 73 [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:36]Read from MH i2c: E2 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 17 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 17 00 D8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CC [23:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:06:36]wFMCommunicate OK [23:06:36]requested_item fd.num is exist - process it [23:06:36]SAM_PROTO_GetFieldsCounters [23:06:36]wFMCommunicate request_size=4 [23:06:36]MH_SAM_APDU [23:06:36]CAPDU: 80 13 00 00 [23:06:36]Write to MH i2c: E2 08 00 D9 21 80 13 00 00 00 00 00 00 76 [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:36]Read from MH i2c: E2 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 62 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 62 00 D9 21 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 A0 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [23:06: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 A0 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:36]wFMCommunicate OK [23:06:36]SAM_PROTO_GetFieldsCounters done [23:06:36]requested_item shift.num is exist - process it [23:06:36]requested_item shift.opened is exist - process it [23:06:36]req_shift_opened [23:06:36]FM_GetShiftState [23:06:36]SAM_PROTO_GetShiftState [23:06:36]wFMCommunicate request_size=4 [23:06:36]MH_SAM_APDU [23:06:36]CAPDU: 80 13 01 00 [23:06:36]Write to MH i2c: E2 08 00 DA 21 80 13 01 00 00 00 00 00 78 [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:36]Read from MH i2c: E2 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 0E 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 0E 00 DA 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 D8 [23:06:36]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:06:36]wFMCommunicate OK [23:06:36]SAM_PROTO_GetShiftState done [23:06:36]FM_GetShiftState done [23:06:36]req_shift_opened done [23:06:36]requested_item shift.open_date is exist - process it [23:06:36]req_shift_open_date [23:06:36]req_shift_open_date done [23:06:36]produce_requested_data done [23:06:36]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63136,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:06:36]process_action_free close_receipt [23:06:36]json_value_free [23:06:36]json_value_free done [23:06:36]process_json_proto returns [23:06:36]Send response to host [23:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63136,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:06:36]free response buf [23:06:36]execute_script done [23:06:36]execute_script returns [23:06:36]free content buf [23:06:36]Sock 9.Close socket [23:06:36]Sock 9.Thread stoped [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]accept exits with 7 [23:32:22]New connection [23:32:22]New thread 3067198820 created [23:32:22]Thread 3067055460 joined [23:32:22]Waiting for new connection... [23:32:22] Sock 7.Parse request [23:32:22]Sock 7.Check first char [23:32:22]Sock 7.First char is OK [23:32:22]request: POST /json_proto HTTP/1.0 [23:32:22]Method: POST [23:32:22]URL: /json_proto [23:32:22]Method is POST - this is cgi request [23:32:22]url: /json_proto [23:32:22]query_string will be loaded in cgi processing [23:32:22]execute_cgi json_proto POST (null) [23:32:22]execute_cgi path=json_proto method=POST [23:32:22]POST find Content-Length [23:32:22]Host: 172.17.42.132:8080 [23:32:22]Content-Length: 1184 [23:32:22]Content-Type: application/json [23:32:22] [23:32:22]POST finish read [23:32:22]Found Content-Length = 1184 [23:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47447", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:22]execute_script... [23:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47447", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:22]POST & json_proto [23:32:22]process_json_proto [23:32:22]json parsed OK: [23:32:22]protocol is kg_v1.0 [23:32:22]action value=close_receipt [23:32:22]process_action close_receipt [23:32:22]cmd_close_receipt [23:32:22]MH_GetDate [23:32:22]Write to MH i2c: F0 00 00 DB 21 EB [23:32:22]Write i2c OK [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: F0 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: F0 09 00 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: F0 09 00 DB 21 00 8A E4 16 67 4C DF 56 66 C6 [23:32:22]GetLastDocTimeStamp 1729551996 [23:32:22]current date 1729553546 [23:32:22]FM_GetShiftState [23:32:22]SAM_PROTO_GetShiftState [23:32:22]wFMCommunicate request_size=4 [23:32:22]MH_SAM_APDU [23:32:22]CAPDU: 80 13 01 00 [23:32:22]Write to MH i2c: E2 08 00 DC 21 80 13 01 00 00 00 00 00 7A [23:32:22]Write i2c OK [23:32:22]MH_I2C_Read... [23:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:22]Read from MH i2c: E2 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: E2 0E 00 [23:32:22]MH_I2C_Read... [23:32:22]Read from MH i2c: E2 0E 00 DC 21 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 DA [23:32:22]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:32:22]wFMCommunicate OK [23:32:22]SAM_PROTO_GetShiftState done [23:32:22]FM_GetShiftState done [23:32:22]opened in 1729469755 [23:32:22]opened+sec_in_day 1729556155 [23:32:22]quantity*price = 10400 [23:32:22]sum+1 = 10401 [23:32:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 2.000 * 25.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 298.00 НСП 1% : 2.63 НДС 12% : 31.64 Наличными: 298.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 134 21.10.2024 23:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63137 ФПД: 21516402061029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233226&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63137&fm=21516402061029&tin=02508201610067®Number=0000000000091619&sum=29800 0 [23:32:23]StoreToDocumentArchive [23:32:23]shift 544 fd 63137 [23:32:23]save to /storage/0544/doc_00063137 [23:32:23]save last doc name /storage/0544/doc_00063137 to /storage/kkm_last_doc_name [23:32:23]save OK [23:32:23]Clear old archive folders... [23:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=503 [23:32:23]tlvbuf is B6F16550 [23:32:23]SAM_PROTO_ClearQueue [23:32:23]wFMCommunicate request_size=4 [23:32:23]MH_SAM_APDU [23:32:23]CAPDU: 80 09 00 00 [23:32:23]Write to MH i2c: E2 08 00 E9 21 80 09 00 00 00 00 00 00 7C [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:23]Read from MH i2c: E2 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 03 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 03 00 E9 21 00 90 00 7E [23:32:23]RAPDU: 90 00 [23:32:23]wFMCommunicate OK [23:32:23]SAM_PROTO_ClearQueue done [23:32:23]KKMCreateOFDPacket [23:32:23]OFDProtocolAddRootSTLVToBuf [23:32:23]FM_MakeSignedData [23:32:23]FM_MakeSignedData [23:32:23]SAM_PROTO_SignData [23:32:23]wFMCommunicate request_size=4 [23:32:23]MH_SAM_APDU [23:32:23]CAPDU: 80 0D 01 02 [23:32:23]Write to MH i2c: E2 08 00 EA 21 80 0D 01 02 00 00 00 00 84 [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:23]Read from MH i2c: E2 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 03 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: E2 03 00 EA 21 00 90 00 7F [23:32:23]RAPDU: 90 00 [23:32:23]wFMCommunicate OK [23:32:23]wFMCommunicate request_size=255 [23:32:23]MH_SAM_APDU [23:32:23]CAPDU: 80 0D 02 02 FA 03 00 F7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C [23:32:23]Write to MH i2c: E2 02 01 EB 21 80 0D 02 02 FA 00 03 00 F7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 00 18 [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [23:32:24]RAPDU: 90 00 [23:32:24]wFMCommunicate OK [23:32:24]wFMCommunicate request_size=255 [23:32:24]MH_SAM_APDU [23:32:24]CAPDU: 80 0D 02 02 FA 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8A E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A1 F6 00 00 35 04 06 [23:32:24]Write to MH i2c: E2 02 01 EC 21 80 0D 02 02 FA 00 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8A E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A1 F6 00 00 35 04 06 00 00 35 [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [23:32:24]RAPDU: 90 00 [23:32:24]wFMCommunicate OK [23:32:24]wFMCommunicate request_size=12 [23:32:24]MH_SAM_APDU [23:32:24]CAPDU: 80 0D 02 02 07 00 13 91 AD 80 6E E5 [23:32:24]Write to MH i2c: E2 0F 00 ED 21 80 0D 02 02 07 00 00 13 91 AD 80 6E E5 00 00 BA [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [23:32:24]RAPDU: 90 00 [23:32:24]wFMCommunicate OK [23:32:24]wFMCommunicate request_size=4 [23:32:24]MH_SAM_APDU [23:32:24]CAPDU: 80 0D 03 02 [23:32:24]Write to MH i2c: E2 08 00 EE 21 80 0D 03 02 00 00 00 00 8A [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 0B 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 0B 00 EE 21 00 71 A8 C7 3D 86 04 FF D8 90 00 09 [23:32:24]RAPDU: 71 A8 C7 3D 86 04 FF D8 90 00 [23:32:24]wFMCommunicate OK [23:32:24]SAM_PROTO_SignData done [23:32:24]FM_MakeSignedData done [23:32:24]CreateOFDProtocolMessage [23:32:24]wFMCommunicate request_size=4 [23:32:24]MH_SAM_APDU [23:32:24]CAPDU: 80 11 00 00 [23:32:24]Write to MH i2c: E2 08 00 EF 21 80 11 00 00 00 00 00 00 8A [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:24]Read from MH i2c: E2 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 17 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: E2 17 00 EF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E3 [23:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:32:24]wFMCommunicate OK [23:32:24]CreateOFDProtocolMessage done [23:32:24]OFDSenderStorePacket 63137 [23:32:24]StoreOFDPacket docnum=63137 [23:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0B 02 00 00 FD D8 03 02 87 90 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8A E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A1 F6 00 00 35 04 06 00 13 91 AD 80 6E E5 71 A8 C7 3D 86 04 FF D8 [23:32:24]CheckFolder [23:32:24]dirname=/storage/ofd_packets [23:32:24]CheckFolder done [23:32:24]ProducePacketName [23:32:24]name=ofd_packets/00063137 [23:32:24]NVStorageSaveData ofd_packets/00063137 [23:32:24]File name is /storage/ofd_packets/00063137 [23:32:24]Write 553 bytes [23:32:24]NVStorageSaveData done [23:32:24]OFDSenderStorePacket done [23:32:24]KKMCreateOFDPacket done [23:32:24]NVStorageSaveData kkm_last_timestamp [23:32:24]File name is /storage/kkm_last_timestamp [23:32:24]Write 4 bytes [23:32:24]NVStorageSaveData done [23:32:24]ExternCall_PrintAddStr [23:32:24]wPrintStart [23:32:24]Write to MH i2c: 01 00 00 F0 21 11 [23:32:24]OFD Sender: Processing packet 63137 [packets to send 232, broken 231] [23:32:24]ProducePacketName [23:32:24]name=ofd_packets/00063137 [23:32:24]OFD Sender: To server: pG, [23:32:24]CommunicateWithHost lk.salyk.kg:30040 [23:32:24]ConnectInit lk.salyk.kg [23:32:24]Write i2c OK [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: 01 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: 01 07 00 [23:32:24]MH_I2C_Read... [23:32:24]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 FF 0F 26 [23:32:24]RasterBufferAndPrint [23:32:24]line Счет N : (3)47447 [23:32:24]line ИНН: 02508201610067 [23:32:24]line Контрольно-Кассовый Чек [23:32:24]line ПРОДАЖА [23:32:24]line Товар: 4870202521292 [23:32:24]line Напиток Сок березы 1,2л [23:32:24]line 1.000 * 104.00 [23:32:24]line = 104.00 [23:32:24]line НДС 12% НСП 1% [23:32:24]line > о реализуемом товаре [23:32:24]line Товар: 48743587 [23:32:24]line Сигареты Winston XStyle Silver [23:32:24]line 1.000 * 144.00 [23:32:24]line = 144.00 [23:32:24]line НДС 12% НСП 1% [23:32:24]line > о реализуемом товаре [23:32:24]line Товар: 4607120854177 [23:32:24]line Снек Орехи BEERKa Арахис 30г [23:32:24]line 2.000 * 25.00 [23:32:24]line = 50.00 [23:32:24]line НДС 12% НСП 1% [23:32:24]line > о реализуемом товаре [23:32:24]line ИТОГО: 298.00 [23:32:24]line НСП 1% : 2.63 [23:32:24]line НДС 12% : 31.64 [23:32:24]line Наличными: 298.00 [23:32:24]line Безнал.: 0.00 [23:32:24]line Место: АЗС № 86 "Партнер Нефть" [23:32:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:32:24]line СНО: Общий режим [23:32:24]line Чек 134 21.10.2024 23:32 [23:32:24]line Смена: 544 ФФД: 1.0 [23:32:24]line ЗНМ: 0300000154 [23:32:24]line РНМ: 0000000000091619 [23:32:24]line Версия ККМ: 001 [23:32:24]line ФМ: 0000000000874676 [23:32:24]line ФД: 63137 [23:32:24]line ФПД: 21516402061029 [23:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233226&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63137&fm=21516402061029&tin=02508201610067®Number=0000000000091619&sum=29800 [23:32:24]line 0 [23:32:24]written 0, free lines is 4095 [23:32:24]Connected sock=10 [23:32: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 0B 02 00 00 FD D8 03 02 87 90 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 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 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8A E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A1 F6 00 00 35 04 06 00 13 91 AD 80 6E E5 71 A8 C7 3D 86 04 FF D8 [23:32:25]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 04 7F 47 00 E0 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A1 F6 00 00 F4 03 04 00 87 8E 16 67 B6 04 01 00 00 60 05 C7 56 2F 98 65 48 [23:32:25]CommunicateWithHost err = 0 [23:32:25]CheckOFDResponse [23:32:25]1017 (14) - 77093643461234 [23:32:25]1041 (16) - 0000000000874676 [23:32:25]1040 (4) - 63137 [23:32:25]1012 (4) - 21.10.2024 17:25 [23:32:25]1206 (1) - 0 [23:32:25]OFD Sender: Remove packet 63137 [23:32:25]ProducePacketName [23:32:25]name=ofd_packets/00063137 [23:32:25]NVStorageDeleteData [23:32:25]Write to MH i2c: 01 00 00 26 22 48 [23:32:25]Write i2c OK [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: 01 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: 01 07 00 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: 01 07 00 26 22 00 00 00 00 00 7B 0C D6 [23:32:25]RasterBufferAndPrint [23:32:25]line [23:32:25]line [23:32:25]line [23:32:25]line [23:32:25]line [23:32:25]written 0, free lines is 3204 [23:32:25]MH_Cut [23:32:25]Write to MH i2c: D1 01 00 2D 22 01 21 [23:32:25]Write i2c OK [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: D1 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: D1 01 00 [23:32:25]MH_I2C_Read... [23:32:25]Read from MH i2c: D1 01 00 2D 22 00 20 [23:32:25]Write to MH i2c: 01 00 00 2E 22 50 [23:32:25]Write i2c OK [23:32:25]MH_I2C_Read... [23:32:25]OFD Sender: No OFD packet to send [23:32:25]*** Cut start [23:32:25]*** Partial cut [23:32:25]*** CUTSNS_PIN = 1 [23:32:25]*** CUTSNS_PIN = 0 [23:32:26]*** Brake cut motor [23:32:26]Read from MH i2c: 01 [23:32:26]MH_I2C_Read... [23:32:26]*** Stop cut motor [23:32:26]*** Cut end [23:32:26]Read from MH i2c: 01 07 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [23:32:26]process_action close_receipt done [23:32:26]requested_data is exist [23:32:26]produce_requested_data [23:32:26]requested_item fm.sn is exist - process it [23:32:26]wFMCommunicate request_size=4 [23:32:26]MH_SAM_APDU [23:32:26]CAPDU: 80 11 00 00 [23:32:26]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [23:32:26]Write i2c OK [23:32:26]MH_I2C_Read... [23:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:26]Read from MH i2c: E2 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 17 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [23:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:32:26]wFMCommunicate OK [23:32:26]requested_item fd.num is exist - process it [23:32:26]SAM_PROTO_GetFieldsCounters [23:32:26]wFMCommunicate request_size=4 [23:32:26]MH_SAM_APDU [23:32:26]CAPDU: 80 13 00 00 [23:32:26]Write to MH i2c: E2 08 00 30 22 80 13 00 00 00 00 00 00 CE [23:32:26]Write i2c OK [23:32:26]MH_I2C_Read... [23:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:26]Read from MH i2c: E2 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 62 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 62 00 30 22 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 A1 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [23:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 A1 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:26]wFMCommunicate OK [23:32:26]SAM_PROTO_GetFieldsCounters done [23:32:26]requested_item shift.num is exist - process it [23:32:26]requested_item shift.opened is exist - process it [23:32:26]req_shift_opened [23:32:26]FM_GetShiftState [23:32:26]SAM_PROTO_GetShiftState [23:32:26]wFMCommunicate request_size=4 [23:32:26]MH_SAM_APDU [23:32:26]CAPDU: 80 13 01 00 [23:32:26]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [23:32:26]Write i2c OK [23:32:26]MH_I2C_Read... [23:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:26]Read from MH i2c: E2 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 0E 00 [23:32:26]MH_I2C_Read... [23:32:26]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 30 [23:32:26]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:32:26]wFMCommunicate OK [23:32:26]SAM_PROTO_GetShiftState done [23:32:26]FM_GetShiftState done [23:32:26]req_shift_opened done [23:32:26]requested_item shift.open_date is exist - process it [23:32:26]req_shift_open_date [23:32:26]req_shift_open_date done [23:32:26]produce_requested_data done [23:32:26]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63137,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:32:26]process_action_free close_receipt [23:32:26]json_value_free [23:32:26]json_value_free done [23:32:26]process_json_proto returns [23:32:26]Send response to host [23:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63137,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:32:26]free response buf [23:32:26]execute_script done [23:32:26]execute_script returns [23:32:26]free content buf [23:32:26]Sock 7.Close socket [23:32:26]Sock 7.Thread stoped [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:11]accept exits with 9 [23:34:11]New connection [23:34:11]New thread 3067055460 created [23:34:11]Thread 3067198820 joined [23:34:11]Waiting for new connection... [23:34:11] Sock 9.Parse request [23:34:11]Sock 9.Check first char [23:34:11]Sock 9.First char is OK [23:34:11]request: POST /json_proto HTTP/1.0 [23:34:11]Method: POST [23:34:11]URL: /json_proto [23:34:11]Method is POST - this is cgi request [23:34:11]url: /json_proto [23:34:11]query_string will be loaded in cgi processing [23:34:11]execute_cgi json_proto POST (null) [23:34:11]execute_cgi path=json_proto method=POST [23:34:11]POST find Content-Length [23:34:11]Host: 172.17.42.132:8080 [23:34:11]Content-Length: 913 [23:34:11]Content-Type: application/json [23:34:11] [23:34:11]POST finish read [23:34:11]Found Content-Length = 913 [23:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47449", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:11]execute_script... [23:34: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)47449", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:11]POST & json_proto [23:34:11]process_json_proto [23:34:11]json parsed OK: [23:34:11]protocol is kg_v1.0 [23:34:11]action value=close_receipt [23:34:11]process_action close_receipt [23:34:11]cmd_close_receipt [23:34:11]MH_GetDate [23:34:11]Write to MH i2c: F0 00 00 32 22 43 [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: F0 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: F0 09 00 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: F0 09 00 32 22 00 F7 E4 16 67 4C DF 56 66 8B [23:34:11]GetLastDocTimeStamp 1729553546 [23:34:11]current date 1729553655 [23:34:11]FM_GetShiftState [23:34:11]SAM_PROTO_GetShiftState [23:34:11]wFMCommunicate request_size=4 [23:34:11]MH_SAM_APDU [23:34:11]CAPDU: 80 13 01 00 [23:34:11]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:11]Read from MH i2c: E2 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: E2 0E 00 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 32 [23:34:11]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:34:11]wFMCommunicate OK [23:34:11]SAM_PROTO_GetShiftState done [23:34:11]FM_GetShiftState done [23:34:11]opened in 1729469755 [23:34:11]opened+sec_in_day 1729556155 [23:34:11]quantity*price = 14400 [23:34:11]sum+1 = 14401 [23:34:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 2.000 * 99.00 = 198.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 342.00 НСП 1% : 3.02 НДС 12% : 36.32 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 135 21.10.2024 23:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63138 ФПД: 102519444721529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233415&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63138&fm=102519444721529&tin=02508201610067®Number=0000000000091619&sum=34200 0 [23:34:12]StoreToDocumentArchive [23:34:12]shift 544 fd 63138 [23:34:12]save to /storage/0544/doc_00063138 [23:34:12]save last doc name /storage/0544/doc_00063138 to /storage/kkm_last_doc_name [23:34:12]save OK [23:34:12]Clear old archive folders... [23:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=397 [23:34:12]tlvbuf is 018CE550 [23:34:12]SAM_PROTO_ClearQueue [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 09 00 00 [23:34:12]Write to MH i2c: E2 08 00 40 22 80 09 00 00 00 00 00 00 D4 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [23:34:12]RAPDU: 90 00 [23:34:12]wFMCommunicate OK [23:34:12]SAM_PROTO_ClearQueue done [23:34:12]KKMCreateOFDPacket [23:34:12]OFDProtocolAddRootSTLVToBuf [23:34:12]FM_MakeSignedData [23:34:12]FM_MakeSignedData [23:34:12]SAM_PROTO_SignData [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 0D 01 02 [23:34:12]Write to MH i2c: E2 08 00 41 22 80 0D 01 02 00 00 00 00 DC [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [23:34:12]RAPDU: 90 00 [23:34:12]wFMCommunicate OK [23:34:12]wFMCommunicate request_size=255 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 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 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 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 98 85 00 00 00 00 EB 03 26 00 [23:34:12]Write to MH i2c: E2 02 01 42 22 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 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 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 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 98 85 00 00 00 00 EB 03 26 00 00 00 52 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [23:34:12]RAPDU: 90 00 [23:34:12]wFMCommunicate OK [23:34:12]wFMCommunicate request_size=156 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A2 F6 00 00 35 04 06 00 5D 3D AB 15 CF 79 [23:34:12]Write to MH i2c: E2 9F 00 43 22 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A2 F6 00 00 35 04 06 00 5D 3D AB 15 CF 79 00 00 02 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [23:34:12]RAPDU: 90 00 [23:34:12]wFMCommunicate OK [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 0D 03 02 [23:34:12]Write to MH i2c: E2 08 00 44 22 80 0D 03 02 00 00 00 00 E1 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 0B 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 0B 00 44 22 00 D1 B9 35 C9 32 C0 78 BF 90 00 93 [23:34:12]RAPDU: D1 B9 35 C9 32 C0 78 BF 90 00 [23:34:12]wFMCommunicate OK [23:34:12]SAM_PROTO_SignData done [23:34:12]FM_MakeSignedData done [23:34:12]CreateOFDProtocolMessage [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 11 00 00 [23:34:12]Write to MH i2c: E2 08 00 45 22 80 11 00 00 00 00 00 00 E1 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 17 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 17 00 45 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3A [23:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:34:12]wFMCommunicate OK [23:34:12]CreateOFDProtocolMessage done [23:34:12]OFDSenderStorePacket 63138 [23:34:12]StoreOFDPacket docnum=63138 [23:34: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 A1 01 00 00 C6 A7 99 01 05 0A 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 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 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 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 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A2 F6 00 00 35 04 06 00 5D 3D AB 15 CF 79 D1 B9 35 C9 32 C0 78 BF [23:34:12]CheckFolder [23:34:12]dirname=/storage/ofd_packets [23:34:12]CheckFolder done [23:34:12]ProducePacketName [23:34:12]name=ofd_packets/00063138 [23:34:12]NVStorageSaveData ofd_packets/00063138 [23:34:12]File name is /storage/ofd_packets/00063138 [23:34:12]Write 447 bytes [23:34:12]NVStorageSaveData done [23:34:12]OFDSenderStorePacket done [23:34:12]KKMCreateOFDPacket done [23:34:12]NVStorageSaveData kkm_last_timestamp [23:34:12]File name is /storage/kkm_last_timestamp [23:34:12]Write 4 bytes [23:34:12]NVStorageSaveData done [23:34:12]ExternCall_PrintAddStr [23:34:13]wPrintStart [23:34:13]Write to MH i2c: 01 00 00 46 22 68 [23:34:13]OFD Sender: Processing packet 63138 [packets to send 232, broken 231] [23:34:13]ProducePacketName [23:34:13]name=ofd_packets/00063138 [23:34:13]OFD Sender: To server: pG, [23:34:13]CommunicateWithHost lk.salyk.kg:30040 [23:34:13]ConnectInit lk.salyk.kg [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 07 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [23:34:13]RasterBufferAndPrint [23:34:13]line Счет N : (3)47449 [23:34:13]line ИНН: 02508201610067 [23:34:13]line Контрольно-Кассовый Чек [23:34:13]line ПРОДАЖА [23:34:13]line Товар: 48747066 [23:34:13]line Сигареты Winston True Silver [23:34:13]line 1.000 * 144.00 [23:34:13]line = 144.00 [23:34:13]line НДС 12% НСП 1% [23:34:13]line > о реализуемом товаре [23:34:13]line Товар: 4870022003312 [23:34:13]line Gorilla эн нап манго-кокос 0,45 ж/б [23:34:13]line 2.000 * 99.00 [23:34:13]line = 198.00 [23:34:13]line НДС 12% НСП 1% [23:34:13]line > о реализуемом товаре [23:34:13]line ИТОГО: 342.00 [23:34:13]line НСП 1% : 3.02 [23:34:13]line НДС 12% : 36.32 [23:34:13]line Наличными: 342.00 [23:34:13]line Безнал.: 0.00 [23:34:13]line Место: АЗС № 86 "Партнер Нефть" [23:34:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:34:13]line СНО: Общий режим [23:34:13]line Чек 135 21.10.2024 23:34 [23:34:13]line Смена: 544 ФФД: 1.0 [23:34:13]line ЗНМ: 0300000154 [23:34:13]line РНМ: 0000000000091619 [23:34:13]line Версия ККМ: 001 [23:34:13]line ФМ: 0000000000874676 [23:34:13]line ФД: 63138 [23:34:13]line ФПД: 102519444721529 [23:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233415&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63138&fm=102519444721529&tin=02508201610067®Number=0000000000091619&sum=34200 [23:34:13]line 0 [23:34:13]written 0, free lines is 4095 [23:34:13]Connected sock=10 [23:34: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 A1 01 00 00 C6 A7 99 01 05 0A 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 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 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 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 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 E4 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A2 F6 00 00 35 04 06 00 5D 3D AB 15 CF 79 D1 B9 35 C9 32 C0 78 BF [23:34: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 8A 0D 47 00 C4 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A2 F6 00 00 F4 03 04 00 F3 8E 16 67 B6 04 01 00 00 F2 01 85 AE A3 6F 62 D7 [23:34:13]CommunicateWithHost err = 0 [23:34:13]CheckOFDResponse [23:34:13]1017 (14) - 77093643461234 [23:34:13]1041 (16) - 0000000000874676 [23:34:13]1040 (4) - 63138 [23:34:13]1012 (4) - 21.10.2024 17:27 [23:34:13]1206 (1) - 0 [23:34:13]OFD Sender: Remove packet 63138 [23:34:13]ProducePacketName [23:34:13]name=ofd_packets/00063138 [23:34:13]NVStorageDeleteData [23:34:13]Write to MH i2c: 01 00 00 75 22 97 [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 07 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 CE 0C 78 [23:34:13]RasterBufferAndPrint [23:34:13]line [23:34:13]line [23:34:13]line [23:34:13]line [23:34:13]line [23:34:13]written 0, free lines is 3284 [23:34:13]MH_Cut [23:34:13]Write to MH i2c: D1 01 00 7C 22 01 70 [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: D1 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: D1 01 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: D1 01 00 7C 22 00 6F [23:34:13]Write to MH i2c: 01 00 00 7D 22 9F [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:14]OFD Sender: No OFD packet to send [23:34:14]*** Cut start [23:34:14]*** Partial cut [23:34:14]*** CUTSNS_PIN = 1 [23:34:14]*** CUTSNS_PIN = 0 [23:34:14]*** Brake cut motor [23:34:14]Read from MH i2c: 01 [23:34:14]MH_I2C_Read... [23:34:14]*** Stop cut motor [23:34:14]*** Cut end [23:34:14]Read from MH i2c: 01 07 00 [23:34:14]MH_I2C_Read... [23:34:14]Read from MH i2c: 01 07 00 7D 22 00 00 00 00 00 FF 0F B4 [23:34:14]process_action close_receipt done [23:34:14]requested_data is exist [23:34:14]produce_requested_data [23:34:14]requested_item fm.sn is exist - process it [23:34:14]wFMCommunicate request_size=4 [23:34:14]MH_SAM_APDU [23:34:14]CAPDU: 80 11 00 00 [23:34:14]Write to MH i2c: E2 08 00 7E 22 80 11 00 00 00 00 00 00 1A [23:34:14]Write i2c OK [23:34:14]MH_I2C_Read... [23:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:15]Read from MH i2c: E2 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 17 00 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 17 00 7E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [23:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:34:15]wFMCommunicate OK [23:34:15]requested_item fd.num is exist - process it [23:34:15]SAM_PROTO_GetFieldsCounters [23:34:15]wFMCommunicate request_size=4 [23:34:15]MH_SAM_APDU [23:34:15]CAPDU: 80 13 00 00 [23:34:15]Write to MH i2c: E2 08 00 7F 22 80 13 00 00 00 00 00 00 1D [23:34:15]Write i2c OK [23:34:15]MH_I2C_Read... [23:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:15]Read from MH i2c: E2 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 62 00 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 62 00 7F 22 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 A2 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [23:34: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 A2 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:15]wFMCommunicate OK [23:34:15]SAM_PROTO_GetFieldsCounters done [23:34:15]requested_item shift.num is exist - process it [23:34:15]requested_item shift.opened is exist - process it [23:34:15]req_shift_opened [23:34:15]FM_GetShiftState [23:34:15]SAM_PROTO_GetShiftState [23:34:15]wFMCommunicate request_size=4 [23:34:15]MH_SAM_APDU [23:34:15]CAPDU: 80 13 01 00 [23:34:15]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [23:34:15]Write i2c OK [23:34:15]MH_I2C_Read... [23:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:15]Read from MH i2c: E2 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 0E 00 [23:34:15]MH_I2C_Read... [23:34:15]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 7F [23:34:15]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:34:15]wFMCommunicate OK [23:34:15]SAM_PROTO_GetShiftState done [23:34:15]FM_GetShiftState done [23:34:15]req_shift_opened done [23:34:15]requested_item shift.open_date is exist - process it [23:34:15]req_shift_open_date [23:34:15]req_shift_open_date done [23:34:15]produce_requested_data done [23:34:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63138,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:34:15]process_action_free close_receipt [23:34:15]json_value_free [23:34:15]json_value_free done [23:34:15]process_json_proto returns [23:34:15]Send response to host [23:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63138,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:34:15]free response buf [23:34:15]execute_script done [23:34:15]execute_script returns [23:34:15]free content buf [23:34:15]Sock 9.Close socket [23:34:15]Sock 9.Thread stoped [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:44:56]accept exits with 7 [23:44:56]New connection [23:44:56]New thread 3067198820 created [23:44:56]Thread 3067055460 joined [23:44:56]Waiting for new connection... [23:44:56] Sock 7.Parse request [23:44:56]Sock 7.Check first char [23:44:56]Sock 7.First char is OK [23:44:56]request: POST /json_proto HTTP/1.0 [23:44:56]Method: POST [23:44:56]URL: /json_proto [23:44:56]Method is POST - this is cgi request [23:44:56]url: /json_proto [23:44:56]query_string will be loaded in cgi processing [23:44:56]execute_cgi json_proto POST (null) [23:44:56]execute_cgi path=json_proto method=POST [23:44:56]POST find Content-Length [23:44:56]Host: 172.17.42.132:8080 [23:44:56]Content-Length: 666 [23:44:56]Content-Type: application/json [23:44:56] [23:44:56]POST finish read [23:44:56]Found Content-Length = 666 [23:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47450", "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" ] } } [23:44:56]execute_script... [23:44:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47450", "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" ] } } [23:44:56]POST & json_proto [23:44:56]process_json_proto [23:44:56]json parsed OK: [23:44:56]protocol is kg_v1.0 [23:44:56]action value=close_receipt [23:44:56]process_action close_receipt [23:44:56]cmd_close_receipt [23:44:56]MH_GetDate [23:44:56]Write to MH i2c: F0 00 00 81 22 92 [23:44:56]Write i2c OK [23:44:56]MH_I2C_Read... [23:44:56]Read from MH i2c: F0 [23:44:56]MH_I2C_Read... [23:44:56]Read from MH i2c: F0 09 00 [23:44:56]MH_I2C_Read... [23:44:56]Read from MH i2c: F0 09 00 81 22 00 7D E7 16 67 4C DF 56 66 63 [23:44:56]GetLastDocTimeStamp 1729553655 [23:44:56]current date 1729554301 [23:44:56]FM_GetShiftState [23:44:56]SAM_PROTO_GetShiftState [23:44:56]wFMCommunicate request_size=4 [23:44:56]MH_SAM_APDU [23:44:56]CAPDU: 80 13 01 00 [23:44:56]Write to MH i2c: E2 08 00 82 22 80 13 01 00 00 00 00 00 21 [23:44:56]Write i2c OK [23:44:56]MH_I2C_Read... [23:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:56]Read from MH i2c: E2 [23:44:56]MH_I2C_Read... [23:44:56]Read from MH i2c: E2 0E 00 [23:44:56]MH_I2C_Read... [23:44:56]Read from MH i2c: E2 0E 00 82 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 81 [23:44:56]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:44:56]wFMCommunicate OK [23:44:56]SAM_PROTO_GetShiftState done [23:44:56]FM_GetShiftState done [23:44:56]opened in 1729469755 [23:44:56]opened+sec_in_day 1729556155 [23:44:56]quantity*price = 20000 [23:44:56]sum+1 = 20001 [23:44:56]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 СНО: Общий режим Чек 136 21.10.2024 23:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63139 ФПД: 70379284921470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234501&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63139&fm=70379284921470&tin=02508201610067®Number=0000000000091619&sum=20000 0 [23:44:57]StoreToDocumentArchive [23:44:57]shift 544 fd 63139 [23:44:57]save to /storage/0544/doc_00063139 [23:44:57]save last doc name /storage/0544/doc_00063139 to /storage/kkm_last_doc_name [23:44:57]save OK [23:44:57]Clear old archive folders... [23:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=283 [23:44:57]tlvbuf is B6DE4010 [23:44:57]SAM_PROTO_ClearQueue [23:44:57]wFMCommunicate request_size=4 [23:44:57]MH_SAM_APDU [23:44:57]CAPDU: 80 09 00 00 [23:44:57]Write to MH i2c: E2 08 00 8F 22 80 09 00 00 00 00 00 00 23 [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:57]Read from MH i2c: E2 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 03 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [23:44:57]RAPDU: 90 00 [23:44:57]wFMCommunicate OK [23:44:57]SAM_PROTO_ClearQueue done [23:44:57]KKMCreateOFDPacket [23:44:57]OFDProtocolAddRootSTLVToBuf [23:44:57]FM_MakeSignedData [23:44:57]FM_MakeSignedData [23:44:57]SAM_PROTO_SignData [23:44:57]wFMCommunicate request_size=4 [23:44:57]MH_SAM_APDU [23:44:57]CAPDU: 80 0D 01 02 [23:44:57]Write to MH i2c: E2 08 00 90 22 80 0D 01 02 00 00 00 00 2B [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:57]Read from MH i2c: E2 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 03 00 [23:44:57]MH_I2C_Read... [23:44:57]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [23:44:57]RAPDU: 90 00 [23:44:57]wFMCommunicate OK [23:44:57]wFMCommunicate request_size=255 [23:44:57]MH_SAM_APDU [23:44:57]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 88 00 00 00 F4 03 04 00 7D E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [23:44:57]Write to MH i2c: E2 02 01 91 22 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 88 00 00 00 F4 03 04 00 7D E7 16 67 0E 04 04 00 20 02 00 00 B9 04 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 25 [23:44:57]Write i2c OK [23:44:57]MH_I2C_Read... [23:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:58]Read from MH i2c: E2 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 03 00 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [23:44:58]RAPDU: 90 00 [23:44:58]wFMCommunicate OK [23:44:58]wFMCommunicate request_size=42 [23:44:58]MH_SAM_APDU [23:44:58]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 A3 F6 00 00 35 04 06 00 40 02 74 46 FC 7E [23:44:58]Write to MH i2c: E2 2D 00 92 22 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 A3 F6 00 00 35 04 06 00 40 02 74 46 FC 7E 00 00 18 [23:44:58]Write i2c OK [23:44:58]MH_I2C_Read... [23:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:58]Read from MH i2c: E2 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 03 00 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [23:44:58]RAPDU: 90 00 [23:44:58]wFMCommunicate OK [23:44:58]wFMCommunicate request_size=4 [23:44:58]MH_SAM_APDU [23:44:58]CAPDU: 80 0D 03 02 [23:44:58]Write to MH i2c: E2 08 00 93 22 80 0D 03 02 00 00 00 00 30 [23:44:58]Write i2c OK [23:44:58]MH_I2C_Read... [23:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:58]Read from MH i2c: E2 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 0B 00 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 0B 00 93 22 00 AE 85 04 8C CB 85 F1 65 90 00 9A [23:44:58]RAPDU: AE 85 04 8C CB 85 F1 65 90 00 [23:44:58]wFMCommunicate OK [23:44:58]SAM_PROTO_SignData done [23:44:58]FM_MakeSignedData done [23:44:58]CreateOFDProtocolMessage [23:44:58]wFMCommunicate request_size=4 [23:44:58]MH_SAM_APDU [23:44:58]CAPDU: 80 11 00 00 [23:44:58]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [23:44:58]Write i2c OK [23:44:58]MH_I2C_Read... [23:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:58]Read from MH i2c: E2 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 17 00 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: E2 17 00 94 22 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:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:44:58]wFMCommunicate OK [23:44:58]CreateOFDProtocolMessage done [23:44:58]OFDSenderStorePacket 63139 [23:44:58]StoreOFDPacket docnum=63139 [23:44: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 2F 01 00 00 61 E7 27 01 D9 B9 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 88 00 00 00 F4 03 04 00 7D E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A3 F6 00 00 35 04 06 00 40 02 74 46 FC 7E AE 85 04 8C CB 85 F1 65 [23:44:58]CheckFolder [23:44:58]dirname=/storage/ofd_packets [23:44:58]CheckFolder done [23:44:58]ProducePacketName [23:44:58]name=ofd_packets/00063139 [23:44:58]NVStorageSaveData ofd_packets/00063139 [23:44:58]File name is /storage/ofd_packets/00063139 [23:44:58]Write 333 bytes [23:44:58]NVStorageSaveData done [23:44:58]OFDSenderStorePacket done [23:44:58]KKMCreateOFDPacket done [23:44:58]NVStorageSaveData kkm_last_timestamp [23:44:58]File name is /storage/kkm_last_timestamp [23:44:58]Write 4 bytes [23:44:58]NVStorageSaveData done [23:44:58]ExternCall_PrintAddStr [23:44:58]wPrintStart [23:44:58]Write to MH i2c: 01 00 00 95 22 B7 [23:44:58]Write i2c OK [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: 01 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: 01 07 00 [23:44:58]MH_I2C_Read... [23:44:58]Read from MH i2c: 01 07 00 95 22 00 00 00 00 00 FF 0F CC [23:44:58]RasterBufferAndPrint [23:44:58]line Счет N : (3)47450 [23:44:58]line ИНН: 02508201610067 [23:44:58]line Контрольно-Кассовый Чек [23:44:58]line ПРОДАЖА [23:44:58]line Товар: 4700002085444 [23:44:58]line Водка Белое золото 0,24л [23:44:58]line 1.000 * 200.00 [23:44:58]line = 200.00 [23:44:58]line НДС 12% НСП 1% [23:44:58]line > о реализуемом товаре [23:44:58]line ИТОГО: 200.00 [23:44:58]line НСП 1% : 1.77 [23:44:58]line НДС 12% : 21.24 [23:44:58]line Наличными: 200.00 [23:44:58]line Безнал.: 0.00 [23:44:58]line Место: АЗС № 86 "Партнер Нефть" [23:44:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:44:58]line СНО: Общий режим [23:44:58]line Чек 136 21.10.2024 23:45 [23:44:58]line Смена: 544 ФФД: 1.0 [23:44:58]line ЗНМ: 0300000154 [23:44:58]line РНМ: 0000000000091619 [23:44:58]line Версия ККМ: 001 [23:44:58]line ФМ: 0000000000874676 [23:44:58]line ФД: 63139 [23:44:58]line ФПД: 70379284921470 [23:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234501&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63139&fm=70379284921470&tin=02508201610067®Number=0000000000091619&sum=20000 [23:44:58]line 0 [23:44:58]OFD Sender: Processing packet 63139 [packets to send 232, broken 231] [23:44:58]ProducePacketName [23:44:58]name=ofd_packets/00063139 [23:44:58]OFD Sender: To server: pG, [23:44:58]CommunicateWithHost lk.salyk.kg:30040 [23:44:58]ConnectInit lk.salyk.kg [23:44:58]written 0, free lines is 4095 [23:44:58]Connected sock=11 [23:44: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 2F 01 00 00 61 E7 27 01 D9 B9 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 88 00 00 00 F4 03 04 00 7D E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A3 F6 00 00 35 04 06 00 40 02 74 46 FC 7E AE 85 04 8C CB 85 F1 65 [23:44:59]Write to MH i2c: 01 00 00 BD 22 DF [23:44:59]Write i2c OK [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: 01 [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: 01 07 00 [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 19 0D 0C [23:44:59]RasterBufferAndPrint [23:44:59]line [23:44:59]line [23:44:59]line [23:44:59]line [23:44:59]line [23:44:59]written 0, free lines is 3360 [23:44:59]MH_Cut [23:44:59]Write to MH i2c: D1 01 00 C4 22 01 B8 [23:44:59]Write i2c OK [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: D1 [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: D1 01 00 [23:44:59]MH_I2C_Read... [23:44:59]Read from MH i2c: D1 01 00 C4 22 00 B7 [23:44:59]Write to MH i2c: 01 00 00 C5 22 E7 [23:44:59]Write i2c OK [23:44:59]MH_I2C_Read... [23:44: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 1A E3 47 00 18 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A3 F6 00 00 F4 03 04 00 79 91 16 67 B6 04 01 00 00 14 E9 EF 1E EC 15 0A 5B [23:44:59]CommunicateWithHost err = 0 [23:44:59]CheckOFDResponse [23:44:59]1017 (14) - 77093643461234 [23:44:59]1041 (16) - 0000000000874676 [23:44:59]1040 (4) - 63139 [23:44:59]1012 (4) - 21.10.2024 17:38 [23:44:59]1206 (1) - 0 [23:44:59]OFD Sender: Remove packet 63139 [23:44:59]ProducePacketName [23:44:59]name=ofd_packets/00063139 [23:44:59]NVStorageDeleteData [23:44:59]*** Cut start [23:44:59]*** Partial cut [23:44:59]*** CUTSNS_PIN = 1 [23:44:59]OFD Sender: No OFD packet to send [23:44:59]*** CUTSNS_PIN = 0 [23:45:00]*** Brake cut motor [23:45:00]Read from MH i2c: 01 [23:45:00]MH_I2C_Read... [23:45:00]*** Stop cut motor [23:45:00]*** Cut end [23:45:00]Read from MH i2c: 01 07 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [23:45:00]process_action close_receipt done [23:45:00]requested_data is exist [23:45:00]produce_requested_data [23:45:00]requested_item fm.sn is exist - process it [23:45:00]wFMCommunicate request_size=4 [23:45:00]MH_SAM_APDU [23:45:00]CAPDU: 80 11 00 00 [23:45:00]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [23:45:00]Write i2c OK [23:45:00]MH_I2C_Read... [23:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:00]Read from MH i2c: E2 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 17 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BB [23:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:45:00]wFMCommunicate OK [23:45:00]requested_item fd.num is exist - process it [23:45:00]SAM_PROTO_GetFieldsCounters [23:45:00]wFMCommunicate request_size=4 [23:45:00]MH_SAM_APDU [23:45:00]CAPDU: 80 13 00 00 [23:45:00]Write to MH i2c: E2 08 00 C7 22 80 13 00 00 00 00 00 00 65 [23:45:00]Write i2c OK [23:45:00]MH_I2C_Read... [23:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:00]Read from MH i2c: E2 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 62 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 62 00 C7 22 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 A3 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [23:45: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 A3 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:00]wFMCommunicate OK [23:45:00]SAM_PROTO_GetFieldsCounters done [23:45:00]requested_item shift.num is exist - process it [23:45:00]requested_item shift.opened is exist - process it [23:45:00]req_shift_opened [23:45:00]FM_GetShiftState [23:45:00]SAM_PROTO_GetShiftState [23:45:00]wFMCommunicate request_size=4 [23:45:00]MH_SAM_APDU [23:45:00]CAPDU: 80 13 01 00 [23:45:00]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [23:45:00]Write i2c OK [23:45:00]MH_I2C_Read... [23:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:00]Read from MH i2c: E2 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 0E 00 [23:45:00]MH_I2C_Read... [23:45:00]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C7 [23:45:00]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:45:00]wFMCommunicate OK [23:45:00]SAM_PROTO_GetShiftState done [23:45:00]FM_GetShiftState done [23:45:00]req_shift_opened done [23:45:00]requested_item shift.open_date is exist - process it [23:45:00]req_shift_open_date [23:45:00]req_shift_open_date done [23:45:00]produce_requested_data done [23:45:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63139,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:45:00]process_action_free close_receipt [23:45:00]json_value_free [23:45:00]json_value_free done [23:45:00]process_json_proto returns [23:45:00]Send response to host [23:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63139,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:45:00]free response buf [23:45:00]execute_script done [23:45:00]execute_script returns [23:45:00]free content buf [23:45:00]Sock 7.Close socket [23:45:00]Sock 7.Thread stoped [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:42]accept exits with 9 [23:45:42]New connection [23:45:42]New thread 3067055460 created [23:45:42]Thread 3067198820 joined [23:45:42]Waiting for new connection... [23:45:42] Sock 9.Parse request [23:45:42]Sock 9.Check first char [23:45:42]Sock 9.First char is OK [23:45:42]request: POST /json_proto HTTP/1.0 [23:45:42]Method: POST [23:45:42]URL: /json_proto [23:45:42]Method is POST - this is cgi request [23:45:42]url: /json_proto [23:45:42]query_string will be loaded in cgi processing [23:45:42]execute_cgi json_proto POST (null) [23:45:42]execute_cgi path=json_proto method=POST [23:45:42]POST find Content-Length [23:45:42]Host: 172.17.42.132:8080 [23:45:42]Content-Length: 767 [23:45:42]Content-Type: application/json [23:45:42] [23:45:42]POST finish read [23:45:42]Found Content-Length = 767 [23:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47451", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "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" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:42]execute_script... [23:45:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47451", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "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" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:42]POST & json_proto [23:45:42]process_json_proto [23:45:42]json parsed OK: [23:45:42]protocol is kg_v1.0 [23:45:42]action value=close_receipt [23:45:42]process_action close_receipt [23:45:42]cmd_close_receipt [23:45:42]MH_GetDate [23:45:42]Write to MH i2c: F0 00 00 C9 22 DA [23:45:42]Write i2c OK [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: F0 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: F0 09 00 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: F0 09 00 C9 22 00 AB E7 16 67 4C DF 56 66 D9 [23:45:42]GetLastDocTimeStamp 1729554301 [23:45:42]current date 1729554347 [23:45:42]FM_GetShiftState [23:45:42]SAM_PROTO_GetShiftState [23:45:42]wFMCommunicate request_size=4 [23:45:42]MH_SAM_APDU [23:45:42]CAPDU: 80 13 01 00 [23:45:42]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [23:45:42]Write i2c OK [23:45:42]MH_I2C_Read... [23:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:42]Read from MH i2c: E2 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: E2 0E 00 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 C9 [23:45:42]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:45:42]wFMCommunicate OK [23:45:42]SAM_PROTO_GetShiftState done [23:45:42]FM_GetShiftState done [23:45:42]opened in 1729469755 [23:45:42]opened+sec_in_day 1729556155 [23:45:42]quantity*price = 11894 [23:45:42]sum+1 = 11895 [23:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.94 НСП 1% : 1.05 НДС 12% : 12.63 Наличными: 0.00 Безнал.: 118.94 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 137 21.10.2024 23:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63140 ФПД: 141110109980455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234547&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63140&fm=141110109980455&tin=02508201610067®Number=0000000000091619&sum=11894 0 [23:45:43]StoreToDocumentArchive [23:45:43]shift 544 fd 63140 [23:45:43]save to /storage/0544/doc_00063140 [23:45:43]save last doc name /storage/0544/doc_00063140 to /storage/kkm_last_doc_name [23:45:43]save OK [23:45:43]Clear old archive folders... [23:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=285 [23:45:43]tlvbuf is 018C8010 [23:45:43]SAM_PROTO_ClearQueue [23:45:43]wFMCommunicate request_size=4 [23:45:43]MH_SAM_APDU [23:45:43]CAPDU: 80 09 00 00 [23:45:43]Write to MH i2c: E2 08 00 D7 22 80 09 00 00 00 00 00 00 6B [23:45:43]Write i2c OK [23:45:43]MH_I2C_Read... [23:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:43]Read from MH i2c: E2 [23:45:43]MH_I2C_Read... [23:45:43]Read from MH i2c: E2 03 00 [23:45:43]MH_I2C_Read... [23:45:43]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [23:45:43]RAPDU: 90 00 [23:45:43]wFMCommunicate OK [23:45:43]SAM_PROTO_ClearQueue done [23:45:43]KKMCreateOFDPacket [23:45:43]OFDProtocolAddRootSTLVToBuf [23:45:43]FM_MakeSignedData [23:45:43]FM_MakeSignedData [23:45:43]SAM_PROTO_SignData [23:45:43]wFMCommunicate request_size=4 [23:45:43]MH_SAM_APDU [23:45:43]CAPDU: 80 0D 01 02 [23:45:43]Write to MH i2c: E2 08 00 D8 22 80 0D 01 02 00 00 00 00 73 [23:45:43]Write i2c OK [23:45:43]MH_I2C_Read... [23:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:43]Read from MH i2c: E2 [23:45:43]MH_I2C_Read... [23:45:43]Read from MH i2c: E2 03 00 [23:45:43]MH_I2C_Read... [23:45:43]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [23:45:43]RAPDU: 90 00 [23:45:43]wFMCommunicate OK [23:45:43]wFMCommunicate request_size=255 [23:45:43]MH_SAM_APDU [23:45:43]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AB E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 [23:45:43]Write to MH i2c: E2 02 01 D9 22 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AB E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 00 00 A3 [23:45:43]Write i2c OK [23:45:43]MH_I2C_Read... [23:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:44]Read from MH i2c: E2 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 03 00 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [23:45:44]RAPDU: 90 00 [23:45:44]wFMCommunicate OK [23:45:44]wFMCommunicate request_size=44 [23:45:44]MH_SAM_APDU [23:45:44]CAPDU: 80 0D 02 02 27 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A4 F6 00 00 35 04 06 00 80 56 C1 FA C7 27 [23:45:44]Write to MH i2c: E2 2F 00 DA 22 80 0D 02 02 27 00 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A4 F6 00 00 35 04 06 00 80 56 C1 FA C7 27 00 00 B8 [23:45:44]Write i2c OK [23:45:44]MH_I2C_Read... [23:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:44]Read from MH i2c: E2 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 03 00 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [23:45:44]RAPDU: 90 00 [23:45:44]wFMCommunicate OK [23:45:44]wFMCommunicate request_size=4 [23:45:44]MH_SAM_APDU [23:45:44]CAPDU: 80 0D 03 02 [23:45:44]Write to MH i2c: E2 08 00 DB 22 80 0D 03 02 00 00 00 00 78 [23:45:44]Write i2c OK [23:45:44]MH_I2C_Read... [23:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:44]Read from MH i2c: E2 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 0B 00 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 0B 00 DB 22 00 2C 7E 5D B0 37 3C 17 DB 90 00 95 [23:45:44]RAPDU: 2C 7E 5D B0 37 3C 17 DB 90 00 [23:45:44]wFMCommunicate OK [23:45:44]SAM_PROTO_SignData done [23:45:44]FM_MakeSignedData done [23:45:44]CreateOFDProtocolMessage [23:45:44]wFMCommunicate request_size=4 [23:45:44]MH_SAM_APDU [23:45:44]CAPDU: 80 11 00 00 [23:45:44]Write to MH i2c: E2 08 00 DC 22 80 11 00 00 00 00 00 00 78 [23:45:44]Write i2c OK [23:45:44]MH_I2C_Read... [23:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:44]Read from MH i2c: E2 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 17 00 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: E2 17 00 DC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D1 [23:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:45:44]wFMCommunicate OK [23:45:44]CreateOFDProtocolMessage done [23:45:44]OFDSenderStorePacket 63140 [23:45:44]StoreOFDPacket docnum=63140 [23:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 31 01 00 00 7D 7C 29 01 CD 47 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AB E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A4 F6 00 00 35 04 06 00 80 56 C1 FA C7 27 2C 7E 5D B0 37 3C 17 DB [23:45:44]CheckFolder [23:45:44]dirname=/storage/ofd_packets [23:45:44]CheckFolder done [23:45:44]ProducePacketName [23:45:44]name=ofd_packets/00063140 [23:45:44]NVStorageSaveData ofd_packets/00063140 [23:45:44]File name is /storage/ofd_packets/00063140 [23:45:44]Write 335 bytes [23:45:44]NVStorageSaveData done [23:45:44]OFDSenderStorePacket done [23:45:44]KKMCreateOFDPacket done [23:45:44]NVStorageSaveData kkm_last_timestamp [23:45:44]File name is /storage/kkm_last_timestamp [23:45:44]Write 4 bytes [23:45:44]NVStorageSaveData done [23:45:44]ExternCall_PrintAddStr [23:45:44]wPrintStart [23:45:44]Write to MH i2c: 01 00 00 DD 22 FF [23:45:44]Write i2c OK [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: 01 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: 01 07 00 [23:45:44]MH_I2C_Read... [23:45:44]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [23:45:44]RasterBufferAndPrint [23:45:44]line Счет N : (3)47451 [23:45:44]line ИНН: 02508201610067 [23:45:44]line Контрольно-Кассовый Чек [23:45:44]line ПРОДАЖА [23:45:44]line Товар: 4870145004753 [23:45:44]line Напиток Garage hard lemon ст 0,4л [23:45:44]line 1.000 * 118.94 [23:45:44]line = 118.94 [23:45:44]line НДС 12% НСП 1% [23:45:44]line > о реализуемом товаре [23:45:44]line ИТОГО: 118.94 [23:45:44]line НСП 1% : 1.05 [23:45:44]line НДС 12% : 12.63 [23:45:44]line Наличными: 0.00 [23:45:44]line Безнал.: 118.94 [23:45:44]line Место: АЗС № 86 "Партнер Нефть" [23:45:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:45:44]line СНО: Общий режим [23:45:44]line Чек 137 21.10.2024 23:45 [23:45:44]line Смена: 544 ФФД: 1.0 [23:45:44]line ЗНМ: 0300000154 [23:45:44]line РНМ: 0000000000091619 [23:45:44]line Версия ККМ: 001 [23:45:44]line Платежная система: Mbank [23:45:44]line ФМ: 0000000000874676 [23:45:44]line ФД: 63140 [23:45:44]line ФПД: 141110109980455 [23:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234547&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63140&fm=141110109980455&tin=02508201610067®Number=0000000000091619&sum=11894 [23:45:44]line 0 [23:45:44]OFD Sender: Processing packet 63140 [packets to send 232, broken 231] [23:45:44]ProducePacketName [23:45:44]name=ofd_packets/00063140 [23:45:44]OFD Sender: To server: pG, [23:45:44]CommunicateWithHost lk.salyk.kg:30040 [23:45:44]ConnectInit lk.salyk.kg [23:45:44]written 0, free lines is 4095 [23:45:44]Connected sock=7 [23:45: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 31 01 00 00 7D 7C 29 01 CD 47 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AB E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A4 F6 00 00 35 04 06 00 80 56 C1 FA C7 27 2C 7E 5D B0 37 3C 17 DB [23:45:45]Write to MH i2c: 01 00 00 07 23 2A [23:45:45]Write i2c OK [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: 01 [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: 01 07 00 [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 F3 0C 30 [23:45:45]RasterBufferAndPrint [23:45:45]line [23:45:45]line [23:45:45]line [23:45:45]line [23:45:45]line [23:45:45]written 0, free lines is 3324 [23:45:45]MH_Cut [23:45:45]Write to MH i2c: D1 01 00 0E 23 01 03 [23:45:45]Write i2c OK [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: D1 [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: D1 01 00 [23:45:45]MH_I2C_Read... [23:45:45]Read from MH i2c: D1 01 00 0E 23 00 02 [23:45:45]Write to MH i2c: 01 00 00 0F 23 32 [23:45:45]Write i2c OK [23:45:45]MH_I2C_Read... [23:45:45]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 B1 CF 47 00 37 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 A4 F6 00 00 F4 03 04 00 A7 91 16 67 B6 04 01 00 00 3C B5 08 EB 4B 9B CF 1B [23:45:45]CommunicateWithHost err = 0 [23:45:45]CheckOFDResponse [23:45:45]1017 (14) - 77093643461234 [23:45:45]1041 (16) - 0000000000874676 [23:45:45]1040 (4) - 63140 [23:45:45]1012 (4) - 21.10.2024 17:38 [23:45:45]1206 (1) - 0 [23:45:45]OFD Sender: Remove packet 63140 [23:45:45]ProducePacketName [23:45:45]name=ofd_packets/00063140 [23:45:45]NVStorageDeleteData [23:45:45]OFD Sender: No OFD packet to send [23:45:45]*** Cut start [23:45:45]*** Partial cut [23:45:45]*** CUTSNS_PIN = 1 [23:45:45]*** CUTSNS_PIN = 0 [23:45:46]*** Brake cut motor [23:45:46]Read from MH i2c: 01 [23:45:46]MH_I2C_Read... [23:45:46]*** Stop cut motor [23:45:46]*** Cut end [23:45:46]Read from MH i2c: 01 07 00 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 FF 0F 47 [23:45:46]process_action close_receipt done [23:45:46]requested_data is exist [23:45:46]produce_requested_data [23:45:46]requested_item fm.sn is exist - process it [23:45:46]wFMCommunicate request_size=4 [23:45:46]MH_SAM_APDU [23:45:46]CAPDU: 80 11 00 00 [23:45:46]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [23:45:46]Write i2c OK [23:45:46]MH_I2C_Read... [23:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:46]Read from MH i2c: E2 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 17 00 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 06 [23:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:45:46]wFMCommunicate OK [23:45:46]requested_item fd.num is exist - process it [23:45:46]SAM_PROTO_GetFieldsCounters [23:45:46]wFMCommunicate request_size=4 [23:45:46]MH_SAM_APDU [23:45:46]CAPDU: 80 13 00 00 [23:45:46]Write to MH i2c: E2 08 00 11 23 80 13 00 00 00 00 00 00 B0 [23:45:46]Write i2c OK [23:45:46]MH_I2C_Read... [23:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:46]Read from MH i2c: E2 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 62 00 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 62 00 11 23 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 A4 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [23:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 A4 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:46]wFMCommunicate OK [23:45:46]SAM_PROTO_GetFieldsCounters done [23:45:46]requested_item shift.num is exist - process it [23:45:46]requested_item shift.opened is exist - process it [23:45:46]req_shift_opened [23:45:46]FM_GetShiftState [23:45:46]SAM_PROTO_GetShiftState [23:45:46]wFMCommunicate request_size=4 [23:45:46]MH_SAM_APDU [23:45:46]CAPDU: 80 13 01 00 [23:45:46]Write to MH i2c: E2 08 00 12 23 80 13 01 00 00 00 00 00 B2 [23:45:46]Write i2c OK [23:45:46]MH_I2C_Read... [23:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:46]Read from MH i2c: E2 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 0E 00 [23:45:46]MH_I2C_Read... [23:45:46]Read from MH i2c: E2 0E 00 12 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 12 [23:45:46]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:45:46]wFMCommunicate OK [23:45:46]SAM_PROTO_GetShiftState done [23:45:46]FM_GetShiftState done [23:45:46]req_shift_opened done [23:45:46]requested_item shift.open_date is exist - process it [23:45:46]req_shift_open_date [23:45:46]req_shift_open_date done [23:45:46]produce_requested_data done [23:45:46]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63140,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:45:46]process_action_free close_receipt [23:45:46]json_value_free [23:45:46]json_value_free done [23:45:46]process_json_proto returns [23:45:46]Send response to host [23:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63140,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:45:46]free response buf [23:45:46]execute_script done [23:45:46]execute_script returns [23:45:46]free content buf [23:45:46]Sock 9.Close socket [23:45:46]Sock 9.Thread stoped [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:42]accept exits with 10 [23:46:42]New connection [23:46:42]New thread 3067198820 created [23:46:42]Thread 3067055460 joined [23:46:42]Waiting for new connection... [23:46:42] Sock 10.Parse request [23:46:42]Sock 10.Check first char [23:46:42]Sock 10.First char is OK [23:46:42]request: POST /json_proto HTTP/1.0 [23:46:42]Method: POST [23:46:42]URL: /json_proto [23:46:42]Method is POST - this is cgi request [23:46:42]url: /json_proto [23:46:42]query_string will be loaded in cgi processing [23:46:42]execute_cgi json_proto POST (null) [23:46:42]execute_cgi path=json_proto method=POST [23:46:42]POST find Content-Length [23:46:42]Host: 172.17.42.132:8080 [23:46:42]Content-Length: 1187 [23:46:42]Content-Type: application/json [23:46:42] [23:46:42]POST finish read [23:46:42]Found Content-Length = 1187 [23:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47452", "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": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:42]execute_script... [23:46:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47452", "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": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:42]POST & json_proto [23:46:42]process_json_proto [23:46:42]json parsed OK: [23:46:42]protocol is kg_v1.0 [23:46:42]action value=close_receipt [23:46:42]process_action close_receipt [23:46:42]cmd_close_receipt [23:46:42]MH_GetDate [23:46:42]Write to MH i2c: F0 00 00 13 23 25 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 09 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 09 00 13 23 00 E6 E7 16 67 4C DF 56 66 5F [23:46:42]GetLastDocTimeStamp 1729554347 [23:46:42]current date 1729554406 [23:46:42]FM_GetShiftState [23:46:42]SAM_PROTO_GetShiftState [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 13 01 00 [23:46:42]Write to MH i2c: E2 08 00 14 23 80 13 01 00 00 00 00 00 B4 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 14 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 14 [23:46:42]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:46:42]wFMCommunicate OK [23:46:42]SAM_PROTO_GetShiftState done [23:46:42]FM_GetShiftState done [23:46:42]opened in 1729469755 [23:46:42]opened+sec_in_day 1729556155 [23:46:42]quantity*price = 14400 [23:46:42]sum+1 = 14401 [23:46:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 219.00 НСП 1% : 1.93 НДС 12% : 23.25 Наличными: 219.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 138 21.10.2024 23:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63141 ФПД: 85654542931725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234646&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63141&fm=85654542931725&tin=02508201610067®Number=0000000000091619&sum=21900 0 [23:46:43]StoreToDocumentArchive [23:46:43]shift 544 fd 63141 [23:46:43]save to /storage/0544/doc_00063141 [23:46:43]save last doc name /storage/0544/doc_00063141 to /storage/kkm_last_doc_name [23:46:43]save OK [23:46:43]Clear old archive folders... [23:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=508 [23:46:43]tlvbuf is 018333A0 [23:46:43]SAM_PROTO_ClearQueue [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 09 00 00 [23:46:43]Write to MH i2c: E2 08 00 21 23 80 09 00 00 00 00 00 00 B6 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]SAM_PROTO_ClearQueue done [23:46:43]KKMCreateOFDPacket [23:46:43]OFDProtocolAddRootSTLVToBuf [23:46:43]FM_MakeSignedData [23:46:43]FM_MakeSignedData [23:46:43]SAM_PROTO_SignData [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 01 02 [23:46:43]Write to MH i2c: E2 08 00 22 23 80 0D 01 02 00 00 00 00 BE [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]wFMCommunicate request_size=255 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 02 02 FA 03 00 FC 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6A 00 8A 04 08 00 34 36 32 32 36 [23:46:43]Write to MH i2c: E2 02 01 23 23 80 0D 02 02 FA 00 03 00 FC 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6A 00 8A 04 08 00 34 36 32 32 36 00 00 4C [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]wFMCommunicate request_size=255 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 02 02 FA 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 E6 E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A5 F6 [23:46:43]Write to MH i2c: E2 02 01 24 23 80 0D 02 02 FA 00 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 E6 E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A5 F6 00 00 C0 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 03 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [23:46:44]RAPDU: 90 00 [23:46:44]wFMCommunicate OK [23:46:44]wFMCommunicate request_size=17 [23:46:44]MH_SAM_APDU [23:46:44]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 4D E7 00 9A D7 0D [23:46:44]Write to MH i2c: E2 14 00 25 23 80 0D 02 02 0C 00 00 00 35 04 06 00 4D E7 00 9A D7 0D 00 00 CB [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 03 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [23:46:44]RAPDU: 90 00 [23:46:44]wFMCommunicate OK [23:46:44]wFMCommunicate request_size=4 [23:46:44]MH_SAM_APDU [23:46:44]CAPDU: 80 0D 03 02 [23:46:44]Write to MH i2c: E2 08 00 26 23 80 0D 03 02 00 00 00 00 C4 [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 0B 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 0B 00 26 23 00 FD 07 43 90 53 77 2C B7 90 00 49 [23:46:44]RAPDU: FD 07 43 90 53 77 2C B7 90 00 [23:46:44]wFMCommunicate OK [23:46:44]SAM_PROTO_SignData done [23:46:44]FM_MakeSignedData done [23:46:44]CreateOFDProtocolMessage [23:46:44]wFMCommunicate request_size=4 [23:46:44]MH_SAM_APDU [23:46:44]CAPDU: 80 11 00 00 [23:46:44]Write to MH i2c: E2 08 00 27 23 80 11 00 00 00 00 00 00 C4 [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 17 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 17 00 27 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1D [23:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:46:44]wFMCommunicate OK [23:46:44]CreateOFDProtocolMessage done [23:46:44]OFDSenderStorePacket 63141 [23:46:44]StoreOFDPacket docnum=63141 [23:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 02 00 00 7D 85 08 02 52 24 5A 03 01 00 03 00 FC 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 E6 E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A5 F6 00 00 35 04 06 00 4D E7 00 9A D7 0D FD 07 43 90 53 77 2C B7 [23:46:44]CheckFolder [23:46:44]dirname=/storage/ofd_packets [23:46:44]CheckFolder done [23:46:44]ProducePacketName [23:46:44]name=ofd_packets/00063141 [23:46:44]NVStorageSaveData ofd_packets/00063141 [23:46:44]File name is /storage/ofd_packets/00063141 [23:46:44]Write 558 bytes [23:46:44]NVStorageSaveData done [23:46:44]OFDSenderStorePacket done [23:46:44]KKMCreateOFDPacket done [23:46:44]NVStorageSaveData kkm_last_timestamp [23:46:44]File name is /storage/kkm_last_timestamp [23:46:44]Write 4 bytes [23:46:44]NVStorageSaveData done [23:46:44]ExternCall_PrintAddStr [23:46:44]wPrintStart [23:46:44]Write to MH i2c: 01 00 00 28 23 4B [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 07 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [23:46:44]RasterBufferAndPrint [23:46:44]line Счет N : (3)47452 [23:46:44]line ИНН: 02508201610067 [23:46:44]line Контрольно-Кассовый Чек [23:46:44]line ПРОДАЖА [23:46:44]line Товар: 48743570 [23:46:44]line Сигареты Winston XStyle Blue [23:46:44]line 1.000 * 144.00 [23:46:44]line = 144.00 [23:46:44]line НДС 12% НСП 1% [23:46:44]line > о реализуемом товаре [23:46:44]line Товар: 4870002325441 [23:46:44]line Вода ASU пит н.газ лимон ПЭТ 0,5л [23:46:44]line 1.000 * 65.00 [23:46:44]line = 65.00 [23:46:44]line НДС 12% НСП 1% [23:46:44]line > о реализуемом товаре [23:46:44]line Товар: 46226617 [23:46:44]line Mentos ПВ Нежная Мята 6*100*2г [23:46:44]line 1.000 * 10.00 [23:46:44]line = 10.00 [23:46:44]line НДС 12% НСП 1% [23:46:44]line > о реализуемом товаре [23:46:44]line ИТОГО: 219.00 [23:46:44]line НСП 1% : 1.93 [23:46:44]line НДС 12% : 23.25 [23:46:44]line Наличными: 219.00 [23:46:44]line Безнал.: 0.00 [23:46:44]line Место: АЗС № 86 "Партнер Нефть" [23:46:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:46:44]line СНО: Общий режим [23:46:44]line Чек 138 21.10.2024 23:46 [23:46:44]line Смена: 544 ФФД: 1.0 [23:46:44]line ЗНМ: 0300000154 [23:46:44]line РНМ: 0000000000091619 [23:46:44]line Версия ККМ: 001 [23:46:44]line ФМ: 0000000000874676 [23:46:44]line ФД: 63141 [23:46:44]line ФПД: 85654542931725 [23:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234646&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63141&fm=85654542931725&tin=02508201610067®Number=0000000000091619&sum=21900 [23:46:44]line 0 [23:46:44]OFD Sender: Processing packet 63141 [packets to send 232, broken 231] [23:46:44]ProducePacketName [23:46:44]name=ofd_packets/00063141 [23:46:44]OFD Sender: To server: pG, [23:46:44]CommunicateWithHost lk.salyk.kg:30040 [23:46:44]ConnectInit lk.salyk.kg [23:46:44]written 0, free lines is 4095 [23:46:44]Connected sock=9 [23:46: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 10 02 00 00 7D 85 08 02 52 24 5A 03 01 00 03 00 FC 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 E6 E7 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A5 F6 00 00 35 04 06 00 4D E7 00 9A D7 0D FD 07 43 90 53 77 2C B7 [23:46:45]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 AC 47 00 40 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 A5 F6 00 00 F4 03 04 00 E3 91 16 67 B6 04 01 00 00 48 B2 52 0F A5 3A CF BB [23:46:45]CommunicateWithHost err = 0 [23:46:45]CheckOFDResponse [23:46:45]1017 (14) - 77093643461234 [23:46:45]1041 (16) - 0000000000874676 [23:46:45]1040 (4) - 63141 [23:46:45]1012 (4) - 21.10.2024 17:39 [23:46:45]1206 (1) - 0 [23:46:45]OFD Sender: Remove packet 63141 [23:46:45]ProducePacketName [23:46:45]name=ofd_packets/00063141 [23:46:45]NVStorageDeleteData [23:46:45]Write to MH i2c: 01 00 00 5E 23 81 [23:46:45]Write i2c OK [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: 01 [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: 01 07 00 [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: 01 07 00 5E 23 00 00 00 00 00 65 0C F9 [23:46:45]RasterBufferAndPrint [23:46:45]line [23:46:45]line [23:46:45]line [23:46:45]line [23:46:45]line [23:46:45]written 0, free lines is 3182 [23:46:45]MH_Cut [23:46:45]Write to MH i2c: D1 01 00 65 23 01 5A [23:46:45]Write i2c OK [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: D1 [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: D1 01 00 [23:46:45]MH_I2C_Read... [23:46:45]Read from MH i2c: D1 01 00 65 23 00 59 [23:46:45]Write to MH i2c: 01 00 00 66 23 89 [23:46:45]Write i2c OK [23:46:45]MH_I2C_Read... [23:46:45]OFD Sender: No OFD packet to send [23:46:46]*** Cut start [23:46:46]*** Partial cut [23:46:46]*** CUTSNS_PIN = 1 [23:46:46]*** CUTSNS_PIN = 0 [23:46:46]*** Brake cut motor [23:46:46]Read from MH i2c: 01 [23:46:46]MH_I2C_Read... [23:46:46]*** Stop cut motor [23:46:46]Read from MH i2c: 01 07 00 [23:46:46]MH_I2C_Read... [23:46:46]*** Cut end [23:46:46]Read from MH i2c: 01 07 00 66 23 00 00 00 00 00 FF 0F 9E [23:46:46]process_action close_receipt done [23:46:46]requested_data is exist [23:46:46]produce_requested_data [23:46:46]requested_item fm.sn is exist - process it [23:46:46]wFMCommunicate request_size=4 [23:46:46]MH_SAM_APDU [23:46:46]CAPDU: 80 11 00 00 [23:46:46]Write to MH i2c: E2 08 00 67 23 80 11 00 00 00 00 00 00 04 [23:46:46]Write i2c OK [23:46:46]MH_I2C_Read... [23:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:46]Read from MH i2c: E2 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 17 00 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 17 00 67 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5D [23:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:46:46]wFMCommunicate OK [23:46:46]requested_item fd.num is exist - process it [23:46:46]SAM_PROTO_GetFieldsCounters [23:46:46]wFMCommunicate request_size=4 [23:46:46]MH_SAM_APDU [23:46:46]CAPDU: 80 13 00 00 [23:46:46]Write to MH i2c: E2 08 00 68 23 80 13 00 00 00 00 00 00 07 [23:46:46]Write i2c OK [23:46:46]MH_I2C_Read... [23:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:46]Read from MH i2c: E2 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 62 00 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 62 00 68 23 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 A5 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [23:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 A5 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:46]wFMCommunicate OK [23:46:46]SAM_PROTO_GetFieldsCounters done [23:46:46]requested_item shift.num is exist - process it [23:46:46]requested_item shift.opened is exist - process it [23:46:46]req_shift_opened [23:46:46]FM_GetShiftState [23:46:46]SAM_PROTO_GetShiftState [23:46:46]wFMCommunicate request_size=4 [23:46:46]MH_SAM_APDU [23:46:46]CAPDU: 80 13 01 00 [23:46:46]Write to MH i2c: E2 08 00 69 23 80 13 01 00 00 00 00 00 09 [23:46:46]Write i2c OK [23:46:46]MH_I2C_Read... [23:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:46]Read from MH i2c: E2 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 0E 00 [23:46:46]MH_I2C_Read... [23:46:46]Read from MH i2c: E2 0E 00 69 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 69 [23:46:46]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [23:46:46]wFMCommunicate OK [23:46:46]SAM_PROTO_GetShiftState done [23:46:46]FM_GetShiftState done [23:46:46]req_shift_opened done [23:46:46]requested_item shift.open_date is exist - process it [23:46:46]req_shift_open_date [23:46:46]req_shift_open_date done [23:46:46]produce_requested_data done [23:46:46]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63141,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [23:46:46]process_action_free close_receipt [23:46:46]json_value_free [23:46:46]json_value_free done [23:46:46]process_json_proto returns [23:46:46]Send response to host [23:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63141,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [23:46:46]free response buf [23:46:46]execute_script done [23:46:46]execute_script returns [23:46:46]free content buf [23:46:46]Sock 10.Close socket [23:46:46]Sock 10.Thread stoped [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:12]accept exits with 7 [00:04:12]New connection [00:04:12]New thread 3067055460 created [00:04:12]Thread 3067198820 joined [00:04:12]Waiting for new connection... [00:04:12] Sock 7.Parse request [00:04:12]Sock 7.Check first char [00:04:12]Sock 7.First char is OK [00:04:12]request: POST /json_proto HTTP/1.0 [00:04:12]Method: POST [00:04:12]URL: /json_proto [00:04:12]Method is POST - this is cgi request [00:04:12]url: /json_proto [00:04:12]query_string will be loaded in cgi processing [00:04:12]execute_cgi json_proto POST (null) [00:04:12]execute_cgi path=json_proto method=POST [00:04:12]POST find Content-Length [00:04:12]Host: 172.17.42.132:8080 [00:04:12]Content-Length: 655 [00:04:12]Content-Type: application/json [00:04:12] [00:04:12]POST finish read [00:04:12]Found Content-Length = 655 [00:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47453", "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" ] } } [00:04:12]execute_script... [00:04:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47453", "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" ] } } [00:04:12]POST & json_proto [00:04:12]process_json_proto [00:04:12]json parsed OK: [00:04:12]protocol is kg_v1.0 [00:04:12]action value=close_receipt [00:04:12]process_action close_receipt [00:04:12]cmd_close_receipt [00:04:12]MH_GetDate [00:04:12]Write to MH i2c: F0 00 00 6A 23 7C [00:04:12]Write i2c OK [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: F0 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: F0 09 00 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: F0 09 00 6A 23 00 01 EC 16 67 4C DF 56 66 D6 [00:04:12]GetLastDocTimeStamp 1729554406 [00:04:12]current date 1729555457 [00:04:12]FM_GetShiftState [00:04:12]SAM_PROTO_GetShiftState [00:04:12]wFMCommunicate request_size=4 [00:04:12]MH_SAM_APDU [00:04:12]CAPDU: 80 13 01 00 [00:04:12]Write to MH i2c: E2 08 00 6B 23 80 13 01 00 00 00 00 00 0B [00:04:12]Write i2c OK [00:04:12]MH_I2C_Read... [00:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:12]Read from MH i2c: E2 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 0E 00 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 0E 00 6B 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 6B [00:04:12]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:04:12]wFMCommunicate OK [00:04:12]SAM_PROTO_GetShiftState done [00:04:12]FM_GetShiftState done [00:04:12]opened in 1729469755 [00:04:12]opened+sec_in_day 1729556155 [00:04:12]quantity*price = 400 [00:04:12]sum+1 = 401 [00:04:12]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 СНО: Общий режим Чек 139 22.10.2024 00:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63142 ФПД: 106327798313753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000417&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63142&fm=106327798313753&tin=02508201610067®Number=0000000000091619&sum=400 0 [00:04:13]StoreToDocumentArchive [00:04:13]shift 544 fd 63142 [00:04:13]save to /storage/0544/doc_00063142 [00:04:13]save last doc name /storage/0544/doc_00063142 to /storage/kkm_last_doc_name [00:04:13]save OK [00:04:13]Clear old archive folders... [00:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:04:13]tlvbuf is 01854EA0 [00:04:13]SAM_PROTO_ClearQueue [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 09 00 00 [00:04:13]Write to MH i2c: E2 08 00 78 23 80 09 00 00 00 00 00 00 0D [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 78 23 00 90 00 0F [00:04:13]RAPDU: 90 00 [00:04:13]wFMCommunicate OK [00:04:13]SAM_PROTO_ClearQueue done [00:04:13]KKMCreateOFDPacket [00:04:13]OFDProtocolAddRootSTLVToBuf [00:04:13]FM_MakeSignedData [00:04:13]FM_MakeSignedData [00:04:13]SAM_PROTO_SignData [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 0D 01 02 [00:04:13]Write to MH i2c: E2 08 00 79 23 80 0D 01 02 00 00 00 00 15 [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 79 23 00 90 00 10 [00:04:13]RAPDU: 90 00 [00:04:13]wFMCommunicate OK [00:04:13]wFMCommunicate request_size=255 [00:04:13]MH_SAM_APDU [00:04:13]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 8B 00 00 00 F4 03 04 00 01 EC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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:04:13]Write to MH i2c: E2 02 01 7A 23 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 8B 00 00 00 F4 03 04 00 01 EC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 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 94 [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 7A 23 00 90 00 11 [00:04:14]RAPDU: 90 00 [00:04:14]wFMCommunicate OK [00:04:14]wFMCommunicate request_size=37 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A6 F6 00 00 35 04 06 00 60 B4 5E A5 F3 19 [00:04:14]Write to MH i2c: E2 28 00 7B 23 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A6 F6 00 00 35 04 06 00 60 B4 5E A5 F3 19 00 00 34 [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 7B 23 00 90 00 12 [00:04:14]RAPDU: 90 00 [00:04:14]wFMCommunicate OK [00:04:14]wFMCommunicate request_size=4 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 0D 03 02 [00:04:14]Write to MH i2c: E2 08 00 7C 23 80 0D 03 02 00 00 00 00 1A [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 0B 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 0B 00 7C 23 00 3C EF 85 12 F1 23 49 5D 90 00 97 [00:04:14]RAPDU: 3C EF 85 12 F1 23 49 5D 90 00 [00:04:14]wFMCommunicate OK [00:04:14]SAM_PROTO_SignData done [00:04:14]FM_MakeSignedData done [00:04:14]CreateOFDProtocolMessage [00:04:14]wFMCommunicate request_size=4 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 11 00 00 [00:04:14]Write to MH i2c: E2 08 00 7D 23 80 11 00 00 00 00 00 00 1A [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 17 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 17 00 7D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [00:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:04:14]wFMCommunicate OK [00:04:14]CreateOFDProtocolMessage done [00:04:14]OFDSenderStorePacket 63142 [00:04:14]StoreOFDPacket docnum=63142 [00:04:14]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 91 22 22 01 6A 91 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 8B 00 00 00 F4 03 04 00 01 EC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A6 F6 00 00 35 04 06 00 60 B4 5E A5 F3 19 3C EF 85 12 F1 23 49 5D [00:04:14]CheckFolder [00:04:14]dirname=/storage/ofd_packets [00:04:14]CheckFolder done [00:04:14]ProducePacketName [00:04:14]name=ofd_packets/00063142 [00:04:14]NVStorageSaveData ofd_packets/00063142 [00:04:14]File name is /storage/ofd_packets/00063142 [00:04:14]Write 328 bytes [00:04:14]NVStorageSaveData done [00:04:14]OFDSenderStorePacket done [00:04:14]KKMCreateOFDPacket done [00:04:14]NVStorageSaveData kkm_last_timestamp [00:04:14]File name is /storage/kkm_last_timestamp [00:04:14]Write 4 bytes [00:04:14]NVStorageSaveData done [00:04:14]ExternCall_PrintAddStr [00:04:14]wPrintStart [00:04:14]Write to MH i2c: 01 00 00 7E 23 A1 [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 07 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 07 00 7E 23 00 00 00 00 00 FF 0F B6 [00:04:14]RasterBufferAndPrint [00:04:14]line Счет N : (3)47453 [00:04:14]line ИНН: 02508201610067 [00:04:14]line Контрольно-Кассовый Чек [00:04:14]line ПРОДАЖА [00:04:14]line Товар: 2587136579566 [00:04:14]line Пакет Партнер Нефть [00:04:14]line 1.000 * 4.00 [00:04:14]line = 4.00 [00:04:14]line НДС 12% НСП 1% [00:04:14]line > о реализуемом товаре [00:04:14]line ИТОГО: 4.00 [00:04:14]line НСП 1% : 0.03 [00:04:14]line НДС 12% : 0.42 [00:04:14]line Наличными: 4.00 [00:04:14]line Безнал.: 0.00 [00:04:14]line Место: АЗС № 86 "Партнер Нефть" [00:04:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:04:14]line СНО: Общий режим [00:04:14]line Чек 139 22.10.2024 00:04 [00:04:14]line Смена: 544 ФФД: 1.0 [00:04:14]line ЗНМ: 0300000154 [00:04:14]line РНМ: 0000000000091619 [00:04:14]line Версия ККМ: 001 [00:04:14]line ФМ: 0000000000874676 [00:04:14]line ФД: 63142 [00:04:14]line ФПД: 106327798313753 [00:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000417&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63142&fm=106327798313753&tin=02508201610067®Number=0000000000091619&sum=400 [00:04:14]line 0 [00:04:14]OFD Sender: Processing packet 63142 [packets to send 232, broken 231] [00:04:14]ProducePacketName [00:04:14]name=ofd_packets/00063142 [00:04:14]OFD Sender: To server: pG, [00:04:14]CommunicateWithHost lk.salyk.kg:30040 [00:04:14]ConnectInit lk.salyk.kg [00:04:14]written 0, free lines is 4095 [00:04:14]Connected sock=10 [00:04: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 2A 01 00 00 91 22 22 01 6A 91 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 8B 00 00 00 F4 03 04 00 01 EC 16 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A6 F6 00 00 35 04 06 00 60 B4 5E A5 F3 19 3C EF 85 12 F1 23 49 5D [00:04:15]Write to MH i2c: 01 00 00 A6 23 C9 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: 01 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: 01 07 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: 01 07 00 A6 23 00 00 00 00 00 10 0D ED [00:04:15]RasterBufferAndPrint [00:04:15]line [00:04:15]line [00:04:15]line [00:04:15]line [00:04:15]line [00:04:15]written 0, free lines is 3350 [00:04:15]MH_Cut [00:04:15]Write to MH i2c: D1 01 00 AD 23 01 A2 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: D1 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: D1 01 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: D1 01 00 AD 23 00 A1 [00:04:15]Write to MH i2c: 01 00 00 AE 23 D1 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]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 56 47 00 6D 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 A6 F6 00 00 F4 03 04 00 FD 95 16 67 B6 04 01 00 00 42 00 0E AB 06 81 E9 51 [00:04:15]CommunicateWithHost err = 0 [00:04:15]CheckOFDResponse [00:04:15]1017 (14) - 77093643461234 [00:04:15]1041 (16) - 0000000000874676 [00:04:15]1040 (4) - 63142 [00:04:15]1012 (4) - 21.10.2024 17:57 [00:04:15]1206 (1) - 0 [00:04:15]OFD Sender: Remove packet 63142 [00:04:15]ProducePacketName [00:04:15]name=ofd_packets/00063142 [00:04:15]NVStorageDeleteData [00:04:15]OFD Sender: No OFD packet to send [00:04:15]*** Cut start [00:04:15]*** Partial cut [00:04:15]*** CUTSNS_PIN = 1 [00:04:15]*** CUTSNS_PIN = 0 [00:04:16]*** Brake cut motor [00:04:16]Read from MH i2c: 01 [00:04:16]MH_I2C_Read... [00:04:16]*** Stop cut motor [00:04:16]*** Cut end [00:04:16]Read from MH i2c: 01 07 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: 01 07 00 AE 23 00 00 00 00 00 FF 0F E6 [00:04:16]process_action close_receipt done [00:04:16]requested_data is exist [00:04:16]produce_requested_data [00:04:16]requested_item fm.sn is exist - process it [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 11 00 00 [00:04:16]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 17 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A5 [00:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:04:16]wFMCommunicate OK [00:04:16]requested_item fd.num is exist - process it [00:04:16]SAM_PROTO_GetFieldsCounters [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 13 00 00 [00:04:16]Write to MH i2c: E2 08 00 B0 23 80 13 00 00 00 00 00 00 4F [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 62 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 62 00 B0 23 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [00:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:16]wFMCommunicate OK [00:04:16]SAM_PROTO_GetFieldsCounters done [00:04:16]requested_item shift.num is exist - process it [00:04:16]requested_item shift.opened is exist - process it [00:04:16]req_shift_opened [00:04:16]FM_GetShiftState [00:04:16]SAM_PROTO_GetShiftState [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 13 01 00 [00:04:16]Write to MH i2c: E2 08 00 B1 23 80 13 01 00 00 00 00 00 51 [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 0E 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 0E 00 B1 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 B1 [00:04:16]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:04:16]wFMCommunicate OK [00:04:16]SAM_PROTO_GetShiftState done [00:04:16]FM_GetShiftState done [00:04:16]req_shift_opened done [00:04:16]requested_item shift.open_date is exist - process it [00:04:16]req_shift_open_date [00:04:16]req_shift_open_date done [00:04:16]produce_requested_data done [00:04:16]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [00:04:16]process_action_free close_receipt [00:04:16]json_value_free [00:04:16]json_value_free done [00:04:16]process_json_proto returns [00:04:16]Send response to host [00:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [00:04:16]free response buf [00:04:16]execute_script done [00:04:16]execute_script returns [00:04:16]free content buf [00:04:16]Sock 7.Close socket [00:04:16]Sock 7.Thread stoped [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:02]accept exits with 9 [00:06:02]New connection [00:06:02]New thread 3067198820 created [00:06:02]Thread 3067055460 joined [00:06:02]Waiting for new connection... [00:06:02] Sock 9.Parse request [00:06:02]Sock 9.Check first char [00:06:02]Sock 9.First char is OK [00:06:02]request: POST /json_proto HTTP/1.0 [00:06:02]Method: POST [00:06:02]URL: /json_proto [00:06:02]Method is POST - this is cgi request [00:06:02]url: /json_proto [00:06:02]query_string will be loaded in cgi processing [00:06:02]execute_cgi json_proto POST (null) [00:06:02]execute_cgi path=json_proto method=POST [00:06:02]POST find Content-Length [00:06:02]Host: 172.17.42.132:8080 [00:06:02]Content-Length: 215 [00:06:02]Content-Type: application/json [00:06:02] [00:06:02]POST finish read [00:06:02]Found Content-Length = 215 [00:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:02]execute_script... [00:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:02]POST & json_proto [00:06:02]process_json_proto [00:06:02]json parsed OK: [00:06:02]protocol is kg_v1.0 [00:06:02]action value=get_value [00:06:02]process_action get_value [00:06:02]cmd_get_value [00:06:02]process_action get_value done [00:06:02]requested_data is exist [00:06:02]produce_requested_data [00:06:02]requested_item kkm.sn is exist - process it [00:06:02]requested_item kkm.ver is exist - process it [00:06:02]requested_item fm.sn is exist - process it [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 11 00 00 [00:06:02]Write to MH i2c: E2 08 00 B2 23 80 11 00 00 00 00 00 00 4F [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 17 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 17 00 B2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A8 [00: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 [00:06:02]wFMCommunicate OK [00:06:02]requested_item fd.num is exist - process it [00:06:02]SAM_PROTO_GetFieldsCounters [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 00 00 [00:06:02]Write to MH i2c: E2 08 00 B3 23 80 13 00 00 00 00 00 00 52 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 62 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 62 00 B3 23 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00: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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetFieldsCounters done [00:06:02]requested_item shift.num is exist - process it [00:06:02]requested_item shift.opened is exist - process it [00:06:02]req_shift_opened [00:06:02]FM_GetShiftState [00:06:02]SAM_PROTO_GetShiftState [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 01 00 [00:06:02]Write to MH i2c: E2 08 00 B4 23 80 13 01 00 00 00 00 00 54 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 B4 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 B4 [00:06:02]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetShiftState done [00:06:02]FM_GetShiftState done [00:06:02]req_shift_opened done [00:06:02]requested_item shift.open_date is exist - process it [00:06:02]req_shift_open_date [00:06:02]req_shift_open_date done [00:06:02]produce_requested_data done [00:06:02]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [00:06:02]process_action_free get_value [00:06:02]json_value_free [00:06:02]json_value_free done [00:06:02]process_json_proto returns [00:06:02]Send response to host [00:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [00:06:02]free response buf [00:06:02]execute_script done [00:06:02]execute_script returns [00:06:02]free content buf [00:06:02]Sock 9.Close socket [00:06:02]Sock 9.Thread stoped [00:06:02]accept exits with 7 [00:06:02]New connection [00:06:02]New thread 3067055460 created [00:06:02]Thread 3067198820 joined [00:06:02]Waiting for new connection... [00:06:02] Sock 7.Parse request [00:06:02]Sock 7.Check first char [00:06:02]Sock 7.First char is OK [00:06:02]request: POST /json_proto HTTP/1.0 [00:06:02]Method: POST [00:06:02]URL: /json_proto [00:06:02]Method is POST - this is cgi request [00:06:02]url: /json_proto [00:06:02]query_string will be loaded in cgi processing [00:06:02]execute_cgi json_proto POST (null) [00:06:02]execute_cgi path=json_proto method=POST [00:06:02]POST find Content-Length [00:06:02]Host: 172.17.42.132:8080 [00:06:02]Content-Length: 331 [00:06:02]Content-Type: application/json [00:06:02] [00:06:02]POST finish read [00:06:02]Found Content-Length = 331 [00:06: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" ] } } [00:06:02]execute_script... [00:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:03]POST & json_proto [00:06:03]process_json_proto [00:06:03]json parsed OK: [00:06:03]protocol is kg_v1.0 [00:06:03]action value=get_value [00:06:03]process_action get_value [00:06:03]cmd_get_value [00:06:03]process_action get_value done [00:06:03]requested_data is exist [00:06:03]produce_requested_data [00:06:03]requested_item fm.sale.total is exist - process it [00:06:03]SAM_PROTO_GetFMData [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 13 03 00 [00:06:03]Write to MH i2c: E2 08 00 B5 23 80 13 03 00 00 00 00 00 57 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 B5 23 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 BE [00:06:03]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 B6 23 80 17 00 00 00 00 00 00 59 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 B6 23 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 30 [00:06:03]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 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 B7 23 80 17 00 00 00 00 00 00 5A [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 B7 23 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 08 [00:06:04]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 [00:06:04]wFMCommunicate OK [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 17 00 00 [00:06:04]Write to MH i2c: E2 08 00 B8 23 80 17 00 00 00 00 00 00 5B [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 B8 23 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [00:06:04]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 [00:06:04]wFMCommunicate OK [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 17 00 00 [00:06:04]Write to MH i2c: E2 08 00 B9 23 80 17 00 00 00 00 00 00 5C [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 DF 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 DF 00 B9 23 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 3C [00:06:04]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 [00:06:04]wFMCommunicate OK [00:06:04]SAM_PROTO_GetFMData done [00:06:04]requested_item fm.sale_refund.total is exist - process it [00:06:04]requested_item fm.buy.total is exist - process it [00:06:04]requested_item shift.sale.total is exist - process it [00:06:04]SAM_PROTO_GetShiftData [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 13 02 00 [00:06:04]Write to MH i2c: E2 08 00 BA 23 80 13 02 00 00 00 00 00 5B [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 BA 23 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 64 [00:06:05]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 BB 23 80 17 00 00 00 00 00 00 5E [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 BB 23 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 80 [00:06:05]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 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 BC 23 80 17 00 00 00 00 00 00 5F [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 BC 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 16 [00:06:05]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 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 BD 23 80 17 00 00 00 00 00 00 60 [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]OFD Sender: No OFD packet to send [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 BD 23 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 D2 [00:06: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 [00:06:06]wFMCommunicate OK [00:06:06]wFMCommunicate request_size=4 [00:06:06]MH_SAM_APDU [00:06:06]CAPDU: 80 17 00 00 [00:06:06]Write to MH i2c: E2 08 00 BE 23 80 17 00 00 00 00 00 00 61 [00:06:06]Write i2c OK [00:06:06]MH_I2C_Read... [00:06:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:06]Read from MH i2c: E2 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 CB 00 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 CB 00 BE 23 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 4A [00:06:06]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 [00:06:06]wFMCommunicate OK [00:06:06]SAM_PROTO_GetShiftData done [00:06:06]requested_item shift.sale.total_cash is exist - process it [00:06:06]requested_item shift.sale_refund.total is exist - process it [00:06:06]requested_item shift.sale_refund.total_cash is exist - process it [00:06:06]requested_item shift.buy.total is exist - process it [00:06:06]requested_item shift.buy.total_cash is exist - process it [00:06:06]produce_requested_data done [00:06:06]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:06]process_action_free get_value [00:06:06]json_value_free [00:06:06]json_value_free done [00:06:06]process_json_proto returns [00:06:06]Send response to host [00:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:06]free response buf [00:06:06]execute_script done [00:06:06]execute_script returns [00:06:06]free content buf [00:06:06]Sock 7.Close socket [00:06:06]Sock 7.Thread stoped [00:06:06]accept exits with 9 [00:06:06]New connection [00:06:06]New thread 3067198820 created [00:06:06]Thread 3067055460 joined [00:06:06]Waiting for new connection... [00:06:06] Sock 9.Parse request [00:06:06]Sock 9.Check first char [00:06:06]Sock 9.First char is OK [00:06:06]request: POST /json_proto HTTP/1.0 [00:06:06]Method: POST [00:06:06]URL: /json_proto [00:06:06]Method is POST - this is cgi request [00:06:06]url: /json_proto [00:06:06]query_string will be loaded in cgi processing [00:06:06]execute_cgi json_proto POST (null) [00:06:06]execute_cgi path=json_proto method=POST [00:06:06]POST find Content-Length [00:06:06]Host: 172.17.42.132:8080 [00:06:06]Content-Length: 331 [00:06:06]Content-Type: application/json [00:06:06] [00:06:06]POST finish read [00:06:06]Found Content-Length = 331 [00:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:06]execute_script... [00:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:06]POST & json_proto [00:06:06]process_json_proto [00:06:06]json parsed OK: [00:06:06]protocol is kg_v1.0 [00:06:06]action value=get_value [00:06:06]process_action get_value [00:06:06]cmd_get_value [00:06:06]process_action get_value done [00:06:06]requested_data is exist [00:06:06]produce_requested_data [00:06:06]requested_item fm.sale.total is exist - process it [00:06:06]SAM_PROTO_GetFMData [00:06:06]wFMCommunicate request_size=4 [00:06:06]MH_SAM_APDU [00:06:06]CAPDU: 80 13 03 00 [00:06:06]Write to MH i2c: E2 08 00 BF 23 80 13 03 00 00 00 00 00 61 [00:06:06]Write i2c OK [00:06:06]MH_I2C_Read... [00:06:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:06]Read from MH i2c: E2 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 BF 23 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 C8 [00:06:06]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:06]wFMCommunicate OK [00:06:06]wFMCommunicate request_size=4 [00:06:06]MH_SAM_APDU [00:06:06]CAPDU: 80 17 00 00 [00:06:06]Write to MH i2c: E2 08 00 C0 23 80 17 00 00 00 00 00 00 63 [00:06:06]Write i2c OK [00:06:06]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 C0 23 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 3A [00:06:07]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 [00:06:07]wFMCommunicate OK [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 17 00 00 [00:06:07]Write to MH i2c: E2 08 00 C1 23 80 17 00 00 00 00 00 00 64 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 C1 23 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 12 [00:06:07]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 [00:06:07]wFMCommunicate OK [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 17 00 00 [00:06:07]Write to MH i2c: E2 08 00 C2 23 80 17 00 00 00 00 00 00 65 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 C2 23 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:06:07]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 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 C3 23 80 17 00 00 00 00 00 00 66 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 DF 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 DF 00 C3 23 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 46 [00:06:08]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 [00:06:08]wFMCommunicate OK [00:06:08]SAM_PROTO_GetFMData done [00:06:08]requested_item fm.sale_refund.total is exist - process it [00:06:08]requested_item fm.buy.total is exist - process it [00:06:08]requested_item shift.sale.total is exist - process it [00:06:08]SAM_PROTO_GetShiftData [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 13 02 00 [00:06:08]Write to MH i2c: E2 08 00 C4 23 80 13 02 00 00 00 00 00 65 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 C4 23 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6E [00:06:08]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 C5 23 80 17 00 00 00 00 00 00 68 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 C5 23 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 8A [00:06:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:06:09]wFMCommunicate OK [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 17 00 00 [00:06:09]Write to MH i2c: E2 08 00 C6 23 80 17 00 00 00 00 00 00 69 [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 C6 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [00:06:09]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:06:09]wFMCommunicate OK [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 17 00 00 [00:06:09]Write to MH i2c: E2 08 00 C7 23 80 17 00 00 00 00 00 00 6A [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 C7 23 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 DC [00:06:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 C8 23 80 17 00 00 00 00 00 00 6B [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 CB 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 CB 00 C8 23 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 54 [00:06:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetShiftData done [00:06:10]requested_item shift.sale.total_cash is exist - process it [00:06:10]requested_item shift.sale_refund.total is exist - process it [00:06:10]requested_item shift.sale_refund.total_cash is exist - process it [00:06:10]requested_item shift.buy.total is exist - process it [00:06:10]requested_item shift.buy.total_cash is exist - process it [00:06:10]produce_requested_data done [00:06:10]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:10]process_action_free get_value [00:06:10]json_value_free [00:06:10]json_value_free done [00:06:10]process_json_proto returns [00:06:10]Send response to host [00:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:10]free response buf [00:06:10]execute_script done [00:06:10]execute_script returns [00:06:10]free content buf [00:06:10]Sock 9.Close socket [00:06:10]Sock 9.Thread stoped [00:06:10]accept exits with 7 [00:06:10]New connection [00:06:10]New thread 3067055460 created [00:06:10]Thread 3067198820 joined [00:06:10]Waiting for new connection... [00:06:10] Sock 7.Parse request [00:06:10]Sock 7.Check first char [00:06:10]Sock 7.First char is OK [00:06:10]request: POST /json_proto HTTP/1.0 [00:06:10]Method: POST [00:06:10]URL: /json_proto [00:06:10]Method is POST - this is cgi request [00:06:10]url: /json_proto [00:06:10]query_string will be loaded in cgi processing [00:06:10]execute_cgi json_proto POST (null) [00:06:10]execute_cgi path=json_proto method=POST [00:06:10]POST find Content-Length [00:06:10]Host: 172.17.42.132:8080 [00:06:10]Content-Length: 257 [00:06:10]Content-Type: application/json [00:06:10] [00:06:10]POST finish read [00:06:10]Found Content-Length = 257 [00:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:10]execute_script... [00:06:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:10]POST & json_proto [00:06:10]process_json_proto [00:06:10]json parsed OK: [00:06:10]protocol is kg_v1.0 [00:06:10]action value=x_report [00:06:10]process_action x_report [00:06:10]cmd_x_report [00:06:10]MH_GetDate [00:06:10]Write to MH i2c: F0 00 00 C9 23 DB [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 09 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 09 00 C9 23 00 77 EC 16 67 4C DF 56 66 AB [00:06:10]GetLastDocTimeStamp 1729555457 [00:06:10]current date 1729555575 [00:06:10]FM_GetShiftState [00:06:10]SAM_PROTO_GetShiftState [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 01 00 [00:06:10]Write to MH i2c: E2 08 00 CA 23 80 13 01 00 00 00 00 00 6A [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 CA 23 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 CA [00:06:10]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetShiftState done [00:06:10]FM_GetShiftState done [00:06:10]KKMCreateXReportDocument [00:06:10]Load OK [00:06:10]Malloc new data [00:06:10]MH_GetDate [00:06:10]Write to MH i2c: F0 00 00 CB 23 DD [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 09 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: F0 09 00 CB 23 00 77 EC 16 67 4C DF 56 66 AD [00:06:10]Malloc new data [00:06:10]Malloc new data [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 11 00 00 [00:06:10]Write to MH i2c: E2 08 00 CC 23 80 11 00 00 00 00 00 00 69 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 CC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C2 [00:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetFieldsCounters [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 00 00 [00:06:10]Write to MH i2c: E2 08 00 CD 23 80 13 00 00 00 00 00 00 6C [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 CD 23 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:06: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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetFieldsCounters done [00:06:10]Malloc new data [00:06:10]Malloc new data [00:06:10]Malloc new data [00:06:10]KKMCreateXReportDocument OK [00:06:10]KKMSetXReportData OK [00:06:10]KKMPrepareXReportFMData [00:06:10]SAM_PROTO_GetShiftData [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 02 00 [00:06:10]Write to MH i2c: E2 08 00 CE 23 80 13 02 00 00 00 00 00 6F [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]OFD Sender: No OFD packet to send [00:06:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 CE 23 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 78 [00:06:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 CF 23 80 17 00 00 00 00 00 00 72 [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 CF 23 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 94 [00:06:11]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 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 D0 23 80 17 00 00 00 00 00 00 73 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 D0 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A [00:06:12]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 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 D1 23 80 17 00 00 00 00 00 00 74 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 D1 23 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 E6 [00:06:12]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 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 D2 23 80 17 00 00 00 00 00 00 75 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 CB 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 CB 00 D2 23 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 5E [00:06:13]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 [00:06:13]wFMCommunicate OK [00:06:13]SAM_PROTO_GetShiftData done [00:06:13]1194 (1194) - счетчики итогов смены [00:06:13] 1134 (4) - 139 - количество чеков со всеми признаками расчетов [00:06:13] 1129 (155) - счетчики операций «приход» [00:06:13] 1135 (4) - 139 - количество чеков по признаку расчетов [00:06:13] 1201 (3) - 31970.62 - общая итоговая сумма в чеках [00:06:13] 1136 (3) - 26326.00 - итоговая сумма в чеках наличными [00:06:13] 1138 (3) - 5644.62 - итоговая сумма в чеках безналичными [00:06:13] 1024 (122) - суммы налогов [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 0% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1006 (12) - суммы НДС [00:06:13] 1010 (1) - 12% - код ставки НДС [00:06:13] 1011 (3) - 3394.85 - сумма НДС по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (11) - суммы НСП [00:06:13] 1014 (1) - 1% - код ставки НСП [00:06:13] 1015 (2) - 282.81 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 2% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 3% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 5% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1130 (141) - счетчики операций «возврат прихода» [00:06:13] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:13] 1024 (117) - суммы налогов [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 0% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 12% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 2% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 3% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 5% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1131 (141) - счетчики операций «расход» [00:06:13] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:13] 1024 (117) - суммы налогов [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 0% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 12% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 2% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 3% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 5% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1132 (141) - счетчики операций «возврат расхода» [00:06:13] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:13] 1024 (117) - суммы налогов [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 0% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1006 (9) - суммы НДС [00:06:13] 1010 (1) - 12% - код ставки НДС [00:06:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 2% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 3% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 5% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 0,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1007 (9) - суммы НСП [00:06:13] 1014 (1) - 1,50% - код ставки НСП [00:06:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:13] 1133 (588) - - счетчики коррекции - не используются [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1194 (04AA) [00:06:13]Load OK [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1134 (046E) [00:06:13]Malloc new data [00:06:13]Processing tag 1129 (0469) [00:06:13]Load OK [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1135 (046F) [00:06:13]Malloc new data [00:06:13]Processing tag 1201 (04B1) [00:06:13]Malloc new data [00:06:13]Processing tag 1136 (0470) [00:06:13]Malloc new data [00:06:13]Processing tag 1138 (0472) [00:06:13]Malloc new data [00:06:13]Processing tag 1024 (0400) [00:06:13]Load OK [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1006 (03EE) [00:06:13]Load OK [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1010 (03F2) [00:06:13]Malloc new data [00:06:13]Processing tag 1011 (03F3) [00:06:13]Malloc new data [00:06:13]SetTLVBufToDocument err=0 [00:06:13]Processing tag 1006 (03EE) [00:06:13]Load OK [00:06:13]SetTLVBufToDocument [00:06:13]Processing tag 1010 (03F2) [00:06:13]Malloc new data [00:06:13]Processing tag 1011 (03F3) [00:06:13]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1130 (046A) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1135 (046F) [00:06:14]Malloc new data [00:06:14]Processing tag 1201 (04B1) [00:06:14]Malloc new data [00:06:14]Processing tag 1136 (0470) [00:06:14]Malloc new data [00:06:14]Processing tag 1138 (0472) [00:06:14]Malloc new data [00:06:14]Processing tag 1024 (0400) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1131 (046B) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1135 (046F) [00:06:14]Malloc new data [00:06:14]Processing tag 1201 (04B1) [00:06:14]Malloc new data [00:06:14]Processing tag 1136 (0470) [00:06:14]Malloc new data [00:06:14]Processing tag 1138 (0472) [00:06:14]Malloc new data [00:06:14]Processing tag 1024 (0400) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1132 (046C) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1135 (046F) [00:06:14]Malloc new data [00:06:14]Processing tag 1201 (04B1) [00:06:14]Malloc new data [00:06:14]Processing tag 1136 (0470) [00:06:14]Malloc new data [00:06:14]Processing tag 1138 (0472) [00:06:14]Malloc new data [00:06:14]Processing tag 1024 (0400) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1006 (03EE) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1010 (03F2) [00:06:14]Malloc new data [00:06:14]Processing tag 1011 (03F3) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1007 (03EF) [00:06:14]Load OK [00:06:14]SetTLVBufToDocument [00:06:14]Processing tag 1014 (03F6) [00:06:14]Malloc new data [00:06:14]Processing tag 1015 (03F7) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Processing tag 1133 (046D) [00:06:14]Malloc new data [00:06:14]SetTLVBufToDocument err=0 [00:06:14]SetTLVBufToDocument err=0 [00:06:14]Malloc new data [00:06:14]SAM_PROTO_GetFMData [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 13 03 00 [00:06:14]Write to MH i2c: E2 08 00 D3 23 80 13 03 00 00 00 00 00 75 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 D3 23 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 DC [00:06:15]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 17 00 00 [00:06:15]Write to MH i2c: E2 08 00 D4 23 80 17 00 00 00 00 00 00 77 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 D4 23 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 4E [00:06:15]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 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 17 00 00 [00:06:15]Write to MH i2c: E2 08 00 D5 23 80 17 00 00 00 00 00 00 78 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 FD 00 D5 23 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 26 [00:06:16]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 OFD Sender: No OFD packet to send [00:06:16]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 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 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 17 00 00 [00:06:16]Write to MH i2c: E2 08 00 D6 23 80 17 00 00 00 00 00 00 79 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 FD 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 FD 00 D6 23 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [00:06:16]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 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 17 00 00 [00:06:16]Write to MH i2c: E2 08 00 D7 23 80 17 00 00 00 00 00 00 7A [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 DF 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 DF 00 D7 23 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 5A [00:06:17]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 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_GetFMData done [00:06:17]FM_GetFMData:85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 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 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:17]oper:6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:18]total:68 99 AE 93 [00:06:18]Malloc new data [00:06:18]oper: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 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 [00:06:18]total:04 5C BD [00:06:18]Malloc new data [00:06:18]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:18]total: [00:06:18]Malloc new data [00:06:18]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:18]total: [00:06:18]Malloc new data [00:06:18]KKMPrepareXReportFMData err=0 [00:06:18]Х отчет ИНН: 02508201610067 Кассир: Арыкбаев Н. 22.10.2024 00:06 Смена: 522 РНМ: 0000000000091619 ЗНМ: 0300000154 СНО: Общий режим Всего чеков: 139 ИТОГИ ПРИХОД Чеков: 139 Общий итог: 31970.62 Итого наличными: 26326.00 Итого безнал.: 5644.62 НДС 0% : 0.00 НДС 12% : 3394.85 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 282.81 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26326.00 НС Приход: 24776932.88 НС Возвр.Прихода: 124098.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874676 [00:06:18]StoreToDocumentArchive [00:06:18]MH_GetDate [00:06:18]Write to MH i2c: F0 00 00 D8 23 EA [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: F0 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: F0 09 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: F0 09 00 D8 23 00 7F EC 16 67 4C DF 56 66 C2 [00:06:18]shift 522 fd 1729555583 [00:06:18]Create dir for shift 0522 [00:06:18]save to /storage/0522/doc_1729555583 [00:06:18]save last doc name /storage/0522/doc_1729555583 to /storage/kkm_last_doc_name [00:06:18]save OK [00:06:18]Clear old archive folders... [00:06:18]NVStorageSaveData kkm_last_timestamp [00:06:18]File name is /storage/kkm_last_timestamp [00:06:18]Write 4 bytes [00:06:18]NVStorageSaveData done [00:06:18]ExternCall_PrintAddStr [00:06:18]wPrintStart [00:06:18]Write to MH i2c: 01 00 00 D9 23 FC [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: 01 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: 01 07 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 FF 0F 11 [00:06:18]RasterBufferAndPrint [00:06:18]line Х отчет [00:06:18]line ИНН: 02508201610067 [00:06:18]line Кассир: Арыкбаев Н. [00:06:18]line 22.10.2024 00:06 [00:06:18]line Смена: 522 [00:06:18]line РНМ: 0000000000091619 [00:06:18]line ЗНМ: 0300000154 [00:06:18]line СНО: Общий режим [00:06:18]line Всего чеков: 139 [00:06:18]line ИТОГИ ПРИХОД [00:06:18]line Чеков: 139 [00:06:18]line Общий итог: 31970.62 [00:06:18]line Итого наличными: 26326.00 [00:06:18]line Итого безнал.: 5644.62 [00:06:18]line НДС 0% : 0.00 [00:06:18]line НДС 12% : 3394.85 [00:06:18]line НСП 0% : 0.00 [00:06:18]line НСП 1,50% : 0.00 [00:06:18]line НСП 0,50% : 0.00 [00:06:18]line НСП 5% : 0.00 [00:06:18]line НСП 3% : 0.00 [00:06:18]line НСП 2% : 0.00 [00:06:18]line НСП 1% : 282.81 [00:06:18]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:18]line Чеков: 0 [00:06:18]line Общий итог: 0.00 [00:06:18]line Итого наличными: 0.00 [00:06:18]line Итого безнал.: 0.00 [00:06:18]line НДС 0% : 0.00 [00:06:18]line НДС 12% : 0.00 [00:06:18]line НСП 0% : 0.00 [00:06:18]line НСП 1,50% : 0.00 [00:06:18]line НСП 0,50% : 0.00 [00:06:18]line НСП 5% : 0.00 [00:06:18]line НСП 3% : 0.00 [00:06:18]line НСП 2% : 0.00 [00:06:18]line НСП 1% : 0.00 [00:06:18]line ИТОГИ РАСХОД [00:06:18]line Чеков: 0 [00:06:18]line Общий итог: 0.00 [00:06:18]line Итого наличными: 0.00 [00:06:18]line Итого безнал.: 0.00 [00:06:18]line НДС 0% : 0.00 [00:06:18]line НДС 12% : 0.00 [00:06:18]line НСП 0% : 0.00 [00:06:18]line НСП 1,50% : 0.00 [00:06:18]line НСП 0,50% : 0.00 [00:06:18]line НСП 5% : 0.00 [00:06:18]line НСП 3% : 0.00 [00:06:18]line НСП 2% : 0.00 [00:06:18]line НСП 1% : 0.00 [00:06:18]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:18]line Чеков: 0 [00:06:18]line Общий итог: 0.00 [00:06:18]line Итого наличными: 0.00 [00:06:18]line Итого безнал.: 0.00 [00:06:18]line НДС 0% : 0.00 [00:06:18]line НДС 12% : 0.00 [00:06:18]line НСП 0% : 0.00 [00:06:18]line НСП 1,50% : 0.00 [00:06:18]line НСП 0,50% : 0.00 [00:06:18]line НСП 5% : 0.00 [00:06:18]line НСП 3% : 0.00 [00:06:18]line НСП 2% : 0.00 [00:06:18]line НСП 1% : 0.00 [00:06:18]line Сумма внесений: 0.00 [00:06:18]line Сумма выплат: 0.00 [00:06:18]line Нал. в кассе: 26326.00 [00:06:18]line НС Приход: 24776932.88 [00:06:18]line НС Возвр.Прихода: 124098.60 [00:06:18]line НС Расход: 0.00 [00:06:18]line НС Возвр.Расхода: 0.00 [00:06:18]line ФМ: 0000000000874676 [00:06:18]written 0, free lines is 4095 [00:06:19]Write to MH i2c: 01 00 00 24 24 48 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: 01 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: 01 07 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 07 0B 61 [00:06:19]RasterBufferAndPrint [00:06:19]line [00:06:19]line [00:06:19]line [00:06:19]line [00:06:19]line [00:06:19]written 0, free lines is 2859 [00:06:19]MH_Cut [00:06:19]Write to MH i2c: D1 01 00 2B 24 01 21 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: D1 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: D1 01 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: D1 01 00 2B 24 00 20 [00:06:19]Write to MH i2c: 01 00 00 2C 24 50 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:20]*** Cut start [00:06:20]*** Partial cut [00:06:20]*** CUTSNS_PIN = 1 [00:06:20]*** CUTSNS_PIN = 0 [00:06:20]*** Brake cut motor [00:06:20]Read from MH i2c: 01 [00:06:20]MH_I2C_Read... [00:06:20]*** Stop cut motor [00:06:20]*** Cut end [00:06:20]Read from MH i2c: 01 07 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: 01 07 00 2C 24 00 00 00 00 00 FF 0F 65 [00:06:20]process_action x_report done [00:06:20]requested_data is exist [00:06:20]produce_requested_data [00:06:20]requested_item fd.num is exist - process it [00:06:20]SAM_PROTO_GetFieldsCounters [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 00 00 [00:06:20]Write to MH i2c: E2 08 00 2D 24 80 13 00 00 00 00 00 00 CD [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 62 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 62 00 2D 24 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:06: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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_GetFieldsCounters done [00:06:21]requested_item shift.num is exist - process it [00:06:21]requested_item shift.opened is exist - process it [00:06:21]req_shift_opened [00:06:21]FM_GetShiftState [00:06:21]SAM_PROTO_GetShiftState [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 13 01 00 [00:06:21]Write to MH i2c: E2 08 00 2E 24 80 13 01 00 00 00 00 00 CF [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 0E 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 0E 00 2E 24 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 2F [00:06:21]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_GetShiftState done [00:06:21]FM_GetShiftState done [00:06:21]req_shift_opened done [00:06:21]requested_item shift.open_date is exist - process it [00:06:21]req_shift_open_date [00:06:21]req_shift_open_date done [00:06:21]produce_requested_data done [00:06:21]produce_requested_data return {"fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [00:06:21]process_action_free x_report [00:06:21]json_value_free [00:06:21]json_value_free done [00:06:21]process_json_proto returns [00:06:21]Send response to host [00:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [00:06:21]free response buf [00:06:21]execute_script done [00:06:21]execute_script returns [00:06:21]free content buf [00:06:21]Sock 7.Close socket [00:06:21]Sock 7.Thread stoped [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:55]accept exits with 9 [00:06:55]New connection [00:06:55]New thread 3067198820 created [00:06:55]Thread 3067055460 joined [00:06:55]Waiting for new connection... [00:06:55] Sock 9.Parse request [00:06:55]Sock 9.Check first char [00:06:55]Sock 9.First char is OK [00:06:55]request: POST /json_proto HTTP/1.0 [00:06:55]Method: POST [00:06:55]URL: /json_proto [00:06:55]Method is POST - this is cgi request [00:06:55]url: /json_proto [00:06:55]query_string will be loaded in cgi processing [00:06:55]execute_cgi json_proto POST (null) [00:06:55]execute_cgi path=json_proto method=POST [00:06:55]POST find Content-Length [00:06:55]Host: 172.17.42.132:8080 [00:06:55]Content-Length: 215 [00:06:55]Content-Type: application/json [00:06:55] [00:06:55]POST finish read [00:06:55]Found Content-Length = 215 [00:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:55]execute_script... [00:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:55]POST & json_proto [00:06:55]process_json_proto [00:06:55]json parsed OK: [00:06:55]protocol is kg_v1.0 [00:06:55]action value=get_value [00:06:55]process_action get_value [00:06:55]cmd_get_value [00:06:55]process_action get_value done [00:06:55]requested_data is exist [00:06:55]produce_requested_data [00:06:55]requested_item kkm.sn is exist - process it [00:06:55]requested_item kkm.ver is exist - process it [00:06:55]requested_item fm.sn is exist - process it [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 11 00 00 [00:06:55]Write to MH i2c: E2 08 00 2F 24 80 11 00 00 00 00 00 00 CD [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 17 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 17 00 2F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 26 [00:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:06:55]wFMCommunicate OK [00:06:55]requested_item fd.num is exist - process it [00:06:55]SAM_PROTO_GetFieldsCounters [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 13 00 00 [00:06:55]Write to MH i2c: E2 08 00 30 24 80 13 00 00 00 00 00 00 D0 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:55]Read from MH i2c: E2 62 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 62 00 30 24 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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [00:06: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 A6 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:55]wFMCommunicate OK [00:06:55]SAM_PROTO_GetFieldsCounters done [00:06:55]requested_item shift.num is exist - process it [00:06:55]requested_item shift.opened is exist - process it [00:06:55]req_shift_opened [00:06:55]FM_GetShiftState [00:06:55]SAM_PROTO_GetShiftState [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 13 01 00 [00:06:55]Write to MH i2c: E2 08 00 31 24 80 13 01 00 00 00 00 00 D2 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 0E 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 0E 00 31 24 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 32 [00:06:55]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:06:55]wFMCommunicate OK [00:06:55]SAM_PROTO_GetShiftState done [00:06:55]FM_GetShiftState done [00:06:55]req_shift_opened done [00:06:55]requested_item shift.open_date is exist - process it [00:06:55]req_shift_open_date [00:06:55]req_shift_open_date done [00:06:55]produce_requested_data done [00:06:55]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755} [00:06:55]process_action_free get_value [00:06:55]json_value_free [00:06:55]json_value_free done [00:06:55]process_json_proto returns [00:06:55]Send response to host [00:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63142,"shift.num":544,"shift.opened":1,"shift.open_date":1729469755}}} [00:06:55]free response buf [00:06:55]execute_script done [00:06:55]execute_script returns [00:06:55]free content buf [00:06:55]Sock 9.Close socket [00:06:55]Sock 9.Thread stoped [00:06:55]accept exits with 7 [00:06:55]New connection [00:06:55]New thread 3067055460 created [00:06:55]Thread 3067198820 joined [00:06:55]Waiting for new connection... [00:06:55] Sock 7.Parse request [00:06:55]Sock 7.Check first char [00:06:55]Sock 7.First char is OK [00:06:55]request: POST /json_proto HTTP/1.0 [00:06:55]Method: POST [00:06:55]URL: /json_proto [00:06:55]Method is POST - this is cgi request [00:06:55]url: /json_proto [00:06:55]query_string will be loaded in cgi processing [00:06:55]execute_cgi json_proto POST (null) [00:06:55]execute_cgi path=json_proto method=POST [00:06:55]POST find Content-Length [00:06:55]Host: 172.17.42.132:8080 [00:06:55]Content-Length: 331 [00:06:55]Content-Type: application/json [00:06:55] [00:06:55]POST finish read [00:06:55]Found Content-Length = 331 [00:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:55]execute_script... [00:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:55]POST & json_proto [00:06:55]process_json_proto [00:06:55]json parsed OK: [00:06:55]protocol is kg_v1.0 [00:06:55]action value=get_value [00:06:55]process_action get_value [00:06:55]cmd_get_value [00:06:55]process_action get_value done [00:06:55]requested_data is exist [00:06:55]produce_requested_data [00:06:55]requested_item fm.sale.total is exist - process it [00:06:55]SAM_PROTO_GetFMData [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 13 03 00 [00:06:55]Write to MH i2c: E2 08 00 32 24 80 13 03 00 00 00 00 00 D5 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 32 24 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 3C [00:06:55]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 17 00 00 [00:06:55]Write to MH i2c: E2 08 00 33 24 80 17 00 00 00 00 00 00 D7 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 33 24 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 AE [00:06:56]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 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 34 24 80 17 00 00 00 00 00 00 D8 [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]OFD Sender: No OFD packet to send [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 34 24 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 86 [00:06:56]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 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 35 24 80 17 00 00 00 00 00 00 D9 [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 35 24 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [00:06:56]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 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 36 24 80 17 00 00 00 00 00 00 DA [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 DF 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 DF 00 36 24 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 BA [00:06:57]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 [00:06:57]wFMCommunicate OK [00:06:57]SAM_PROTO_GetFMData done [00:06:57]requested_item fm.sale_refund.total is exist - process it [00:06:57]requested_item fm.buy.total is exist - process it [00:06:57]requested_item shift.sale.total is exist - process it [00:06:57]SAM_PROTO_GetShiftData [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 13 02 00 [00:06:57]Write to MH i2c: E2 08 00 37 24 80 13 02 00 00 00 00 00 D9 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 37 24 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [00:06:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:57]wFMCommunicate OK [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 17 00 00 [00:06:57]Write to MH i2c: E2 08 00 38 24 80 17 00 00 00 00 00 00 DC [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 38 24 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 FE [00:06:57]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 [00:06:58]wFMCommunicate OK [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 39 24 80 17 00 00 00 00 00 00 DD [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 39 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [00:06:58]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 [00:06:58]wFMCommunicate OK [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 3A 24 80 17 00 00 00 00 00 00 DE [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 3A 24 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 50 [00:06:58]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 [00:06:58]wFMCommunicate OK [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 3B 24 80 17 00 00 00 00 00 00 DF [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 CB 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 CB 00 3B 24 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 C8 [00:06:58]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 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_GetShiftData done [00:06:58]requested_item shift.sale.total_cash is exist - process it [00:06:58]requested_item shift.sale_refund.total is exist - process it [00:06:58]requested_item shift.sale_refund.total_cash is exist - process it [00:06:58]requested_item shift.buy.total is exist - process it [00:06:58]requested_item shift.buy.total_cash is exist - process it [00:06:58]produce_requested_data done [00:06:58]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:58]process_action_free get_value [00:06:58]json_value_free [00:06:58]json_value_free done [00:06:58]process_json_proto returns [00:06:58]Send response to host [00:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:58]free response buf [00:06:58]execute_script done [00:06:58]execute_script returns [00:06:58]free content buf [00:06:58]Sock 7.Close socket [00:06:58]Sock 7.Thread stoped [00:06:59]accept exits with 9 [00:06:59]New connection [00:06:59]New thread 3067198820 created [00:06:59]Thread 3067055460 joined [00:06:59]Waiting for new connection... [00:06:59] Sock 9.Parse request [00:06:59]Sock 9.Check first char [00:06:59]Sock 9.First char is OK [00:06:59]request: POST /json_proto HTTP/1.0 [00:06:59]Method: POST [00:06:59]URL: /json_proto [00:06:59]Method is POST - this is cgi request [00:06:59]url: /json_proto [00:06:59]query_string will be loaded in cgi processing [00:06:59]execute_cgi json_proto POST (null) [00:06:59]execute_cgi path=json_proto method=POST [00:06:59]POST find Content-Length [00:06:59]Host: 172.17.42.132:8080 [00:06:59]Content-Length: 331 [00:06:59]Content-Type: application/json [00:06:59] [00:06:59]POST finish read [00:06:59]Found Content-Length = 331 [00:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:59]execute_script... [00:06:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:59]POST & json_proto [00:06:59]process_json_proto [00:06:59]json parsed OK: [00:06:59]protocol is kg_v1.0 [00:06:59]action value=get_value [00:06:59]process_action get_value [00:06:59]cmd_get_value [00:06:59]process_action get_value done [00:06:59]requested_data is exist [00:06:59]produce_requested_data [00:06:59]requested_item fm.sale.total is exist - process it [00:06:59]SAM_PROTO_GetFMData [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 13 03 00 [00:06:59]Write to MH i2c: E2 08 00 3C 24 80 13 03 00 00 00 00 00 DF [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:06:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:59]Read from MH i2c: E2 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 3C 24 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 46 [00:06:59]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:06:59]wFMCommunicate OK [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 17 00 00 [00:06:59]Write to MH i2c: E2 08 00 3D 24 80 17 00 00 00 00 00 00 E1 [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:06:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:59]Read from MH i2c: E2 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 3D 24 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 B8 [00:06:59]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 [00:06:59]wFMCommunicate OK [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 17 00 00 [00:06:59]Write to MH i2c: E2 08 00 3E 24 80 17 00 00 00 00 00 00 E2 [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 3E 24 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 90 [00:07:00]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 [00:07:00]wFMCommunicate OK [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 17 00 00 [00:07:00]Write to MH i2c: E2 08 00 3F 24 80 17 00 00 00 00 00 00 E3 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 3F 24 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5E [00:07:00]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 [00:07:00]wFMCommunicate OK [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 17 00 00 [00:07:00]Write to MH i2c: E2 08 00 40 24 80 17 00 00 00 00 00 00 E4 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 DF 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 DF 00 40 24 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 C4 [00:07:01]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 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetFMData done [00:07:01]requested_item fm.sale_refund.total is exist - process it [00:07:01]requested_item fm.buy.total is exist - process it [00:07:01]requested_item shift.sale.total is exist - process it [00:07:01]SAM_PROTO_GetShiftData [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 02 00 [00:07:01]Write to MH i2c: E2 08 00 41 24 80 13 02 00 00 00 00 00 E3 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]OFD Sender: No OFD packet to send [00:07:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 41 24 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:07:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 42 24 80 17 00 00 00 00 00 00 E6 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 42 24 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 08 [00:07:02]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 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 43 24 80 17 00 00 00 00 00 00 E7 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 43 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [00:07:02]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 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 44 24 80 17 00 00 00 00 00 00 E8 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 44 24 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 5A [00:07:03]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 [00:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 45 24 80 17 00 00 00 00 00 00 E9 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 CB 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 CB 00 45 24 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 D2 [00:07:03]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 [00:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetShiftData done [00:07:03]requested_item shift.sale.total_cash is exist - process it [00:07:03]requested_item shift.sale_refund.total is exist - process it [00:07:03]requested_item shift.sale_refund.total_cash is exist - process it [00:07:03]requested_item shift.buy.total is exist - process it [00:07:03]requested_item shift.buy.total_cash is exist - process it [00:07:03]produce_requested_data done [00:07:03]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:03]process_action_free get_value [00:07:03]json_value_free [00:07:03]json_value_free done [00:07:03]process_json_proto returns [00:07:03]Send response to host [00:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:03]free response buf [00:07:03]execute_script done [00:07:03]execute_script returns [00:07:03]free content buf [00:07:03]Sock 9.Close socket [00:07:03]Sock 9.Thread stoped [00:07:03]accept exits with 7 [00:07:03]New connection [00:07:03]New thread 3067055460 created [00:07:03]Thread 3067198820 joined [00:07:03]Waiting for new connection... [00:07:03] Sock 7.Parse request [00:07:03]Sock 7.Check first char [00:07:03]Sock 7.First char is OK [00:07:03]request: POST /json_proto HTTP/1.0 [00:07:03]Method: POST [00:07:03]URL: /json_proto [00:07:03]Method is POST - this is cgi request [00:07:03]url: /json_proto [00:07:03]query_string will be loaded in cgi processing [00:07:03]execute_cgi json_proto POST (null) [00:07:03]execute_cgi path=json_proto method=POST [00:07:03]POST find Content-Length [00:07:03]Host: 172.17.42.132:8080 [00:07:03]Content-Length: 260 [00:07:03]Content-Type: application/json [00:07:03] [00:07:03]POST finish read [00:07:03]Found Content-Length = 260 [00:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:03]execute_script... [00:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:03]POST & json_proto [00:07:03]process_json_proto [00:07:03]json parsed OK: [00:07:03]protocol is kg_v1.0 [00:07:03]action value=close_shift [00:07:03]process_action close_shift [00:07:03]cmd_close_shift [00:07:03]MH_GetDate [00:07:03]Write to MH i2c: F0 00 00 46 24 59 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 46 24 00 AC EC 16 67 4C DF 56 66 5E [00:07:03]GetLastDocTimeStamp 1729555575 [00:07:03]current date 1729555628 [00:07:03]FM_GetShiftState [00:07:03]SAM_PROTO_GetShiftState [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 13 01 00 [00:07:03]Write to MH i2c: E2 08 00 47 24 80 13 01 00 00 00 00 00 E8 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 0E 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 0E 00 47 24 00 09 00 01 3B 9D 15 67 00 00 00 00 90 00 48 [00:07:03]RAPDU: 09 00 01 3B 9D 15 67 00 00 00 00 90 00 [00:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetShiftState done [00:07:03]FM_GetShiftState done [00:07:03]KKMCreateCloseShiftDocument [00:07:03]Load OK [00:07:03]Malloc new data [00:07:03]MH_GetDate [00:07:03]Write to MH i2c: F0 00 00 48 24 5B [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 48 24 00 AC EC 16 67 4C DF 56 66 60 [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]KKMCreateCloseShiftDocument OK [00:07:03]KKMSetCloseShiftData OK [00:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:07:03]tlvbuf is 019943A0 [00:07:03]KKMLoadAndSignCloseShiftData [00:07:03]SAM_PROTO_ProcessDocument [00:07:03]wFMCommunicate request_size=9 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 15 01 00 04 05 00 47 00 [00:07:03]Write to MH i2c: E2 0C 00 49 24 80 15 01 00 04 00 05 00 47 00 00 00 40 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=23 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:07:04]Write to MH i2c: E2 1A 00 4A 24 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 E3 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=30 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:07:04]Write to MH i2c: E2 21 00 4B 24 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 B0 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=13 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 15 02 00 08 F4 03 04 00 AC EC 16 67 [00:07:04]Write to MH i2c: E2 10 00 4C 24 80 15 02 00 08 00 F4 03 04 00 AC EC 16 67 00 00 10 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=25 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 [00:07:04]Write to MH i2c: E2 1C 00 4D 24 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 00 00 54 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 4D 24 00 90 00 E5 [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 15 03 00 [00:07:04]Write to MH i2c: E2 08 00 4E 24 80 15 03 00 00 00 00 00 F3 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 4E 24 00 F1 04 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 10 04 04 00 A7 F6 00 00 0E 04 04 00 20 02 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 78 [00:07:05]RAPDU: F1 04 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 10 04 04 00 A7 F6 00 00 0E 04 04 00 20 02 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_ProcessDocument answer len = 1265 [00:07:05]SAM_PROTO_ProcessDocument remain to read = 1017 [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 4F 24 80 17 00 00 00 00 00 00 F3 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 4F 24 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 3C [00:07:05]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:05]SAM_PROTO_ProcessDocument remain to read = 767 [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 50 24 80 17 00 00 00 00 00 00 F4 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 50 24 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 56 [00:07:06]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:06]wFMCommunicate OK [00:07:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:06]SAM_PROTO_ProcessDocument remain to read = 517 [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 51 24 80 17 00 00 00 00 00 00 F5 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]OFD Sender: No OFD packet to send [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 51 24 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 7F [00:07:06]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:07:06]wFMCommunicate OK [00:07:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:06]SAM_PROTO_ProcessDocument remain to read = 267 [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 52 24 80 17 00 00 00 00 00 00 F6 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 52 24 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 BE [00:07:07]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:07]SAM_PROTO_ProcessDocument remain to read = 17 [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 53 24 80 17 00 00 00 00 00 00 F7 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 14 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 14 00 53 24 00 01 00 06 F7 03 00 00 35 04 06 00 E9 BC CC 9C BD 38 90 00 3E [00:07:07]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 E9 BC CC 9C BD 38 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:07:07]SAM_PROTO_ProcessDocument done [00:07:07]1209 (1) - 1.0 - номер версии ФФД [00:07:07]1041 (16) - 0000000000874676 - номер ФМ [00:07:07]1040 (4) - 63143 - номер ФД [00:07:07]1038 (4) - 544 - номер смены [00:07:07]1118 (4) - 139 - количество кассовых чеков за смену [00:07:07]1111 (4) - 141 - общее количество ФД за смену [00:07:07]1194 (1194) - счетчики итогов смены [00:07:07] 1134 (4) - 139 - количество чеков со всеми признаками расчетов [00:07:07] 1129 (155) - счетчики операций «приход» [00:07:07] 1135 (4) - 139 - количество чеков по признаку расчетов [00:07:07] 1201 (3) - 31970.62 - общая итоговая сумма в чеках [00:07:07] 1136 (3) - 26326.00 - итоговая сумма в чеках наличными [00:07:07] 1138 (3) - 5644.62 - итоговая сумма в чеках безналичными [00:07:07] 1024 (122) - суммы налогов [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 0% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1006 (12) - суммы НДС [00:07:07] 1010 (1) - 12% - код ставки НДС [00:07:07] 1011 (3) - 3394.85 - сумма НДС по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (11) - суммы НСП [00:07:07] 1014 (1) - 1% - код ставки НСП [00:07:07] 1015 (2) - 282.81 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 2% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 3% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 5% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1130 (141) - счетчики операций «возврат прихода» [00:07:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:07] 1024 (117) - суммы налогов [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 0% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 12% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 2% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 3% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 5% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1131 (141) - счетчики операций «расход» [00:07:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:07] 1024 (117) - суммы налогов [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 0% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 12% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 2% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 3% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 5% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1132 (141) - счетчики операций «возврат расхода» [00:07:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:07] 1024 (117) - суммы налогов [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 0% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1006 (9) - суммы НДС [00:07:07] 1010 (1) - 12% - код ставки НДС [00:07:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 2% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 3% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 5% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 0,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1007 (9) - суммы НСП [00:07:07] 1014 (1) - 1,50% - код ставки НСП [00:07:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:07] 1133 (588) - - счетчики коррекции - не используются [00:07:07]1077 (6) - 256997095947576 - ФПД [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1209 (04B9) [00:07:07]Malloc new data [00:07:07]Processing tag 1041 (0411) [00:07:07]Processing tag 1040 (0410) [00:07:07]Malloc new data [00:07:07]Processing tag 1038 (040E) [00:07:07]Malloc new data [00:07:07]Processing tag 1118 (045E) [00:07:07]Malloc new data [00:07:07]Processing tag 1111 (0457) [00:07:07]Malloc new data [00:07:07]Processing tag 1194 (04AA) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1134 (046E) [00:07:07]Malloc new data [00:07:07]Processing tag 1129 (0469) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1135 (046F) [00:07:07]Malloc new data [00:07:07]Processing tag 1201 (04B1) [00:07:07]Malloc new data [00:07:07]Processing tag 1136 (0470) [00:07:07]Malloc new data [00:07:07]Processing tag 1138 (0472) [00:07:07]Malloc new data [00:07:07]Processing tag 1024 (0400) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1006 (03EE) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1010 (03F2) [00:07:07]Malloc new data [00:07:07]Processing tag 1011 (03F3) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1006 (03EE) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1010 (03F2) [00:07:07]Malloc new data [00:07:07]Processing tag 1011 (03F3) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]Processing tag 1007 (03EF) [00:07:07]Load OK [00:07:07]SetTLVBufToDocument [00:07:07]Processing tag 1014 (03F6) [00:07:07]Malloc new data [00:07:07]Processing tag 1015 (03F7) [00:07:07]Malloc new data [00:07:07]SetTLVBufToDocument err=0 [00:07:07]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1130 (046A) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1135 (046F) [00:07:08]Malloc new data [00:07:08]Processing tag 1201 (04B1) [00:07:08]Malloc new data [00:07:08]Processing tag 1136 (0470) [00:07:08]Malloc new data [00:07:08]Processing tag 1138 (0472) [00:07:08]Malloc new data [00:07:08]Processing tag 1024 (0400) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1131 (046B) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1135 (046F) [00:07:08]Malloc new data [00:07:08]Processing tag 1201 (04B1) [00:07:08]Malloc new data [00:07:08]Processing tag 1136 (0470) [00:07:08]Malloc new data [00:07:08]Processing tag 1138 (0472) [00:07:08]Malloc new data [00:07:08]Processing tag 1024 (0400) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1132 (046C) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1135 (046F) [00:07:08]Malloc new data [00:07:08]Processing tag 1201 (04B1) [00:07:08]Malloc new data [00:07:08]Processing tag 1136 (0470) [00:07:08]Malloc new data [00:07:08]Processing tag 1138 (0472) [00:07:08]Malloc new data [00:07:08]Processing tag 1024 (0400) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1006 (03EE) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1010 (03F2) [00:07:08]Malloc new data [00:07:08]Processing tag 1011 (03F3) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1007 (03EF) [00:07:08]Load OK [00:07:08]SetTLVBufToDocument [00:07:08]Processing tag 1014 (03F6) [00:07:08]Malloc new data [00:07:08]Processing tag 1015 (03F7) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1133 (046D) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Processing tag 1077 (0435) [00:07:08]Malloc new data [00:07:08]SetTLVBufToDocument err=0 [00:07:08]Malloc new data [00:07:08]SAM_PROTO_GetFMData [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 13 03 00 [00:07:08]Write to MH i2c: E2 08 00 54 24 80 13 03 00 00 00 00 00 F7 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 54 24 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 5E [00:07:09]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 55 24 80 17 00 00 00 00 00 00 F9 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 55 24 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 D0 [00:07:09]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 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 56 24 80 17 00 00 00 00 00 00 FA [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 56 24 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 A8 [00:07:10]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 [00:07:10]wFMCommunicate OK [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 17 00 00 [00:07:10]Write to MH i2c: E2 08 00 57 24 80 17 00 00 00 00 00 00 FB [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 57 24 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [00:07:10]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 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 58 24 80 17 00 00 00 00 00 00 FC [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 DF 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 DF 00 58 24 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 DC [00:07:11]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 [00:07:11]wFMCommunicate OK [00:07:11]SAM_PROTO_GetFMData done [00:07:11]Malloc new data [00:07:11]Malloc new data [00:07:11]Malloc new data [00:07:11]Malloc new data [00:07:11]KKMLoadAndSignCloseShiftData err=0 [00:07:11]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арыкбаев Н. 22.10.2024 00:07 Смена: 544 РНМ: 0000000000091619 ЗНМ: 0300000154 СНО: Общий режим Чеков за смену: 139 ФД за смену: 141 Всего чеков: 139 ИТОГИ ПРИХОД Чеков: 139 Общий итог: 31970.62 Итого наличными: 26326.00 Итого безнал.: 5644.62 НДС 0% : 0.00 НДС 12% : 3394.85 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 282.81 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26326.00 НС Приход: 24776932.88 НС Возвр.Прихода: 124098.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 63143 ФМ: 0000000000874676 ФПД: 256997095947576 [00:07:11]StoreToDocumentArchive [00:07:11]shift 544 fd 63143 [00:07:11]save to /storage/0544/doc_00063143 [00:07:11]save last doc name /storage/0544/doc_00063143 to /storage/kkm_last_doc_name [00:07:11]OFD Sender: No OFD packet to send [00:07:11]save OK [00:07:11]Clear old archive folders... [00:07:11]Remove dir /storage/0522 [00:07:11]opendir ok [00:07:11]file . [00:07:11]file .. [00:07:11]file doc_1729555583 [00:07:11]remove file /storage/0522/doc_1729555583 [00:07:11]remove dir /storage/0522 [00:07:11]NVStorageSaveData kkm_registers [00:07:11]File name is /storage/kkm_registers [00:07:11]Write 24 bytes [00:07:11]NVStorageSaveData done [00:07:11]NVStorageSaveData kkm_registers [00:07:11]File name is /storage/kkm_registers [00:07:11]Write 24 bytes [00:07:11]NVStorageSaveData done [00:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [00:07:11]tlvbuf is 019B1520 [00:07:11]SAM_PROTO_ClearQueue [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 09 00 00 [00:07:11]Write to MH i2c: E2 08 00 59 24 80 09 00 00 00 00 00 00 EF [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 03 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 03 00 59 24 00 90 00 F1 [00:07:11]RAPDU: 90 00 [00:07:11]wFMCommunicate OK [00:07:11]SAM_PROTO_ClearQueue done [00:07:11]KKMCreateOFDPacket [00:07:11]OFDProtocolAddRootSTLVToBuf [00:07:11]FM_MakeSignedData [00:07:11]FM_MakeSignedData [00:07:11]SAM_PROTO_SignData [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 0D 01 02 [00:07:11]Write to MH i2c: E2 08 00 5A 24 80 0D 01 02 00 00 00 00 F7 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 03 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 03 00 5A 24 00 90 00 F2 [00:07:11]RAPDU: 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=255 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 0D 02 02 FA 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 AC EC 16 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 D5 04 6E 04 04 00 8B 00 00 00 69 04 A2 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 2E 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:07:12]Write to MH i2c: E2 02 01 5B 24 80 0D 02 02 FA 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 AC EC 16 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 D5 04 6E 04 04 00 8B 00 00 00 69 04 A2 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 2E 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 86 [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 03 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 03 00 5B 24 00 90 00 F3 [00:07:12]RAPDU: 90 00 [00:07:12]wFMCommunicate OK [00:07:12]wFMCommunicate request_size=255 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 [00:07:12]Write to MH i2c: E2 02 01 5C 24 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 00 00 43 [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 03 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [00:07:13]RAPDU: 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=255 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 [00:07:13]Write to MH i2c: E2 02 01 5D 24 80 0D 02 02 FA 00 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 00 00 CA [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 03 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [00:07:13]RAPDU: 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=255 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 0D 02 02 FA 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 [00:07:14]Write to MH i2c: E2 02 01 5E 24 80 0D 02 02 FA 00 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 00 00 BF [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 03 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [00:07:14]RAPDU: 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=255 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [00:07:14]Write to MH i2c: E2 02 01 5F 24 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 00 00 90 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 03 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [00:07:15]RAPDU: 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=138 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 0D 02 02 85 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A7 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 E9 BC CC 9C BD 38 [00:07:15]Write to MH i2c: E2 8D 00 60 24 80 0D 02 02 85 00 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A7 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 E9 BC CC 9C BD 38 00 00 DD [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 03 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [00:07:15]RAPDU: 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 0D 03 02 [00:07:15]Write to MH i2c: E2 08 00 61 24 80 0D 03 02 00 00 00 00 00 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0B 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0B 00 61 24 00 81 D0 7C 5C 8B BB 07 88 90 00 FF [00:07:15]RAPDU: 81 D0 7C 5C 8B BB 07 88 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_SignData done [00:07:15]FM_MakeSignedData done [00:07:15]CreateOFDProtocolMessage [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 11 00 00 [00:07:15]Write to MH i2c: E2 08 00 62 24 80 11 00 00 00 00 00 00 00 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:15]Read from MH i2c: E2 17 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 17 00 62 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 59 [00:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:07:15]wFMCommunicate OK [00:07:15]CreateOFDProtocolMessage done [00:07:15]OFDSenderStorePacket 63143 [00:07:15]StoreOFDPacket docnum=63143 [00:07: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 77 05 00 00 AE F3 6F 05 36 47 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 AC EC 16 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 D5 04 6E 04 04 00 8B 00 00 00 69 04 A2 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 2E 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A7 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 E9 BC CC 9C BD 38 81 D0 7C 5C 8B BB 07 88 [00:07:16]CheckFolder [00:07:16]dirname=/storage/ofd_packets [00:07:16]CheckFolder done [00:07:16]ProducePacketName [00:07:16]name=ofd_packets/00063143 [00:07:16]NVStorageSaveData ofd_packets/00063143 [00:07:16]File name is /storage/ofd_packets/00063143 [00:07:16]Write 1429 bytes [00:07:16]NVStorageSaveData done [00:07:16]OFDSenderStorePacket done [00:07:16]KKMCreateOFDPacket done [00:07:16]NVStorageSaveData kkm_last_timestamp [00:07:16]File name is /storage/kkm_last_timestamp [00:07:16]Write 4 bytes [00:07:16]NVStorageSaveData done [00:07:16]ExternCall_PrintAddStr [00:07:16]wPrintStart [00:07:16]Write to MH i2c: 01 00 00 63 24 87 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 07 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: 01 07 00 63 24 00 00 00 00 00 FF 0F 9C [00:07:16]RasterBufferAndPrint [00:07:16]line Отчет о закрытии смены [00:07:16]line ФФД: 1.0 [00:07:16]line ИНН: 02508201610067 [00:07:16]line Кассир: Арыкбаев Н. [00:07:16]line 22.10.2024 00:07 [00:07:16]line Смена: 544 [00:07:16]line РНМ: 0000000000091619 [00:07:16]line ЗНМ: 0300000154 [00:07:16]line СНО: Общий режим [00:07:16]line Чеков за смену: 139 [00:07:16]line ФД за смену: 141 [00:07:16]line Всего чеков: 139 [00:07:16]line ИТОГИ ПРИХОД [00:07:16]line Чеков: 139 [00:07:16]line Общий итог: 31970.62 [00:07:16]line Итого наличными: 26326.00 [00:07:16]line Итого безнал.: 5644.62 [00:07:16]line НДС 0% : 0.00 [00:07:16]line НДС 12% : 3394.85 [00:07:16]line НСП 0% : 0.00 [00:07:16]line НСП 1,50% : 0.00 [00:07:16]line НСП 0,50% : 0.00 [00:07:16]line НСП 5% : 0.00 [00:07:16]line НСП 3% : 0.00 [00:07:16]line НСП 2% : 0.00 [00:07:16]line НСП 1% : 282.81 [00:07:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:16]line Чеков: 0 [00:07:16]line Общий итог: 0.00 [00:07:16]line Итого наличными: 0.00 [00:07:16]line Итого безнал.: 0.00 [00:07:16]line НДС 0% : 0.00 [00:07:16]line НДС 12% : 0.00 [00:07:16]line НСП 0% : 0.00 [00:07:16]line НСП 1,50% : 0.00 [00:07:16]line НСП 0,50% : 0.00 [00:07:16]line НСП 5% : 0.00 [00:07:16]line НСП 3% : 0.00 [00:07:16]line НСП 2% : 0.00 [00:07:16]line НСП 1% : 0.00 [00:07:16]line ИТОГИ РАСХОД [00:07:16]line Чеков: 0 [00:07:16]line Общий итог: 0.00 [00:07:16]line Итого наличными: 0.00 [00:07:16]line Итого безнал.: 0.00 [00:07:16]line НДС 0% : 0.00 [00:07:16]line НДС 12% : 0.00 [00:07:16]line НСП 0% : 0.00 [00:07:16]line НСП 1,50% : 0.00 [00:07:16]line НСП 0,50% : 0.00 [00:07:16]line НСП 5% : 0.00 [00:07:16]line НСП 3% : 0.00 [00:07:16]line НСП 2% : 0.00 [00:07:16]line НСП 1% : 0.00 [00:07:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:16]line Чеков: 0 [00:07:16]line Общий итог: 0.00 [00:07:16]line Итого наличными: 0.00 [00:07:16]line Итого безнал.: 0.00 [00:07:16]line НДС 0% : 0.00 [00:07:16]line НДС 12% : 0.00 [00:07:16]line НСП 0% : 0.00 [00:07:16]line НСП 1,50% : 0.00 [00:07:16]line НСП 0,50% : 0.00 [00:07:16]line НСП 5% : 0.00 [00:07:16]line НСП 3% : 0.00 [00:07:16]line НСП 2% : 0.00 [00:07:16]line НСП 1% : 0.00 [00:07:16]line Сумма внесений: 0.00 [00:07:16]line Сумма выплат: 0.00 [00:07:16]line Нал. в кассе: 26326.00 [00:07:16]line НС Приход: 24776932.88 [00:07:16]line НС Возвр.Прихода: 124098.60 [00:07:16]line НС Расход: 0.00 [00:07:16]line НС Возвр.Расхода: 0.00 [00:07:16]line ФД: 63143 [00:07:16]line ФМ: 0000000000874676 [00:07:16]line ФПД: 256997095947576 [00:07:16]OFD Sender: Processing packet 63143 [packets to send 232, broken 231] [00:07:16]ProducePacketName [00:07:16]name=ofd_packets/00063143 [00:07:16]OFD Sender: To server: pG, [00:07:16]CommunicateWithHost lk.salyk.kg:30040 [00:07:16]ConnectInit lk.salyk.kg [00:07:16]written 0, free lines is 4095 [00:07:16]Connected sock=10 [00:07: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 77 05 00 00 AE F3 6F 05 36 47 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 AC EC 16 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 AA 04 D5 04 6E 04 04 00 8B 00 00 00 69 04 A2 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 2E 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF Write to MH i2c: 01 03 00 09 00 00 B3 F6 24 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 D7 00 [00:07:17]01 Write i2c OK [00:07:17]F7 MH_I2C_Read... [00:07:17]03 Read from MH i2c: 00 01 00 [00:07:17]MH_I2C_Read... [00:07:17]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 06 01 F7 07 03 00 00 [00:07:17]00 MH_I2C_Read... [00:07:17]7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 Read from MH i2c: 00 01 00 07 70 00 04 B3 00 24 00 00 72 00 04 00 00 00 00 00 00 0D 04 0B 75 F6 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE [00:07:17]03 RasterBufferAndPrint [00:07:17]09 line [00:07:17]00 line [00:07:17]F2 line [00:07:17]03 line [00:07:17]01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 line [00:07:17]F3 03 00 00 EE 03 09 00 F2 03 written 0, free lines is 3797 [00:07:17]01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 MH_Cut [00:07:17]F7 Write to MH i2c: 03 D1 00 01 00 00 EF BA 03 24 09 01 00 B0 F6 [00:07:17]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:07:17]00 MH_I2C_Read... [00:07:17]02 Read from MH i2c: F7 D1 03 [00:07:17]00 MH_I2C_Read... [00:07:17]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 Read from MH i2c: EF D1 03 01 00 09 [00:07:17]00 MH_I2C_Read... [00:07:17]F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 D1 05 01 F7 00 03 BA 00 24 00 00 EF AF 03 [00:07:17]09 Write to MH i2c: 01 00 00 F6 00 03 BB 01 24 00 DF 06 [00:07:17]F7 03 00 00 10 04 04 00 A7 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 E9 BC CC 9C BD 38 81 D0 7C 5C 8B BB 07 88 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:18]*** Cut start [00:07:18]*** Partial cut [00:07:18]*** CUTSNS_PIN = 1 [00:07:18]*** CUTSNS_PIN = 0 [00:07: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 B5 02 47 00 63 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A7 F6 00 00 F4 03 04 00 B4 96 16 67 B6 04 01 00 00 8C 82 DC 70 84 7C D6 5B [00:07:18]CommunicateWithHost err = 0 [00:07:18]CheckOFDResponse [00:07:18]1017 (14) - 77093643461234 [00:07:18]1041 (16) - 0000000000874676 [00:07:18]1040 (4) - 63143 [00:07:18]1012 (4) - 21.10.2024 18:00 [00:07:18]1206 (1) - 0 [00:07:18]OFD Sender: Remove packet 63143 [00:07:18]ProducePacketName [00:07:18]name=ofd_packets/00063143 [00:07:18]NVStorageDeleteData [00:07:18]*** Brake cut motor [00:07:18]Read from MH i2c: 01 [00:07:18]MH_I2C_Read... [00:07:18]*** Stop cut motor [00:07:18]*** Cut end [00:07:18]Read from MH i2c: 01 07 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 FF 0F F4 [00:07:18]process_action close_shift done [00:07:18]requested_data is exist [00:07:18]produce_requested_data [00:07:18]requested_item fd.num is exist - process it [00:07:18]SAM_PROTO_GetFieldsCounters [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 00 00 [00:07:18]Write to MH i2c: E2 08 00 BC 24 80 13 00 00 00 00 00 00 5C [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]OFD Sender: No OFD packet to send [00:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 BC 24 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 A7 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:07: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 A7 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetFieldsCounters done [00:07:18]requested_item shift.num is exist - process it [00:07:18]requested_item shift.opened is exist - process it [00:07:18]req_shift_opened [00:07:18]FM_GetShiftState [00:07:18]SAM_PROTO_GetShiftState [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 01 00 [00:07:18]Write to MH i2c: E2 08 00 BD 24 80 13 01 00 00 00 00 00 5E [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 BD 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 69 [00:07:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_GetShiftState done [00:07:19]FM_GetShiftState done [00:07:19]req_shift_opened done [00:07:19]requested_item shift.open_date is exist - process it [00:07:19]req_shift_open_date [00:07:19]FM_GetShiftState [00:07:19]SAM_PROTO_GetShiftState [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 13 01 00 [00:07:19]Write to MH i2c: E2 08 00 BE 24 80 13 01 00 00 00 00 00 5F [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 0E 00 BE 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6A [00:07:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_GetShiftState done [00:07:19]FM_GetShiftState done [00:07:19]req_shift_open_date done [00:07:19]produce_requested_data done [00:07:19]produce_requested_data return {"fd.num":63143,"shift.num":544,"shift.opened":0,"shift.open_date":0} [00:07:19]process_action_free close_shift [00:07:19]json_value_free [00:07:19]json_value_free done [00:07:19]process_json_proto returns [00:07:19]Send response to host [00:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63143,"shift.num":544,"shift.opened":0,"shift.open_date":0}}} [00:07:19]free response buf [00:07:19]execute_script done [00:07:19]execute_script returns [00:07:19]free content buf [00:07:19]Sock 7.Close socket [00:07:19]Sock 7.Thread stoped [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:47]accept exits with 9 [00:14:47]New connection [00:14:47]New thread 3067198820 created [00:14:47]Thread 3067055460 joined [00:14:47]Waiting for new connection... [00:14:47] Sock 9.Parse request [00:14:47]Sock 9.Check first char [00:14:47]Sock 9.First char is OK [00:14:47]request: POST /json_proto HTTP/1.0 [00:14:47]Method: POST [00:14:47]URL: /json_proto [00:14:47]Method is POST - this is cgi request [00:14:47]url: /json_proto [00:14:47]query_string will be loaded in cgi processing [00:14:47]execute_cgi json_proto POST (null) [00:14:47]execute_cgi path=json_proto method=POST [00:14:47]POST find Content-Length [00:14:47]Host: 172.17.42.132:8080 [00:14:47]Content-Length: 215 [00:14:47]Content-Type: application/json [00:14:47] [00:14:47]POST finish read [00:14:47]Found Content-Length = 215 [00:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:47]execute_script... [00:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:47]POST & json_proto [00:14:47]process_json_proto [00:14:47]json parsed OK: [00:14:47]protocol is kg_v1.0 [00:14:47]action value=get_value [00:14:47]process_action get_value [00:14:47]cmd_get_value [00:14:47]process_action get_value done [00:14:47]requested_data is exist [00:14:47]produce_requested_data [00:14:47]requested_item kkm.sn is exist - process it [00:14:47]requested_item kkm.ver is exist - process it [00:14:47]requested_item fm.sn is exist - process it [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 11 00 00 [00:14:47]Write to MH i2c: E2 08 00 BF 24 80 11 00 00 00 00 00 00 5D [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 17 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 17 00 BF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B6 [00:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:14:47]wFMCommunicate OK [00:14:47]requested_item fd.num is exist - process it [00:14:47]SAM_PROTO_GetFieldsCounters [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 13 00 00 [00:14:47]Write to MH i2c: E2 08 00 C0 24 80 13 00 00 00 00 00 00 60 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 62 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 62 00 C0 24 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 A7 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [00:14:47]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 A7 F6 00 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:47]wFMCommunicate OK [00:14:47]SAM_PROTO_GetFieldsCounters done [00:14:47]requested_item shift.num is exist - process it [00:14:47]requested_item shift.opened is exist - process it [00:14:47]req_shift_opened [00:14:47]FM_GetShiftState [00:14:47]SAM_PROTO_GetShiftState [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 13 01 00 [00:14:47]Write to MH i2c: E2 08 00 C1 24 80 13 01 00 00 00 00 00 62 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 0E 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 0E 00 C1 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6D [00:14:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:47]wFMCommunicate OK [00:14:47]SAM_PROTO_GetShiftState done [00:14:47]FM_GetShiftState done [00:14:47]req_shift_opened done [00:14:47]requested_item shift.open_date is exist - process it [00:14:47]req_shift_open_date [00:14:47]FM_GetShiftState [00:14:47]SAM_PROTO_GetShiftState [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 13 01 00 [00:14:47]Write to MH i2c: E2 08 00 C2 24 80 13 01 00 00 00 00 00 63 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 0E 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 0E 00 C2 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6E [00:14:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:47]wFMCommunicate OK [00:14:47]SAM_PROTO_GetShiftState done [00:14:47]FM_GetShiftState done [00:14:47]req_shift_open_date done [00:14:47]produce_requested_data done [00:14:47]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63143,"shift.num":544,"shift.opened":0,"shift.open_date":0} [00:14:47]process_action_free get_value [00:14:47]json_value_free [00:14:47]json_value_free done [00:14:47]process_json_proto returns [00:14:47]Send response to host [00:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63143,"shift.num":544,"shift.opened":0,"shift.open_date":0}}} [00:14:47]free response buf [00:14:47]execute_script done [00:14:47]execute_script returns [00:14:47]free content buf [00:14:47]Sock 9.Close socket [00:14:47]Sock 9.Thread stoped [00:14:47]accept exits with 7 [00:14:47]New connection [00:14:47]New thread 3067055460 created [00:14:47]Thread 3067198820 joined [00:14:47]Waiting for new connection... [00:14:47] Sock 7.Parse request [00:14:47]Sock 7.Check first char [00:14:47]Sock 7.First char is OK [00:14:47]request: POST /json_proto HTTP/1.0 [00:14:47]Method: POST [00:14:47]URL: /json_proto [00:14:47]Method is POST - this is cgi request [00:14:47]url: /json_proto [00:14:47]query_string will be loaded in cgi processing [00:14:47]execute_cgi json_proto POST (null) [00:14:47]execute_cgi path=json_proto method=POST [00:14:47]POST find Content-Length [00:14:47]Host: 172.17.42.132:8080 [00:14:47]Content-Length: 331 [00:14:47]Content-Type: application/json [00:14:47] [00:14:47]POST finish read [00:14:47]Found Content-Length = 331 [00:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:47]execute_script... [00:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:47]POST & json_proto [00:14:47]process_json_proto [00:14:47]json parsed OK: [00:14:47]protocol is kg_v1.0 [00:14:47]action value=get_value [00:14:47]process_action get_value [00:14:47]cmd_get_value [00:14:47]process_action get_value done [00:14:47]requested_data is exist [00:14:47]produce_requested_data [00:14:47]requested_item fm.sale.total is exist - process it [00:14:47]SAM_PROTO_GetFMData [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 13 03 00 [00:14:47]Write to MH i2c: E2 08 00 C3 24 80 13 03 00 00 00 00 00 66 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 C3 24 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 CD [00:14:48]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:14:48]wFMCommunicate OK [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 17 00 00 [00:14:48]Write to MH i2c: E2 08 00 C4 24 80 17 00 00 00 00 00 00 68 [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 C4 24 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 3F [00:14:48]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 [00:14:48]wFMCommunicate OK [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 17 00 00 [00:14:48]Write to MH i2c: E2 08 00 C5 24 80 17 00 00 00 00 00 00 69 [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 C5 24 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 17 [00:14:48]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 [00:14:48]wFMCommunicate OK [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 17 00 00 [00:14:48]Write to MH i2c: E2 08 00 C6 24 80 17 00 00 00 00 00 00 6A [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 FD 00 C6 24 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [00:14:48]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 [00:14:48]wFMCommunicate OK [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 17 00 00 [00:14:48]Write to MH i2c: E2 08 00 C7 24 80 17 00 00 00 00 00 00 6B [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 DF 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 DF 00 C7 24 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 4B [00:14:49]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 [00:14:49]wFMCommunicate OK [00:14:49]SAM_PROTO_GetFMData done [00:14:49]requested_item fm.sale_refund.total is exist - process it [00:14:49]requested_item fm.buy.total is exist - process it [00:14:49]requested_item shift.sale.total is exist - process it [00:14:49]SAM_PROTO_GetShiftData [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 13 02 00 [00:14:49]Write to MH i2c: E2 08 00 C8 24 80 13 02 00 00 00 00 00 6A [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:49]OFD Sender: No OFD packet to send [00:14:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 C8 24 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [00:14:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 86 C8 30 70 04 03 00 98 2B 28 72 04 03 00 EE 9C 08 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 1D 2E 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:14:49]wFMCommunicate OK [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 17 00 00 [00:14:49]Write to MH i2c: E2 08 00 C9 24 80 17 00 00 00 00 00 00 6D [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 C9 24 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 8F [00:14:49]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 [00:14:49]wFMCommunicate OK [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 17 00 00 [00:14:49]Write to MH i2c: E2 08 00 CA 24 80 17 00 00 00 00 00 00 6E [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 CA 24 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [00:14:50]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 [00:14:50]wFMCommunicate OK [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 17 00 00 [00:14:50]Write to MH i2c: E2 08 00 CB 24 80 17 00 00 00 00 00 00 6F [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 CB 24 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 E1 [00:14:50]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 [00:14:50]wFMCommunicate OK [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 17 00 00 [00:14:50]Write to MH i2c: E2 08 00 CC 24 80 17 00 00 00 00 00 00 70 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 CB 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 CB 00 CC 24 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 59 [00:14:50]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 [00:14:50]wFMCommunicate OK [00:14:50]SAM_PROTO_GetShiftData done [00:14:50]requested_item shift.sale.total_cash is exist - process it [00:14:50]requested_item shift.sale_refund.total is exist - process it [00:14:50]requested_item shift.sale_refund.total_cash is exist - process it [00:14:50]requested_item shift.buy.total is exist - process it [00:14:50]requested_item shift.buy.total_cash is exist - process it [00:14:50]produce_requested_data done [00:14:50]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:50]process_action_free get_value [00:14:50]json_value_free [00:14:50]json_value_free done [00:14:50]process_json_proto returns [00:14:50]Send response to host [00:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":31970.62,"shift.sale.total_cash":26326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:50]free response buf [00:14:50]execute_script done [00:14:50]execute_script returns [00:14:50]free content buf [00:14:50]Sock 7.Close socket [00:14:50]Sock 7.Thread stoped [00:14:50]accept exits with 9 [00:14:50]New connection [00:14:50]New thread 3067198820 created [00:14:50]Thread 3067055460 joined [00:14:50]Waiting for new connection... [00:14:50] Sock 9.Parse request [00:14:50]Sock 9.Check first char [00:14:50]Sock 9.First char is OK [00:14:50]request: POST /json_proto HTTP/1.0 [00:14:50]Method: POST [00:14:50]URL: /json_proto [00:14:50]Method is POST - this is cgi request [00:14:50]url: /json_proto [00:14:50]query_string will be loaded in cgi processing [00:14:50]execute_cgi json_proto POST (null) [00:14:50]execute_cgi path=json_proto method=POST [00:14:50]POST find Content-Length [00:14:50]Host: 172.17.42.132:8080 [00:14:50]Content-Length: 284 [00:14:50]Content-Type: application/json [00:14:50] [00:14:50]POST finish read [00:14:50]Found Content-Length = 284 [00:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:50]execute_script... [00:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:50]POST & json_proto [00:14:50]process_json_proto [00:14:50]json parsed OK: [00:14:50]protocol is kg_v1.0 [00:14:50]action value=open_shift [00:14:50]process_action open_shift [00:14:50]cmd_open_shift [00:14:50]MH_GetDate [00:14:50]Write to MH i2c: F0 00 00 CD 24 E0 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 09 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 09 00 CD 24 00 7F EE 16 67 4C DF 56 66 BA [00:14:50]GetLastDocTimeStamp 1729555628 [00:14:50]current date 1729556095 [00:14:50]FM_GetShiftState [00:14:50]SAM_PROTO_GetShiftState [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 13 01 00 [00:14:50]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 CE 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7A [00:14:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:50]wFMCommunicate OK [00:14:50]SAM_PROTO_GetShiftState done [00:14:50]FM_GetShiftState done [00:14:50]KKMCreateOpenShiftDocument [00:14:50]Load OK [00:14:50]Malloc new data [00:14:50]MH_GetDate [00:14:50]Write to MH i2c: F0 00 00 CF 24 E2 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 09 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: F0 09 00 CF 24 00 7F EE 16 67 4C DF 56 66 BC [00:14:50]Malloc new data [00:14:50]KKMCreateOpenShiftDocument OK [00:14:50]KKMSetOpenShiftData OK [00:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:14:50]tlvbuf is 018D3470 [00:14:50]KKMLoadAndSignOpenShiftData [00:14:50]SAM_PROTO_ProcessDocument [00:14:50]wFMCommunicate request_size=9 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:14:50]Write to MH i2c: E2 0C 00 D0 24 80 15 01 00 04 00 02 00 D4 00 00 00 51 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=23 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:14:51]Write to MH i2c: E2 1A 00 D1 24 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 6A [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=39 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 [00:14:51]Write to MH i2c: E2 2A 00 D2 24 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 00 00 0E [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D2 24 00 90 00 6A [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=92 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 [00:14:51]Write to MH i2c: E2 5F 00 D3 24 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 00 00 9B [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=50 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:14:51]Write to MH i2c: E2 35 00 D4 24 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 F5 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=13 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 08 F4 03 04 00 7F EE 16 67 [00:14:51]Write to MH i2c: E2 10 00 D5 24 80 15 02 00 08 00 F4 03 04 00 7F EE 16 67 00 00 6E [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=25 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 [00:14:51]Write to MH i2c: E2 1C 00 D6 24 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 00 00 DD [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [00:14:51]RAPDU: 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 15 03 00 [00:14:51]Write to MH i2c: E2 08 00 D7 24 80 15 03 00 00 00 00 00 7C [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 38 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 38 00 D7 24 00 33 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 10 04 04 00 A8 F6 00 00 0E 04 04 00 21 02 00 00 35 04 06 00 28 6C 80 5F FD 0F 90 00 8E [00:14:51]RAPDU: 33 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 10 04 04 00 A8 F6 00 00 0E 04 04 00 21 02 00 00 35 04 06 00 28 6C 80 5F FD 0F 90 00 [00:14:51]wFMCommunicate OK [00:14:51]SAM_PROTO_ProcessDocument answer len = 51 [00:14:51]SAM_PROTO_ProcessDocument done [00:14:51]SetTLVBufToDocument [00:14:51]Processing tag 1209 (04B9) [00:14:51]Malloc new data [00:14:51]Processing tag 1041 (0411) [00:14:51]Processing tag 1040 (0410) [00:14:51]Malloc new data [00:14:51]Processing tag 1038 (040E) [00:14:51]Malloc new data [00:14:51]Processing tag 1077 (0435) [00:14:51]Malloc new data [00:14:51]SetTLVBufToDocument err=0 [00:14:51]KKMLoadAndSignOpenShiftData store KKM data [00:14:51]KKMLoadAndSignOpenShiftData err=0 [00:14:51]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Суйунбай уулу И. Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 Место: АЗС № 86 "Партнер Нефть" 22.10.2024 00:14 Смена: 545 РНМ: 0000000000091619 ЗНМ: 0300000154 ФД: 63144 ФМ: 0000000000874676 ФПД: 44446475353359 [00:14:51]StoreToDocumentArchive [00:14:51]shift 545 fd 63144 [00:14:51]Create dir for shift 0545 [00:14:51]save to /storage/0545/doc_00063144 [00:14:51]save last doc name /storage/0545/doc_00063144 to /storage/kkm_last_doc_name [00:14:51]save OK [00:14:51]Clear old archive folders... [00:14:51]Remove dir /storage/0544 [00:14:51]opendir ok [00:14:51]file . [00:14:51]file .. [00:14:51]file doc_00063003 [00:14:51]remove file /storage/0544/doc_00063003 [00:14:51]file doc_00063004 [00:14:51]remove file /storage/0544/doc_00063004 [00:14:51]file doc_00063005 [00:14:51]remove file /storage/0544/doc_00063005 [00:14:51]file doc_00063006 [00:14:51]remove file /storage/0544/doc_00063006 [00:14:51]file doc_00063007 [00:14:51]remove file /storage/0544/doc_00063007 [00:14:51]file doc_00063008 [00:14:51]remove file /storage/0544/doc_00063008 [00:14:51]file doc_00063009 [00:14:51]remove file /storage/0544/doc_00063009 [00:14:51]file doc_00063010 [00:14:51]remove file /storage/0544/doc_00063010 [00:14:51]file doc_00063011 [00:14:51]remove file /storage/0544/doc_00063011 [00:14:51]file doc_00063012 [00:14:51]remove file /storage/0544/doc_00063012 [00:14:51]file doc_00063013 [00:14:51]remove file /storage/0544/doc_00063013 [00:14:51]file doc_00063014 [00:14:51]remove file /storage/0544/doc_00063014 [00:14:51]file doc_00063015 [00:14:51]remove file /storage/0544/doc_00063015 [00:14:51]file doc_00063016 [00:14:51]remove file /storage/0544/doc_00063016 [00:14:51]file doc_00063017 [00:14:51]remove file /storage/0544/doc_00063017 [00:14:51]file doc_00063018 [00:14:51]remove file /storage/0544/doc_00063018 [00:14:51]file doc_00063019 [00:14:51]remove file /storage/0544/doc_00063019 [00:14:51]file doc_00063020 [00:14:51]remove file /storage/0544/doc_00063020 [00:14:51]file doc_00063021 [00:14:51]remove file /storage/0544/doc_00063021 [00:14:51]file doc_00063022 [00:14:51]remove file /storage/0544/doc_00063022 [00:14:51]file doc_00063023 [00:14:51]remove file /storage/0544/doc_00063023 [00:14:51]file doc_00063024 [00:14:51]remove file /storage/0544/doc_00063024 [00:14:51]file doc_00063025 [00:14:51]remove file /storage/0544/doc_00063025 [00:14:51]file doc_00063026 [00:14:51]remove file /storage/0544/doc_00063026 [00:14:51]file doc_00063027 [00:14:51]remove file /storage/0544/doc_00063027 [00:14:51]file doc_00063028 [00:14:51]remove file /storage/0544/doc_00063028 [00:14:51]file doc_00063029 [00:14:51]remove file /storage/0544/doc_00063029 [00:14:51]file doc_00063030 [00:14:51]remove file /storage/0544/doc_00063030 [00:14:51]file doc_00063031 [00:14:51]remove file /storage/0544/doc_00063031 [00:14:51]file doc_00063032 [00:14:51]remove file /storage/0544/doc_00063032 [00:14:51]file doc_00063033 [00:14:51]remove file /storage/0544/doc_00063033 [00:14:51]file doc_00063034 [00:14:51]remove file /storage/0544/doc_00063034 [00:14:51]file doc_00063035 [00:14:51]remove file /storage/0544/doc_00063035 [00:14:51]file doc_00063036 [00:14:51]remove file /storage/0544/doc_00063036 [00:14:51]file doc_00063037 [00:14:51]remove file /storage/0544/doc_00063037 [00:14:51]file doc_00063038 [00:14:51]remove file /storage/0544/doc_00063038 [00:14:51]file doc_00063039 [00:14:51]remove file /storage/0544/doc_00063039 [00:14:51]file doc_00063040 [00:14:51]remove file /storage/0544/doc_00063040 [00:14:51]file doc_00063041 [00:14:51]remove file /storage/0544/doc_00063041 [00:14:51]file doc_00063042 [00:14:51]remove file /storage/0544/doc_00063042 [00:14:51]file doc_00063043 [00:14:51]remove file /storage/0544/doc_00063043 [00:14:51]file doc_00063044 [00:14:51]remove file /storage/0544/doc_00063044 [00:14:51]file doc_00063045 [00:14:51]remove file /storage/0544/doc_00063045 [00:14:51]file doc_00063046 [00:14:51]remove file /storage/0544/doc_00063046 [00:14:51]file doc_00063047 [00:14:51]remove file /storage/0544/doc_00063047 [00:14:51]file doc_00063048 [00:14:51]remove file /storage/0544/doc_00063048 [00:14:51]file doc_00063049 [00:14:51]remove file /storage/0544/doc_00063049 [00:14:51]file doc_00063050 [00:14:51]remove file /storage/0544/doc_00063050 [00:14:51]file doc_00063051 [00:14:51]remove file /storage/0544/doc_00063051 [00:14:51]file doc_00063052 [00:14:51]remove file /storage/0544/doc_00063052 [00:14:51]file doc_00063053 [00:14:51]remove file /storage/0544/doc_00063053 [00:14:51]file doc_00063054 [00:14:51]remove file /storage/0544/doc_00063054 [00:14:51]file doc_00063055 [00:14:51]remove file /storage/0544/doc_00063055 [00:14:51]file doc_00063056 [00:14:51]remove file /storage/0544/doc_00063056 [00:14:51]file doc_00063057 [00:14:51]remove file /storage/0544/doc_00063057 [00:14:51]file doc_00063058 [00:14:51]remove file /storage/0544/doc_00063058 [00:14:51]file doc_00063059 [00:14:51]remove file /storage/0544/doc_00063059 [00:14:51]file doc_00063060 [00:14:51]remove file /storage/0544/doc_00063060 [00:14:51]file doc_00063061 [00:14:51]remove file /storage/0544/doc_00063061 [00:14:51]file doc_00063062 [00:14:51]remove file /storage/0544/doc_00063062 [00:14:51]file doc_00063063 [00:14:51]remove file /storage/0544/doc_00063063 [00:14:51]file doc_00063064 [00:14:51]remove file /storage/0544/doc_00063064 [00:14:52]file doc_00063065 [00:14:52]remove file /storage/0544/doc_00063065 [00:14:52]file doc_00063066 [00:14:52]remove file /storage/0544/doc_00063066 [00:14:52]file doc_00063067 [00:14:52]remove file /storage/0544/doc_00063067 [00:14:52]file doc_00063068 [00:14:52]remove file /storage/0544/doc_00063068 [00:14:52]file doc_00063069 [00:14:52]remove file /storage/0544/doc_00063069 [00:14:52]file doc_00063070 [00:14:52]remove file /storage/0544/doc_00063070 [00:14:52]file doc_00063071 [00:14:52]remove file /storage/0544/doc_00063071 [00:14:52]file doc_00063072 [00:14:52]remove file /storage/0544/doc_00063072 [00:14:52]file doc_00063073 [00:14:52]remove file /storage/0544/doc_00063073 [00:14:52]file doc_00063074 [00:14:52]remove file /storage/0544/doc_00063074 [00:14:52]file doc_00063075 [00:14:52]remove file /storage/0544/doc_00063075 [00:14:52]file doc_00063076 [00:14:52]remove file /storage/0544/doc_00063076 [00:14:52]file doc_00063077 [00:14:52]remove file /storage/0544/doc_00063077 [00:14:52]file doc_00063078 [00:14:52]remove file /storage/0544/doc_00063078 [00:14:52]file doc_00063079 [00:14:52]remove file /storage/0544/doc_00063079 [00:14:52]file doc_00063080 [00:14:52]remove file /storage/0544/doc_00063080 [00:14:52]file doc_00063081 [00:14:52]remove file /storage/0544/doc_00063081 [00:14:52]file doc_00063082 [00:14:52]remove file /storage/0544/doc_00063082 [00:14:52]file doc_00063083 [00:14:52]remove file /storage/0544/doc_00063083 [00:14:52]file doc_00063084 [00:14:52]remove file /storage/0544/doc_00063084 [00:14:52]file doc_00063085 [00:14:52]remove file /storage/0544/doc_00063085 [00:14:52]file doc_00063086 [00:14:52]remove file /storage/0544/doc_00063086 [00:14:52]file doc_00063087 [00:14:52]remove file /storage/0544/doc_00063087 [00:14:52]file doc_00063088 [00:14:52]remove file /storage/0544/doc_00063088 [00:14:52]file doc_00063089 [00:14:52]remove file /storage/0544/doc_00063089 [00:14:52]file doc_00063090 [00:14:52]remove file /storage/0544/doc_00063090 [00:14:52]file doc_00063091 [00:14:52]remove file /storage/0544/doc_00063091 [00:14:52]file doc_00063092 [00:14:52]remove file /storage/0544/doc_00063092 [00:14:52]file doc_00063093 [00:14:52]remove file /storage/0544/doc_00063093 [00:14:52]file doc_00063094 [00:14:52]remove file /storage/0544/doc_00063094 [00:14:52]file doc_00063095 [00:14:52]remove file /storage/0544/doc_00063095 [00:14:52]file doc_00063096 [00:14:52]remove file /storage/0544/doc_00063096 [00:14:52]file doc_00063097 [00:14:52]remove file /storage/0544/doc_00063097 [00:14:52]file doc_00063098 [00:14:52]remove file /storage/0544/doc_00063098 [00:14:52]file doc_00063099 [00:14:52]remove file /storage/0544/doc_00063099 [00:14:52]file doc_00063100 [00:14:52]remove file /storage/0544/doc_00063100 [00:14:52]file doc_00063101 [00:14:52]remove file /storage/0544/doc_00063101 [00:14:52]file doc_00063102 [00:14:52]remove file /storage/0544/doc_00063102 [00:14:52]file doc_00063103 [00:14:52]remove file /storage/0544/doc_00063103 [00:14:52]file doc_00063104 [00:14:52]remove file /storage/0544/doc_00063104 [00:14:52]file doc_00063105 [00:14:52]remove file /storage/0544/doc_00063105 [00:14:52]file doc_00063106 [00:14:52]remove file /storage/0544/doc_00063106 [00:14:52]file doc_00063107 [00:14:52]remove file /storage/0544/doc_00063107 [00:14:52]file doc_00063108 [00:14:52]remove file /storage/0544/doc_00063108 [00:14:52]file doc_00063109 [00:14:52]remove file /storage/0544/doc_00063109 [00:14:52]file doc_00063110 [00:14:52]remove file /storage/0544/doc_00063110 [00:14:52]file doc_00063111 [00:14:52]remove file /storage/0544/doc_00063111 [00:14:52]file doc_00063112 [00:14:52]remove file /storage/0544/doc_00063112 [00:14:52]file doc_00063113 [00:14:52]remove file /storage/0544/doc_00063113 [00:14:52]file doc_00063114 [00:14:52]remove file /storage/0544/doc_00063114 [00:14:52]file doc_00063115 [00:14:52]remove file /storage/0544/doc_00063115 [00:14:52]file doc_00063116 [00:14:52]remove file /storage/0544/doc_00063116 [00:14:52]file doc_00063117 [00:14:52]remove file /storage/0544/doc_00063117 [00:14:52]file doc_00063118 [00:14:52]remove file /storage/0544/doc_00063118 [00:14:52]file doc_00063119 [00:14:52]remove file /storage/0544/doc_00063119 [00:14:52]file doc_00063120 [00:14:52]remove file /storage/0544/doc_00063120 [00:14:52]file doc_00063121 [00:14:52]remove file /storage/0544/doc_00063121 [00:14:52]file doc_00063122 [00:14:52]remove file /storage/0544/doc_00063122 [00:14:52]file doc_00063123 [00:14:52]remove file /storage/0544/doc_00063123 [00:14:52]file doc_00063124 [00:14:52]remove file /storage/0544/doc_00063124 [00:14:52]file doc_00063125 [00:14:52]remove file /storage/0544/doc_00063125 [00:14:52]file doc_00063126 [00:14:52]remove file /storage/0544/doc_00063126 [00:14:52]file doc_00063127 [00:14:52]remove file /storage/0544/doc_00063127 [00:14:52]file doc_00063128 [00:14:52]remove file /storage/0544/doc_00063128 [00:14:52]file doc_00063129 [00:14:52]remove file /storage/0544/doc_00063129 [00:14:52]file doc_00063130 [00:14:52]remove file /storage/0544/doc_00063130 [00:14:52]file doc_00063131 [00:14:52]remove file /storage/0544/doc_00063131 [00:14:52]file doc_00063132 [00:14:52]remove file /storage/0544/doc_00063132 [00:14:52]file doc_00063133 [00:14:52]remove file /storage/0544/doc_00063133 [00:14:52]file doc_00063134 [00:14:52]remove file /storage/0544/doc_00063134 [00:14:52]file doc_00063135 [00:14:52]remove file /storage/0544/doc_00063135 [00:14:52]file doc_00063136 [00:14:52]remove file /storage/0544/doc_00063136 [00:14:52]file doc_00063137 [00:14:52]remove file /storage/0544/doc_00063137 [00:14:52]file doc_00063138 [00:14:52]remove file /storage/0544/doc_00063138 [00:14:52]file doc_00063139 [00:14:52]remove file /storage/0544/doc_00063139 [00:14:52]file doc_00063140 [00:14:52]remove file /storage/0544/doc_00063140 [00:14:52]file doc_00063141 [00:14:52]remove file /storage/0544/doc_00063141 [00:14:52]file doc_00063142 [00:14:52]remove file /storage/0544/doc_00063142 [00:14:52]file doc_00063143 [00:14:52]remove file /storage/0544/doc_00063143 [00:14:52]remove dir /storage/0544 [00:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:14:52]tlvbuf is 0186C2A0 [00:14:52]SAM_PROTO_ClearQueue [00:14:52]wFMCommunicate request_size=4 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 09 00 00 [00:14:52]Write to MH i2c: E2 08 00 D8 24 80 09 00 00 00 00 00 00 6E [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:52]Read from MH i2c: E2 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 03 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [00:14:52]RAPDU: 90 00 [00:14:52]wFMCommunicate OK [00:14:52]SAM_PROTO_ClearQueue done [00:14:52]KKMCreateOFDPacket [00:14:52]OFDProtocolAddRootSTLVToBuf [00:14:52]FM_MakeSignedData [00:14:52]FM_MakeSignedData [00:14:52]SAM_PROTO_SignData [00:14:52]wFMCommunicate request_size=4 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 0D 01 02 [00:14:52]Write to MH i2c: E2 08 00 D9 24 80 0D 01 02 00 00 00 00 76 [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:52]Read from MH i2c: E2 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 03 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 03 00 D9 24 00 90 00 71 [00:14:52]RAPDU: 90 00 [00:14:52]wFMCommunicate OK [00:14:52]wFMCommunicate request_size=255 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 0D 02 02 FA 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 7F EE 16 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 A8 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:14:52]Write to MH i2c: E2 02 01 DA 24 80 0D 02 02 FA 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 7F EE 16 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 A8 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D8 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 DA 24 00 90 00 72 [00:14:53]RAPDU: 90 00 [00:14:53]wFMCommunicate OK [00:14:53]wFMCommunicate request_size=22 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 0D 02 02 11 30 38 37 34 36 37 36 35 04 06 00 28 6C 80 5F FD 0F [00:14:53]Write to MH i2c: E2 19 00 DB 24 80 0D 02 02 11 00 30 38 37 34 36 37 36 35 04 06 00 28 6C 80 5F FD 0F 00 00 CF [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 DB 24 00 90 00 73 [00:14:53]RAPDU: 90 00 [00:14:53]wFMCommunicate OK [00:14:53]wFMCommunicate request_size=4 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 0D 03 02 [00:14:53]Write to MH i2c: E2 08 00 DC 24 80 0D 03 02 00 00 00 00 7B [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 0B 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 0B 00 DC 24 00 EA 21 E3 84 41 6B FB B9 90 00 4E [00:14:53]RAPDU: EA 21 E3 84 41 6B FB B9 90 00 [00:14:53]wFMCommunicate OK [00:14:53]SAM_PROTO_SignData done [00:14:53]FM_MakeSignedData done [00:14:53]CreateOFDProtocolMessage [00:14:53]wFMCommunicate request_size=4 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 11 00 00 [00:14:53]Write to MH i2c: E2 08 00 DD 24 80 11 00 00 00 00 00 00 7B [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 17 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 17 00 DD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D4 [00:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:14:53]wFMCommunicate OK [00:14:53]CreateOFDProtocolMessage done [00:14:53]OFDSenderStorePacket 63144 [00:14:53]StoreOFDPacket docnum=63144 [00:14: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 1B 01 00 00 29 2F 13 01 DB 65 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 7F EE 16 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 A8 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 28 6C 80 5F FD 0F EA 21 E3 84 41 6B FB B9 [00:14:53]CheckFolder [00:14:53]dirname=/storage/ofd_packets [00:14:53]CheckFolder done [00:14:53]ProducePacketName [00:14:53]name=ofd_packets/00063144 [00:14:53]NVStorageSaveData ofd_packets/00063144 [00:14:53]File name is /storage/ofd_packets/00063144 [00:14:53]Write 313 bytes [00:14:53]NVStorageSaveData done [00:14:53]OFDSenderStorePacket done [00:14:53]KKMCreateOFDPacket done [00:14:53]NVStorageSaveData kkm_last_timestamp [00:14:53]File name is /storage/kkm_last_timestamp [00:14:53]Write 4 bytes [00:14:53]NVStorageSaveData done [00:14:53]ExternCall_PrintAddStr [00:14:53]wPrintStart [00:14:53]Write to MH i2c: 01 00 00 DE 24 02 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 FF 0F 17 [00:14:53]RasterBufferAndPrint [00:14:53]line Отчет об открытии смены [00:14:53]line ФФД: 1.0 [00:14:53]line ИНН: 02508201610067 [00:14:53]line Кассир: Суйунбай уулу И. [00:14:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:14:53]line Место: АЗС № 86 "Партнер Нефть" [00:14:53]line 22.10.2024 00:14 [00:14:53]line Смена: 545 [00:14:53]line РНМ: 0000000000091619 [00:14:53]line ЗНМ: 0300000154 [00:14:53]line ФД: 63144 [00:14:53]line ФМ: 0000000000874676 [00:14:53]line ФПД: 44446475353359 [00:14:53]written 0, free lines is 4095 [00:14:53]OFD Sender: Processing packet 63144 [packets to send 232, broken 231] [00:14:53]ProducePacketName [00:14:53]name=ofd_packets/00063144 [00:14:53]OFD Sender: To server: pG, [00:14:53]CommunicateWithHost lk.salyk.kg:30040 [00:14:53]ConnectInit lk.salyk.kg [00:14:53]Write to MH i2c: 01 00 00 F0 24 14 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 F0 24 00 00 00 00 00 51 0E 7A [00:14:53]RasterBufferAndPrint [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]written 0, free lines is 3677 [00:14:53]MH_Cut [00:14:53]Write to MH i2c: D1 01 00 F7 24 01 ED [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: D1 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: D1 01 00 [00:14:53]MH_I2C_Read... [00:14:53]Connected sock=10 [00:14: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 1B 01 00 00 29 2F 13 01 DB 65 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 Read from MH i2c: A1 D1 D1 01 83 00 F7 D0 24 B9 00 D1 EC 83 [00:14:53]D0 Write to MH i2c: BD 01 D0 00 B1 00 D0 F8 B0 24 D0 B9 1C 20 [00:14:53]D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 Write i2c OK [00:14:53]BB MH_I2C_Read... [00:14:53]D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 7F EE 16 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 A8 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 28 6C 80 5F FD 0F EA 21 E3 84 41 6B FB B9 [00:14: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 DF 70 47 00 5C 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 A8 F6 00 00 F4 03 04 00 7C 98 16 67 B6 04 01 00 00 B0 D1 F8 72 D1 17 1D 13 [00:14:54]CommunicateWithHost err = 0 [00:14:54]CheckOFDResponse [00:14:54]1017 (14) - 77093643461234 [00:14:54]1041 (16) - 0000000000874676 [00:14:54]1040 (4) - 63144 [00:14:54]1012 (4) - 21.10.2024 18:07 [00:14:54]1206 (1) - 0 [00:14:54]OFD Sender: Remove packet 63144 [00:14:54]ProducePacketName [00:14:54]name=ofd_packets/00063144 [00:14:54]NVStorageDeleteData [00:14:54]*** Cut start [00:14:54]*** Partial cut [00:14:54]*** CUTSNS_PIN = 1 [00:14:54]*** CUTSNS_PIN = 0 [00:14:54]*** Brake cut motor [00:14:54]OFD Sender: No OFD packet to send [00:14:54]Read from MH i2c: 01 [00:14:54]MH_I2C_Read... [00:14:54]*** Stop cut motor [00:14:54]*** Cut end [00:14:54]Read from MH i2c: 01 07 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: 01 07 00 F8 24 00 00 00 00 00 FF 0F 31 [00:14:54]process_action open_shift done [00:14:54]requested_data is exist [00:14:54]produce_requested_data [00:14:54]requested_item fd.num is exist - process it [00:14:54]SAM_PROTO_GetFieldsCounters [00:14:54]wFMCommunicate request_size=4 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 13 00 00 [00:14:54]Write to MH i2c: E2 08 00 F9 24 80 13 00 00 00 00 00 00 99 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 62 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 62 00 F9 24 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 A8 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [00:14: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 A8 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:55]wFMCommunicate OK [00:14:55]SAM_PROTO_GetFieldsCounters done [00:14:55]requested_item shift.num is exist - process it [00:14:55]requested_item shift.opened is exist - process it [00:14:55]req_shift_opened [00:14:55]FM_GetShiftState [00:14:55]SAM_PROTO_GetShiftState [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 13 01 00 [00:14:55]Write to MH i2c: E2 08 00 FA 24 80 13 01 00 00 00 00 00 9B [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 0E 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 0E 00 FA 24 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 91 [00:14:55]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:14:55]wFMCommunicate OK [00:14:55]SAM_PROTO_GetShiftState done [00:14:55]FM_GetShiftState done [00:14:55]req_shift_opened done [00:14:55]requested_item shift.open_date is exist - process it [00:14:55]req_shift_open_date [00:14:55]req_shift_open_date done [00:14:55]produce_requested_data done [00:14:55]produce_requested_data return {"fd.num":63144,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:14:55]process_action_free open_shift [00:14:55]json_value_free [00:14:55]json_value_free done [00:14:55]process_json_proto returns [00:14:55]Send response to host [00:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63144,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:14:55]free response buf [00:14:55]execute_script done [00:14:55]execute_script returns [00:14:55]free content buf [00:14:55]Sock 9.Close socket [00:14:55]Sock 9.Thread stoped [00:14:55]accept exits with 7 [00:14:55]New connection [00:14:55]New thread 3067055460 created [00:14:55]Thread 3067198820 joined [00:14:55]Waiting for new connection... [00:14:55] Sock 7.Parse request [00:14:55]Sock 7.Check first char [00:14:55]Sock 7.First char is OK [00:14:55]request: POST /json_proto HTTP/1.0 [00:14:55]Method: POST [00:14:55]URL: /json_proto [00:14:55]Method is POST - this is cgi request [00:14:55]url: /json_proto [00:14:55]query_string will be loaded in cgi processing [00:14:55]execute_cgi json_proto POST (null) [00:14:55]execute_cgi path=json_proto method=POST [00:14:55]POST find Content-Length [00:14:55]Host: 172.17.42.132:8080 [00:14:55]Content-Length: 331 [00:14:55]Content-Type: application/json [00:14:55] [00:14:55]POST finish read [00:14:55]Found Content-Length = 331 [00:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:55]execute_script... [00:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:55]POST & json_proto [00:14:55]process_json_proto [00:14:55]json parsed OK: [00:14:55]protocol is kg_v1.0 [00:14:55]action value=get_value [00:14:55]process_action get_value [00:14:55]cmd_get_value [00:14:55]process_action get_value done [00:14:55]requested_data is exist [00:14:55]produce_requested_data [00:14:55]requested_item fm.sale.total is exist - process it [00:14:55]SAM_PROTO_GetFMData [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 13 03 00 [00:14:55]Write to MH i2c: E2 08 00 FB 24 80 13 03 00 00 00 00 00 9E [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 FD 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 FD 00 FB 24 00 C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 05 [00:14:55]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 66 F2 00 00 69 04 A1 00 6F 04 04 00 2F F2 00 00 B1 04 04 00 68 99 AE 93 70 04 04 00 A0 29 6A 85 72 04 04 00 C8 6F 44 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 67 50 AF 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 6F 80 4E 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 [00:14:55]wFMCommunicate OK [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 17 00 00 [00:14:55]Write to MH i2c: E2 08 00 FC 24 80 17 00 00 00 00 00 00 A0 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 FD 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 FD 00 FC 24 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 77 [00:14:55]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 [00:14:56]wFMCommunicate OK [00:14:56]wFMCommunicate request_size=4 [00:14:56]MH_SAM_APDU [00:14:56]CAPDU: 80 17 00 00 [00:14:56]Write to MH i2c: E2 08 00 FD 24 80 17 00 00 00 00 00 00 A1 [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:56]Read from MH i2c: E2 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: E2 FD 00 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: E2 FD 00 FD 24 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 4F [00:14:56]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 [00:14:56]wFMCommunicate OK [00:14:56]wFMCommunicate request_size=4 [00:14:56]MH_SAM_APDU [00:14:56]CAPDU: 80 17 00 00 [00:14:56]Write to MH i2c: E2 08 00 FE 24 80 17 00 00 00 00 00 00 A2 [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: E2 [00:14:56]MH_I2C_Read... [00:14:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:56]Read from MH i2c: E2 FD 00 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: E2 FD 00 FE 24 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D [00:14:56]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 [00:14:56]wFMCommunicate OK [00:14:56]wFMCommunicate request_size=4 [00:14:56]MH_SAM_APDU [00:14:56]CAPDU: 80 17 00 00 [00:14:56]Write to MH i2c: E2 08 00 FF 24 80 17 00 00 00 00 00 00 A3 [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 DF 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 DF 00 FF 24 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 83 [00:14:57]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 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetFMData done [00:14:57]requested_item fm.sale_refund.total is exist - process it [00:14:57]requested_item fm.buy.total is exist - process it [00:14:57]requested_item shift.sale.total is exist - process it [00:14:57]SAM_PROTO_GetShiftData [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 13 02 00 [00:14:57]Write to MH i2c: E2 08 00 00 25 80 13 02 00 00 00 00 00 A3 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 FD 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 FD 00 00 25 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 16 [00:14:57]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:14:57]wFMCommunicate OK [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 17 00 00 [00:14:57]Write to MH i2c: E2 08 00 01 25 80 17 00 00 00 00 00 00 A6 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:58]Read from MH i2c: E2 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 FD 00 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 FD 00 01 25 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 AE [00:14:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:14:58]wFMCommunicate OK [00:14:58]wFMCommunicate request_size=4 [00:14:58]MH_SAM_APDU [00:14:58]CAPDU: 80 17 00 00 [00:14:58]Write to MH i2c: E2 08 00 02 25 80 17 00 00 00 00 00 00 A7 [00:14:58]Write i2c OK [00:14:58]MH_I2C_Read... [00:14:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:58]Read from MH i2c: E2 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 FD 00 [00:14:58]MH_I2C_Read... [00:14:58]Read from MH i2c: E2 FD 00 02 25 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 79 [00:14:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:14:58]wFMCommunicate OK [00:14:58]wFMCommunicate request_size=4 [00:14:58]MH_SAM_APDU [00:14:58]CAPDU: 80 17 00 00 [00:14:58]Write to MH i2c: E2 08 00 03 25 80 17 00 00 00 00 00 00 A8 [00:14:58]Write i2c OK [00:14:58]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 FD 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 FD 00 03 25 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 1A [00:14:59]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:14:59]wFMCommunicate OK [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 17 00 00 [00:14:59]Write to MH i2c: E2 08 00 04 25 80 17 00 00 00 00 00 00 A9 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 BD 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 BD 00 04 25 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:14:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetShiftData done [00:14:59]requested_item shift.sale.total_cash is exist - process it [00:14:59]requested_item shift.sale_refund.total is exist - process it [00:14:59]requested_item shift.sale_refund.total_cash is exist - process it [00:14:59]requested_item shift.buy.total is exist - process it [00:14:59]requested_item shift.buy.total_cash is exist - process it [00:14:59]produce_requested_data done [00:14:59]produce_requested_data return {"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:59]process_action_free get_value [00:14:59]json_value_free [00:14:59]json_value_free done [00:14:59]process_json_proto returns [00:14:59]Send response to host [00:14:59]OFD Sender: No OFD packet to send [00:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24776932.88,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:59]free response buf [00:14:59]execute_script done [00:14:59]execute_script returns [00:14:59]free content buf [00:14:59]Sock 7.Close socket [00:14:59]Sock 7.Thread stoped [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:13]accept exits with 9 [00:19:13]New connection [00:19:13]New thread 3067198820 created [00:19:13]Thread 3067055460 joined [00:19:13]Waiting for new connection... [00:19:13] Sock 9.Parse request [00:19:13]Sock 9.Check first char [00:19:13]Sock 9.First char is OK [00:19:13]request: POST /json_proto HTTP/1.0 [00:19:13]Method: POST [00:19:13]URL: /json_proto [00:19:13]Method is POST - this is cgi request [00:19:13]url: /json_proto [00:19:13]query_string will be loaded in cgi processing [00:19:13]execute_cgi json_proto POST (null) [00:19:13]execute_cgi path=json_proto method=POST [00:19:13]POST find Content-Length [00:19:13]Host: 172.17.42.132:8080 [00:19:13]Content-Length: 620 [00:19:13]Content-Type: application/json [00:19:13] [00:19:13]POST finish read [00:19:13]Found Content-Length = 620 [00:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47455", "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" ] } } [00:19:13]execute_script... [00:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47455", "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" ] } } [00:19:13]POST & json_proto [00:19:13]process_json_proto [00:19:13]json parsed OK: [00:19:13]protocol is kg_v1.0 [00:19:13]action value=close_receipt [00:19:13]process_action close_receipt [00:19:13]cmd_close_receipt [00:19:13]MH_GetDate [00:19:13]Write to MH i2c: F0 00 00 05 25 19 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: F0 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: F0 09 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: F0 09 00 05 25 00 86 EF 16 67 4C DF 56 66 FB [00:19:13]GetLastDocTimeStamp 1729556095 [00:19:13]current date 1729556358 [00:19:13]FM_GetShiftState [00:19:13]SAM_PROTO_GetShiftState [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 13 01 00 [00:19:13]Write to MH i2c: E2 08 00 06 25 80 13 01 00 00 00 00 00 A8 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 0E 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 0E 00 06 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 9E [00:19:13]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:19:13]wFMCommunicate OK [00:19:13]SAM_PROTO_GetShiftState done [00:19:13]FM_GetShiftState done [00:19:13]opened in 1729556095 [00:19:13]opened+sec_in_day 1729642495 [00:19:13]quantity*price = 14400 [00:19:13]sum+1 = 14401 [00:19:13]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 СНО: Общий режим Чек 1 22.10.2024 00:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63145 ФПД: 42396347371459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001918&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63145&fm=42396347371459&tin=02508201610067®Number=0000000000091619&sum=14400 0 [00:19:14]StoreToDocumentArchive [00:19:14]shift 545 fd 63145 [00:19:14]save to /storage/0545/doc_00063145 [00:19:14]save last doc name /storage/0545/doc_00063145 to /storage/kkm_last_doc_name [00:19:14]save OK [00:19:14]Clear old archive folders... [00:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:19:14]tlvbuf is 018BD9C0 [00:19:14]SAM_PROTO_ClearQueue [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 09 00 00 [00:19:14]Write to MH i2c: E2 08 00 13 25 80 09 00 00 00 00 00 00 AA [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [00:19:14]RAPDU: 90 00 [00:19:14]wFMCommunicate OK [00:19:14]SAM_PROTO_ClearQueue done [00:19:14]KKMCreateOFDPacket [00:19:14]OFDProtocolAddRootSTLVToBuf [00:19:14]FM_MakeSignedData [00:19:14]FM_MakeSignedData [00:19:14]SAM_PROTO_SignData [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 0D 01 02 [00:19:14]Write to MH i2c: E2 08 00 14 25 80 0D 01 02 00 00 00 00 B2 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 14 25 00 90 00 AD [00:19:14]RAPDU: 90 00 [00:19:14]wFMCommunicate OK [00:19:14]wFMCommunicate request_size=255 [00:19:14]MH_SAM_APDU [00:19:14]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 01 00 00 00 F4 03 04 00 86 EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:19:14]Write to MH i2c: E2 02 01 15 25 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 01 00 00 00 F4 03 04 00 86 EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 33 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [00:19:14]RAPDU: 90 00 [00:19:14]wFMCommunicate OK [00:19:14]wFMCommunicate request_size=32 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 A9 F6 00 00 35 04 06 00 26 8F 2B 39 8F C3 [00:19:14]Write to MH i2c: E2 23 00 16 25 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 A9 F6 00 00 35 04 06 00 26 8F 2B 39 8F C3 00 00 22 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 03 00 16 25 00 90 00 AF [00:19:14]RAPDU: 90 00 [00:19:14]wFMCommunicate OK [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 0D 03 02 [00:19:14]Write to MH i2c: E2 08 00 17 25 80 0D 03 02 00 00 00 00 B7 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0B 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0B 00 17 25 00 86 18 3B D6 69 53 07 CD 90 00 F7 [00:19:15]RAPDU: 86 18 3B D6 69 53 07 CD 90 00 [00:19:15]wFMCommunicate OK [00:19:15]SAM_PROTO_SignData done [00:19:15]FM_MakeSignedData done [00:19:15]CreateOFDProtocolMessage [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 11 00 00 [00:19:15]Write to MH i2c: E2 08 00 18 25 80 11 00 00 00 00 00 00 B7 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 17 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 17 00 18 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 10 [00:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:19:15]wFMCommunicate OK [00:19:15]CreateOFDProtocolMessage done [00:19:15]OFDSenderStorePacket 63145 [00:19:15]StoreOFDPacket docnum=63145 [00:19:15]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 9C 2A 1D 01 08 D7 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 01 00 00 00 F4 03 04 00 86 EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A9 F6 00 00 35 04 06 00 26 8F 2B 39 8F C3 86 18 3B D6 69 53 07 CD [00:19:15]CheckFolder [00:19:15]dirname=/storage/ofd_packets [00:19:15]CheckFolder done [00:19:15]ProducePacketName [00:19:15]name=ofd_packets/00063145 [00:19:15]NVStorageSaveData ofd_packets/00063145 [00:19:15]File name is /storage/ofd_packets/00063145 [00:19:15]Write 323 bytes [00:19:15]NVStorageSaveData done [00:19:15]OFDSenderStorePacket done [00:19:15]KKMCreateOFDPacket done [00:19:15]NVStorageSaveData kkm_last_timestamp [00:19:15]File name is /storage/kkm_last_timestamp [00:19:15]Write 4 bytes [00:19:15]NVStorageSaveData done [00:19:15]ExternCall_PrintAddStr [00:19:15]wPrintStart [00:19:15]Write to MH i2c: 01 00 00 19 25 3E [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 07 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 07 00 19 25 00 00 00 00 00 FF 0F 53 [00:19:15]RasterBufferAndPrint [00:19:15]line Счет N : (3)47455 [00:19:15]line ИНН: 02508201610067 [00:19:15]line Контрольно-Кассовый Чек [00:19:15]line ПРОДАЖА [00:19:15]line Товар: 48743570 [00:19:15]line Сигареты Winston XStyle Blue [00:19:15]line 1.000 * 144.00 [00:19:15]line = 144.00 [00:19:15]line НДС 12% НСП 1% [00:19:15]line > о реализуемом товаре [00:19:15]line ИТОГО: 144.00 [00:19:15]line НСП 1% : 1.27 [00:19:15]line НДС 12% : 15.29 [00:19:15]line Наличными: 144.00 [00:19:15]line Безнал.: 0.00 [00:19:15]line Место: АЗС № 86 "Партнер Нефть" [00:19:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:19:15]line СНО: Общий режим [00:19:15]line Чек 1 22.10.2024 00:19 [00:19:15]line Смена: 545 ФФД: 1.0 [00:19:15]line ЗНМ: 0300000154 [00:19:15]line РНМ: 0000000000091619 [00:19:15]line Версия ККМ: 001 [00:19:15]line ФМ: 0000000000874676 [00:19:15]line ФД: 63145 [00:19:15]line ФПД: 42396347371459 [00:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001918&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63145&fm=42396347371459&tin=02508201610067®Number=0000000000091619&sum=14400 [00:19:15]line 0 [00:19:15]written 0, free lines is 4095 [00:19:15]OFD Sender: Processing packet 63145 [packets to send 232, broken 231] [00:19:15]ProducePacketName [00:19:15]name=ofd_packets/00063145 [00:19:15]OFD Sender: To server: pG, [00:19:15]CommunicateWithHost lk.salyk.kg:30040 [00:19:15]ConnectInit lk.salyk.kg [00:19:15]Connected sock=10 [00:19:15]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 9C 2A 1D 01 08 D7 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 01 00 00 00 F4 03 04 00 86 EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 A9 F6 00 00 35 04 06 00 26 8F 2B 39 8F C3 86 18 3B D6 69 53 07 CD [00:19:15]Write to MH i2c: 01 00 00 41 25 66 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 07 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 FF 0C 78 [00:19:15]RasterBufferAndPrint [00:19:15]line [00:19:15]line [00:19:15]line [00:19:15]line [00:19:15]line [00:19:15]written 0, free lines is 3333 [00:19:15]MH_Cut [00:19:15]Write to MH i2c: D1 01 00 48 25 01 3F [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: D1 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: D1 01 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: D1 01 00 48 25 00 3E [00:19:15]Write to MH i2c: 01 00 00 49 25 6E [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]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 87 CC 47 00 D5 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 A9 F6 00 00 F4 03 04 00 82 99 16 67 B6 04 01 00 00 44 1A 1D A3 EC F0 05 D1 [00:19:15]CommunicateWithHost err = 0 [00:19:15]CheckOFDResponse [00:19:15]1017 (14) - 77093643461234 [00:19:15]1041 (16) - 0000000000874676 [00:19:15]1040 (4) - 63145 [00:19:15]1012 (4) - 21.10.2024 18:12 [00:19:15]1206 (1) - 0 [00:19:15]OFD Sender: Remove packet 63145 [00:19:15]ProducePacketName [00:19:15]name=ofd_packets/00063145 [00:19:15]NVStorageDeleteData [00:19:16]OFD Sender: No OFD packet to send [00:19:16]*** Cut start [00:19:16]*** Partial cut [00:19:16]*** CUTSNS_PIN = 1 [00:19:16]*** CUTSNS_PIN = 0 [00:19:16]*** Brake cut motor [00:19:17]Read from MH i2c: 01 [00:19:17]MH_I2C_Read... [00:19:17]*** Stop cut motor [00:19:17]*** Cut end [00:19:17]Read from MH i2c: 01 07 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [00:19:17]process_action close_receipt done [00:19:17]requested_data is exist [00:19:17]produce_requested_data [00:19:17]requested_item fm.sn is exist - process it [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 11 00 00 [00:19:17]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:17]Read from MH i2c: E2 17 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 42 [00:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:19:17]wFMCommunicate OK [00:19:17]requested_item fd.num is exist - process it [00:19:17]SAM_PROTO_GetFieldsCounters [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 13 00 00 [00:19:17]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 62 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 62 00 4B 25 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 A9 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 A9 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:17]wFMCommunicate OK [00:19:17]SAM_PROTO_GetFieldsCounters done [00:19:17]requested_item shift.num is exist - process it [00:19:17]requested_item shift.opened is exist - process it [00:19:17]req_shift_opened [00:19:17]FM_GetShiftState [00:19:17]SAM_PROTO_GetShiftState [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 13 01 00 [00:19:17]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 0E 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 E4 [00:19:17]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:19:17]wFMCommunicate OK [00:19:17]SAM_PROTO_GetShiftState done [00:19:17]FM_GetShiftState done [00:19:17]req_shift_opened done [00:19:17]requested_item shift.open_date is exist - process it [00:19:17]req_shift_open_date [00:19:17]req_shift_open_date done [00:19:17]produce_requested_data done [00:19:17]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63145,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:19:17]process_action_free close_receipt [00:19:17]json_value_free [00:19:17]json_value_free done [00:19:17]process_json_proto returns [00:19:17]Send response to host [00:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63145,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:19:17]free response buf [00:19:17]execute_script done [00:19:17]execute_script returns [00:19:17]free content buf [00:19:17]Sock 9.Close socket [00:19:17]Sock 9.Thread stoped [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:10]accept exits with 7 [00:21:10]New connection [00:21:10]New thread 3067055460 created [00:21:10]Thread 3067198820 joined [00:21:10]Waiting for new connection... [00:21:10] Sock 7.Parse request [00:21:10]Sock 7.Check first char [00:21:10]Sock 7.First char is OK [00:21:10]request: POST /json_proto HTTP/1.0 [00:21:10]Method: POST [00:21:10]URL: /json_proto [00:21:10]Method is POST - this is cgi request [00:21:10]url: /json_proto [00:21:10]query_string will be loaded in cgi processing [00:21:10]execute_cgi json_proto POST (null) [00:21:10]execute_cgi path=json_proto method=POST [00:21:10]POST find Content-Length [00:21:10]Host: 172.17.42.132:8080 [00:21:10]Content-Length: 628 [00:21:10]Content-Type: application/json [00:21:10] [00:21:10]POST finish read [00:21:10]Found Content-Length = 628 [00:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47456", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact 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" ] } } [00:21:10]execute_script... [00:21: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)47456", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact 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" ] } } [00:21:10]POST & json_proto [00:21:10]process_json_proto [00:21:10]json parsed OK: [00:21:10]protocol is kg_v1.0 [00:21:10]action value=close_receipt [00:21:10]process_action close_receipt [00:21:10]cmd_close_receipt [00:21:10]MH_GetDate [00:21:10]Write to MH i2c: F0 00 00 4D 25 61 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 09 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 09 00 4D 25 00 FB EF 16 67 4C DF 56 66 B8 [00:21:10]GetLastDocTimeStamp 1729556358 [00:21:10]current date 1729556475 [00:21:10]FM_GetShiftState [00:21:10]SAM_PROTO_GetShiftState [00:21:10]wFMCommunicate request_size=4 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 13 01 00 [00:21:10]Write to MH i2c: E2 08 00 4E 25 80 13 01 00 00 00 00 00 F0 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 0E 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 0E 00 4E 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 E6 [00:21:10]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:21:10]wFMCommunicate OK [00:21:10]SAM_PROTO_GetShiftState done [00:21:10]FM_GetShiftState done [00:21:10]opened in 1729556095 [00:21:10]opened+sec_in_day 1729642495 [00:21:10]quantity*price = 13900 [00:21:10]sum+1 = 13901 [00:21:10]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 СНО: Общий режим Чек 2 22.10.2024 00:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63146 ФПД: 174832277678421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002115&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63146&fm=174832277678421&tin=02508201610067®Number=0000000000091619&sum=13900 0 [00:21:11]StoreToDocumentArchive [00:21:11]shift 545 fd 63146 [00:21:11]save to /storage/0545/doc_00063146 [00:21:11]save last doc name /storage/0545/doc_00063146 to /storage/kkm_last_doc_name [00:21:11]save OK [00:21:11]Clear old archive folders... [00:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=281 [00:21:11]tlvbuf is B6F91910 [00:21:11]SAM_PROTO_ClearQueue [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 09 00 00 [00:21:11]Write to MH i2c: E2 08 00 5B 25 80 09 00 00 00 00 00 00 F2 [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:11]Read from MH i2c: E2 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [00:21:11]RAPDU: 90 00 [00:21:11]wFMCommunicate OK [00:21:11]SAM_PROTO_ClearQueue done [00:21:11]KKMCreateOFDPacket [00:21:11]OFDProtocolAddRootSTLVToBuf [00:21:11]FM_MakeSignedData [00:21:11]FM_MakeSignedData [00:21:11]SAM_PROTO_SignData [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 0D 01 02 [00:21:11]Write to MH i2c: E2 08 00 5C 25 80 0D 01 02 00 00 00 00 FA [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:11]Read from MH i2c: E2 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [00:21:11]RAPDU: 90 00 [00:21:11]wFMCommunicate OK [00:21:11]wFMCommunicate request_size=255 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 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 53 6F 68 6F 20 43 6F 6D 70 61 63 74 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 02 00 00 00 F4 03 04 00 FB EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 [00:21:11]Write to MH i2c: E2 02 01 5D 25 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 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 53 6F 68 6F 20 43 6F 6D 70 61 63 74 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 02 00 00 00 F4 03 04 00 FB EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 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 80 [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [00:21:12]RAPDU: 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=40 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AA F6 00 00 35 04 06 00 9F 02 4F CE 69 55 [00:21:12]Write to MH i2c: E2 2B 00 5E 25 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AA F6 00 00 35 04 06 00 9F 02 4F CE 69 55 00 00 DC [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 5E 25 00 90 00 F7 [00:21:12]RAPDU: 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 0D 03 02 [00:21:12]Write to MH i2c: E2 08 00 5F 25 80 0D 03 02 00 00 00 00 FF [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0B 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0B 00 5F 25 00 42 4E DF A0 46 4A CB 99 90 00 03 [00:21:12]RAPDU: 42 4E DF A0 46 4A CB 99 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_SignData done [00:21:12]FM_MakeSignedData done [00:21:12]CreateOFDProtocolMessage [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 11 00 00 [00:21:12]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 17 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [00:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:21:12]wFMCommunicate OK [00:21:12]CreateOFDProtocolMessage done [00:21:12]OFDSenderStorePacket 63146 [00:21:12]StoreOFDPacket docnum=63146 [00:21: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 2D 01 00 00 C1 B5 25 01 11 15 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 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 53 6F 68 6F 20 43 6F 6D 70 61 63 74 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 02 00 00 00 F4 03 04 00 FB EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AA F6 00 00 35 04 06 00 9F 02 4F CE 69 55 42 4E DF A0 46 4A CB 99 [00:21:12]CheckFolder [00:21:12]dirname=/storage/ofd_packets [00:21:12]CheckFolder done [00:21:12]ProducePacketName [00:21:12]name=ofd_packets/00063146 [00:21:12]NVStorageSaveData ofd_packets/00063146 [00:21:12]File name is /storage/ofd_packets/00063146 [00:21:12]Write 331 bytes [00:21:12]NVStorageSaveData done [00:21:12]OFDSenderStorePacket done [00:21:12]KKMCreateOFDPacket done [00:21:12]NVStorageSaveData kkm_last_timestamp [00:21:12]File name is /storage/kkm_last_timestamp [00:21:12]Write 4 bytes [00:21:12]NVStorageSaveData done [00:21:12]ExternCall_PrintAddStr [00:21:12]wPrintStart [00:21:12]Write to MH i2c: 01 00 00 61 25 86 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [00:21:12]RasterBufferAndPrint [00:21:12]line Счет N : (3)47456 [00:21:12]line ИНН: 02508201610067 [00:21:12]line Контрольно-Кассовый Чек [00:21:12]line ПРОДАЖА [00:21:12]line Товар: 48745307 [00:21:12]line Сигареты Parliament Soho Compact Mix [00:21:12]line 1.000 * 139.00 [00:21:12]line = 139.00 [00:21:12]line НДС 12% НСП 1% [00:21:12]line > о реализуемом товаре [00:21:12]line ИТОГО: 139.00 [00:21:12]line НСП 1% : 1.23 [00:21:12]line НДС 12% : 14.76 [00:21:12]line Наличными: 139.00 [00:21:12]line Безнал.: 0.00 [00:21:12]line Место: АЗС № 86 "Партнер Нефть" [00:21:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:21:12]line СНО: Общий режим [00:21:12]line Чек 2 22.10.2024 00:21 [00:21:12]line Смена: 545 ФФД: 1.0 [00:21:12]line ЗНМ: 0300000154 [00:21:12]line РНМ: 0000000000091619 [00:21:12]line Версия ККМ: 001 [00:21:12]line ФМ: 0000000000874676 [00:21:12]line ФД: 63146 [00:21:12]line ФПД: 174832277678421 [00:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002115&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63146&fm=174832277678421&tin=02508201610067®Number=0000000000091619&sum=13900 [00:21:12]OFD Sender: Processing packet 63146 [packets to send 232, broken 231] [00:21:12]ProducePacketName [00:21:12]name=ofd_packets/00063146 [00:21:12]OFD Sender: To server: pG, [00:21:12]CommunicateWithHost lk.salyk.kg:30040 [00:21:12]ConnectInit lk.salyk.kg [00:21:12]line 0 [00:21:12]written 0, free lines is 4095 [00:21:12]Connected sock=11 [00:21: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 2D 01 00 00 C1 B5 25 01 11 15 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 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 53 6F 68 6F 20 43 6F 6D 70 61 63 74 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 02 00 00 00 F4 03 04 00 FB EF 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AA F6 00 00 35 04 06 00 9F 02 4F CE 69 55 42 4E DF A0 46 4A CB 99 [00:21:12]Write to MH i2c: 01 00 00 8A 25 AF [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FD 0C BF [00:21:12]RasterBufferAndPrint [00:21:12]line [00:21:12]line [00:21:12]line [00:21:12]line [00:21:12]line [00:21:13]written 0, free lines is 3331 [00:21:13]MH_Cut [00:21:13]Write to MH i2c: D1 01 00 91 25 01 88 [00:21:13]Write i2c OK [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: D1 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: D1 01 00 [00:21:13]MH_I2C_Read... [00:21:13]Read from MH i2c: D1 01 00 91 25 00 87 [00:21:13]Write to MH i2c: 01 00 00 92 25 B7 [00:21:13]Write i2c OK [00:21:13]MH_I2C_Read... [00:21: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 7C 94 47 00 AA 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 AA F6 00 00 F4 03 04 00 F7 99 16 67 B6 04 01 00 00 3D 0A F0 5A EE 93 84 AD [00:21:13]CommunicateWithHost err = 0 [00:21:13]CheckOFDResponse [00:21:13]1017 (14) - 77093643461234 [00:21:13]1041 (16) - 0000000000874676 [00:21:13]1040 (4) - 63146 [00:21:13]1012 (4) - 21.10.2024 18:14 [00:21:13]1206 (1) - 0 [00:21:13]OFD Sender: Remove packet 63146 [00:21:13]ProducePacketName [00:21:13]name=ofd_packets/00063146 [00:21:13]NVStorageDeleteData [00:21:13]OFD Sender: No OFD packet to send [00:21:13]*** Cut start [00:21:13]*** Partial cut [00:21:13]*** CUTSNS_PIN = 1 [00:21:13]*** CUTSNS_PIN = 0 [00:21:13]*** Brake cut motor [00:21:14]Read from MH i2c: 01 [00:21:14]MH_I2C_Read... [00:21:14]*** Stop cut motor [00:21:14]*** Cut end [00:21:14]Read from MH i2c: 01 07 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 FF 0F CC [00:21:14]process_action close_receipt done [00:21:14]requested_data is exist [00:21:14]produce_requested_data [00:21:14]requested_item fm.sn is exist - process it [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 11 00 00 [00:21:14]Write to MH i2c: E2 08 00 93 25 80 11 00 00 00 00 00 00 32 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:14]Read from MH i2c: E2 17 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 17 00 93 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8B [00:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:21:14]wFMCommunicate OK [00:21:14]requested_item fd.num is exist - process it [00:21:14]SAM_PROTO_GetFieldsCounters [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 00 00 [00:21:14]Write to MH i2c: E2 08 00 94 25 80 13 00 00 00 00 00 00 35 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 62 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 62 00 94 25 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 AA F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:21: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 AA F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetFieldsCounters done [00:21:14]requested_item shift.num is exist - process it [00:21:14]requested_item shift.opened is exist - process it [00:21:14]req_shift_opened [00:21:14]FM_GetShiftState [00:21:14]SAM_PROTO_GetShiftState [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 01 00 [00:21:14]Write to MH i2c: E2 08 00 95 25 80 13 01 00 00 00 00 00 37 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 95 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 2D [00:21:14]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetShiftState done [00:21:14]FM_GetShiftState done [00:21:14]req_shift_opened done [00:21:14]requested_item shift.open_date is exist - process it [00:21:14]req_shift_open_date [00:21:14]req_shift_open_date done [00:21:14]produce_requested_data done [00:21:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63146,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:21:14]process_action_free close_receipt [00:21:14]json_value_free [00:21:14]json_value_free done [00:21:14]process_json_proto returns [00:21:14]Send response to host [00:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63146,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:21:14]free response buf [00:21:14]execute_script done [00:21:14]execute_script returns [00:21:14]free content buf [00:21:14]Sock 7.Close socket [00:21:14]Sock 7.Thread stoped [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:31]accept exits with 9 [00:22:31]New connection [00:22:31]New thread 3067198820 created [00:22:31]Thread 3067055460 joined [00:22:31]Waiting for new connection... [00:22:31] Sock 9.Parse request [00:22:31]Sock 9.Check first char [00:22:31]Sock 9.First char is OK [00:22:31]request: POST /json_proto HTTP/1.0 [00:22:31]Method: POST [00:22:31]URL: /json_proto [00:22:31]Method is POST - this is cgi request [00:22:31]url: /json_proto [00:22:31]query_string will be loaded in cgi processing [00:22:31]execute_cgi json_proto POST (null) [00:22:31]execute_cgi path=json_proto method=POST [00:22:31]POST find Content-Length [00:22:31]Host: 172.17.42.132:8080 [00:22:31]Content-Length: 877 [00:22:31]Content-Type: application/json [00:22:31] [00:22:31]POST finish read [00:22:31]Found Content-Length = 877 [00:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47457", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.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" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:31]execute_script... [00:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47457", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.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" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:31]POST & json_proto [00:22:31]process_json_proto [00:22:31]json parsed OK: [00:22:31]protocol is kg_v1.0 [00:22:31]action value=close_receipt [00:22:31]process_action close_receipt [00:22:31]cmd_close_receipt [00:22:31]MH_GetDate [00:22:31]Write to MH i2c: F0 00 00 96 25 AA [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: F0 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: F0 09 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: F0 09 00 96 25 00 4C F0 16 67 4C DF 56 66 53 [00:22:31]GetLastDocTimeStamp 1729556475 [00:22:31]current date 1729556556 [00:22:31]FM_GetShiftState [00:22:31]SAM_PROTO_GetShiftState [00:22:31]wFMCommunicate request_size=4 [00:22:31]MH_SAM_APDU [00:22:31]CAPDU: 80 13 01 00 [00:22:31]Write to MH i2c: E2 08 00 97 25 80 13 01 00 00 00 00 00 39 [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:31]Read from MH i2c: E2 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 0E 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 0E 00 97 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 2F [00:22:31]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:22:31]wFMCommunicate OK [00:22:31]SAM_PROTO_GetShiftState done [00:22:31]FM_GetShiftState done [00:22:31]opened in 1729556095 [00:22:31]opened+sec_in_day 1729642495 [00:22:31]quantity*price = 63000 [00:22:31]sum+1 = 63001 [00:22:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 755.00 НСП 1% : 6.68 НДС 12% : 80.17 Наличными: 755.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 3 22.10.2024 00:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63147 ФПД: 140188686442410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002236&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63147&fm=140188686442410&tin=02508201610067®Number=0000000000091619&sum=75500 0 [00:22:32]StoreToDocumentArchive [00:22:32]shift 545 fd 63147 [00:22:32]save to /storage/0545/doc_00063147 [00:22:32]save last doc name /storage/0545/doc_00063147 to /storage/kkm_last_doc_name [00:22:32]save OK [00:22:32]Clear old archive folders... [00:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=372 [00:22:32]tlvbuf is 01854F50 [00:22:32]SAM_PROTO_ClearQueue [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 09 00 00 [00:22:32]Write to MH i2c: E2 08 00 A4 25 80 09 00 00 00 00 00 00 3B [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 A4 25 00 90 00 3D [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]SAM_PROTO_ClearQueue done [00:22:32]KKMCreateOFDPacket [00:22:32]OFDProtocolAddRootSTLVToBuf [00:22:32]FM_MakeSignedData [00:22:32]FM_MakeSignedData [00:22:32]SAM_PROTO_SignData [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 0D 01 02 [00:22:32]Write to MH i2c: E2 08 00 A5 25 80 0D 01 02 00 00 00 00 43 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]wFMCommunicate request_size=255 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 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 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 [00:22:32]Write to MH i2c: E2 02 01 A6 25 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 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 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 00 00 FA [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 A6 25 00 90 00 3F [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]wFMCommunicate request_size=131 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4C F0 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AB F6 00 00 35 04 06 00 7F 80 38 DB 5F AA [00:22:33]Write to MH i2c: E2 86 00 A7 25 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4C F0 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AB F6 00 00 35 04 06 00 7F 80 38 DB 5F AA 00 00 9F [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 03 00 A7 25 00 90 00 40 [00:22:33]RAPDU: 90 00 [00:22:33]wFMCommunicate OK [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 0D 03 02 [00:22:33]Write to MH i2c: E2 08 00 A8 25 80 0D 03 02 00 00 00 00 48 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 0B 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 0B 00 A8 25 00 82 7C 67 D5 07 EB E1 97 90 00 ED [00:22:33]RAPDU: 82 7C 67 D5 07 EB E1 97 90 00 [00:22:33]wFMCommunicate OK [00:22:33]SAM_PROTO_SignData done [00:22:33]FM_MakeSignedData done [00:22:33]CreateOFDProtocolMessage [00:22:33]wFMCommunicate request_size=4 [00:22:33]MH_SAM_APDU [00:22:33]CAPDU: 80 11 00 00 [00:22:33]Write to MH i2c: E2 08 00 A9 25 80 11 00 00 00 00 00 00 48 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:33]Read from MH i2c: E2 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 17 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: E2 17 00 A9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A1 [00:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:22:33]wFMCommunicate OK [00:22:33]CreateOFDProtocolMessage done [00:22:33]OFDSenderStorePacket 63147 [00:22:33]StoreOFDPacket docnum=63147 [00:22: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 88 01 00 00 81 6A 80 01 40 9A 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 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 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4C F0 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AB F6 00 00 35 04 06 00 7F 80 38 DB 5F AA 82 7C 67 D5 07 EB E1 97 [00:22:33]CheckFolder [00:22:33]dirname=/storage/ofd_packets [00:22:33]CheckFolder done [00:22:33]ProducePacketName [00:22:33]name=ofd_packets/00063147 [00:22:33]NVStorageSaveData ofd_packets/00063147 [00:22:33]File name is /storage/ofd_packets/00063147 [00:22:33]Write 422 bytes [00:22:33]NVStorageSaveData done [00:22:33]OFDSenderStorePacket done [00:22:33]KKMCreateOFDPacket done [00:22:33]NVStorageSaveData kkm_last_timestamp [00:22:33]File name is /storage/kkm_last_timestamp [00:22:33]Write 4 bytes [00:22:33]NVStorageSaveData done [00:22:33]ExternCall_PrintAddStr [00:22:33]wPrintStart [00:22:33]Write to MH i2c: 01 00 00 AA 25 CF [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 AA 25 00 00 00 00 00 FF 0F E4 [00:22:33]RasterBufferAndPrint [00:22:33]line Счет N : (3)47457 [00:22:33]line ИНН: 02508201610067 [00:22:33]line Контрольно-Кассовый Чек [00:22:33]line ПРОДАЖА [00:22:33]line Товар: 4700002083334 [00:22:33]line Водка Level 0,7л [00:22:33]line 1.000 * 630.00 [00:22:33]line = 630.00 [00:22:33]line НДС 12% НСП 1% [00:22:33]line > о реализуемом товаре [00:22:33]line Товар: 5449000054227 [00:22:33]line Напиток Кока-Кола 1л [00:22:33]line 1.000 * 125.00 [00:22:33]line = 125.00 [00:22:33]line НДС 12% НСП 1% [00:22:33]line > о реализуемом товаре [00:22:33]line ИТОГО: 755.00 [00:22:33]line НСП 1% : 6.68 [00:22:33]line НДС 12% : 80.17 [00:22:33]line Наличными: 755.00 [00:22:33]line Безнал.: 0.00 [00:22:33]line Место: АЗС № 86 "Партнер Нефть" [00:22:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:22:33]line СНО: Общий режим [00:22:33]line Чек 3 22.10.2024 00:22 [00:22:33]line Смена: 545 ФФД: 1.0 [00:22:33]line ЗНМ: 0300000154 [00:22:33]line РНМ: 0000000000091619 [00:22:33]line Версия ККМ: 001 [00:22:33]line ФМ: 0000000000874676 [00:22:33]line ФД: 63147 [00:22:33]line ФПД: 140188686442410 [00:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002236&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63147&fm=140188686442410&tin=02508201610067®Number=0000000000091619&sum=75500 [00:22:33]line 0 [00:22:33]OFD Sender: Processing packet 63147 [packets to send 232, broken 231] [00:22:33]ProducePacketName [00:22:33]name=ofd_packets/00063147 [00:22:33]OFD Sender: To server: pG, [00:22:33]CommunicateWithHost lk.salyk.kg:30040 [00:22:33]ConnectInit lk.salyk.kg [00:22:33]written 0, free lines is 4095 [00:22:33]Connected sock=10 [00:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 88 01 00 00 81 6A 80 01 40 9A 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 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 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 4C F0 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AB F6 00 00 35 04 06 00 7F 80 38 DB 5F AA 82 7C 67 D5 07 EB E1 97 [00:22:34]Write to MH i2c: 01 00 00 D8 25 FD [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 07 00 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: 01 07 00 D8 25 00 00 00 00 00 E0 0C F0 [00:22:34]RasterBufferAndPrint [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]line [00:22:34]written 0, free lines is 3305 [00:22: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 92 F4 47 00 93 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 AB F6 00 00 F4 03 04 00 48 9A 16 67 B6 04 01 00 00 A2 76 F2 AD 40 2F A7 4E [00:22:34]CommunicateWithHost err = 0 [00:22:34]CheckOFDResponse [00:22:34]1017 (14) - 77093643461234 [00:22:34]1041 (16) - 0000000000874676 [00:22:34]1040 (4) - 63147 [00:22:34]1012 (4) - 21.10.2024 18:15 [00:22:34]1206 (1) - 0 [00:22:34]OFD Sender: Remove packet 63147 [00:22:34]ProducePacketName [00:22:34]name=ofd_packets/00063147 [00:22:34]NVStorageDeleteData [00:22:34]MH_Cut [00:22:34]Write to MH i2c: D1 01 00 DF 25 01 D6 [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 01 00 [00:22:34]MH_I2C_Read... [00:22:34]Read from MH i2c: D1 01 00 DF 25 00 D5 [00:22:34]Write to MH i2c: 01 00 00 E0 25 05 [00:22:34]Write i2c OK [00:22:34]MH_I2C_Read... [00:22:34]OFD Sender: No OFD packet to send [00:22:34]*** Cut start [00:22:34]*** Partial cut [00:22:34]*** CUTSNS_PIN = 1 [00:22:34]*** CUTSNS_PIN = 0 [00:22:35]*** Brake cut motor [00:22:35]Read from MH i2c: 01 [00:22:35]MH_I2C_Read... [00:22:35]*** Stop cut motor [00:22:35]*** Cut end [00:22:35]Read from MH i2c: 01 07 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: 01 07 00 E0 25 00 00 00 00 00 FF 0F 1A [00:22:35]process_action close_receipt done [00:22:35]requested_data is exist [00:22:35]produce_requested_data [00:22:35]requested_item fm.sn is exist - process it [00:22:35]wFMCommunicate request_size=4 [00:22:35]MH_SAM_APDU [00:22:35]CAPDU: 80 11 00 00 [00:22:35]Write to MH i2c: E2 08 00 E1 25 80 11 00 00 00 00 00 00 80 [00:22:35]Write i2c OK [00:22:35]MH_I2C_Read... [00:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:35]Read from MH i2c: E2 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 17 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 17 00 E1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D9 [00:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:22:35]wFMCommunicate OK [00:22:35]requested_item fd.num is exist - process it [00:22:35]SAM_PROTO_GetFieldsCounters [00:22:35]wFMCommunicate request_size=4 [00:22:35]MH_SAM_APDU [00:22:35]CAPDU: 80 13 00 00 [00:22:35]Write to MH i2c: E2 08 00 E2 25 80 13 00 00 00 00 00 00 83 [00:22:35]Write i2c OK [00:22:35]MH_I2C_Read... [00:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:35]Read from MH i2c: E2 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 62 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 62 00 E2 25 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 AB F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [00:22: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 AB F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:35]wFMCommunicate OK [00:22:35]SAM_PROTO_GetFieldsCounters done [00:22:35]requested_item shift.num is exist - process it [00:22:35]requested_item shift.opened is exist - process it [00:22:35]req_shift_opened [00:22:35]FM_GetShiftState [00:22:35]SAM_PROTO_GetShiftState [00:22:35]wFMCommunicate request_size=4 [00:22:35]MH_SAM_APDU [00:22:35]CAPDU: 80 13 01 00 [00:22:35]Write to MH i2c: E2 08 00 E3 25 80 13 01 00 00 00 00 00 85 [00:22:35]Write i2c OK [00:22:35]MH_I2C_Read... [00:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:35]Read from MH i2c: E2 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 0E 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 0E 00 E3 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 7B [00:22:35]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:22:35]wFMCommunicate OK [00:22:35]SAM_PROTO_GetShiftState done [00:22:35]FM_GetShiftState done [00:22:35]req_shift_opened done [00:22:35]requested_item shift.open_date is exist - process it [00:22:35]req_shift_open_date [00:22:35]req_shift_open_date done [00:22:35]produce_requested_data done [00:22:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63147,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:22:35]process_action_free close_receipt [00:22:35]json_value_free [00:22:35]json_value_free done [00:22:35]process_json_proto returns [00:22:35]Send response to host [00:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63147,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:22:35]free response buf [00:22:35]execute_script done [00:22:35]execute_script returns [00:22:35]free content buf [00:22:35]Sock 9.Close socket [00:22:35]Sock 9.Thread stoped [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:38]accept exits with 7 [00:37:38]New connection [00:37:38]New thread 3067055460 created [00:37:38]Thread 3067198820 joined [00:37:38]Waiting for new connection... [00:37:38] Sock 7.Parse request [00:37:38]Sock 7.Check first char [00:37:38]Sock 7.First char is OK [00:37:38]request: POST /json_proto HTTP/1.0 [00:37:38]Method: POST [00:37:38]URL: /json_proto [00:37:38]Method is POST - this is cgi request [00:37:38]url: /json_proto [00:37:38]query_string will be loaded in cgi processing [00:37:38]execute_cgi json_proto POST (null) [00:37:38]execute_cgi path=json_proto method=POST [00:37:38]POST find Content-Length [00:37:38]Host: 172.17.42.132:8080 [00:37:38]Content-Length: 746 [00:37:38]Content-Type: application/json [00:37:38] [00:37:38]POST finish read [00:37:38]Found Content-Length = 746 [00:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47458", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 137.77, "quantity" : 1.000, "sum" : 137.77, "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" : 137.77 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:38]execute_script... [00:37: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)47458", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 137.77, "quantity" : 1.000, "sum" : 137.77, "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" : 137.77 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:38]POST & json_proto [00:37:38]process_json_proto [00:37:38]json parsed OK: [00:37:38]protocol is kg_v1.0 [00:37:38]action value=close_receipt [00:37:38]process_action close_receipt [00:37:38]cmd_close_receipt [00:37:38]MH_GetDate [00:37:38]Write to MH i2c: F0 00 00 E4 25 F8 [00:37:38]Write i2c OK [00:37:38]MH_I2C_Read... [00:37:38]Read from MH i2c: F0 [00:37:38]MH_I2C_Read... [00:37:38]Read from MH i2c: F0 09 00 [00:37:38]MH_I2C_Read... [00:37:38]Read from MH i2c: F0 09 00 E4 25 00 D7 F3 16 67 4C DF 56 66 2F [00:37:38]GetLastDocTimeStamp 1729556556 [00:37:38]current date 1729557463 [00:37:38]FM_GetShiftState [00:37:38]SAM_PROTO_GetShiftState [00:37:38]wFMCommunicate request_size=4 [00:37:38]MH_SAM_APDU [00:37:38]CAPDU: 80 13 01 00 [00:37:38]Write to MH i2c: E2 08 00 E5 25 80 13 01 00 00 00 00 00 87 [00:37:38]Write i2c OK [00:37:38]MH_I2C_Read... [00:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:38]Read from MH i2c: E2 [00:37:38]MH_I2C_Read... [00:37:38]Read from MH i2c: E2 0E 00 [00:37:38]MH_I2C_Read... [00:37:38]Read from MH i2c: E2 0E 00 E5 25 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 7D [00:37:38]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:37:38]wFMCommunicate OK [00:37:38]SAM_PROTO_GetShiftState done [00:37:38]FM_GetShiftState done [00:37:38]opened in 1729556095 [00:37:38]opened+sec_in_day 1729642495 [00:37:38]quantity*price = 13777 [00:37:38]sum+1 = 13778 [00:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 137.77 НСП 1% : 1.22 НДС 12% : 14.63 Наличными: 0.00 Безнал.: 137.77 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 4 22.10.2024 00:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63148 ФПД: 219528127465444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003743&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63148&fm=219528127465444&tin=02508201610067®Number=0000000000091619&sum=13777 0 [00:37:39]StoreToDocumentArchive [00:37:39]shift 545 fd 63148 [00:37:39]save to /storage/0545/doc_00063148 [00:37:39]save last doc name /storage/0545/doc_00063148 to /storage/kkm_last_doc_name [00:37:39]save OK [00:37:39]Clear old archive folders... [00:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:37:39]tlvbuf is B6F164A0 [00:37:39]SAM_PROTO_ClearQueue [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 09 00 00 [00:37:39]Write to MH i2c: E2 08 00 F2 25 80 09 00 00 00 00 00 00 89 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 F2 25 00 90 00 8B [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]SAM_PROTO_ClearQueue done [00:37:39]KKMCreateOFDPacket [00:37:39]OFDProtocolAddRootSTLVToBuf [00:37:39]FM_MakeSignedData [00:37:39]FM_MakeSignedData [00:37:39]SAM_PROTO_SignData [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 01 02 [00:37:39]Write to MH i2c: E2 08 00 F3 25 80 0D 01 02 00 00 00 00 91 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 F3 25 00 90 00 8C [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]wFMCommunicate request_size=255 [00:37:39]MH_SAM_APDU [00:37:39]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 D1 35 00 00 00 00 13 04 06 00 D1 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F3 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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:37:39]Write to MH i2c: E2 02 01 F4 25 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 D1 35 00 00 00 00 13 04 06 00 D1 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F3 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 33 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 F4 25 00 90 00 8D [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]wFMCommunicate request_size=31 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 AC F6 00 00 35 04 06 00 C7 A8 E0 0E 47 E4 [00:37:39]Write to MH i2c: E2 22 00 F5 25 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 AC F6 00 00 35 04 06 00 C7 A8 E0 0E 47 E4 00 00 EF [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 03 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 03 00 F5 25 00 90 00 8E [00:37:40]RAPDU: 90 00 [00:37:40]wFMCommunicate OK [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 0D 03 02 [00:37:40]Write to MH i2c: E2 08 00 F6 25 80 0D 03 02 00 00 00 00 96 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 0B 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 0B 00 F6 25 00 D1 3A 68 85 B2 C8 CE 3D 90 00 14 [00:37:40]RAPDU: D1 3A 68 85 B2 C8 CE 3D 90 00 [00:37:40]wFMCommunicate OK [00:37:40]SAM_PROTO_SignData done [00:37:40]FM_MakeSignedData done [00:37:40]CreateOFDProtocolMessage [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 11 00 00 [00:37:40]Write to MH i2c: E2 08 00 F7 25 80 11 00 00 00 00 00 00 96 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 17 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 17 00 F7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EF [00:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:37:40]wFMCommunicate OK [00:37:40]CreateOFDProtocolMessage done [00:37:40]OFDSenderStorePacket 63148 [00:37:40]StoreOFDPacket docnum=63148 [00:37: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 24 01 00 00 AE 32 1C 01 10 E3 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 D1 35 00 00 00 00 13 04 06 00 D1 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F3 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AC F6 00 00 35 04 06 00 C7 A8 E0 0E 47 E4 D1 3A 68 85 B2 C8 CE 3D [00:37:40]CheckFolder [00:37:40]dirname=/storage/ofd_packets [00:37:40]CheckFolder done [00:37:40]ProducePacketName [00:37:40]name=ofd_packets/00063148 [00:37:40]NVStorageSaveData ofd_packets/00063148 [00:37:40]File name is /storage/ofd_packets/00063148 [00:37:40]Write 322 bytes [00:37:40]NVStorageSaveData done [00:37:40]OFDSenderStorePacket done [00:37:40]KKMCreateOFDPacket done [00:37:40]NVStorageSaveData kkm_last_timestamp [00:37:40]File name is /storage/kkm_last_timestamp [00:37:40]Write 4 bytes [00:37:40]NVStorageSaveData done [00:37:40]ExternCall_PrintAddStr [00:37:40]wPrintStart [00:37:40]Write to MH i2c: 01 00 00 F8 25 1D [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 FF 0F 32 [00:37:40]RasterBufferAndPrint [00:37:40]line Счет N : (3)47458 [00:37:40]line ИНН: 02508201610067 [00:37:40]line Контрольно-Кассовый Чек [00:37:40]line ПРОДАЖА [00:37:40]line Товар: 48745000 [00:37:40]line Сигареты Winston Purple Mix [00:37:40]line 1.000 * 137.77 [00:37:40]line = 137.77 [00:37:40]line НДС 12% НСП 1% [00:37:40]line > о реализуемом товаре [00:37:40]line ИТОГО: 137.77 [00:37:40]line НСП 1% : 1.22 [00:37:40]line НДС 12% : 14.63 [00:37:40]line Наличными: 0.00 [00:37:40]line Безнал.: 137.77 [00:37:40]line Место: АЗС № 86 "Партнер Нефть" [00:37:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:37:40]line СНО: Общий режим [00:37:40]line Чек 4 22.10.2024 00:37 [00:37:40]line Смена: 545 ФФД: 1.0 [00:37:40]line ЗНМ: 0300000154 [00:37:40]line РНМ: 0000000000091619 [00:37:40]line Версия ККМ: 001 [00:37:40]line Платежная система: Mbank [00:37:40]line ФМ: 0000000000874676 [00:37:40]line ФД: 63148 [00:37:40]line ФПД: 219528127465444 [00:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003743&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63148&fm=219528127465444&tin=02508201610067®Number=0000000000091619&sum=13777 [00:37:40]OFD Sender: Processing packet 63148 [packets to send 232, broken 231] [00:37:40]ProducePacketName [00:37:40]name=ofd_packets/00063148 [00:37:40]OFD Sender: To server: pG, [00:37:40]CommunicateWithHost lk.salyk.kg:30040 [00:37:40]ConnectInit lk.salyk.kg [00:37:40]line 0 [00:37:40]written 0, free lines is 4095 [00:37:40]Connected sock=11 [00:37:40]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 AE 32 1C 01 10 E3 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 D1 35 00 00 00 00 13 04 06 00 D1 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F3 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AC F6 00 00 35 04 06 00 C7 A8 E0 0E 47 E4 D1 3A 68 85 B2 C8 CE 3D [00:37:40]Write to MH i2c: 01 00 00 21 26 47 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 FF 0C 59 [00:37:40]RasterBufferAndPrint [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]written 0, free lines is 3333 [00:37:40]MH_Cut [00:37:40]Write to MH i2c: D1 01 00 28 26 01 20 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 01 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 01 00 28 26 00 1F [00:37:40]Write to MH i2c: 01 00 00 29 26 4F [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37: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 55 90 47 00 77 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AC F6 00 00 F4 03 04 00 D3 9D 16 67 B6 04 01 00 00 75 69 56 CF 63 56 3D DC [00:37:41]CommunicateWithHost err = 0 [00:37:41]CheckOFDResponse [00:37:41]1017 (14) - 77093643461234 [00:37:41]1041 (16) - 0000000000874676 [00:37:41]1040 (4) - 63148 [00:37:41]1012 (4) - 21.10.2024 18:30 [00:37:41]1206 (1) - 0 [00:37:41]OFD Sender: Remove packet 63148 [00:37:41]ProducePacketName [00:37:41]name=ofd_packets/00063148 [00:37:41]NVStorageDeleteData [00:37:41]OFD Sender: No OFD packet to send [00:37:41]*** Cut start [00:37:41]*** Partial cut [00:37:41]*** CUTSNS_PIN = 1 [00:37:41]*** CUTSNS_PIN = 0 [00:37:41]*** Brake cut motor [00:37:42]Read from MH i2c: 01 [00:37:42]MH_I2C_Read... [00:37:42]*** Stop cut motor [00:37:42]*** Cut end [00:37:42]Read from MH i2c: 01 07 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 FF 0F 64 [00:37:42]process_action close_receipt done [00:37:42]requested_data is exist [00:37:42]produce_requested_data [00:37:42]requested_item fm.sn is exist - process it [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 11 00 00 [00:37:42]Write to MH i2c: E2 08 00 2A 26 80 11 00 00 00 00 00 00 CA [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 17 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 17 00 2A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 23 [00:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:37:42]wFMCommunicate OK [00:37:42]requested_item fd.num is exist - process it [00:37:42]SAM_PROTO_GetFieldsCounters [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 13 00 00 [00:37:42]Write to MH i2c: E2 08 00 2B 26 80 13 00 00 00 00 00 00 CD [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 62 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 62 00 2B 26 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 AC F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [00:37: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 AC F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]SAM_PROTO_GetFieldsCounters done [00:37:42]requested_item shift.num is exist - process it [00:37:42]requested_item shift.opened is exist - process it [00:37:42]req_shift_opened [00:37:42]FM_GetShiftState [00:37:42]SAM_PROTO_GetShiftState [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 13 01 00 [00:37:42]Write to MH i2c: E2 08 00 2C 26 80 13 01 00 00 00 00 00 CF [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 0E 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 0E 00 2C 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 C5 [00:37:42]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]SAM_PROTO_GetShiftState done [00:37:42]FM_GetShiftState done [00:37:42]req_shift_opened done [00:37:42]requested_item shift.open_date is exist - process it [00:37:42]req_shift_open_date [00:37:42]req_shift_open_date done [00:37:42]produce_requested_data done [00:37:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63148,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:37:42]process_action_free close_receipt [00:37:42]json_value_free [00:37:42]json_value_free done [00:37:42]process_json_proto returns [00:37:42]Send response to host [00:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63148,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:37:42]free response buf [00:37:42]execute_script done [00:37:42]execute_script returns [00:37:42]free content buf [00:37:42]Sock 7.Close socket [00:37:42]Sock 7.Thread stoped [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:57]accept exits with 9 [00:57:57]New connection [00:57:57]New thread 3067198820 created [00:57:57]Thread 3067055460 joined [00:57:57]Waiting for new connection... [00:57:57] Sock 9.Parse request [00:57:57]Sock 9.Check first char [00:57:57]Sock 9.First char is OK [00:57:57]request: POST /json_proto HTTP/1.0 [00:57:57]Method: POST [00:57:57]URL: /json_proto [00:57:57]Method is POST - this is cgi request [00:57:57]url: /json_proto [00:57:57]query_string will be loaded in cgi processing [00:57:57]execute_cgi json_proto POST (null) [00:57:57]execute_cgi path=json_proto method=POST [00:57:57]POST find Content-Length [00:57:57]Host: 172.17.42.132:8080 [00:57:57]Content-Length: 967 [00:57:57]Content-Type: application/json [00:57:57] [00:57:57]POST finish read [00:57:57]Found Content-Length = 967 [00:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47459", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:57]execute_script... [00:57: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)47459", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:57]POST & json_proto [00:57:57]process_json_proto [00:57:57]json parsed OK: [00:57:57]protocol is kg_v1.0 [00:57:57]action value=close_receipt [00:57:57]process_action close_receipt [00:57:57]cmd_close_receipt [00:57:57]MH_GetDate [00:57:57]Write to MH i2c: F0 00 00 2D 26 42 [00:57:57]Write i2c OK [00:57:57]MH_I2C_Read... [00:57:57]Read from MH i2c: F0 [00:57:57]MH_I2C_Read... [00:57:57]Read from MH i2c: F0 09 00 [00:57:57]MH_I2C_Read... [00:57:57]Read from MH i2c: F0 09 00 2D 26 00 9A F8 16 67 4C DF 56 66 41 [00:57:57]GetLastDocTimeStamp 1729557463 [00:57:57]current date 1729558682 [00:57:57]FM_GetShiftState [00:57:57]SAM_PROTO_GetShiftState [00:57:57]wFMCommunicate request_size=4 [00:57:57]MH_SAM_APDU [00:57:57]CAPDU: 80 13 01 00 [00:57:57]Write to MH i2c: E2 08 00 2E 26 80 13 01 00 00 00 00 00 D1 [00:57:57]Write i2c OK [00:57:57]MH_I2C_Read... [00:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:57]Read from MH i2c: E2 [00:57:57]MH_I2C_Read... [00:57:57]Read from MH i2c: E2 0E 00 [00:57:57]MH_I2C_Read... [00:57:57]Read from MH i2c: E2 0E 00 2E 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 C7 [00:57:57]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:57:57]wFMCommunicate OK [00:57:57]SAM_PROTO_GetShiftState done [00:57:57]FM_GetShiftState done [00:57:57]opened in 1729556095 [00:57:57]opened+sec_in_day 1729642495 [00:57:57]quantity*price = 9500 [00:57:57]sum+1 = 9501 [00:57:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 5 22.10.2024 00:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63149 ФПД: 34565297986915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005802&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63149&fm=34565297986915&tin=02508201610067®Number=0000000000091619&sum=19000 0 [00:57:58]StoreToDocumentArchive [00:57:58]shift 545 fd 63149 [00:57:58]save to /storage/0545/doc_00063149 [00:57:58]save last doc name /storage/0545/doc_00063149 to /storage/kkm_last_doc_name [00:57:58]save OK [00:57:58]Clear old archive folders... [00:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=422 [00:57:58]tlvbuf is B6F91A00 [00:57:58]SAM_PROTO_ClearQueue [00:57:58]wFMCommunicate request_size=4 [00:57:58]MH_SAM_APDU [00:57:58]CAPDU: 80 09 00 00 [00:57:58]Write to MH i2c: E2 08 00 3B 26 80 09 00 00 00 00 00 00 D3 [00:57:58]Write i2c OK [00:57:58]MH_I2C_Read... [00:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:58]Read from MH i2c: E2 [00:57:58]MH_I2C_Read... [00:57:58]Read from MH i2c: E2 03 00 [00:57:58]MH_I2C_Read... [00:57:58]Read from MH i2c: E2 03 00 3B 26 00 90 00 D5 [00:57:58]RAPDU: 90 00 [00:57:58]wFMCommunicate OK [00:57:58]SAM_PROTO_ClearQueue done [00:57:58]KKMCreateOFDPacket [00:57:58]OFDProtocolAddRootSTLVToBuf [00:57:58]FM_MakeSignedData [00:57:58]FM_MakeSignedData [00:57:58]SAM_PROTO_SignData [00:57:58]wFMCommunicate request_size=4 [00:57:58]MH_SAM_APDU [00:57:58]CAPDU: 80 0D 01 02 [00:57:58]Write to MH i2c: E2 08 00 3C 26 80 0D 01 02 00 00 00 00 DB [00:57:58]Write i2c OK [00:57:58]MH_I2C_Read... [00:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:58]Read from MH i2c: E2 [00:57:58]MH_I2C_Read... [00:57:58]Read from MH i2c: E2 03 00 [00:57:58]MH_I2C_Read... [00:57:58]Read from MH i2c: E2 03 00 3C 26 00 90 00 D6 [00:57:58]RAPDU: 90 00 [00:57:58]wFMCommunicate OK [00:57:58]wFMCommunicate request_size=255 [00:57:58]MH_SAM_APDU [00:57:58]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 [00:57:58]Write to MH i2c: E2 02 01 3D 26 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 00 00 F7 [00:57:58]Write i2c OK [00:57:58]MH_I2C_Read... [00:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:59]Read from MH i2c: E2 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 03 00 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 03 00 3D 26 00 90 00 D7 [00:57:59]RAPDU: 90 00 [00:57:59]wFMCommunicate OK [00:57:59]wFMCommunicate request_size=181 [00:57:59]MH_SAM_APDU [00:57:59]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AD F6 00 00 35 04 06 00 1F 6F DC 4E DD 63 [00:57:59]Write to MH i2c: E2 B8 00 3E 26 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AD F6 00 00 35 04 06 00 1F 6F DC 4E DD 63 00 00 AC [00:57:59]Write i2c OK [00:57:59]MH_I2C_Read... [00:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:59]Read from MH i2c: E2 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 03 00 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 03 00 3E 26 00 90 00 D8 [00:57:59]RAPDU: 90 00 [00:57:59]wFMCommunicate OK [00:57:59]wFMCommunicate request_size=4 [00:57:59]MH_SAM_APDU [00:57:59]CAPDU: 80 0D 03 02 [00:57:59]Write to MH i2c: E2 08 00 3F 26 80 0D 03 02 00 00 00 00 E0 [00:57:59]Write i2c OK [00:57:59]MH_I2C_Read... [00:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:59]Read from MH i2c: E2 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 0B 00 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 0B 00 3F 26 00 59 D3 6E 35 FC F6 DF CA 90 00 4B [00:57:59]RAPDU: 59 D3 6E 35 FC F6 DF CA 90 00 [00:57:59]wFMCommunicate OK [00:57:59]SAM_PROTO_SignData done [00:57:59]FM_MakeSignedData done [00:57:59]CreateOFDProtocolMessage [00:57:59]wFMCommunicate request_size=4 [00:57:59]MH_SAM_APDU [00:57:59]CAPDU: 80 11 00 00 [00:57:59]Write to MH i2c: E2 08 00 40 26 80 11 00 00 00 00 00 00 E0 [00:57:59]Write i2c OK [00:57:59]MH_I2C_Read... [00:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:59]Read from MH i2c: E2 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 17 00 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: E2 17 00 40 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 39 [00:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:57:59]wFMCommunicate OK [00:57:59]CreateOFDProtocolMessage done [00:57:59]OFDSenderStorePacket 63149 [00:57:59]StoreOFDPacket docnum=63149 [00:57: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 BA 01 00 00 5D 24 B2 01 AA 0D 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AD F6 00 00 35 04 06 00 1F 6F DC 4E DD 63 59 D3 6E 35 FC F6 DF CA [00:57:59]CheckFolder [00:57:59]dirname=/storage/ofd_packets [00:57:59]CheckFolder done [00:57:59]ProducePacketName [00:57:59]name=ofd_packets/00063149 [00:57:59]NVStorageSaveData ofd_packets/00063149 [00:57:59]File name is /storage/ofd_packets/00063149 [00:57:59]Write 472 bytes [00:57:59]NVStorageSaveData done [00:57:59]OFDSenderStorePacket done [00:57:59]KKMCreateOFDPacket done [00:57:59]NVStorageSaveData kkm_last_timestamp [00:57:59]File name is /storage/kkm_last_timestamp [00:57:59]Write 4 bytes [00:57:59]NVStorageSaveData done [00:57:59]ExternCall_PrintAddStr [00:57:59]wPrintStart [00:57:59]Write to MH i2c: 01 00 00 41 26 67 [00:57:59]Write i2c OK [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: 01 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: 01 07 00 [00:57:59]MH_I2C_Read... [00:57:59]Read from MH i2c: 01 07 00 41 26 00 00 00 00 00 FF 0F 7C [00:57:59]RasterBufferAndPrint [00:57:59]line Счет N : (3)47459 [00:57:59]line ИНН: 02508201610067 [00:57:59]line Контрольно-Кассовый Чек [00:57:59]line ПРОДАЖА [00:57:59]line Товар: 4700000480050 [00:57:59]line Напиток Nitro Energy эн green ж/б 0,45л [00:57:59]line 1.000 * 95.00 [00:57:59]line = 95.00 [00:57:59]line НДС 12% НСП 1% [00:57:59]line > о реализуемом товаре [00:57:59]line Товар: 4700000480364 [00:57:59]line Напиток энерг Nitro экзотик 0.45 ж/б [00:57:59]line 1.000 * 95.00 [00:57:59]line = 95.00 [00:57:59]line НДС 12% НСП 1% [00:57:59]line > о реализуемом товаре [00:57:59]line ИТОГО: 190.00 [00:57:59]line НСП 1% : 1.68 [00:57:59]line НДС 12% : 20.18 [00:57:59]line Наличными: 190.00 [00:57:59]line Безнал.: 0.00 [00:57:59]line Место: АЗС № 86 "Партнер Нефть" [00:57:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:57:59]line СНО: Общий режим [00:57:59]line Чек 5 22.10.2024 00:58 [00:57:59]line Смена: 545 ФФД: 1.0 [00:57:59]line ЗНМ: 0300000154 [00:57:59]line РНМ: 0000000000091619 [00:57:59]line Версия ККМ: 001 [00:57:59]line ФМ: 0000000000874676 [00:57:59]line ФД: 63149 [00:57:59]line ФПД: 34565297986915 [00:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005802&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63149&fm=34565297986915&tin=02508201610067®Number=0000000000091619&sum=19000 [00:57:59]line 0 [00:57:59]OFD Sender: Processing packet 63149 [packets to send 232, broken 231] [00:57:59]ProducePacketName [00:57:59]name=ofd_packets/00063149 [00:57:59]OFD Sender: To server: pG, [00:57:59]CommunicateWithHost lk.salyk.kg:30040 [00:57:59]ConnectInit lk.salyk.kg [00:57:59]written 0, free lines is 4095 [00:57:59]Connected sock=11 [00:57: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 BA 01 00 00 5D 24 B2 01 AA 0D 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9A F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AD F6 00 00 35 04 06 00 1F 6F DC 4E DD 63 59 D3 6E 35 FC F6 DF CA [00:58: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 96 93 47 00 7F 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 AD F6 00 00 F4 03 04 00 96 A2 16 67 B6 04 01 00 00 9D 86 8A D8 A7 EA 5E 05 [00:58:00]CommunicateWithHost err = 0 [00:58:00]CheckOFDResponse [00:58:00]1017 (14) - 77093643461234 [00:58:00]1041 (16) - 0000000000874676 [00:58:00]1040 (4) - 63149 [00:58:00]1012 (4) - 21.10.2024 18:51 [00:58:00]1206 (1) - 0 [00:58:00]OFD Sender: Remove packet 63149 [00:58:00]ProducePacketName [00:58:00]name=ofd_packets/00063149 [00:58:00]NVStorageDeleteData [00:58:00]Write to MH i2c: 01 00 00 71 26 97 [00:58:00]Write i2c OK [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: 01 [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: 01 07 00 [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: 01 07 00 71 26 00 00 00 00 00 AC 0C 56 [00:58:00]RasterBufferAndPrint [00:58:00]line [00:58:00]line [00:58:00]line [00:58:00]line [00:58:00]line [00:58:00]written 0, free lines is 3251 [00:58:00]MH_Cut [00:58:00]Write to MH i2c: D1 01 00 78 26 01 70 [00:58:00]Write i2c OK [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: D1 [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: D1 01 00 [00:58:00]MH_I2C_Read... [00:58:00]Read from MH i2c: D1 01 00 78 26 00 6F [00:58:00]Write to MH i2c: 01 00 00 79 26 9F [00:58:00]Write i2c OK [00:58:00]MH_I2C_Read... [00:58:00]OFD Sender: No OFD packet to send [00:58:00]*** Cut start [00:58:00]*** Partial cut [00:58:00]*** CUTSNS_PIN = 1 [00:58:00]*** CUTSNS_PIN = 0 [00:58:01]*** Brake cut motor [00:58:01]Read from MH i2c: 01 [00:58:01]MH_I2C_Read... [00:58:01]*** Stop cut motor [00:58:01]*** Cut end [00:58:01]Read from MH i2c: 01 07 00 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: 01 07 00 79 26 00 00 00 00 00 FF 0F B4 [00:58:01]process_action close_receipt done [00:58:01]requested_data is exist [00:58:01]produce_requested_data [00:58:01]requested_item fm.sn is exist - process it [00:58:01]wFMCommunicate request_size=4 [00:58:01]MH_SAM_APDU [00:58:01]CAPDU: 80 11 00 00 [00:58:01]Write to MH i2c: E2 08 00 7A 26 80 11 00 00 00 00 00 00 1A [00:58:01]Write i2c OK [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 [00:58:01]MH_I2C_Read... [00:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:01]Read from MH i2c: E2 17 00 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 17 00 7A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [00:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:58:01]wFMCommunicate OK [00:58:01]requested_item fd.num is exist - process it [00:58:01]SAM_PROTO_GetFieldsCounters [00:58:01]wFMCommunicate request_size=4 [00:58:01]MH_SAM_APDU [00:58:01]CAPDU: 80 13 00 00 [00:58:01]Write to MH i2c: E2 08 00 7B 26 80 13 00 00 00 00 00 00 1D [00:58:01]Write i2c OK [00:58:01]MH_I2C_Read... [00:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:01]Read from MH i2c: E2 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 62 00 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 62 00 7B 26 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 AD F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [00:58: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 AD F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:01]wFMCommunicate OK [00:58:01]SAM_PROTO_GetFieldsCounters done [00:58:01]requested_item shift.num is exist - process it [00:58:01]requested_item shift.opened is exist - process it [00:58:01]req_shift_opened [00:58:01]FM_GetShiftState [00:58:01]SAM_PROTO_GetShiftState [00:58:01]wFMCommunicate request_size=4 [00:58:01]MH_SAM_APDU [00:58:01]CAPDU: 80 13 01 00 [00:58:01]Write to MH i2c: E2 08 00 7C 26 80 13 01 00 00 00 00 00 1F [00:58:01]Write i2c OK [00:58:01]MH_I2C_Read... [00:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:01]Read from MH i2c: E2 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 0E 00 [00:58:01]MH_I2C_Read... [00:58:01]Read from MH i2c: E2 0E 00 7C 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 15 [00:58:01]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:58:01]wFMCommunicate OK [00:58:01]SAM_PROTO_GetShiftState done [00:58:01]FM_GetShiftState done [00:58:01]req_shift_opened done [00:58:01]requested_item shift.open_date is exist - process it [00:58:01]req_shift_open_date [00:58:01]req_shift_open_date done [00:58:01]produce_requested_data done [00:58:01]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63149,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:58:01]process_action_free close_receipt [00:58:01]json_value_free [00:58:01]json_value_free done [00:58:01]process_json_proto returns [00:58:01]Send response to host [00:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63149,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:58:01]free response buf [00:58:01]execute_script done [00:58:01]execute_script returns [00:58:01]free content buf [00:58:01]Sock 9.Close socket [00:58:01]Sock 9.Thread stoped [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:12]accept exits with 7 [00:59:12]New connection [00:59:12]New thread 3067055460 created [00:59:12]Thread 3067198820 joined [00:59:12]Waiting for new connection... [00:59:12] Sock 7.Parse request [00:59:12]Sock 7.Check first char [00:59:12]Sock 7.First char is OK [00:59:12]request: POST /json_proto HTTP/1.0 [00:59:12]Method: POST [00:59:12]URL: /json_proto [00:59:12]Method is POST - this is cgi request [00:59:12]url: /json_proto [00:59:12]query_string will be loaded in cgi processing [00:59:12]execute_cgi json_proto POST (null) [00:59:12]execute_cgi path=json_proto method=POST [00:59:12]POST find Content-Length [00:59:12]Host: 172.17.42.132:8080 [00:59:12]Content-Length: 844 [00:59:12]Content-Type: application/json [00:59:12] [00:59:12]POST finish read [00:59:12]Found Content-Length = 844 [00:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47460", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 247.79, "quantity" : 1.000, "sum" : 247.79, "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" : 247.79 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:12]execute_script... [00:59:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47460", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 247.79, "quantity" : 1.000, "sum" : 247.79, "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" : 247.79 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:12]POST & json_proto [00:59:12]process_json_proto [00:59:12]json parsed OK: [00:59:12]protocol is kg_v1.0 [00:59:12]action value=close_receipt [00:59:12]process_action close_receipt [00:59:12]cmd_close_receipt [00:59:12]MH_GetDate [00:59:12]Write to MH i2c: F0 00 00 7D 26 92 [00:59:12]Write i2c OK [00:59:12]MH_I2C_Read... [00:59:12]Read from MH i2c: F0 [00:59:12]MH_I2C_Read... [00:59:12]Read from MH i2c: F0 09 00 [00:59:12]MH_I2C_Read... [00:59:12]Read from MH i2c: F0 09 00 7D 26 00 E5 F8 16 67 4C DF 56 66 DC [00:59:12]GetLastDocTimeStamp 1729558682 [00:59:12]current date 1729558757 [00:59:12]FM_GetShiftState [00:59:12]SAM_PROTO_GetShiftState [00:59:12]wFMCommunicate request_size=4 [00:59:12]MH_SAM_APDU [00:59:12]CAPDU: 80 13 01 00 [00:59:12]Write to MH i2c: E2 08 00 7E 26 80 13 01 00 00 00 00 00 21 [00:59:12]Write i2c OK [00:59:12]MH_I2C_Read... [00:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:12]Read from MH i2c: E2 [00:59:12]MH_I2C_Read... [00:59:12]Read from MH i2c: E2 0E 00 [00:59:12]MH_I2C_Read... [00:59:12]Read from MH i2c: E2 0E 00 7E 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 17 [00:59:12]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:59:12]wFMCommunicate OK [00:59:12]SAM_PROTO_GetShiftState done [00:59:12]FM_GetShiftState done [00:59:12]opened in 1729556095 [00:59:12]opened+sec_in_day 1729642495 [00:59:12]quantity*price = 24779 [00:59:12]sum+1 = 24780 [00:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 247.79 НСП 1% : 2.19 НДС 12% : 26.31 Наличными: 0.00 Безнал.: 247.79 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 6 22.10.2024 00:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63150 ФПД: 55179783444829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005917&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63150&fm=55179783444829&tin=02508201610067®Number=0000000000091619&sum=24779 0 [00:59:13]StoreToDocumentArchive [00:59:13]shift 545 fd 63150 [00:59:13]save to /storage/0545/doc_00063150 [00:59:13]save last doc name /storage/0545/doc_00063150 to /storage/kkm_last_doc_name [00:59:13]save OK [00:59:13]Clear old archive folders... [00:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=302 [00:59:13]tlvbuf is B6F91310 [00:59:13]SAM_PROTO_ClearQueue [00:59:13]wFMCommunicate request_size=4 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 09 00 00 [00:59:13]Write to MH i2c: E2 08 00 8B 26 80 09 00 00 00 00 00 00 23 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 8B 26 00 90 00 25 [00:59:13]RAPDU: 90 00 [00:59:13]wFMCommunicate OK [00:59:13]SAM_PROTO_ClearQueue done [00:59:13]KKMCreateOFDPacket [00:59:13]OFDProtocolAddRootSTLVToBuf [00:59:13]FM_MakeSignedData [00:59:13]FM_MakeSignedData [00:59:13]SAM_PROTO_SignData [00:59:13]wFMCommunicate request_size=4 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 0D 01 02 [00:59:13]Write to MH i2c: E2 08 00 8C 26 80 0D 01 02 00 00 00 00 2B [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [00:59:13]RAPDU: 90 00 [00:59:13]wFMCommunicate OK [00:59:13]wFMCommunicate request_size=255 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CB 60 00 00 00 00 13 04 06 00 CB 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E5 F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 [00:59:13]Write to MH i2c: E2 02 01 8D 26 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CB 60 00 00 00 00 13 04 06 00 CB 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E5 F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 00 00 E6 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [00:59:13]RAPDU: 90 00 [00:59:13]wFMCommunicate OK [00:59:13]wFMCommunicate request_size=61 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AE F6 00 00 35 04 06 00 32 2F 8B 64 19 5D [00:59:13]Write to MH i2c: E2 40 00 8E 26 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AE F6 00 00 35 04 06 00 32 2F 8B 64 19 5D 00 00 D4 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [00:59:13]RAPDU: 90 00 [00:59:13]wFMCommunicate OK [00:59:13]wFMCommunicate request_size=4 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 0D 03 02 [00:59:13]Write to MH i2c: E2 08 00 8F 26 80 0D 03 02 00 00 00 00 30 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 0B 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 0B 00 8F 26 00 8C 93 5E C0 50 43 6C 18 90 00 85 [00:59:13]RAPDU: 8C 93 5E C0 50 43 6C 18 90 00 [00:59:13]wFMCommunicate OK [00:59:13]SAM_PROTO_SignData done [00:59:13]FM_MakeSignedData done [00:59:13]CreateOFDProtocolMessage [00:59:13]wFMCommunicate request_size=4 [00:59:13]MH_SAM_APDU [00:59:13]CAPDU: 80 11 00 00 [00:59:13]Write to MH i2c: E2 08 00 90 26 80 11 00 00 00 00 00 00 30 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:13]Read from MH i2c: E2 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 17 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: E2 17 00 90 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 89 [00:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:59:13]wFMCommunicate OK [00:59:13]CreateOFDProtocolMessage done [00:59:13]OFDSenderStorePacket 63150 [00:59:13]StoreOFDPacket docnum=63150 [00:59: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 42 01 00 00 E1 81 3A 01 85 DE 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CB 60 00 00 00 00 13 04 06 00 CB 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E5 F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AE F6 00 00 35 04 06 00 32 2F 8B 64 19 5D 8C 93 5E C0 50 43 6C 18 [00:59:13]CheckFolder [00:59:13]dirname=/storage/ofd_packets [00:59:13]CheckFolder done [00:59:13]ProducePacketName [00:59:13]name=ofd_packets/00063150 [00:59:13]NVStorageSaveData ofd_packets/00063150 [00:59:13]File name is /storage/ofd_packets/00063150 [00:59:13]Write 352 bytes [00:59:13]NVStorageSaveData done [00:59:13]OFDSenderStorePacket done [00:59:13]KKMCreateOFDPacket done [00:59:13]NVStorageSaveData kkm_last_timestamp [00:59:13]File name is /storage/kkm_last_timestamp [00:59:13]Write 4 bytes [00:59:13]NVStorageSaveData done [00:59:13]ExternCall_PrintAddStr [00:59:13]wPrintStart [00:59:13]Write to MH i2c: 01 00 00 91 26 B7 [00:59:13]Write i2c OK [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: 01 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: 01 07 00 [00:59:13]MH_I2C_Read... [00:59:13]Read from MH i2c: 01 07 00 91 26 00 00 00 00 00 FF 0F CC [00:59:13]RasterBufferAndPrint [00:59:13]line Счет N : (3)47460 [00:59:13]line ИНН: 02508201610067 [00:59:13]line Контрольно-Кассовый Чек [00:59:13]line ПРОДАЖА [00:59:13]line Товар: 4606532000189 [00:59:13]line Тормозная жидкость РосДот-4 0,455кг [00:59:13]line 1.000 * 247.79 [00:59:13]line = 247.79 [00:59:13]line НДС 12% НСП 1% [00:59:13]line > о реализуемом товаре [00:59:13]line ИТОГО: 247.79 [00:59:13]line НСП 1% : 2.19 [00:59:13]line НДС 12% : 26.31 [00:59:13]line Наличными: 0.00 [00:59:13]line Безнал.: 247.79 [00:59:13]line Место: АЗС № 86 "Партнер Нефть" [00:59:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:59:13]line СНО: Общий режим [00:59:13]line Чек 6 22.10.2024 00:59 [00:59:13]line Смена: 545 ФФД: 1.0 [00:59:13]line ЗНМ: 0300000154 [00:59:13]line РНМ: 0000000000091619 [00:59:13]line Версия ККМ: 001 [00:59:13]line Платежная система: Mbank [00:59:13]line ФМ: 0000000000874676 [00:59:13]line ФД: 63150 [00:59:13]line ФПД: 55179783444829 [00:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005917&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63150&fm=55179783444829&tin=02508201610067®Number=0000000000091619&sum=24779 [00:59:14]line 0 [00:59:14]OFD Sender: Processing packet 63150 [packets to send 232, broken 231] [00:59:14]ProducePacketName [00:59:14]name=ofd_packets/00063150 [00:59:14]OFD Sender: To server: pG, [00:59:14]CommunicateWithHost lk.salyk.kg:30040 [00:59:14]ConnectInit lk.salyk.kg [00:59:14]written 0, free lines is 4095 [00:59:14]Connected sock=10 [00:59: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 42 01 00 00 E1 81 3A 01 85 DE 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CB 60 00 00 00 00 13 04 06 00 CB 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E5 F8 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AE F6 00 00 35 04 06 00 32 2F 8B 64 19 5D 8C 93 5E C0 50 43 6C 18 [00:59:14]Write to MH i2c: 01 00 00 BB 26 E1 [00:59:14]Write i2c OK [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: 01 [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: 01 07 00 [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: 01 07 00 BB 26 00 00 00 00 00 F3 0C E7 [00:59:14]RasterBufferAndPrint [00:59:14]line [00:59:14]line [00:59:14]line [00:59:14]line [00:59:14]line [00:59:14]written 0, free lines is 3321 [00:59:14]MH_Cut [00:59:14]Write to MH i2c: D1 01 00 C2 26 01 BA [00:59:14]Write i2c OK [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: D1 [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: D1 01 00 [00:59:14]MH_I2C_Read... [00:59:14]Read from MH i2c: D1 01 00 C2 26 00 B9 [00:59:14]Write to MH i2c: 01 00 00 C3 26 E9 [00:59:14]Write i2c OK [00:59:14]MH_I2C_Read... [00:59: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 E0 10 47 00 A9 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AE F6 00 00 F4 03 04 00 E1 A2 16 67 B6 04 01 00 00 48 7B C2 D3 AD BA 5A A9 [00:59:14]CommunicateWithHost err = 0 [00:59:14]CheckOFDResponse [00:59:14]1017 (14) - 77093643461234 [00:59:14]1041 (16) - 0000000000874676 [00:59:14]1040 (4) - 63150 [00:59:14]1012 (4) - 21.10.2024 18:52 [00:59:14]1206 (1) - 0 [00:59:14]OFD Sender: Remove packet 63150 [00:59:14]ProducePacketName [00:59:14]name=ofd_packets/00063150 [00:59:14]NVStorageDeleteData [00:59:15]OFD Sender: No OFD packet to send [00:59:15]*** Cut start [00:59:15]*** Partial cut [00:59:15]*** CUTSNS_PIN = 1 [00:59:15]*** CUTSNS_PIN = 0 [00:59:15]*** Brake cut motor [00:59:16]Read from MH i2c: 01 [00:59:16]MH_I2C_Read... [00:59:16]*** Stop cut motor [00:59:16]*** Cut end [00:59:16]Read from MH i2c: 01 07 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: 01 07 00 C3 26 00 00 00 00 00 FF 0F FE [00:59:16]process_action close_receipt done [00:59:16]requested_data is exist [00:59:16]produce_requested_data [00:59:16]requested_item fm.sn is exist - process it [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 11 00 00 [00:59:16]Write to MH i2c: E2 08 00 C4 26 80 11 00 00 00 00 00 00 64 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 17 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 17 00 C4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BD [00:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:59:16]wFMCommunicate OK [00:59:16]requested_item fd.num is exist - process it [00:59:16]SAM_PROTO_GetFieldsCounters [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 13 00 00 [00:59:16]Write to MH i2c: E2 08 00 C5 26 80 13 00 00 00 00 00 00 67 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 62 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 62 00 C5 26 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 AE F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [00:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 AE F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:16]wFMCommunicate OK [00:59:16]SAM_PROTO_GetFieldsCounters done [00:59:16]requested_item shift.num is exist - process it [00:59:16]requested_item shift.opened is exist - process it [00:59:16]req_shift_opened [00:59:16]FM_GetShiftState [00:59:16]SAM_PROTO_GetShiftState [00:59:16]wFMCommunicate request_size=4 [00:59:16]MH_SAM_APDU [00:59:16]CAPDU: 80 13 01 00 [00:59:16]Write to MH i2c: E2 08 00 C6 26 80 13 01 00 00 00 00 00 69 [00:59:16]Write i2c OK [00:59:16]MH_I2C_Read... [00:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:16]Read from MH i2c: E2 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 0E 00 [00:59:16]MH_I2C_Read... [00:59:16]Read from MH i2c: E2 0E 00 C6 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 5F [00:59:16]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [00:59:16]wFMCommunicate OK [00:59:16]SAM_PROTO_GetShiftState done [00:59:16]FM_GetShiftState done [00:59:16]req_shift_opened done [00:59:16]requested_item shift.open_date is exist - process it [00:59:16]req_shift_open_date [00:59:16]req_shift_open_date done [00:59:16]produce_requested_data done [00:59:16]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63150,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [00:59:16]process_action_free close_receipt [00:59:16]json_value_free [00:59:16]json_value_free done [00:59:16]process_json_proto returns [00:59:16]Send response to host [00:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63150,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [00:59:16]free response buf [00:59:16]execute_script done [00:59:16]execute_script returns [00:59:16]free content buf [00:59:16]Sock 7.Close socket [00:59:16]Sock 7.Thread stoped [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:22]accept exits with 9 [01:06:22]New connection [01:06:22]New thread 3067198820 created [01:06:22]Thread 3067055460 joined [01:06:22]Waiting for new connection... [01:06:22] Sock 9.Parse request [01:06:22]Sock 9.Check first char [01:06:22]Sock 9.First char is OK [01:06:22]request: POST /json_proto HTTP/1.0 [01:06:22]Method: POST [01:06:22]URL: /json_proto [01:06:22]Method is POST - this is cgi request [01:06:22]url: /json_proto [01:06:22]query_string will be loaded in cgi processing [01:06:22]execute_cgi json_proto POST (null) [01:06:22]execute_cgi path=json_proto method=POST [01:06:22]POST find Content-Length [01:06:22]Host: 172.17.42.132:8080 [01:06:22]Content-Length: 927 [01:06:22]Content-Type: application/json [01:06:22] [01:06:22]POST finish read [01:06:22]Found Content-Length = 927 [01:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47461", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:22]execute_script... [01:06:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47461", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:22]POST & json_proto [01:06:22]process_json_proto [01:06:22]json parsed OK: [01:06:22]protocol is kg_v1.0 [01:06:22]action value=close_receipt [01:06:22]process_action close_receipt [01:06:22]cmd_close_receipt [01:06:22]MH_GetDate [01:06:22]Write to MH i2c: F0 00 00 C7 26 DC [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: F0 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: F0 09 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: F0 09 00 C7 26 00 93 FA 16 67 4C DF 56 66 D6 [01:06:22]GetLastDocTimeStamp 1729558757 [01:06:22]current date 1729559187 [01:06:22]FM_GetShiftState [01:06:22]SAM_PROTO_GetShiftState [01:06:22]wFMCommunicate request_size=4 [01:06:22]MH_SAM_APDU [01:06:22]CAPDU: 80 13 01 00 [01:06:22]Write to MH i2c: E2 08 00 C8 26 80 13 01 00 00 00 00 00 6B [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:22]Read from MH i2c: E2 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 0E 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 0E 00 C8 26 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 61 [01:06:22]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:06:22]wFMCommunicate OK [01:06:22]SAM_PROTO_GetShiftState done [01:06:22]FM_GetShiftState done [01:06:22]opened in 1729556095 [01:06:22]opened+sec_in_day 1729642495 [01:06:22]quantity*price = 19000 [01:06:22]sum+1 = 19001 [01:06:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.51 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 7 22.10.2024 01:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63151 ФПД: 262306781656951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010627&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63151&fm=262306781656951&tin=02508201610067®Number=0000000000091619&sum=25900 0 [01:06:23]StoreToDocumentArchive [01:06:23]shift 545 fd 63151 [01:06:23]save to /storage/0545/doc_00063151 [01:06:23]save last doc name /storage/0545/doc_00063151 to /storage/kkm_last_doc_name [01:06:23]save OK [01:06:23]Clear old archive folders... [01:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=417 [01:06:23]tlvbuf is B6DE49A0 [01:06:23]SAM_PROTO_ClearQueue [01:06:23]wFMCommunicate request_size=4 [01:06:23]MH_SAM_APDU [01:06:23]CAPDU: 80 09 00 00 [01:06:23]Write to MH i2c: E2 08 00 D5 26 80 09 00 00 00 00 00 00 6D [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:23]Read from MH i2c: E2 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 D5 26 00 90 00 6F [01:06:23]RAPDU: 90 00 [01:06:23]wFMCommunicate OK [01:06:23]SAM_PROTO_ClearQueue done [01:06:23]KKMCreateOFDPacket [01:06:23]OFDProtocolAddRootSTLVToBuf [01:06:23]FM_MakeSignedData [01:06:23]FM_MakeSignedData [01:06:23]SAM_PROTO_SignData [01:06:23]wFMCommunicate request_size=4 [01:06:23]MH_SAM_APDU [01:06:23]CAPDU: 80 0D 01 02 [01:06:23]Write to MH i2c: E2 08 00 D6 26 80 0D 01 02 00 00 00 00 75 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:23]Read from MH i2c: E2 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 D6 26 00 90 00 70 [01:06:23]RAPDU: 90 00 [01:06:23]wFMCommunicate OK [01:06:23]wFMCommunicate request_size=255 [01:06:23]MH_SAM_APDU [01:06:23]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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:06:23]Write to MH i2c: E2 02 01 D7 26 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 00 00 39 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:23]Read from MH i2c: E2 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 D7 26 00 90 00 71 [01:06:23]RAPDU: 90 00 [01:06:23]wFMCommunicate OK [01:06:23]wFMCommunicate request_size=176 [01:06:23]MH_SAM_APDU [01:06:23]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 0A 00 00 00 00 07 04 06 00 2C 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 07 00 00 00 F4 03 04 00 93 FA 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AF F6 00 00 35 04 06 00 EE 91 0E 8A F7 77 [01:06:23]Write to MH i2c: E2 B3 00 D8 26 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 0A 00 00 00 00 07 04 06 00 2C 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 07 00 00 00 F4 03 04 00 93 FA 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AF F6 00 00 35 04 06 00 EE 91 0E 8A F7 77 00 00 08 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:23]Read from MH i2c: E2 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [01:06:23]RAPDU: 90 00 [01:06:23]wFMCommunicate OK [01:06:23]wFMCommunicate request_size=4 [01:06:23]MH_SAM_APDU [01:06:23]CAPDU: 80 0D 03 02 [01:06:23]Write to MH i2c: E2 08 00 D9 26 80 0D 03 02 00 00 00 00 7A [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:24]Read from MH i2c: E2 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 0B 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 0B 00 D9 26 00 2B D9 42 09 1E 3A 42 BC 90 00 20 [01:06:24]RAPDU: 2B D9 42 09 1E 3A 42 BC 90 00 [01:06:24]wFMCommunicate OK [01:06:24]SAM_PROTO_SignData done [01:06:24]FM_MakeSignedData done [01:06:24]CreateOFDProtocolMessage [01:06:24]wFMCommunicate request_size=4 [01:06:24]MH_SAM_APDU [01:06:24]CAPDU: 80 11 00 00 [01:06:24]Write to MH i2c: E2 08 00 DA 26 80 11 00 00 00 00 00 00 7A [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:24]Read from MH i2c: E2 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 17 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 17 00 DA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D3 [01:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:06:24]wFMCommunicate OK [01:06:24]CreateOFDProtocolMessage done [01:06:24]OFDSenderStorePacket 63151 [01:06:24]StoreOFDPacket docnum=63151 [01:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B5 01 00 00 03 52 AD 01 9A D5 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 0A 00 00 00 00 07 04 06 00 2C 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 07 00 00 00 F4 03 04 00 93 FA 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AF F6 00 00 35 04 06 00 EE 91 0E 8A F7 77 2B D9 42 09 1E 3A 42 BC [01:06:24]CheckFolder [01:06:24]dirname=/storage/ofd_packets [01:06:24]CheckFolder done [01:06:24]ProducePacketName [01:06:24]name=ofd_packets/00063151 [01:06:24]NVStorageSaveData ofd_packets/00063151 [01:06:24]File name is /storage/ofd_packets/00063151 [01:06:24]Write 467 bytes [01:06:24]NVStorageSaveData done [01:06:24]OFDSenderStorePacket done [01:06:24]KKMCreateOFDPacket done [01:06:24]NVStorageSaveData kkm_last_timestamp [01:06:24]File name is /storage/kkm_last_timestamp [01:06:24]Write 4 bytes [01:06:24]NVStorageSaveData done [01:06:24]ExternCall_PrintAddStr [01:06:24]wPrintStart [01:06:24]Write to MH i2c: 01 00 00 DB 26 01 [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 07 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 07 00 DB 26 00 00 00 00 00 FF 0F 16 [01:06:24]RasterBufferAndPrint [01:06:24]line Счет N : (3)47461 [01:06:24]line ИНН: 02508201610067 [01:06:24]line Контрольно-Кассовый Чек [01:06:24]line ПРОДАЖА [01:06:24]line Товар: 4700000480050 [01:06:24]line Напиток Nitro Energy эн green ж/б 0,45л [01:06:24]line 2.000 * 95.00 [01:06:24]line = 190.00 [01:06:24]line НДС 12% НСП 1% [01:06:24]line > о реализуемом товаре [01:06:24]line Товар: 4600682557456 [01:06:24]line Напиток FLash up energy эн ж/б 0,5/0,45л [01:06:24]line 1.000 * 69.00 [01:06:24]line = 69.00 [01:06:24]line НДС 12% НСП 1% [01:06:24]line > о реализуемом товаре [01:06:24]line ИТОГО: 259.00 [01:06:24]line НСП 1% : 2.29 [01:06:24]line НДС 12% : 27.51 [01:06:24]line Наличными: 259.00 [01:06:24]line Безнал.: 0.00 [01:06:24]line Место: АЗС № 86 "Партнер Нефть" [01:06:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:06:24]line СНО: Общий режим [01:06:24]line Чек 7 22.10.2024 01:06 [01:06:24]line Смена: 545 ФФД: 1.0 [01:06:24]line ЗНМ: 0300000154 [01:06:24]line РНМ: 0000000000091619 [01:06:24]line Версия ККМ: 001 [01:06:24]line ФМ: 0000000000874676 [01:06:24]line ФД: 63151 [01:06:24]line ФПД: 262306781656951 [01:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010627&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63151&fm=262306781656951&tin=02508201610067®Number=0000000000091619&sum=25900 [01:06:24]line 0 [01:06:24]OFD Sender: Processing packet 63151 [packets to send 232, broken 231] [01:06:24]ProducePacketName [01:06:24]name=ofd_packets/00063151 [01:06:24]OFD Sender: To server: pG, [01:06:24]CommunicateWithHost lk.salyk.kg:30040 [01:06:24]ConnectInit lk.salyk.kg [01:06:24]written 0, free lines is 4095 [01:06:24]Connected sock=10 [01:06: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 B5 01 00 00 03 52 AD 01 9A D5 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 0A 00 00 00 00 07 04 06 00 2C 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 07 00 00 00 F4 03 04 00 93 FA 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AF F6 00 00 35 04 06 00 EE 91 0E 8A F7 77 2B D9 42 09 1E 3A 42 BC [01:06:24]Write to MH i2c: 01 00 00 0B 27 32 [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 07 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 07 00 0B 27 00 00 00 00 00 B8 0C FD [01:06:24]RasterBufferAndPrint [01:06:24]line [01:06:24]line [01:06:24]line [01:06:24]line [01:06:24]line [01:06: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 4B ED 47 00 07 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 AF F6 00 00 F4 03 04 00 8F A4 16 67 B6 04 01 00 00 15 77 F2 BA DA 82 39 1B [01:06:24]CommunicateWithHost err = 0 [01:06:24]CheckOFDResponse [01:06:24]1017 (14) - 77093643461234 [01:06:24]1041 (16) - 0000000000874676 [01:06:24]1040 (4) - 63151 [01:06:24]1012 (4) - 21.10.2024 18:59 [01:06:24]1206 (1) - 0 [01:06:24]OFD Sender: Remove packet 63151 [01:06:24]ProducePacketName [01:06:24]name=ofd_packets/00063151 [01:06:24]NVStorageDeleteData [01:06:24]written 0, free lines is 3270 [01:06:24]MH_Cut [01:06:24]Write to MH i2c: D1 01 00 12 27 01 0B [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: D1 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: D1 01 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: D1 01 00 12 27 00 0A [01:06:24]Write to MH i2c: 01 00 00 13 27 3A [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:25]OFD Sender: No OFD packet to send [01:06:25]*** Cut start [01:06:25]*** Partial cut [01:06:25]*** CUTSNS_PIN = 1 [01:06:25]*** CUTSNS_PIN = 0 [01:06:25]*** Brake cut motor [01:06:26]Read from MH i2c: 01 [01:06:26]MH_I2C_Read... [01:06:26]*** Stop cut motor [01:06:26]*** Cut end [01:06:26]Read from MH i2c: 01 07 00 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: 01 07 00 13 27 00 00 00 00 00 FF 0F 4F [01:06:26]process_action close_receipt done [01:06:26]requested_data is exist [01:06:26]produce_requested_data [01:06:26]requested_item fm.sn is exist - process it [01:06:26]wFMCommunicate request_size=4 [01:06:26]MH_SAM_APDU [01:06:26]CAPDU: 80 11 00 00 [01:06:26]Write to MH i2c: E2 08 00 14 27 80 11 00 00 00 00 00 00 B5 [01:06:26]Write i2c OK [01:06:26]MH_I2C_Read... [01:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:26]Read from MH i2c: E2 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 17 00 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 17 00 14 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0E [01:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:06:26]wFMCommunicate OK [01:06:26]requested_item fd.num is exist - process it [01:06:26]SAM_PROTO_GetFieldsCounters [01:06:26]wFMCommunicate request_size=4 [01:06:26]MH_SAM_APDU [01:06:26]CAPDU: 80 13 00 00 [01:06:26]Write to MH i2c: E2 08 00 15 27 80 13 00 00 00 00 00 00 B8 [01:06:26]Write i2c OK [01:06:26]MH_I2C_Read... [01:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:26]Read from MH i2c: E2 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 62 00 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 62 00 15 27 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 AF F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [01:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 AF F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:26]wFMCommunicate OK [01:06:26]SAM_PROTO_GetFieldsCounters done [01:06:26]requested_item shift.num is exist - process it [01:06:26]requested_item shift.opened is exist - process it [01:06:26]req_shift_opened [01:06:26]FM_GetShiftState [01:06:26]SAM_PROTO_GetShiftState [01:06:26]wFMCommunicate request_size=4 [01:06:26]MH_SAM_APDU [01:06:26]CAPDU: 80 13 01 00 [01:06:26]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [01:06:26]Write i2c OK [01:06:26]MH_I2C_Read... [01:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:26]Read from MH i2c: E2 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 0E 00 [01:06:26]MH_I2C_Read... [01:06:26]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 B0 [01:06:26]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:06:26]wFMCommunicate OK [01:06:26]SAM_PROTO_GetShiftState done [01:06:26]FM_GetShiftState done [01:06:26]req_shift_opened done [01:06:26]requested_item shift.open_date is exist - process it [01:06:26]req_shift_open_date [01:06:26]req_shift_open_date done [01:06:26]produce_requested_data done [01:06:26]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63151,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [01:06:26]process_action_free close_receipt [01:06:26]json_value_free [01:06:26]json_value_free done [01:06:26]process_json_proto returns [01:06:26]Send response to host [01:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63151,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [01:06:26]free response buf [01:06:26]execute_script done [01:06:26]execute_script returns [01:06:26]free content buf [01:06:26]Sock 9.Close socket [01:06:26]Sock 9.Thread stoped [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]accept exits with 7 [01:12:00]New connection [01:12:00]New thread 3067055460 created [01:12:00]Thread 3067198820 joined [01:12:00]Waiting for new connection... [01:12:00] Sock 7.Parse request [01:12:00]Sock 7.Check first char [01:12:00]Sock 7.First char is OK [01:12:00]request: POST /json_proto HTTP/1.0 [01:12:00]Method: POST [01:12:00]URL: /json_proto [01:12:00]Method is POST - this is cgi request [01:12:00]url: /json_proto [01:12:00]query_string will be loaded in cgi processing [01:12:00]execute_cgi json_proto POST (null) [01:12:00]execute_cgi path=json_proto method=POST [01:12:00]POST find Content-Length [01:12:00]Host: 172.17.42.132:8080 [01:12:00]Content-Length: 846 [01:12:00]Content-Type: application/json [01:12:00] [01:12:00]POST finish read [01:12:00]Found Content-Length = 846 [01:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47462", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 168.50, "quantity" : 1.000, "sum" : 168.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 168.50 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:00]execute_script... [01:12:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47462", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 168.50, "quantity" : 1.000, "sum" : 168.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 168.50 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:00]POST & json_proto [01:12:00]process_json_proto [01:12:00]json parsed OK: [01:12:00]protocol is kg_v1.0 [01:12:00]action value=close_receipt [01:12:00]process_action close_receipt [01:12:00]cmd_close_receipt [01:12:00]MH_GetDate [01:12:00]Write to MH i2c: F0 00 00 17 27 2D [01:12:00]Write i2c OK [01:12:00]MH_I2C_Read... [01:12:00]Read from MH i2c: F0 [01:12:00]MH_I2C_Read... [01:12:00]Read from MH i2c: F0 09 00 [01:12:00]MH_I2C_Read... [01:12:00]Read from MH i2c: F0 09 00 17 27 00 E5 FB 16 67 4C DF 56 66 7A [01:12:00]GetLastDocTimeStamp 1729559187 [01:12:00]current date 1729559525 [01:12:00]FM_GetShiftState [01:12:00]SAM_PROTO_GetShiftState [01:12:00]wFMCommunicate request_size=4 [01:12:00]MH_SAM_APDU [01:12:00]CAPDU: 80 13 01 00 [01:12:00]Write to MH i2c: E2 08 00 18 27 80 13 01 00 00 00 00 00 BC [01:12:00]Write i2c OK [01:12:00]MH_I2C_Read... [01:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:00]Read from MH i2c: E2 [01:12:00]MH_I2C_Read... [01:12:00]Read from MH i2c: E2 0E 00 [01:12:00]MH_I2C_Read... [01:12:00]Read from MH i2c: E2 0E 00 18 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 B2 [01:12:00]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:12:00]wFMCommunicate OK [01:12:00]SAM_PROTO_GetShiftState done [01:12:00]FM_GetShiftState done [01:12:00]opened in 1729556095 [01:12:00]opened+sec_in_day 1729642495 [01:12:00]quantity*price = 16850 [01:12:00]sum+1 = 16851 [01:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 168.50 НСП 1% : 1.49 НДС 12% : 17.89 Наличными: 0.00 Безнал.: 168.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 8 22.10.2024 01:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63152 ФПД: 161246836215222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011205&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63152&fm=161246836215222&tin=02508201610067®Number=0000000000091619&sum=16850 0 [01:12:01]StoreToDocumentArchive [01:12:01]shift 545 fd 63152 [01:12:01]save to /storage/0545/doc_00063152 [01:12:01]save last doc name /storage/0545/doc_00063152 to /storage/kkm_last_doc_name [01:12:01]save OK [01:12:01]Clear old archive folders... [01:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=282 [01:12:01]tlvbuf is 018547F0 [01:12:01]SAM_PROTO_ClearQueue [01:12:01]wFMCommunicate request_size=4 [01:12:01]MH_SAM_APDU [01:12:01]CAPDU: 80 09 00 00 [01:12:01]Write to MH i2c: E2 08 00 25 27 80 09 00 00 00 00 00 00 BE [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [01:12:01]RAPDU: 90 00 [01:12:01]wFMCommunicate OK [01:12:01]SAM_PROTO_ClearQueue done [01:12:01]KKMCreateOFDPacket [01:12:01]OFDProtocolAddRootSTLVToBuf [01:12:01]FM_MakeSignedData [01:12:01]FM_MakeSignedData [01:12:01]SAM_PROTO_SignData [01:12:01]wFMCommunicate request_size=4 [01:12:01]MH_SAM_APDU [01:12:01]CAPDU: 80 0D 01 02 [01:12:01]Write to MH i2c: E2 08 00 26 27 80 0D 01 02 00 00 00 00 C6 [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [01:12:01]RAPDU: 90 00 [01:12:01]wFMCommunicate OK [01:12:01]wFMCommunicate request_size=255 [01:12:01]MH_SAM_APDU [01:12:01]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D2 41 00 00 00 00 13 04 06 00 D2 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 41 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E5 FB 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [01:12:01]Write to MH i2c: E2 02 01 27 27 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D2 41 00 00 00 00 13 04 06 00 D2 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 41 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E5 FB 16 67 0E 04 04 00 21 02 00 00 B9 04 01 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 EF [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [01:12:01]RAPDU: 90 00 [01:12:01]wFMCommunicate OK [01:12:01]wFMCommunicate request_size=41 [01:12:01]MH_SAM_APDU [01:12:01]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 B0 F6 00 00 35 04 06 00 92 A7 34 64 CD B6 [01:12:01]Write to MH i2c: E2 2C 00 28 27 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 B0 F6 00 00 35 04 06 00 92 A7 34 64 CD B6 00 00 98 [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 03 00 28 27 00 90 00 C3 [01:12:01]RAPDU: 90 00 [01:12:01]wFMCommunicate OK [01:12:01]wFMCommunicate request_size=4 [01:12:01]MH_SAM_APDU [01:12:01]CAPDU: 80 0D 03 02 [01:12:01]Write to MH i2c: E2 08 00 29 27 80 0D 03 02 00 00 00 00 CB [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 0B 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 0B 00 29 27 00 C7 F0 FD F9 42 39 F1 03 90 00 E8 [01:12:01]RAPDU: C7 F0 FD F9 42 39 F1 03 90 00 [01:12:01]wFMCommunicate OK [01:12:01]SAM_PROTO_SignData done [01:12:01]FM_MakeSignedData done [01:12:01]CreateOFDProtocolMessage [01:12:01]wFMCommunicate request_size=4 [01:12:01]MH_SAM_APDU [01:12:01]CAPDU: 80 11 00 00 [01:12:01]Write to MH i2c: E2 08 00 2A 27 80 11 00 00 00 00 00 00 CB [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:01]Read from MH i2c: E2 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 17 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: E2 17 00 2A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [01:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:12:01]wFMCommunicate OK [01:12:01]CreateOFDProtocolMessage done [01:12:01]OFDSenderStorePacket 63152 [01:12:01]StoreOFDPacket docnum=63152 [01:12:01]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 B2 1B 26 01 47 E1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D2 41 00 00 00 00 13 04 06 00 D2 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 41 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E5 FB 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B0 F6 00 00 35 04 06 00 92 A7 34 64 CD B6 C7 F0 FD F9 42 39 F1 03 [01:12:01]CheckFolder [01:12:01]dirname=/storage/ofd_packets [01:12:01]CheckFolder done [01:12:01]ProducePacketName [01:12:01]name=ofd_packets/00063152 [01:12:01]NVStorageSaveData ofd_packets/00063152 [01:12:01]File name is /storage/ofd_packets/00063152 [01:12:01]Write 332 bytes [01:12:01]NVStorageSaveData done [01:12:01]OFDSenderStorePacket done [01:12:01]KKMCreateOFDPacket done [01:12:01]NVStorageSaveData kkm_last_timestamp [01:12:01]File name is /storage/kkm_last_timestamp [01:12:01]Write 4 bytes [01:12:01]NVStorageSaveData done [01:12:01]ExternCall_PrintAddStr [01:12:01]wPrintStart [01:12:01]Write to MH i2c: 01 00 00 2B 27 52 [01:12:01]Write i2c OK [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: 01 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: 01 07 00 [01:12:01]MH_I2C_Read... [01:12:01]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [01:12:01]RasterBufferAndPrint [01:12:01]line Счет N : (3)47462 [01:12:01]line ИНН: 02508201610067 [01:12:01]line Контрольно-Кассовый Чек [01:12:01]line ПРОДАЖА [01:12:01]line Товар: 4700000480357 [01:12:01]line Пиво шахтерское 1л ПЭТ [01:12:01]line 1.000 * 168.50 [01:12:01]line = 168.50 [01:12:01]line НДС 12% НСП 1% [01:12:01]line > о реализуемом товаре [01:12:01]line ИТОГО: 168.50 [01:12:01]line НСП 1% : 1.49 [01:12:01]line НДС 12% : 17.89 [01:12:01]line Наличными: 0.00 [01:12:01]line Безнал.: 168.50 [01:12:01]line Место: АЗС № 86 "Партнер Нефть" [01:12:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:12:01]line СНО: Общий режим [01:12:01]line Чек 8 22.10.2024 01:12 [01:12:01]line Смена: 545 ФФД: 1.0 [01:12:01]line ЗНМ: 0300000154 [01:12:01]line РНМ: 0000000000091619 [01:12:01]line Версия ККМ: 001 [01:12:01]line Платежная система: Бакай Банк [01:12:01]line ФМ: 0000000000874676 [01:12:01]line ФД: 63152 [01:12:01]line ФПД: 161246836215222 [01:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011205&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63152&fm=161246836215222&tin=02508201610067®Number=0000000000091619&sum=16850 [01:12:02]line 0 [01:12:02]OFD Sender: Processing packet 63152 [packets to send 232, broken 231] [01:12:02]ProducePacketName [01:12:02]name=ofd_packets/00063152 [01:12:02]OFD Sender: To server: pG, [01:12:02]CommunicateWithHost lk.salyk.kg:30040 [01:12:02]ConnectInit lk.salyk.kg [01:12:02]written 0, free lines is 4095 [01:12:02]Write to MH i2c: 01 00 00 55 27 7C [01:12:02]Write i2c OK [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 07 00 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 07 00 55 27 00 00 00 00 00 EF 0C 7E [01:12:02]RasterBufferAndPrint [01:12:02]line [01:12:02]line [01:12:02]line [01:12:02]line [01:12:02]line [01:12:02]written 0, free lines is 3318 [01:12:02]MH_Cut [01:12:02]Write to MH i2c: D1 01 00 5C 27 01 55 [01:12:02]Write i2c OK [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: D1 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: D1 01 00 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: D1 01 00 5C 27 00 54 [01:12:02]Write to MH i2c: 01 00 00 5D 27 84 [01:12:02]Write i2c OK [01:12:02]MH_I2C_Read... [01:12:03]*** Cut start [01:12:03]*** Partial cut [01:12:03]*** CUTSNS_PIN = 1 [01:12:03]*** CUTSNS_PIN = 0 [01:12:03]*** Brake cut motor [01:12:03]Read from MH i2c: 01 [01:12:03]MH_I2C_Read... [01:12:03]*** Stop cut motor [01:12:03]*** Cut end [01:12:03]Read from MH i2c: 01 07 00 [01:12:03]MH_I2C_Read... [01:12:03]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 FF 0F 99 [01:12:03]process_action close_receipt done [01:12:03]requested_data is exist [01:12:03]produce_requested_data [01:12:03]requested_item fm.sn is exist - process it [01:12:03]wFMCommunicate request_size=4 [01:12:03]MH_SAM_APDU [01:12:03]CAPDU: 80 11 00 00 [01:12:03]Write to MH i2c: E2 08 00 5E 27 80 11 00 00 00 00 00 00 FF [01:12:03]Write i2c OK [01:12:03]MH_I2C_Read... [01:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:03]Read from MH i2c: E2 [01:12:03]MH_I2C_Read... [01:12:03]Read from MH i2c: E2 17 00 [01:12:03]MH_I2C_Read... [01:12:03]Read from MH i2c: E2 17 00 5E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [01:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:12:03]wFMCommunicate OK [01:12:03]requested_item fd.num is exist - process it [01:12:03]SAM_PROTO_GetFieldsCounters [01:12:03]wFMCommunicate request_size=4 [01:12:03]MH_SAM_APDU [01:12:03]CAPDU: 80 13 00 00 [01:12:03]Write to MH i2c: E2 08 00 5F 27 80 13 00 00 00 00 00 00 02 [01:12:03]Write i2c OK [01:12:03]MH_I2C_Read... [01:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:12:04]Read from MH i2c: E2 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 62 00 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 62 00 5F 27 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 B0 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [01:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 B0 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:12:04]wFMCommunicate OK [01:12:04]SAM_PROTO_GetFieldsCounters done [01:12:04]requested_item shift.num is exist - process it [01:12:04]requested_item shift.opened is exist - process it [01:12:04]req_shift_opened [01:12:04]FM_GetShiftState [01:12:04]SAM_PROTO_GetShiftState [01:12:04]wFMCommunicate request_size=4 [01:12:04]MH_SAM_APDU [01:12:04]CAPDU: 80 13 01 00 [01:12:04]Write to MH i2c: E2 08 00 60 27 80 13 01 00 00 00 00 00 04 [01:12:04]Write i2c OK [01:12:04]MH_I2C_Read... [01:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:04]Read from MH i2c: E2 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 0E 00 [01:12:04]MH_I2C_Read... [01:12:04]Read from MH i2c: E2 0E 00 60 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 FA [01:12:04]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:12:04]wFMCommunicate OK [01:12:04]SAM_PROTO_GetShiftState done [01:12:04]FM_GetShiftState done [01:12:04]req_shift_opened done [01:12:04]requested_item shift.open_date is exist - process it [01:12:04]req_shift_open_date [01:12:04]req_shift_open_date done [01:12:04]produce_requested_data done [01:12:04]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63152,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [01:12:04]process_action_free close_receipt [01:12:04]json_value_free [01:12:04]json_value_free done [01:12:04]process_json_proto returns [01:12:04]Send response to host [01:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63152,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [01:12:04]free response buf [01:12:04]execute_script done [01:12:04]execute_script returns [01:12:04]free content buf [01:12:04]Sock 7.Close socket [01:12:04]Sock 7.Thread stoped [01:14:15]ConnectInit Can't connect to host [01:14:15]CommunicateWithHost connect error [01:14:15]CommunicateWithHost err = -1 [01:14:15]OFD Sender: Server communicate error [01:14:20]OFD Sender: Processing packet 63152 [packets to send 232, broken 231] [01:14:20]ProducePacketName [01:14:20]name=ofd_packets/00063152 [01:14:20]OFD Sender: To server: pG, [01:14:20]CommunicateWithHost lk.salyk.kg:30040 [01:14:20]ConnectInit lk.salyk.kg [01:14:20]Connected sock=7 [01:14:20]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 B2 1B 26 01 47 E1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D2 41 00 00 00 00 13 04 06 00 D2 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 41 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E5 FB 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B0 F6 00 00 35 04 06 00 92 A7 34 64 CD B6 C7 F0 FD F9 42 39 F1 03 [01:14: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 AB 54 47 00 FB C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B0 F6 00 00 F4 03 04 00 6A A6 16 67 B6 04 01 00 00 4D C8 2B B7 8D D7 7B 09 [01:14:20]CommunicateWithHost err = 0 [01:14:20]CheckOFDResponse [01:14:20]1017 (14) - 77093643461234 [01:14:20]1041 (16) - 0000000000874676 [01:14:20]1040 (4) - 63152 [01:14:20]1012 (4) - 21.10.2024 19:07 [01:14:20]1206 (1) - 0 [01:14:20]OFD Sender: Remove packet 63152 [01:14:20]ProducePacketName [01:14:20]name=ofd_packets/00063152 [01:14:20]NVStorageDeleteData [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:20]accept exits with 9 [01:21:20]New connection [01:21:20]New thread 3067198820 created [01:21:20]Thread 3067055460 joined [01:21:20]Waiting for new connection... [01:21:20] Sock 9.Parse request [01:21:20]Sock 9.Check first char [01:21:20]Sock 9.First char is OK [01:21:20]request: POST /json_proto HTTP/1.0 [01:21:20]Method: POST [01:21:20]URL: /json_proto [01:21:20]Method is POST - this is cgi request [01:21:20]url: /json_proto [01:21:20]query_string will be loaded in cgi processing [01:21:20]execute_cgi json_proto POST (null) [01:21:20]execute_cgi path=json_proto method=POST [01:21:20]POST find Content-Length [01:21:20]Host: 172.17.42.132:8080 [01:21:20]Content-Length: 948 [01:21:20]Content-Type: application/json [01:21:20] [01:21:20]POST finish read [01:21:20]Found Content-Length = 948 [01:21:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47463", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:20]execute_script... [01:21: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)47463", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:20]POST & json_proto [01:21:20]process_json_proto [01:21:20]json parsed OK: [01:21:20]protocol is kg_v1.0 [01:21:20]action value=close_receipt [01:21:20]process_action close_receipt [01:21:20]cmd_close_receipt [01:21:20]MH_GetDate [01:21:20]Write to MH i2c: F0 00 00 61 27 77 [01:21:20]Write i2c OK [01:21:20]MH_I2C_Read... [01:21:20]Read from MH i2c: F0 [01:21:20]MH_I2C_Read... [01:21:20]Read from MH i2c: F0 09 00 [01:21:20]MH_I2C_Read... [01:21:20]Read from MH i2c: F0 09 00 61 27 00 15 FE 16 67 4C DF 56 66 F7 [01:21:20]GetLastDocTimeStamp 1729559525 [01:21:20]current date 1729560085 [01:21:20]FM_GetShiftState [01:21:20]SAM_PROTO_GetShiftState [01:21:20]wFMCommunicate request_size=4 [01:21:20]MH_SAM_APDU [01:21:20]CAPDU: 80 13 01 00 [01:21:20]Write to MH i2c: E2 08 00 62 27 80 13 01 00 00 00 00 00 06 [01:21:20]Write i2c OK [01:21:20]MH_I2C_Read... [01:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:20]Read from MH i2c: E2 [01:21:20]MH_I2C_Read... [01:21:20]Read from MH i2c: E2 0E 00 [01:21:20]MH_I2C_Read... [01:21:20]Read from MH i2c: E2 0E 00 62 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 FC [01:21:20]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:21:20]wFMCommunicate OK [01:21:20]SAM_PROTO_GetShiftState done [01:21:20]FM_GetShiftState done [01:21:20]opened in 1729556095 [01:21:20]opened+sec_in_day 1729642495 [01:21:20]quantity*price = 21000 [01:21:20]sum+1 = 21001 [01:21:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 9 22.10.2024 01:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63153 ФПД: 222764663907812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T012125&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63153&fm=222764663907812&tin=02508201610067®Number=0000000000091619&sum=30500 0 [01:21:21]StoreToDocumentArchive [01:21:21]shift 545 fd 63153 [01:21:21]save to /storage/0545/doc_00063153 [01:21:21]save last doc name /storage/0545/doc_00063153 to /storage/kkm_last_doc_name [01:21:21]save OK [01:21:21]Clear old archive folders... [01:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=409 [01:21:21]tlvbuf is B6DE4B30 [01:21:21]SAM_PROTO_ClearQueue [01:21:21]wFMCommunicate request_size=4 [01:21:21]MH_SAM_APDU [01:21:21]CAPDU: 80 09 00 00 [01:21:21]Write to MH i2c: E2 08 00 6F 27 80 09 00 00 00 00 00 00 08 [01:21:21]Write i2c OK [01:21:21]MH_I2C_Read... [01:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:21]Read from MH i2c: E2 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [01:21:21]RAPDU: 90 00 [01:21:21]wFMCommunicate OK [01:21:21]SAM_PROTO_ClearQueue done [01:21:21]KKMCreateOFDPacket [01:21:21]OFDProtocolAddRootSTLVToBuf [01:21:21]FM_MakeSignedData [01:21:21]FM_MakeSignedData [01:21:21]SAM_PROTO_SignData [01:21:21]wFMCommunicate request_size=4 [01:21:21]MH_SAM_APDU [01:21:21]CAPDU: 80 0D 01 02 [01:21:21]Write to MH i2c: E2 08 00 70 27 80 0D 01 02 00 00 00 00 10 [01:21:21]Write i2c OK [01:21:21]MH_I2C_Read... [01:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:21]Read from MH i2c: E2 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [01:21:21]RAPDU: 90 00 [01:21:21]wFMCommunicate OK [01:21:21]wFMCommunicate request_size=255 [01:21:21]MH_SAM_APDU [01:21:21]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 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 72 65 65 6E 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 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [01:21:21]Write to MH i2c: E2 02 01 71 27 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 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 72 65 65 6E 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 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 DF [01:21:21]Write i2c OK [01:21:21]MH_I2C_Read... [01:21:21]OFD Sender: No OFD packet to send [01:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:21]Read from MH i2c: E2 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [01:21:21]RAPDU: 90 00 [01:21:21]wFMCommunicate OK [01:21:21]wFMCommunicate request_size=168 [01:21:21]MH_SAM_APDU [01:21:21]CAPDU: 80 0D 02 02 A3 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 15 FE 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B1 F6 00 00 35 04 06 00 CA 9A 70 A9 25 E4 [01:21:21]Write to MH i2c: E2 AB 00 72 27 80 0D 02 02 A3 00 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 15 FE 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B1 F6 00 00 35 04 06 00 CA 9A 70 A9 25 E4 00 00 84 [01:21:21]Write i2c OK [01:21:21]MH_I2C_Read... [01:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:21]Read from MH i2c: E2 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 [01:21:21]MH_I2C_Read... [01:21:21]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [01:21:21]RAPDU: 90 00 [01:21:21]wFMCommunicate OK [01:21:21]wFMCommunicate request_size=4 [01:21:21]MH_SAM_APDU [01:21:21]CAPDU: 80 0D 03 02 [01:21:21]Write to MH i2c: E2 08 00 73 27 80 0D 03 02 00 00 00 00 15 [01:21:21]Write i2c OK [01:21:21]MH_I2C_Read... [01:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:22]Read from MH i2c: E2 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: E2 0B 00 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: E2 0B 00 73 27 00 19 27 DE AC 7F 14 50 16 90 00 D9 [01:21:22]RAPDU: 19 27 DE AC 7F 14 50 16 90 00 [01:21:22]wFMCommunicate OK [01:21:22]SAM_PROTO_SignData done [01:21:22]FM_MakeSignedData done [01:21:22]CreateOFDProtocolMessage [01:21:22]wFMCommunicate request_size=4 [01:21:22]MH_SAM_APDU [01:21:22]CAPDU: 80 11 00 00 [01:21:22]Write to MH i2c: E2 08 00 74 27 80 11 00 00 00 00 00 00 15 [01:21:22]Write i2c OK [01:21:22]MH_I2C_Read... [01:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:22]Read from MH i2c: E2 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: E2 17 00 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: E2 17 00 74 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6E [01:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:21:22]wFMCommunicate OK [01:21:22]CreateOFDProtocolMessage done [01:21:22]OFDSenderStorePacket 63153 [01:21:22]StoreOFDPacket docnum=63153 [01:21: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 AD 01 00 00 01 C6 A5 01 5A AD 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 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 72 65 65 6E 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 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 15 FE 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B1 F6 00 00 35 04 06 00 CA 9A 70 A9 25 E4 19 27 DE AC 7F 14 50 16 [01:21:22]CheckFolder [01:21:22]dirname=/storage/ofd_packets [01:21:22]CheckFolder done [01:21:22]ProducePacketName [01:21:22]name=ofd_packets/00063153 [01:21:22]NVStorageSaveData ofd_packets/00063153 [01:21:22]File name is /storage/ofd_packets/00063153 [01:21:22]Write 459 bytes [01:21:22]NVStorageSaveData done [01:21:22]OFDSenderStorePacket done [01:21:22]KKMCreateOFDPacket done [01:21:22]NVStorageSaveData kkm_last_timestamp [01:21:22]File name is /storage/kkm_last_timestamp [01:21:22]Write 4 bytes [01:21:22]NVStorageSaveData done [01:21:22]ExternCall_PrintAddStr [01:21:22]wPrintStart [01:21:22]Write to MH i2c: 01 00 00 75 27 9C [01:21:22]Write i2c OK [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 07 00 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [01:21:22]RasterBufferAndPrint [01:21:22]line Счет N : (3)47463 [01:21:22]line ИНН: 02508201610067 [01:21:22]line Контрольно-Кассовый Чек [01:21:22]line ПРОДАЖА [01:21:22]line Товар: 4780022460292 [01:21:22]line Антифриз Yumiko green 1кг [01:21:22]line 1.000 * 210.00 [01:21:22]line = 210.00 [01:21:22]line НДС 12% НСП 1% [01:21:22]line > о реализуемом товаре [01:21:22]line Товар: 4700003010087 [01:21:22]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [01:21:22]line 1.000 * 95.00 [01:21:22]line = 95.00 [01:21:22]line НДС 12% НСП 1% [01:21:22]line > о реализуемом товаре [01:21:22]line ИТОГО: 305.00 [01:21:22]line НСП 1% : 2.70 [01:21:22]line НДС 12% : 32.39 [01:21:22]line Наличными: 305.00 [01:21:22]line Безнал.: 0.00 [01:21:22]line Место: АЗС № 86 "Партнер Нефть" [01:21:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:21:22]line СНО: Общий режим [01:21:22]line Чек 9 22.10.2024 01:21 [01:21:22]line Смена: 545 ФФД: 1.0 [01:21:22]line ЗНМ: 0300000154 [01:21:22]line РНМ: 0000000000091619 [01:21:22]line Версия ККМ: 001 [01:21:22]line ФМ: 0000000000874676 [01:21:22]line ФД: 63153 [01:21:22]line ФПД: 222764663907812 [01:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T012125&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63153&fm=222764663907812&tin=02508201610067®Number=0000000000091619&sum=30500 [01:21:22]line 0 [01:21:22]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:21:22]ProducePacketName [01:21:22]name=ofd_packets/00063153 [01:21:22]OFD Sender: To server: pG, [01:21:22]CommunicateWithHost lk.salyk.kg:30040 [01:21:22]ConnectInit lk.salyk.kg [01:21:22]written 0, free lines is 4095 [01:21:22]Write to MH i2c: 01 00 00 A4 27 CB [01:21:22]Write i2c OK [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 07 00 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: 01 07 00 A4 27 00 00 00 00 00 B3 0C 91 [01:21:22]RasterBufferAndPrint [01:21:22]line [01:21:22]line [01:21:22]line [01:21:22]line [01:21:22]line [01:21:22]written 0, free lines is 3258 [01:21:22]MH_Cut [01:21:22]Write to MH i2c: D1 01 00 AB 27 01 A4 [01:21:22]Write i2c OK [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: D1 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: D1 01 00 [01:21:22]MH_I2C_Read... [01:21:22]Read from MH i2c: D1 01 00 AB 27 00 A3 [01:21:22]Write to MH i2c: 01 00 00 AC 27 D3 [01:21:22]Write i2c OK [01:21:22]MH_I2C_Read... [01:21:23]*** Cut start [01:21:23]*** Partial cut [01:21:23]*** CUTSNS_PIN = 1 [01:21:23]*** CUTSNS_PIN = 0 [01:21:23]*** Brake cut motor [01:21:24]Read from MH i2c: 01 [01:21:24]MH_I2C_Read... [01:21:24]*** Stop cut motor [01:21:24]*** Cut end [01:21:24]Read from MH i2c: 01 07 00 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: 01 07 00 AC 27 00 00 00 00 00 FF 0F E8 [01:21:24]process_action close_receipt done [01:21:24]requested_data is exist [01:21:24]produce_requested_data [01:21:24]requested_item fm.sn is exist - process it [01:21:24]wFMCommunicate request_size=4 [01:21:24]MH_SAM_APDU [01:21:24]CAPDU: 80 11 00 00 [01:21:24]Write to MH i2c: E2 08 00 AD 27 80 11 00 00 00 00 00 00 4E [01:21:24]Write i2c OK [01:21:24]MH_I2C_Read... [01:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:24]Read from MH i2c: E2 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 17 00 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 17 00 AD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A7 [01:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:21:24]wFMCommunicate OK [01:21:24]requested_item fd.num is exist - process it [01:21:24]SAM_PROTO_GetFieldsCounters [01:21:24]wFMCommunicate request_size=4 [01:21:24]MH_SAM_APDU [01:21:24]CAPDU: 80 13 00 00 [01:21:24]Write to MH i2c: E2 08 00 AE 27 80 13 00 00 00 00 00 00 51 [01:21:24]Write i2c OK [01:21:24]MH_I2C_Read... [01:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:24]Read from MH i2c: E2 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 62 00 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 62 00 AE 27 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 B1 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [01:21: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 B1 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:24]wFMCommunicate OK [01:21:24]SAM_PROTO_GetFieldsCounters done [01:21:24]requested_item shift.num is exist - process it [01:21:24]requested_item shift.opened is exist - process it [01:21:24]req_shift_opened [01:21:24]FM_GetShiftState [01:21:24]SAM_PROTO_GetShiftState [01:21:24]wFMCommunicate request_size=4 [01:21:24]MH_SAM_APDU [01:21:24]CAPDU: 80 13 01 00 [01:21:24]Write to MH i2c: E2 08 00 AF 27 80 13 01 00 00 00 00 00 53 [01:21:24]Write i2c OK [01:21:24]MH_I2C_Read... [01:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:24]Read from MH i2c: E2 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 0E 00 [01:21:24]MH_I2C_Read... [01:21:24]Read from MH i2c: E2 0E 00 AF 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 49 [01:21:24]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:21:24]wFMCommunicate OK [01:21:24]SAM_PROTO_GetShiftState done [01:21:24]FM_GetShiftState done [01:21:24]req_shift_opened done [01:21:24]requested_item shift.open_date is exist - process it [01:21:24]req_shift_open_date [01:21:24]req_shift_open_date done [01:21:24]produce_requested_data done [01:21:24]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63153,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [01:21:24]process_action_free close_receipt [01:21:24]json_value_free [01:21:24]json_value_free done [01:21:24]process_json_proto returns [01:21:24]Send response to host [01:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63153,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [01:21:24]free response buf [01:21:24]execute_script done [01:21:24]execute_script returns [01:21:24]free content buf [01:21:24]Sock 9.Close socket [01:21:24]Sock 9.Thread stoped [01:21:27]ConnectInit Can't take IP for lk.salyk.kg [01:21:27]CommunicateWithHost connect error [01:21:27]CommunicateWithHost err = -1 [01:21:27]OFD Sender: Server communicate error [01:21:32]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:21:32]ProducePacketName [01:21:32]name=ofd_packets/00063153 [01:21:32]OFD Sender: To server: pG, [01:21:32]CommunicateWithHost lk.salyk.kg:30040 [01:21:32]ConnectInit lk.salyk.kg [01:21:37]ConnectInit Can't take IP for lk.salyk.kg [01:21:37]CommunicateWithHost connect error [01:21:37]CommunicateWithHost err = -1 [01:21:37]OFD Sender: Server communicate error [01:21:42]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:21:42]ProducePacketName [01:21:42]name=ofd_packets/00063153 [01:21:42]OFD Sender: To server: pG, [01:21:42]CommunicateWithHost lk.salyk.kg:30040 [01:21:42]ConnectInit lk.salyk.kg [01:21:47]ConnectInit Can't take IP for lk.salyk.kg [01:21:47]CommunicateWithHost connect error [01:21:47]CommunicateWithHost err = -1 [01:21:47]OFD Sender: Server communicate error [01:21:52]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00063153 [01:21:52]OFD Sender: To server: pG, [01:21:52]CommunicateWithHost lk.salyk.kg:30040 [01:21:52]ConnectInit lk.salyk.kg [01:21:57]ConnectInit Can't take IP for lk.salyk.kg [01:21:57]CommunicateWithHost connect error [01:21:57]CommunicateWithHost err = -1 [01:21:57]OFD Sender: Server communicate error [01:22:02]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:22:02]ProducePacketName [01:22:02]name=ofd_packets/00063153 [01:22:02]OFD Sender: To server: pG, [01:22:02]CommunicateWithHost lk.salyk.kg:30040 [01:22:02]ConnectInit lk.salyk.kg [01:22:07]ConnectInit Can't take IP for lk.salyk.kg [01:22:07]CommunicateWithHost connect error [01:22:07]CommunicateWithHost err = -1 [01:22:07]OFD Sender: Server communicate error [01:22:12]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:22:12]ProducePacketName [01:22:12]name=ofd_packets/00063153 [01:22:12]OFD Sender: To server: pG, [01:22:12]CommunicateWithHost lk.salyk.kg:30040 [01:22:12]ConnectInit lk.salyk.kg [01:22:17]ConnectInit Can't take IP for lk.salyk.kg [01:22:17]CommunicateWithHost connect error [01:22:17]CommunicateWithHost err = -1 [01:22:17]OFD Sender: Server communicate error [01:22:22]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:22:22]ProducePacketName [01:22:22]name=ofd_packets/00063153 [01:22:22]OFD Sender: To server: pG, [01:22:22]CommunicateWithHost lk.salyk.kg:30040 [01:22:22]ConnectInit lk.salyk.kg [01:22:27]ConnectInit Can't take IP for lk.salyk.kg [01:22:27]CommunicateWithHost connect error [01:22:27]CommunicateWithHost err = -1 [01:22:27]OFD Sender: Server communicate error [01:22:32]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:22:32]ProducePacketName [01:22:32]name=ofd_packets/00063153 [01:22:32]OFD Sender: To server: pG, [01:22:32]CommunicateWithHost lk.salyk.kg:30040 [01:22:32]ConnectInit lk.salyk.kg [01:22:37]ConnectInit Can't take IP for lk.salyk.kg [01:22:37]CommunicateWithHost connect error [01:22:37]CommunicateWithHost err = -1 [01:22:37]OFD Sender: Server communicate error [01:22:42]OFD Sender: Processing packet 63153 [packets to send 232, broken 231] [01:22:42]ProducePacketName [01:22:42]name=ofd_packets/00063153 [01:22:42]OFD Sender: To server: pG, [01:22:42]CommunicateWithHost lk.salyk.kg:30040 [01:22:42]ConnectInit lk.salyk.kg [01:22:45]Connected sock=9 [01:22: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 AD 01 00 00 01 C6 A5 01 5A AD 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 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 72 65 65 6E 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 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 15 FE 16 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B1 F6 00 00 35 04 06 00 CA 9A 70 A9 25 E4 19 27 DE AC 7F 14 50 16 [01:22:45]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 F8 57 47 00 6B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 B1 F6 00 00 F4 03 04 00 63 A8 16 67 B6 04 01 00 00 EB 33 DA 36 CC FB F8 2F [01:22:45]CommunicateWithHost err = 0 [01:22:45]CheckOFDResponse [01:22:45]1017 (14) - 77093643461234 [01:22:45]1041 (16) - 0000000000874676 [01:22:45]1040 (4) - 63153 [01:22:45]1012 (4) - 21.10.2024 19:15 [01:22:45]1206 (1) - 0 [01:22:45]OFD Sender: Remove packet 63153 [01:22:45]ProducePacketName [01:22:45]name=ofd_packets/00063153 [01:22:45]NVStorageDeleteData [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:52]ConnectInit Can't connect to host [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:39]accept exits with 10 [01:31:39]New connection [01:31:39]New thread 3067055460 created [01:31:39]Thread 3067198820 joined [01:31:39]Waiting for new connection... [01:31:39] Sock 10.Parse request [01:31:39]Sock 10.Check first char [01:31:39]Sock 10.First char is OK [01:31:39]request: POST /json_proto HTTP/1.0 [01:31:39]Method: POST [01:31:39]URL: /json_proto [01:31:39]Method is POST - this is cgi request [01:31:39]url: /json_proto [01:31:39]query_string will be loaded in cgi processing [01:31:39]execute_cgi json_proto POST (null) [01:31:39]execute_cgi path=json_proto method=POST [01:31:39]POST find Content-Length [01:31:39]Host: 172.17.42.132:8080 [01:31:39]Content-Length: 965 [01:31:39]Content-Type: application/json [01:31:39] [01:31:39]POST finish read [01:31:39]Found Content-Length = 965 [01:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47464", "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 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:39]execute_script... [01:31: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)47464", "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 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:39]POST & json_proto [01:31:39]process_json_proto [01:31:39]json parsed OK: [01:31:39]protocol is kg_v1.0 [01:31:39]action value=close_receipt [01:31:39]process_action close_receipt [01:31:39]cmd_close_receipt [01:31:39]MH_GetDate [01:31:39]Write to MH i2c: F0 00 00 B0 27 C6 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: F0 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: F0 09 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: F0 09 00 B0 27 00 80 00 17 67 4C DF 56 66 B4 [01:31:39]GetLastDocTimeStamp 1729560085 [01:31:39]current date 1729560704 [01:31:39]FM_GetShiftState [01:31:39]SAM_PROTO_GetShiftState [01:31:39]wFMCommunicate request_size=4 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 13 01 00 [01:31:39]Write to MH i2c: E2 08 00 B1 27 80 13 01 00 00 00 00 00 55 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 0E 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 0E 00 B1 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 4B [01:31:39]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:31:39]wFMCommunicate OK [01:31:39]SAM_PROTO_GetShiftState done [01:31:39]FM_GetShiftState done [01:31:39]opened in 1729556095 [01:31:39]opened+sec_in_day 1729642495 [01:31:39]quantity*price = 11500 [01:31:39]sum+1 = 11501 [01:31:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8904103304060 Презерватив ITEX жев резинка 3 шт 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 10 22.10.2024 01:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63154 ФПД: 131757540715544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013144&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63154&fm=131757540715544&tin=02508201610067®Number=0000000000091619&sum=25500 0 [01:31:40]StoreToDocumentArchive [01:31:40]shift 545 fd 63154 [01:31:40]save to /storage/0545/doc_00063154 [01:31:40]save last doc name /storage/0545/doc_00063154 to /storage/kkm_last_doc_name [01:31:40]save OK [01:31:40]Clear old archive folders... [01:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=408 [01:31:40]tlvbuf is 018D6DB0 [01:31:40]SAM_PROTO_ClearQueue [01:31:40]wFMCommunicate request_size=4 [01:31:40]MH_SAM_APDU [01:31:40]CAPDU: 80 09 00 00 [01:31:40]Write to MH i2c: E2 08 00 BE 27 80 09 00 00 00 00 00 00 57 [01:31:40]Write i2c OK [01:31:40]MH_I2C_Read... [01:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:40]Read from MH i2c: E2 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 BE 27 00 90 00 59 [01:31:40]RAPDU: 90 00 [01:31:40]wFMCommunicate OK [01:31:40]SAM_PROTO_ClearQueue done [01:31:40]KKMCreateOFDPacket [01:31:40]OFDProtocolAddRootSTLVToBuf [01:31:40]FM_MakeSignedData [01:31:40]FM_MakeSignedData [01:31:40]SAM_PROTO_SignData [01:31:40]wFMCommunicate request_size=4 [01:31:40]MH_SAM_APDU [01:31:40]CAPDU: 80 0D 01 02 [01:31:40]Write to MH i2c: E2 08 00 BF 27 80 0D 01 02 00 00 00 00 5F [01:31:40]Write i2c OK [01:31:40]MH_I2C_Read... [01:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:40]Read from MH i2c: E2 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 BF 27 00 90 00 5A [01:31:40]RAPDU: 90 00 [01:31:40]wFMCommunicate OK [01:31:40]wFMCommunicate request_size=255 [01:31:40]MH_SAM_APDU [01:31:40]CAPDU: 80 0D 02 02 FA 03 00 98 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 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [01:31:40]Write to MH i2c: E2 02 01 C0 27 80 0D 02 02 FA 00 03 00 98 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 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A9 [01:31:40]Write i2c OK [01:31:40]MH_I2C_Read... [01:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:40]Read from MH i2c: E2 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [01:31:40]RAPDU: 90 00 [01:31:40]wFMCommunicate OK [01:31:40]wFMCommunicate request_size=167 [01:31:40]MH_SAM_APDU [01:31:40]CAPDU: 80 0D 02 02 A2 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 80 00 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B2 F6 00 00 35 04 06 00 77 D5 31 69 2C 18 [01:31:40]Write to MH i2c: E2 AA 00 C1 27 80 0D 02 02 A2 00 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 80 00 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B2 F6 00 00 35 04 06 00 77 D5 31 69 2C 18 00 00 65 [01:31:40]Write i2c OK [01:31:40]MH_I2C_Read... [01:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:40]Read from MH i2c: E2 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [01:31:40]RAPDU: 90 00 [01:31:40]wFMCommunicate OK [01:31:40]wFMCommunicate request_size=4 [01:31:40]MH_SAM_APDU [01:31:40]CAPDU: 80 0D 03 02 [01:31:40]Write to MH i2c: E2 08 00 C2 27 80 0D 03 02 00 00 00 00 64 [01:31:40]Write i2c OK [01:31:40]MH_I2C_Read... [01:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:40]Read from MH i2c: E2 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 0B 00 [01:31:40]MH_I2C_Read... [01:31:40]Read from MH i2c: E2 0B 00 C2 27 00 8D 53 DC 56 89 0B CA 21 90 00 F6 [01:31:41]RAPDU: 8D 53 DC 56 89 0B CA 21 90 00 [01:31:41]wFMCommunicate OK [01:31:41]SAM_PROTO_SignData done [01:31:41]FM_MakeSignedData done [01:31:41]CreateOFDProtocolMessage [01:31:41]wFMCommunicate request_size=4 [01:31:41]MH_SAM_APDU [01:31:41]CAPDU: 80 11 00 00 [01:31:41]Write to MH i2c: E2 08 00 C3 27 80 11 00 00 00 00 00 00 64 [01:31:41]Write i2c OK [01:31:41]MH_I2C_Read... [01:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:41]Read from MH i2c: E2 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: E2 17 00 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: E2 17 00 C3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BD [01:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:31:41]wFMCommunicate OK [01:31:41]CreateOFDProtocolMessage done [01:31:41]OFDSenderStorePacket 63154 [01:31:41]StoreOFDPacket docnum=63154 [01:31: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 AC 01 00 00 A8 2F A4 01 13 21 5A 03 01 00 03 00 98 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 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 80 00 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B2 F6 00 00 35 04 06 00 77 D5 31 69 2C 18 8D 53 DC 56 89 0B CA 21 [01:31:41]CheckFolder [01:31:41]dirname=/storage/ofd_packets [01:31:41]CheckFolder done [01:31:41]ProducePacketName [01:31:41]name=ofd_packets/00063154 [01:31:41]NVStorageSaveData ofd_packets/00063154 [01:31:41]File name is /storage/ofd_packets/00063154 [01:31:41]Write 458 bytes [01:31:41]NVStorageSaveData done [01:31:41]OFDSenderStorePacket done [01:31:41]KKMCreateOFDPacket done [01:31:41]NVStorageSaveData kkm_last_timestamp [01:31:41]File name is /storage/kkm_last_timestamp [01:31:41]Write 4 bytes [01:31:41]NVStorageSaveData done [01:31:41]ExternCall_PrintAddStr [01:31:41]wPrintStart [01:31:41]Write to MH i2c: 01 00 00 C4 27 EB [01:31:41]Write i2c OK [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 07 00 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 07 00 C4 27 00 00 00 00 00 FF 0F 00 [01:31:41]RasterBufferAndPrint [01:31:41]line Счет N : (3)47464 [01:31:41]line ИНН: 02508201610067 [01:31:41]line Контрольно-Кассовый Чек [01:31:41]line ПРОДАЖА [01:31:41]line Товар: 2000036210013 [01:31:41]line Кофе Капучино (GABB TRADE) [01:31:41]line 1.000 * 115.00 [01:31:41]line = 115.00 [01:31:41]line НДС 12% НСП 1% [01:31:41]line > о реализуемом товаре [01:31:41]line Товар: 8904103304060 [01:31:41]line Презерватив ITEX жев резинка 3 шт [01:31:41]line 1.000 * 140.00 [01:31:41]line = 140.00 [01:31:41]line НДС 12% НСП 1% [01:31:41]line > о реализуемом товаре [01:31:41]line ИТОГО: 255.00 [01:31:41]line НСП 1% : 2.26 [01:31:41]line НДС 12% : 27.08 [01:31:41]line Наличными: 255.00 [01:31:41]line Безнал.: 0.00 [01:31:41]line Место: АЗС № 86 "Партнер Нефть" [01:31:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:31:41]line СНО: Общий режим [01:31:41]line Чек 10 22.10.2024 01:31 [01:31:41]line Смена: 545 ФФД: 1.0 [01:31:41]line ЗНМ: 0300000154 [01:31:41]line РНМ: 0000000000091619 [01:31:41]line Версия ККМ: 001 [01:31:41]line ФМ: 0000000000874676 [01:31:41]line ФД: 63154 [01:31:41]line ФПД: 131757540715544 [01:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013144&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63154&fm=131757540715544&tin=02508201610067®Number=0000000000091619&sum=25500 [01:31:41]OFD Sender: Processing packet 63154 [packets to send 232, broken 231] [01:31:41]ProducePacketName [01:31:41]name=ofd_packets/00063154 [01:31:41]OFD Sender: To server: pG, [01:31:41]CommunicateWithHost lk.salyk.kg:30040 [01:31:41]ConnectInit lk.salyk.kg [01:31:41]line 0 [01:31:41]written 0, free lines is 4095 [01:31:41]Connected sock=9 [01:31: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 AC 01 00 00 A8 2F A4 01 13 21 5A 03 01 00 03 00 98 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 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 80 00 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B2 F6 00 00 35 04 06 00 77 D5 31 69 2C 18 8D 53 DC 56 89 0B CA 21 [01:31:41]Write to MH i2c: 01 00 00 F3 27 1A [01:31:41]Write i2c OK [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 07 00 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: 01 07 00 F3 27 00 00 00 00 00 C8 0C F5 [01:31:41]RasterBufferAndPrint [01:31:41]line [01:31:41]line [01:31:41]line [01:31:41]line [01:31:41]line [01:31:41]written 0, free lines is 3280 [01:31:41]MH_Cut [01:31:41]Write to MH i2c: D1 01 00 FA 27 01 F3 [01:31:41]Write i2c OK [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: D1 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: D1 01 00 [01:31:41]MH_I2C_Read... [01:31:41]Read from MH i2c: D1 01 00 FA 27 00 F2 [01:31:41]Write to MH i2c: 01 00 00 FB 27 22 [01:31:41]Write i2c OK [01:31:41]MH_I2C_Read... [01:31: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 B0 70 47 00 F7 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 B2 F6 00 00 F4 03 04 00 7C AA 16 67 B6 04 01 00 00 B5 57 F1 03 DA 6A 47 05 [01:31:42]CommunicateWithHost err = 0 [01:31:42]CheckOFDResponse [01:31:42]1017 (14) - 77093643461234 [01:31:42]1041 (16) - 0000000000874676 [01:31:42]1040 (4) - 63154 [01:31:42]1012 (4) - 21.10.2024 19:24 [01:31:42]1206 (1) - 0 [01:31:42]OFD Sender: Remove packet 63154 [01:31:42]ProducePacketName [01:31:42]name=ofd_packets/00063154 [01:31:42]NVStorageDeleteData [01:31:42]OFD Sender: No OFD packet to send [01:31:42]*** Cut start [01:31:42]*** Partial cut [01:31:42]*** CUTSNS_PIN = 1 [01:31:42]*** CUTSNS_PIN = 0 [01:31:42]*** Brake cut motor [01:31:43]Read from MH i2c: 01 [01:31:43]MH_I2C_Read... [01:31:43]*** Stop cut motor [01:31:43]*** Cut end [01:31:43]Read from MH i2c: 01 07 00 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: 01 07 00 FB 27 00 00 00 00 00 FF 0F 37 [01:31:43]process_action close_receipt done [01:31:43]requested_data is exist [01:31:43]produce_requested_data [01:31:43]requested_item fm.sn is exist - process it [01:31:43]wFMCommunicate request_size=4 [01:31:43]MH_SAM_APDU [01:31:43]CAPDU: 80 11 00 00 [01:31:43]Write to MH i2c: E2 08 00 FC 27 80 11 00 00 00 00 00 00 9D [01:31:43]Write i2c OK [01:31:43]MH_I2C_Read... [01:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:43]Read from MH i2c: E2 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 17 00 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 17 00 FC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F6 [01:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:31:43]wFMCommunicate OK [01:31:43]requested_item fd.num is exist - process it [01:31:43]SAM_PROTO_GetFieldsCounters [01:31:43]wFMCommunicate request_size=4 [01:31:43]MH_SAM_APDU [01:31:43]CAPDU: 80 13 00 00 [01:31:43]Write to MH i2c: E2 08 00 FD 27 80 13 00 00 00 00 00 00 A0 [01:31:43]Write i2c OK [01:31:43]MH_I2C_Read... [01:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:43]Read from MH i2c: E2 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 62 00 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 62 00 FD 27 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 B2 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [01:31: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 B2 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:43]wFMCommunicate OK [01:31:43]SAM_PROTO_GetFieldsCounters done [01:31:43]requested_item shift.num is exist - process it [01:31:43]requested_item shift.opened is exist - process it [01:31:43]req_shift_opened [01:31:43]FM_GetShiftState [01:31:43]SAM_PROTO_GetShiftState [01:31:43]wFMCommunicate request_size=4 [01:31:43]MH_SAM_APDU [01:31:43]CAPDU: 80 13 01 00 [01:31:43]Write to MH i2c: E2 08 00 FE 27 80 13 01 00 00 00 00 00 A2 [01:31:43]Write i2c OK [01:31:43]MH_I2C_Read... [01:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:43]Read from MH i2c: E2 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 0E 00 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: E2 0E 00 FE 27 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 98 [01:31:43]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [01:31:43]wFMCommunicate OK [01:31:43]SAM_PROTO_GetShiftState done [01:31:43]FM_GetShiftState done [01:31:43]req_shift_opened done [01:31:43]requested_item shift.open_date is exist - process it [01:31:43]req_shift_open_date [01:31:43]req_shift_open_date done [01:31:43]produce_requested_data done [01:31:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63154,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [01:31:43]process_action_free close_receipt [01:31:43]json_value_free [01:31:43]json_value_free done [01:31:43]process_json_proto returns [01:31:43]Send response to host [01:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63154,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [01:31:43]free response buf [01:31:43]execute_script done [01:31:43]execute_script returns [01:31:43]free content buf [01:31:43]Sock 10.Close socket [01:31:43]Sock 10.Thread stoped [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]accept exits with 7 [02:08:10]New connection [02:08:10]New thread 3067198820 created [02:08:10]Thread 3067055460 joined [02:08:10]Waiting for new connection... [02:08:10] Sock 7.Parse request [02:08:10]Sock 7.Check first char [02:08:10]Sock 7.First char is OK [02:08:10]request: POST /json_proto HTTP/1.0 [02:08:10]Method: POST [02:08:10]URL: /json_proto [02:08:10]Method is POST - this is cgi request [02:08:10]url: /json_proto [02:08:10]query_string will be loaded in cgi processing [02:08:10]execute_cgi json_proto POST (null) [02:08:10]execute_cgi path=json_proto method=POST [02:08:10]POST find Content-Length [02:08:10]Host: 172.17.42.132:8080 [02:08:10]Content-Length: 1247 [02:08:10]Content-Type: application/json [02:08:10] [02:08:10]POST finish read [02:08:10]Found Content-Length = 1247 [02:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47465", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:10]execute_script... [02:08: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)47465", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:10]POST & json_proto [02:08:10]process_json_proto [02:08:10]json parsed OK: [02:08:10]protocol is kg_v1.0 [02:08:10]action value=close_receipt [02:08:10]process_action close_receipt [02:08:10]cmd_close_receipt [02:08:10]MH_GetDate [02:08:10]Write to MH i2c: F0 00 00 FF 27 15 [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 09 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 09 00 FF 27 00 0F 09 17 67 4C DF 56 66 9B [02:08:10]GetLastDocTimeStamp 1729560704 [02:08:10]current date 1729562895 [02:08:10]FM_GetShiftState [02:08:10]SAM_PROTO_GetShiftState [02:08:10]wFMCommunicate request_size=4 [02:08:10]MH_SAM_APDU [02:08:10]CAPDU: 80 13 01 00 [02:08:10]Write to MH i2c: E2 08 00 00 28 80 13 01 00 00 00 00 00 A5 [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:10]Read from MH i2c: E2 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 0E 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 0E 00 00 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 9B [02:08:10]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:08:10]wFMCommunicate OK [02:08:10]SAM_PROTO_GetShiftState done [02:08:10]FM_GetShiftState done [02:08:10]opened in 1729556095 [02:08:10]opened+sec_in_day 1729642495 [02:08:10]quantity*price = 9500 [02:08:10]sum+1 = 9501 [02:08:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329000476 Сух Кириешки шашлык 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.82 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 11 22.10.2024 02:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63155 ФПД: 68355906678437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020815&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63155&fm=68355906678437&tin=02508201610067®Number=0000000000091619&sum=20500 0 [02:08:11]StoreToDocumentArchive [02:08:11]shift 545 fd 63155 [02:08:11]save to /storage/0545/doc_00063155 [02:08:11]save last doc name /storage/0545/doc_00063155 to /storage/kkm_last_doc_name [02:08:11]save OK [02:08:11]Clear old archive folders... [02:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=514 [02:08:11]tlvbuf is 018D7180 [02:08:11]SAM_PROTO_ClearQueue [02:08:11]wFMCommunicate request_size=4 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 09 00 00 [02:08:11]Write to MH i2c: E2 08 00 0D 28 80 09 00 00 00 00 00 00 A7 [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:11]Read from MH i2c: E2 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [02:08:11]RAPDU: 90 00 [02:08:11]wFMCommunicate OK [02:08:11]SAM_PROTO_ClearQueue done [02:08:11]KKMCreateOFDPacket [02:08:11]OFDProtocolAddRootSTLVToBuf [02:08:11]FM_MakeSignedData [02:08:11]FM_MakeSignedData [02:08:11]SAM_PROTO_SignData [02:08:11]wFMCommunicate request_size=4 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 0D 01 02 [02:08:11]Write to MH i2c: E2 08 00 0E 28 80 0D 01 02 00 00 00 00 AF [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:11]Read from MH i2c: E2 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [02:08:11]RAPDU: 90 00 [02:08:11]wFMCommunicate OK [02:08:11]wFMCommunicate request_size=255 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 0D 02 02 FA 03 00 02 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 6D 00 8A 04 0D 00 34 36 [02:08:11]Write to MH i2c: E2 02 01 0F 28 80 0D 02 02 FA 00 03 00 02 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 6D 00 8A 04 0D 00 34 36 00 00 C4 [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:11]Read from MH i2c: E2 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [02:08:11]RAPDU: 90 00 [02:08:11]wFMCommunicate OK [02:08:11]wFMCommunicate request_size=255 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 0D 02 02 FA 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0F 09 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 [02:08:11]Write to MH i2c: E2 02 01 10 28 80 0D 02 02 FA 00 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0F 09 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 00 00 11 [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 10 28 00 90 00 AC [02:08:12]RAPDU: 90 00 [02:08:12]wFMCommunicate OK [02:08:12]wFMCommunicate request_size=23 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 0D 02 02 12 10 04 04 00 B3 F6 00 00 35 04 06 00 3E 2B 59 89 2E A5 [02:08:12]Write to MH i2c: E2 1A 00 11 28 80 0D 02 02 12 00 10 04 04 00 B3 F6 00 00 35 04 06 00 3E 2B 59 89 2E A5 00 00 F5 [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [02:08:12]RAPDU: 90 00 [02:08:12]wFMCommunicate OK [02:08:12]wFMCommunicate request_size=4 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 0D 03 02 [02:08:12]Write to MH i2c: E2 08 00 12 28 80 0D 03 02 00 00 00 00 B5 [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 0B 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 0B 00 12 28 00 A7 40 CD 24 E6 8C EC F9 90 00 E5 [02:08:12]RAPDU: A7 40 CD 24 E6 8C EC F9 90 00 [02:08:12]wFMCommunicate OK [02:08:12]SAM_PROTO_SignData done [02:08:12]FM_MakeSignedData done [02:08:12]CreateOFDProtocolMessage [02:08:12]wFMCommunicate request_size=4 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 11 00 00 [02:08:12]Write to MH i2c: E2 08 00 13 28 80 11 00 00 00 00 00 00 B5 [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 17 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 17 00 13 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0E [02:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:08:12]wFMCommunicate OK [02:08:12]CreateOFDProtocolMessage done [02:08:12]OFDSenderStorePacket 63155 [02:08:12]StoreOFDPacket docnum=63155 [02:08: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 16 02 00 00 8D 83 0E 02 F6 06 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0F 09 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B3 F6 00 00 35 04 06 00 3E 2B 59 89 2E A5 A7 40 CD 24 E6 8C EC F9 [02:08:12]CheckFolder [02:08:12]dirname=/storage/ofd_packets [02:08:12]CheckFolder done [02:08:12]ProducePacketName [02:08:12]name=ofd_packets/00063155 [02:08:12]NVStorageSaveData ofd_packets/00063155 [02:08:12]File name is /storage/ofd_packets/00063155 [02:08:12]Write 564 bytes [02:08:12]NVStorageSaveData done [02:08:12]OFDSenderStorePacket done [02:08:12]KKMCreateOFDPacket done [02:08:12]NVStorageSaveData kkm_last_timestamp [02:08:12]File name is /storage/kkm_last_timestamp [02:08:12]Write 4 bytes [02:08:12]NVStorageSaveData done [02:08:12]ExternCall_PrintAddStr [02:08:12]wPrintStart [02:08:12]Write to MH i2c: 01 00 00 14 28 3C [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 07 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 FF 0F 51 [02:08:12]RasterBufferAndPrint [02:08:12]line Счет N : (3)47465 [02:08:12]line ИНН: 02508201610067 [02:08:12]line Контрольно-Кассовый Чек [02:08:12]line ПРОДАЖА [02:08:12]line Товар: 4607015232547 [02:08:12]line Вафли Яшкино с халвой 200г [02:08:12]line 1.000 * 95.00 [02:08:12]line = 95.00 [02:08:12]line НДС 12% НСП 1% [02:08:12]line > о реализуемом товаре [02:08:12]line Товар: 4700040114137 [02:08:12]line Султан чай 1л. зел лимон [02:08:12]line 1.000 * 89.00 [02:08:12]line = 89.00 [02:08:12]line НДС 12% НСП 1% [02:08:12]line > о реализуемом товаре [02:08:12]line Товар: 4690329000476 [02:08:12]line Сух Кириешки шашлык 40г [02:08:12]line 1.000 * 21.00 [02:08:12]line = 21.00 [02:08:12]line НДС 12% НСП 1% [02:08:12]line > о реализуемом товаре [02:08:12]line ИТОГО: 205.00 [02:08:12]line НСП 1% : 1.82 [02:08:12]line НДС 12% : 21.77 [02:08:12]line Наличными: 205.00 [02:08:12]line Безнал.: 0.00 [02:08:12]line Место: АЗС № 86 "Партнер Нефть" [02:08:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:08:12]line СНО: Общий режим [02:08:12]line Чек 11 22.10.2024 02:08 [02:08:12]line Смена: 545 ФФД: 1.0 [02:08:12]line ЗНМ: 0300000154 [02:08:12]line РНМ: 0000000000091619 [02:08:12]line Версия ККМ: 001 [02:08:12]line ФМ: 0000000000874676 [02:08:12]line ФД: 63155 [02:08:12]line ФПД: 68355906678437 [02:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020815&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63155&fm=68355906678437&tin=02508201610067®Number=0000000000091619&sum=20500 [02:08:12]line 0 [02:08:12]OFD Sender: Processing packet 63155 [packets to send 232, broken 231] [02:08:12]ProducePacketName [02:08:12]name=ofd_packets/00063155 [02:08:12]OFD Sender: To server: pG, [02:08:12]CommunicateWithHost lk.salyk.kg:30040 [02:08:12]ConnectInit lk.salyk.kg [02:08:12]written 0, free lines is 4095 [02:08:12]Connected sock=10 [02:08: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 16 02 00 00 8D 83 0E 02 F6 06 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0F 09 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B3 F6 00 00 35 04 06 00 3E 2B 59 89 2E A5 A7 40 CD 24 E6 8C EC F9 [02:08: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 11 D2 47 00 F8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B3 F6 00 00 F4 03 04 00 0B B3 16 67 B6 04 01 00 00 E9 13 54 A3 DC 11 42 94 [02:08:13]CommunicateWithHost err = 0 [02:08:13]CheckOFDResponse [02:08:13]1017 (14) - 77093643461234 [02:08:13]1041 (16) - 0000000000874676 [02:08:13]1040 (4) - 63155 [02:08:13]1012 (4) - 21.10.2024 20:01 [02:08:13]1206 (1) - 0 [02:08:13]OFD Sender: Remove packet 63155 [02:08:13]ProducePacketName [02:08:13]name=ofd_packets/00063155 [02:08:13]NVStorageDeleteData [02:08:13]Write to MH i2c: 01 00 00 48 28 70 [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 07 00 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 07 00 48 28 00 00 00 00 00 7D 0C 00 [02:08:13]RasterBufferAndPrint [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]written 0, free lines is 3207 [02:08:13]MH_Cut [02:08:13]Write to MH i2c: D1 01 00 4F 28 01 49 [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 01 00 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 01 00 4F 28 00 48 [02:08:13]Write to MH i2c: 01 00 00 50 28 78 [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:13]OFD Sender: No OFD packet to send [02:08:13]*** Cut start [02:08:13]*** Partial cut [02:08:13]*** CUTSNS_PIN = 1 [02:08:14]*** CUTSNS_PIN = 0 [02:08:14]*** Brake cut motor [02:08:14]Read from MH i2c: 01 [02:08:14]MH_I2C_Read... [02:08:14]*** Stop cut motor [02:08:14]*** Cut end [02:08:14]Read from MH i2c: 01 07 00 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: 01 07 00 50 28 00 00 00 00 00 FF 0F 8D [02:08:14]process_action close_receipt done [02:08:14]requested_data is exist [02:08:14]produce_requested_data [02:08:14]requested_item fm.sn is exist - process it [02:08:14]wFMCommunicate request_size=4 [02:08:14]MH_SAM_APDU [02:08:14]CAPDU: 80 11 00 00 [02:08:14]Write to MH i2c: E2 08 00 51 28 80 11 00 00 00 00 00 00 F3 [02:08:14]Write i2c OK [02:08:14]MH_I2C_Read... [02:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:14]Read from MH i2c: E2 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 17 00 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 17 00 51 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4C [02:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:08:14]wFMCommunicate OK [02:08:14]requested_item fd.num is exist - process it [02:08:14]SAM_PROTO_GetFieldsCounters [02:08:14]wFMCommunicate request_size=4 [02:08:14]MH_SAM_APDU [02:08:14]CAPDU: 80 13 00 00 [02:08:14]Write to MH i2c: E2 08 00 52 28 80 13 00 00 00 00 00 00 F6 [02:08:14]Write i2c OK [02:08:14]MH_I2C_Read... [02:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:14]Read from MH i2c: E2 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 62 00 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 62 00 52 28 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 B3 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [02:08: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 B3 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:14]wFMCommunicate OK [02:08:14]SAM_PROTO_GetFieldsCounters done [02:08:14]requested_item shift.num is exist - process it [02:08:14]requested_item shift.opened is exist - process it [02:08:14]req_shift_opened [02:08:14]FM_GetShiftState [02:08:14]SAM_PROTO_GetShiftState [02:08:14]wFMCommunicate request_size=4 [02:08:14]MH_SAM_APDU [02:08:14]CAPDU: 80 13 01 00 [02:08:14]Write to MH i2c: E2 08 00 53 28 80 13 01 00 00 00 00 00 F8 [02:08:14]Write i2c OK [02:08:14]MH_I2C_Read... [02:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:14]Read from MH i2c: E2 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 0E 00 [02:08:14]MH_I2C_Read... [02:08:14]Read from MH i2c: E2 0E 00 53 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 EE [02:08:14]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:08:14]wFMCommunicate OK [02:08:14]SAM_PROTO_GetShiftState done [02:08:14]FM_GetShiftState done [02:08:14]req_shift_opened done [02:08:14]requested_item shift.open_date is exist - process it [02:08:14]req_shift_open_date [02:08:14]req_shift_open_date done [02:08:14]produce_requested_data done [02:08:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63155,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:08:14]process_action_free close_receipt [02:08:14]json_value_free [02:08:14]json_value_free done [02:08:14]process_json_proto returns [02:08:14]Send response to host [02:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63155,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:08:14]free response buf [02:08:14]execute_script done [02:08:14]execute_script returns [02:08:14]free content buf [02:08:14]Sock 7.Close socket [02:08:14]Sock 7.Thread stoped [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:36]accept exits with 9 [02:23:36]New connection [02:23:36]New thread 3067055460 created [02:23:36]Thread 3067198820 joined [02:23:36]Waiting for new connection... [02:23:36] Sock 9.Parse request [02:23:36]Sock 9.Check first char [02:23:36]Sock 9.First char is OK [02:23:36]request: POST /json_proto HTTP/1.0 [02:23:36]Method: POST [02:23:36]URL: /json_proto [02:23:36]Method is POST - this is cgi request [02:23:36]url: /json_proto [02:23:36]query_string will be loaded in cgi processing [02:23:36]execute_cgi json_proto POST (null) [02:23:36]execute_cgi path=json_proto method=POST [02:23:36]POST find Content-Length [02:23:36]Host: 172.17.42.132:8080 [02:23:36]Content-Length: 639 [02:23:36]Content-Type: application/json [02:23:36] [02:23:36]POST finish read [02:23:36]Found Content-Length = 639 [02:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47466", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:36]execute_script... [02:23:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47466", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:36]POST & json_proto [02:23:36]process_json_proto [02:23:36]json parsed OK: [02:23:36]protocol is kg_v1.0 [02:23:36]action value=close_receipt [02:23:36]process_action close_receipt [02:23:36]cmd_close_receipt [02:23:36]MH_GetDate [02:23:36]Write to MH i2c: F0 00 00 54 28 6B [02:23:36]Write i2c OK [02:23:36]MH_I2C_Read... [02:23:36]Read from MH i2c: F0 [02:23:36]MH_I2C_Read... [02:23:36]Read from MH i2c: F0 09 00 [02:23:36]MH_I2C_Read... [02:23:36]Read from MH i2c: F0 09 00 54 28 00 AD 0C 17 67 4C DF 56 66 92 [02:23:36]GetLastDocTimeStamp 1729562895 [02:23:36]current date 1729563821 [02:23:36]FM_GetShiftState [02:23:36]SAM_PROTO_GetShiftState [02:23:36]wFMCommunicate request_size=4 [02:23:36]MH_SAM_APDU [02:23:36]CAPDU: 80 13 01 00 [02:23:36]Write to MH i2c: E2 08 00 55 28 80 13 01 00 00 00 00 00 FA [02:23:36]Write i2c OK [02:23:36]MH_I2C_Read... [02:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:36]Read from MH i2c: E2 [02:23:36]MH_I2C_Read... [02:23:36]Read from MH i2c: E2 0E 00 [02:23:36]MH_I2C_Read... [02:23:36]Read from MH i2c: E2 0E 00 55 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 F0 [02:23:36]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:23:36]wFMCommunicate OK [02:23:36]SAM_PROTO_GetShiftState done [02:23:36]FM_GetShiftState done [02:23:36]opened in 1729556095 [02:23:36]opened+sec_in_day 1729642495 [02:23:36]quantity*price = 19900 [02:23:36]sum+1 = 19901 [02:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 12 22.10.2024 02:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63156 ФПД: 8505818213213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022341&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63156&fm=8505818213213&tin=02508201610067®Number=0000000000091619&sum=19900 0 [02:23:37]StoreToDocumentArchive [02:23:37]shift 545 fd 63156 [02:23:37]save to /storage/0545/doc_00063156 [02:23:37]save last doc name /storage/0545/doc_00063156 to /storage/kkm_last_doc_name [02:23:37]save OK [02:23:37]Clear old archive folders... [02:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [02:23:37]tlvbuf is 01956560 [02:23:37]SAM_PROTO_ClearQueue [02:23:37]wFMCommunicate request_size=4 [02:23:37]MH_SAM_APDU [02:23:37]CAPDU: 80 09 00 00 [02:23:37]Write to MH i2c: E2 08 00 62 28 80 09 00 00 00 00 00 00 FC [02:23:37]Write i2c OK [02:23:37]MH_I2C_Read... [02:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:23:37]Read from MH i2c: E2 [02:23:37]MH_I2C_Read... [02:23:37]Read from MH i2c: E2 03 00 [02:23:37]MH_I2C_Read... [02:23:37]Read from MH i2c: E2 03 00 62 28 00 90 00 FE [02:23:37]RAPDU: 90 00 [02:23:37]wFMCommunicate OK [02:23:37]SAM_PROTO_ClearQueue done [02:23:37]KKMCreateOFDPacket [02:23:37]OFDProtocolAddRootSTLVToBuf [02:23:37]FM_MakeSignedData [02:23:37]FM_MakeSignedData [02:23:37]SAM_PROTO_SignData [02:23:37]wFMCommunicate request_size=4 [02:23:37]MH_SAM_APDU [02:23:37]CAPDU: 80 0D 01 02 [02:23:37]Write to MH i2c: E2 08 00 63 28 80 0D 01 02 00 00 00 00 04 [02:23:37]Write i2c OK [02:23:37]MH_I2C_Read... [02:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:23:37]Read from MH i2c: E2 [02:23:37]MH_I2C_Read... [02:23:37]Read from MH i2c: E2 03 00 [02:23:37]MH_I2C_Read... [02:23:37]Read from MH i2c: E2 03 00 63 28 00 90 00 FF [02:23:37]RAPDU: 90 00 [02:23:37]wFMCommunicate OK [02:23:37]wFMCommunicate request_size=255 [02:23:37]MH_SAM_APDU [02:23:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 AD 0C 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [02:23:37]Write to MH i2c: E2 02 01 64 28 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 AD 0C 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 F0 [02:23:37]Write i2c OK [02:23:37]MH_I2C_Read... [02:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:38]Read from MH i2c: E2 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 03 00 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 03 00 64 28 00 90 00 00 [02:23:38]RAPDU: 90 00 [02:23:38]wFMCommunicate OK [02:23:38]wFMCommunicate request_size=31 [02:23:38]MH_SAM_APDU [02:23:38]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 B4 F6 00 00 35 04 06 00 07 BC 6A 45 EB 5D [02:23:38]Write to MH i2c: E2 22 00 65 28 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 B4 F6 00 00 35 04 06 00 07 BC 6A 45 EB 5D 00 00 9C [02:23:38]Write i2c OK [02:23:38]MH_I2C_Read... [02:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:38]Read from MH i2c: E2 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 03 00 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 03 00 65 28 00 90 00 01 [02:23:38]RAPDU: 90 00 [02:23:38]wFMCommunicate OK [02:23:38]wFMCommunicate request_size=4 [02:23:38]MH_SAM_APDU [02:23:38]CAPDU: 80 0D 03 02 [02:23:38]Write to MH i2c: E2 08 00 66 28 80 0D 03 02 00 00 00 00 09 [02:23:38]Write i2c OK [02:23:38]MH_I2C_Read... [02:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:38]Read from MH i2c: E2 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 0B 00 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 0B 00 66 28 00 07 47 0F 52 58 B3 66 82 90 00 AC [02:23:38]RAPDU: 07 47 0F 52 58 B3 66 82 90 00 [02:23:38]wFMCommunicate OK [02:23:38]SAM_PROTO_SignData done [02:23:38]FM_MakeSignedData done [02:23:38]CreateOFDProtocolMessage [02:23:38]wFMCommunicate request_size=4 [02:23:38]MH_SAM_APDU [02:23:38]CAPDU: 80 11 00 00 [02:23:38]Write to MH i2c: E2 08 00 67 28 80 11 00 00 00 00 00 00 09 [02:23:38]Write i2c OK [02:23:38]MH_I2C_Read... [02:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:38]Read from MH i2c: E2 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 17 00 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: E2 17 00 67 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 62 [02:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:23:38]wFMCommunicate OK [02:23:38]CreateOFDProtocolMessage done [02:23:38]OFDSenderStorePacket 63156 [02:23:38]StoreOFDPacket docnum=63156 [02:23: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 24 01 00 00 08 E9 1C 01 73 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 AD 0C 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B4 F6 00 00 35 04 06 00 07 BC 6A 45 EB 5D 07 47 0F 52 58 B3 66 82 [02:23:38]CheckFolder [02:23:38]dirname=/storage/ofd_packets [02:23:38]CheckFolder done [02:23:38]ProducePacketName [02:23:38]name=ofd_packets/00063156 [02:23:38]NVStorageSaveData ofd_packets/00063156 [02:23:38]File name is /storage/ofd_packets/00063156 [02:23:38]Write 322 bytes [02:23:38]NVStorageSaveData done [02:23:38]OFDSenderStorePacket done [02:23:38]KKMCreateOFDPacket done [02:23:38]NVStorageSaveData kkm_last_timestamp [02:23:38]File name is /storage/kkm_last_timestamp [02:23:38]Write 4 bytes [02:23:38]NVStorageSaveData done [02:23:38]ExternCall_PrintAddStr [02:23:38]wPrintStart [02:23:38]Write to MH i2c: 01 00 00 68 28 90 [02:23:38]Write i2c OK [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: 01 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: 01 07 00 [02:23:38]MH_I2C_Read... [02:23:38]Read from MH i2c: 01 07 00 68 28 00 00 00 00 00 FF 0F A5 [02:23:38]RasterBufferAndPrint [02:23:38]line Счет N : (3)47466 [02:23:38]line ИНН: 02508201610067 [02:23:38]line Контрольно-Кассовый Чек [02:23:38]line ПРОДАЖА [02:23:38]line Товар: 4700000480517 [02:23:38]line Пиво Живое 1л ПЭТ [02:23:38]line 1.000 * 199.00 [02:23:38]line = 199.00 [02:23:38]line НДС 12% НСП 1% [02:23:38]line > о реализуемом товаре [02:23:38]line ИТОГО: 199.00 [02:23:38]line НСП 1% : 1.76 [02:23:38]line НДС 12% : 21.13 [02:23:38]line Наличными: 199.00 [02:23:38]line Безнал.: 0.00 [02:23:38]line Место: АЗС № 86 "Партнер Нефть" [02:23:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:23:38]line СНО: Общий режим [02:23:38]line Чек 12 22.10.2024 02:23 [02:23:38]line Смена: 545 ФФД: 1.0 [02:23:38]line ЗНМ: 0300000154 [02:23:38]line РНМ: 0000000000091619 [02:23:38]line Версия ККМ: 001 [02:23:38]line ФМ: 0000000000874676 [02:23:38]line ФД: 63156 [02:23:38]line ФПД: 8505818213213 [02:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022341&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63156&fm=8505818213213&tin=02508201610067®Number=0000000000091619&sum=19900 [02:23:38]OFD Sender: Processing packet 63156 [packets to send 232, broken 231] [02:23:38]ProducePacketName [02:23:38]name=ofd_packets/00063156 [02:23:38]OFD Sender: To server: pG, [02:23:38]CommunicateWithHost lk.salyk.kg:30040 [02:23:38]ConnectInit lk.salyk.kg [02:23:38]line 0 [02:23:38]written 0, free lines is 4095 [02:23:38]Connected sock=7 [02:23: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 24 01 00 00 08 E9 1C 01 73 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 AD 0C 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B4 F6 00 00 35 04 06 00 07 BC 6A 45 EB 5D 07 47 0F 52 58 B3 66 82 [02:23:39]Write to MH i2c: 01 00 00 90 28 B8 [02:23:39]Write i2c OK [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: 01 [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: 01 07 00 [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 04 0D D0 [02:23:39]RasterBufferAndPrint [02:23:39]line [02:23:39]line [02:23:39]line [02:23:39]line [02:23:39]line [02:23:39]written 0, free lines is 3338 [02:23:39]MH_Cut [02:23:39]Write to MH i2c: D1 01 00 97 28 01 91 [02:23:39]Write i2c OK [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: D1 [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: D1 01 00 [02:23:39]MH_I2C_Read... [02:23:39]Read from MH i2c: D1 01 00 97 28 00 90 [02:23:39]Write to MH i2c: 01 00 00 98 28 C0 [02:23:39]Write i2c OK [02:23:39]MH_I2C_Read... [02:23: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 D6 64 47 00 0C 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 B4 F6 00 00 F4 03 04 00 A9 B6 16 67 B6 04 01 00 00 21 70 DA 52 8B 37 7C 89 [02:23:39]CommunicateWithHost err = 0 [02:23:39]CheckOFDResponse [02:23:39]1017 (14) - 77093643461234 [02:23:39]1041 (16) - 0000000000874676 [02:23:39]1040 (4) - 63156 [02:23:39]1012 (4) - 21.10.2024 20:16 [02:23:39]1206 (1) - 0 [02:23:39]OFD Sender: Remove packet 63156 [02:23:39]ProducePacketName [02:23:39]name=ofd_packets/00063156 [02:23:39]NVStorageDeleteData [02:23:39]*** Cut start [02:23:39]*** Partial cut [02:23:39]*** CUTSNS_PIN = 1 [02:23:39]*** CUTSNS_PIN = 0 [02:23:39]OFD Sender: No OFD packet to send [02:23:40]*** Brake cut motor [02:23:40]Read from MH i2c: 01 [02:23:40]MH_I2C_Read... [02:23:40]*** Stop cut motor [02:23:40]*** Cut end [02:23:40]Read from MH i2c: 01 07 00 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: 01 07 00 98 28 00 00 00 00 00 FF 0F D5 [02:23:40]process_action close_receipt done [02:23:40]requested_data is exist [02:23:40]produce_requested_data [02:23:40]requested_item fm.sn is exist - process it [02:23:40]wFMCommunicate request_size=4 [02:23:40]MH_SAM_APDU [02:23:40]CAPDU: 80 11 00 00 [02:23:40]Write to MH i2c: E2 08 00 99 28 80 11 00 00 00 00 00 00 3B [02:23:40]Write i2c OK [02:23:40]MH_I2C_Read... [02:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:40]Read from MH i2c: E2 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 17 00 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 17 00 99 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 94 [02:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:23:40]wFMCommunicate OK [02:23:40]requested_item fd.num is exist - process it [02:23:40]SAM_PROTO_GetFieldsCounters [02:23:40]wFMCommunicate request_size=4 [02:23:40]MH_SAM_APDU [02:23:40]CAPDU: 80 13 00 00 [02:23:40]Write to MH i2c: E2 08 00 9A 28 80 13 00 00 00 00 00 00 3E [02:23:40]Write i2c OK [02:23:40]MH_I2C_Read... [02:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:23:40]Read from MH i2c: E2 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 62 00 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 62 00 9A 28 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 B4 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [02:23: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 B4 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:23:40]wFMCommunicate OK [02:23:40]SAM_PROTO_GetFieldsCounters done [02:23:40]requested_item shift.num is exist - process it [02:23:40]requested_item shift.opened is exist - process it [02:23:40]req_shift_opened [02:23:40]FM_GetShiftState [02:23:40]SAM_PROTO_GetShiftState [02:23:40]wFMCommunicate request_size=4 [02:23:40]MH_SAM_APDU [02:23:40]CAPDU: 80 13 01 00 [02:23:40]Write to MH i2c: E2 08 00 9B 28 80 13 01 00 00 00 00 00 40 [02:23:40]Write i2c OK [02:23:40]MH_I2C_Read... [02:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:40]Read from MH i2c: E2 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 0E 00 [02:23:40]MH_I2C_Read... [02:23:40]Read from MH i2c: E2 0E 00 9B 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 36 [02:23:40]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:23:40]wFMCommunicate OK [02:23:40]SAM_PROTO_GetShiftState done [02:23:40]FM_GetShiftState done [02:23:40]req_shift_opened done [02:23:40]requested_item shift.open_date is exist - process it [02:23:40]req_shift_open_date [02:23:40]req_shift_open_date done [02:23:40]produce_requested_data done [02:23:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63156,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:23:40]process_action_free close_receipt [02:23:40]json_value_free [02:23:40]json_value_free done [02:23:40]process_json_proto returns [02:23:40]Send response to host [02:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63156,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:23:40]free response buf [02:23:40]execute_script done [02:23:40]execute_script returns [02:23:40]free content buf [02:23:40]Sock 9.Close socket [02:23:40]Sock 9.Thread stoped [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:29:56]accept exits with 10 [02:29:56]New connection [02:29:56]New thread 3067198820 created [02:29:56]Thread 3067055460 joined [02:29:56]Waiting for new connection... [02:29:56] Sock 10.Parse request [02:29:56]Sock 10.Check first char [02:29:56]Sock 10.First char is OK [02:29:56]request: POST /json_proto HTTP/1.0 [02:29:56]Method: POST [02:29:56]URL: /json_proto [02:29:56]Method is POST - this is cgi request [02:29:56]url: /json_proto [02:29:56]query_string will be loaded in cgi processing [02:29:56]execute_cgi json_proto POST (null) [02:29:56]execute_cgi path=json_proto method=POST [02:29:56]POST find Content-Length [02:29:56]Host: 172.17.42.132:8080 [02:29:56]Content-Length: 1155 [02:29:56]Content-Type: application/json [02:29:56] [02:29:56]POST finish read [02:29:56]Found Content-Length = 1155 [02:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47467", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.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 }]} ], "payments": [ { "type": 0, "sum" : 563.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:56]execute_script... [02:29: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)47467", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.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 }]} ], "payments": [ { "type": 0, "sum" : 563.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:56]POST & json_proto [02:29:56]process_json_proto [02:29:56]json parsed OK: [02:29:56]protocol is kg_v1.0 [02:29:56]action value=close_receipt [02:29:56]process_action close_receipt [02:29:56]cmd_close_receipt [02:29:56]MH_GetDate [02:29:56]Write to MH i2c: F0 00 00 9C 28 B3 [02:29:56]Write i2c OK [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 09 00 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 09 00 9C 28 00 2A 0E 17 67 4C DF 56 66 59 [02:29:56]GetLastDocTimeStamp 1729563821 [02:29:56]current date 1729564202 [02:29:56]FM_GetShiftState [02:29:56]SAM_PROTO_GetShiftState [02:29:56]wFMCommunicate request_size=4 [02:29:56]MH_SAM_APDU [02:29:56]CAPDU: 80 13 01 00 [02:29:56]Write to MH i2c: E2 08 00 9D 28 80 13 01 00 00 00 00 00 42 [02:29:56]Write i2c OK [02:29:56]MH_I2C_Read... [02:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 0E 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 0E 00 9D 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 38 [02:29:57]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:29:57]wFMCommunicate OK [02:29:57]SAM_PROTO_GetShiftState done [02:29:57]FM_GetShiftState done [02:29:57]opened in 1729556095 [02:29:57]opened+sec_in_day 1729642495 [02:29:57]quantity*price = 39800 [02:29:57]sum+1 = 39801 [02:29:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740016 Сух Кириешки бекон 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 563.00 НСП 1% : 4.98 НДС 12% : 59.78 Наличными: 563.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 13 22.10.2024 02:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63157 ФПД: 162213376771637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023002&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63157&fm=162213376771637&tin=02508201610067®Number=0000000000091619&sum=56300 0 [02:29:58]StoreToDocumentArchive [02:29:58]shift 545 fd 63157 [02:29:58]save to /storage/0545/doc_00063157 [02:29:58]save last doc name /storage/0545/doc_00063157 to /storage/kkm_last_doc_name [02:29:58]save OK [02:29:58]Clear old archive folders... [02:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=486 [02:29:58]tlvbuf is 01953400 [02:29:58]SAM_PROTO_ClearQueue [02:29:58]wFMCommunicate request_size=4 [02:29:58]MH_SAM_APDU [02:29:58]CAPDU: 80 09 00 00 [02:29:58]Write to MH i2c: E2 08 00 AA 28 80 09 00 00 00 00 00 00 44 [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:29:58]Read from MH i2c: E2 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [02:29:58]RAPDU: 90 00 [02:29:58]wFMCommunicate OK [02:29:58]SAM_PROTO_ClearQueue done [02:29:58]KKMCreateOFDPacket [02:29:58]OFDProtocolAddRootSTLVToBuf [02:29:58]FM_MakeSignedData [02:29:58]FM_MakeSignedData [02:29:58]SAM_PROTO_SignData [02:29:58]wFMCommunicate request_size=4 [02:29:58]MH_SAM_APDU [02:29:58]CAPDU: 80 0D 01 02 [02:29:58]Write to MH i2c: E2 08 00 AB 28 80 0D 01 02 00 00 00 00 4C [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:29:58]Read from MH i2c: E2 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 AB 28 00 90 00 47 [02:29:58]RAPDU: 90 00 [02:29:58]wFMCommunicate OK [02:29:58]wFMCommunicate request_size=255 [02:29:58]MH_SAM_APDU [02:29:58]CAPDU: 80 0D 02 02 FA 03 00 E6 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 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 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 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 [02:29:58]Write to MH i2c: E2 02 01 AC 28 80 0D 02 02 FA 00 03 00 E6 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 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 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 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 00 00 73 [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:58]Read from MH i2c: E2 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: E2 03 00 AC 28 00 90 00 48 [02:29:58]RAPDU: 90 00 [02:29:58]wFMCommunicate OK [02:29:58]wFMCommunicate request_size=245 [02:29:58]MH_SAM_APDU [02:29:58]CAPDU: 80 0D 02 02 F0 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 EC DB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 17 00 00 00 00 07 04 06 00 EC DB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2A 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B5 F6 00 00 35 04 06 00 93 88 3E B3 46 35 [02:29:58]Write to MH i2c: E2 F8 00 AD 28 80 0D 02 02 F0 00 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 EC DB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 17 00 00 00 00 07 04 06 00 EC DB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2A 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B5 F6 00 00 35 04 06 00 93 88 3E B3 46 35 00 00 44 [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:59]Read from MH i2c: E2 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 03 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 03 00 AD 28 00 90 00 49 [02:29:59]RAPDU: 90 00 [02:29:59]wFMCommunicate OK [02:29:59]wFMCommunicate request_size=4 [02:29:59]MH_SAM_APDU [02:29:59]CAPDU: 80 0D 03 02 [02:29:59]Write to MH i2c: E2 08 00 AE 28 80 0D 03 02 00 00 00 00 51 [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:29:59]Read from MH i2c: E2 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 0B 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 0B 00 AE 28 00 1E F0 BD 1A 38 8C 73 AF 90 00 1D [02:29:59]RAPDU: 1E F0 BD 1A 38 8C 73 AF 90 00 [02:29:59]wFMCommunicate OK [02:29:59]SAM_PROTO_SignData done [02:29:59]FM_MakeSignedData done [02:29:59]CreateOFDProtocolMessage [02:29:59]wFMCommunicate request_size=4 [02:29:59]MH_SAM_APDU [02:29:59]CAPDU: 80 11 00 00 [02:29:59]Write to MH i2c: E2 08 00 AF 28 80 11 00 00 00 00 00 00 51 [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:59]Read from MH i2c: E2 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 17 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 17 00 AF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AA [02:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:29:59]wFMCommunicate OK [02:29:59]CreateOFDProtocolMessage done [02:29:59]OFDSenderStorePacket 63157 [02:29:59]StoreOFDPacket docnum=63157 [02:29: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 FA 01 00 00 3A 65 F2 01 DB DA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 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 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 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 FC 03 06 00 EC DB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 17 00 00 00 00 07 04 06 00 EC DB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2A 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B5 F6 00 00 35 04 06 00 93 88 3E B3 46 35 1E F0 BD 1A 38 8C 73 AF [02:29:59]CheckFolder [02:29:59]dirname=/storage/ofd_packets [02:29:59]CheckFolder done [02:29:59]ProducePacketName [02:29:59]name=ofd_packets/00063157 [02:29:59]NVStorageSaveData ofd_packets/00063157 [02:29:59]File name is /storage/ofd_packets/00063157 [02:29:59]Write 536 bytes [02:29:59]NVStorageSaveData done [02:29:59]OFDSenderStorePacket done [02:29:59]KKMCreateOFDPacket done [02:29:59]NVStorageSaveData kkm_last_timestamp [02:29:59]File name is /storage/kkm_last_timestamp [02:29:59]Write 4 bytes [02:29:59]NVStorageSaveData done [02:29:59]ExternCall_PrintAddStr [02:29:59]wPrintStart [02:29:59]Write to MH i2c: 01 00 00 B0 28 D8 [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 07 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 07 00 B0 28 00 00 00 00 00 FF 0F ED [02:29:59]RasterBufferAndPrint [02:29:59]line Счет N : (3)47467 [02:29:59]line ИНН: 02508201610067 [02:29:59]line Контрольно-Кассовый Чек [02:29:59]line ПРОДАЖА [02:29:59]line Товар: 4700000480517 [02:29:59]line Пиво Живое 1л ПЭТ [02:29:59]line 2.000 * 199.00 [02:29:59]line = 398.00 [02:29:59]line НДС 12% НСП 1% [02:29:59]line > о реализуемом товаре [02:29:59]line Товар: 4607010740016 [02:29:59]line Сух Кириешки бекон 40г [02:29:59]line 1.000 * 21.00 [02:29:59]line = 21.00 [02:29:59]line НДС 12% НСП 1% [02:29:59]line > о реализуемом товаре [02:29:59]line Товар: 48743570 [02:29:59]line Сигареты Winston XStyle Blue [02:29:59]line 1.000 * 144.00 [02:29:59]line = 144.00 [02:29:59]line НДС 12% НСП 1% [02:29:59]line > о реализуемом товаре [02:29:59]line ИТОГО: 563.00 [02:29:59]line НСП 1% : 4.98 [02:29:59]line НДС 12% : 59.78 [02:29:59]line Наличными: 563.00 [02:29:59]line Безнал.: 0.00 [02:29:59]line Место: АЗС № 86 "Партнер Нефть" [02:29:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:29:59]line СНО: Общий режим [02:29:59]line Чек 13 22.10.2024 02:30 [02:29:59]line Смена: 545 ФФД: 1.0 [02:29:59]line ЗНМ: 0300000154 [02:29:59]line РНМ: 0000000000091619 [02:29:59]line Версия ККМ: 001 [02:29:59]line ФМ: 0000000000874676 [02:29:59]line ФД: 63157 [02:29:59]line ФПД: 162213376771637 [02:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023002&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63157&fm=162213376771637&tin=02508201610067®Number=0000000000091619&sum=56300 [02:29:59]line 0 [02:29:59]written 0, free lines is 4095 [02:29:59]OFD Sender: Processing packet 63157 [packets to send 232, broken 231] [02:29:59]ProducePacketName [02:29:59]name=ofd_packets/00063157 [02:29:59]OFD Sender: To server: pG, [02:29:59]CommunicateWithHost lk.salyk.kg:30040 [02:29:59]ConnectInit lk.salyk.kg [02:29:59]Connected sock=9 [02:29: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 FA 01 00 00 3A 65 F2 01 DB DA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 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 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 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 FC 03 06 00 EC DB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 17 00 00 00 00 07 04 06 00 EC DB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2A 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B5 F6 00 00 35 04 06 00 93 88 3E B3 46 35 1E F0 BD 1A 38 8C 73 AF [02:29: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 D9 BF 47 00 2E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B5 F6 00 00 F4 03 04 00 26 B8 16 67 B6 04 01 00 00 E2 92 09 E0 A2 C2 F5 C5 [02:29:59]CommunicateWithHost err = 0 [02:29:59]CheckOFDResponse [02:29:59]1017 (14) - 77093643461234 [02:29:59]1041 (16) - 0000000000874676 [02:29:59]1040 (4) - 63157 [02:29:59]1012 (4) - 21.10.2024 20:23 [02:29:59]1206 (1) - 0 [02:29:59]OFD Sender: Remove packet 63157 [02:29:59]ProducePacketName [02:29:59]name=ofd_packets/00063157 [02:29:59]NVStorageDeleteData [02:29:59]Write to MH i2c: 01 00 00 E4 28 0C [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 07 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: 01 07 00 E4 28 00 00 00 00 00 8A 0C A9 [02:29:59]RasterBufferAndPrint [02:29:59]line [02:29:59]line [02:29:59]line [02:29:59]line [02:29:59]line [02:29:59]written 0, free lines is 3220 [02:29:59]MH_Cut [02:29:59]Write to MH i2c: D1 01 00 EB 28 01 E5 [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: D1 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: D1 01 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: D1 01 00 EB 28 00 E4 [02:29:59]Write to MH i2c: 01 00 00 EC 28 14 [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:30:00]OFD Sender: No OFD packet to send [02:30:00]*** Cut start [02:30:00]*** Partial cut [02:30:00]*** CUTSNS_PIN = 1 [02:30:00]*** CUTSNS_PIN = 0 [02:30:00]*** Brake cut motor [02:30:01]Read from MH i2c: 01 [02:30:01]MH_I2C_Read... [02:30:01]*** Stop cut motor [02:30:01]*** Cut end [02:30:01]Read from MH i2c: 01 07 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: 01 07 00 EC 28 00 00 00 00 00 FF 0F 29 [02:30:01]process_action close_receipt done [02:30:01]requested_data is exist [02:30:01]produce_requested_data [02:30:01]requested_item fm.sn is exist - process it [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 11 00 00 [02:30:01]Write to MH i2c: E2 08 00 ED 28 80 11 00 00 00 00 00 00 8F [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 17 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 17 00 ED 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E8 [02:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:30:01]wFMCommunicate OK [02:30:01]requested_item fd.num is exist - process it [02:30:01]SAM_PROTO_GetFieldsCounters [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 13 00 00 [02:30:01]Write to MH i2c: E2 08 00 EE 28 80 13 00 00 00 00 00 00 92 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 62 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 62 00 EE 28 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 B5 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [02:30: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 B5 F6 00 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:30:01]wFMCommunicate OK [02:30:01]SAM_PROTO_GetFieldsCounters done [02:30:01]requested_item shift.num is exist - process it [02:30:01]requested_item shift.opened is exist - process it [02:30:01]req_shift_opened [02:30:01]FM_GetShiftState [02:30:01]SAM_PROTO_GetShiftState [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 13 01 00 [02:30:01]Write to MH i2c: E2 08 00 EF 28 80 13 01 00 00 00 00 00 94 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 0E 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 0E 00 EF 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 8A [02:30:01]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:30:01]wFMCommunicate OK [02:30:01]SAM_PROTO_GetShiftState done [02:30:01]FM_GetShiftState done [02:30:01]req_shift_opened done [02:30:01]requested_item shift.open_date is exist - process it [02:30:01]req_shift_open_date [02:30:01]req_shift_open_date done [02:30:01]produce_requested_data done [02:30:01]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63157,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:30:01]process_action_free close_receipt [02:30:01]json_value_free [02:30:01]json_value_free done [02:30:01]process_json_proto returns [02:30:01]Send response to host [02:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63157,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:30:01]free response buf [02:30:01]execute_script done [02:30:01]execute_script returns [02:30:01]free content buf [02:30:01]Sock 10.Close socket [02:30:01]Sock 10.Thread stoped [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:50]accept exits with 7 [02:31:50]New connection [02:31:50]New thread 3067055460 created [02:31:50]Thread 3067198820 joined [02:31:50]Waiting for new connection... [02:31:50] Sock 7.Parse request [02:31:50]Sock 7.Check first char [02:31:50]Sock 7.First char is OK [02:31:50]request: POST /json_proto HTTP/1.0 [02:31:50]Method: POST [02:31:50]URL: /json_proto [02:31:50]Method is POST - this is cgi request [02:31:50]url: /json_proto [02:31:50]query_string will be loaded in cgi processing [02:31:50]execute_cgi json_proto POST (null) [02:31:50]execute_cgi path=json_proto method=POST [02:31:50]POST find Content-Length [02:31:50]Host: 172.17.42.132:8080 [02:31:50]Content-Length: 936 [02:31:50]Content-Type: application/json [02:31:50] [02:31:50]POST finish read [02:31:50]Found Content-Length = 936 [02:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47468", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:50]execute_script... [02:31: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)47468", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:50]POST & json_proto [02:31:50]process_json_proto [02:31:50]json parsed OK: [02:31:50]protocol is kg_v1.0 [02:31:50]action value=close_receipt [02:31:50]process_action close_receipt [02:31:50]cmd_close_receipt [02:31:50]MH_GetDate [02:31:50]Write to MH i2c: F0 00 00 F0 28 07 [02:31:50]Write i2c OK [02:31:50]MH_I2C_Read... [02:31:50]Read from MH i2c: F0 [02:31:50]MH_I2C_Read... [02:31:50]Read from MH i2c: F0 09 00 [02:31:50]MH_I2C_Read... [02:31:50]Read from MH i2c: F0 09 00 F0 28 00 9C 0E 17 67 4C DF 56 66 1F [02:31:50]GetLastDocTimeStamp 1729564202 [02:31:50]current date 1729564316 [02:31:50]FM_GetShiftState [02:31:50]SAM_PROTO_GetShiftState [02:31:50]wFMCommunicate request_size=4 [02:31:50]MH_SAM_APDU [02:31:50]CAPDU: 80 13 01 00 [02:31:50]Write to MH i2c: E2 08 00 F1 28 80 13 01 00 00 00 00 00 96 [02:31:50]Write i2c OK [02:31:50]MH_I2C_Read... [02:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:50]Read from MH i2c: E2 [02:31:50]MH_I2C_Read... [02:31:50]Read from MH i2c: E2 0E 00 [02:31:50]MH_I2C_Read... [02:31:50]Read from MH i2c: E2 0E 00 F1 28 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 8C [02:31:50]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:31:50]wFMCommunicate OK [02:31:50]SAM_PROTO_GetShiftState done [02:31:50]FM_GetShiftState done [02:31:50]opened in 1729556095 [02:31:50]opened+sec_in_day 1729642495 [02:31:50]quantity*price = 12000 [02:31:50]sum+1 = 12001 [02:31:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.64 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 22.10.2024 02:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63158 ФПД: 257829091184969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023156&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63158&fm=257829091184969&tin=02508201610067®Number=0000000000091619&sum=18500 0 [02:31:51]StoreToDocumentArchive [02:31:51]shift 545 fd 63158 [02:31:51]save to /storage/0545/doc_00063158 [02:31:51]save last doc name /storage/0545/doc_00063158 to /storage/kkm_last_doc_name [02:31:51]save OK [02:31:51]Clear old archive folders... [02:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=389 [02:31:51]tlvbuf is 018CE550 [02:31:51]SAM_PROTO_ClearQueue [02:31:51]wFMCommunicate request_size=4 [02:31:51]MH_SAM_APDU [02:31:51]CAPDU: 80 09 00 00 [02:31:51]Write to MH i2c: E2 08 00 FE 28 80 09 00 00 00 00 00 00 98 [02:31:51]Write i2c OK [02:31:51]MH_I2C_Read... [02:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:31:51]Read from MH i2c: E2 [02:31:51]MH_I2C_Read... [02:31:51]Read from MH i2c: E2 03 00 [02:31:51]MH_I2C_Read... [02:31:51]Read from MH i2c: E2 03 00 FE 28 00 90 00 9A [02:31:51]RAPDU: 90 00 [02:31:51]wFMCommunicate OK [02:31:51]SAM_PROTO_ClearQueue done [02:31:51]KKMCreateOFDPacket [02:31:51]OFDProtocolAddRootSTLVToBuf [02:31:51]FM_MakeSignedData [02:31:51]FM_MakeSignedData [02:31:51]SAM_PROTO_SignData [02:31:51]wFMCommunicate request_size=4 [02:31:51]MH_SAM_APDU [02:31:51]CAPDU: 80 0D 01 02 [02:31:51]Write to MH i2c: E2 08 00 FF 28 80 0D 01 02 00 00 00 00 A0 [02:31:51]Write i2c OK [02:31:51]MH_I2C_Read... [02:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:31:52]Read from MH i2c: E2 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [02:31:52]RAPDU: 90 00 [02:31:52]wFMCommunicate OK [02:31:52]wFMCommunicate request_size=255 [02:31:52]MH_SAM_APDU [02:31:52]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [02:31:52]Write to MH i2c: E2 02 01 00 29 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 0B [02:31:52]Write i2c OK [02:31:52]MH_I2C_Read... [02:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:52]Read from MH i2c: E2 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [02:31:52]RAPDU: 90 00 [02:31:52]wFMCommunicate OK [02:31:52]wFMCommunicate request_size=148 [02:31:52]MH_SAM_APDU [02:31:52]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9C 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B6 F6 00 00 35 04 06 00 EA 7E 83 64 91 49 [02:31:52]Write to MH i2c: E2 97 00 01 29 80 0D 02 02 8F 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 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9C 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B6 F6 00 00 35 04 06 00 EA 7E 83 64 91 49 00 00 07 [02:31:52]Write i2c OK [02:31:52]MH_I2C_Read... [02:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:52]Read from MH i2c: E2 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 03 00 01 29 00 90 00 9E [02:31:52]RAPDU: 90 00 [02:31:52]wFMCommunicate OK [02:31:52]wFMCommunicate request_size=4 [02:31:52]MH_SAM_APDU [02:31:52]CAPDU: 80 0D 03 02 [02:31:52]Write to MH i2c: E2 08 00 02 29 80 0D 03 02 00 00 00 00 A6 [02:31:52]Write i2c OK [02:31:52]MH_I2C_Read... [02:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:31:52]Read from MH i2c: E2 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 0B 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 0B 00 02 29 00 9E FA 46 86 B3 76 E8 AF 90 00 CB [02:31:52]RAPDU: 9E FA 46 86 B3 76 E8 AF 90 00 [02:31:52]wFMCommunicate OK [02:31:52]SAM_PROTO_SignData done [02:31:52]FM_MakeSignedData done [02:31:52]CreateOFDProtocolMessage [02:31:52]wFMCommunicate request_size=4 [02:31:52]MH_SAM_APDU [02:31:52]CAPDU: 80 11 00 00 [02:31:52]Write to MH i2c: E2 08 00 03 29 80 11 00 00 00 00 00 00 A6 [02:31:52]Write i2c OK [02:31:52]MH_I2C_Read... [02:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:52]Read from MH i2c: E2 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 17 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: E2 17 00 03 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FF [02:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:31:52]wFMCommunicate OK [02:31:52]CreateOFDProtocolMessage done [02:31:52]OFDSenderStorePacket 63158 [02:31:52]StoreOFDPacket docnum=63158 [02:31: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 99 01 00 00 64 7A 91 01 04 55 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9C 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B6 F6 00 00 35 04 06 00 EA 7E 83 64 91 49 9E FA 46 86 B3 76 E8 AF [02:31:52]CheckFolder [02:31:52]dirname=/storage/ofd_packets [02:31:52]CheckFolder done [02:31:52]ProducePacketName [02:31:52]name=ofd_packets/00063158 [02:31:52]NVStorageSaveData ofd_packets/00063158 [02:31:52]File name is /storage/ofd_packets/00063158 [02:31:52]Write 439 bytes [02:31:52]NVStorageSaveData done [02:31:52]OFDSenderStorePacket done [02:31:52]KKMCreateOFDPacket done [02:31:52]NVStorageSaveData kkm_last_timestamp [02:31:52]File name is /storage/kkm_last_timestamp [02:31:52]Write 4 bytes [02:31:52]NVStorageSaveData done [02:31:52]ExternCall_PrintAddStr [02:31:52]wPrintStart [02:31:52]Write to MH i2c: 01 00 00 04 29 2D [02:31:52]Write i2c OK [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: 01 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: 01 07 00 [02:31:52]MH_I2C_Read... [02:31:52]Read from MH i2c: 01 07 00 04 29 00 00 00 00 00 FF 0F 42 [02:31:52]RasterBufferAndPrint [02:31:52]line Счет N : (3)47468 [02:31:52]line ИНН: 02508201610067 [02:31:52]line Контрольно-Кассовый Чек [02:31:52]line ПРОДАЖА [02:31:52]line Товар: 5449000189332 [02:31:52]line Холодный чай Fuse персик 1л [02:31:52]line 1.000 * 120.00 [02:31:52]line = 120.00 [02:31:52]line НДС 12% НСП 1% [02:31:52]line > о реализуемом товаре [02:31:52]line Товар: 47011656 [02:31:52]line Водка Пшеничная 0,1л [02:31:52]line 1.000 * 65.00 [02:31:52]line = 65.00 [02:31:52]line НДС 12% НСП 1% [02:31:52]line > о реализуемом товаре [02:31:52]line ИТОГО: 185.00 [02:31:52]line НСП 1% : 1.63 [02:31:52]line НДС 12% : 19.64 [02:31:52]line Наличными: 185.00 [02:31:52]line Безнал.: 0.00 [02:31:52]line Место: АЗС № 86 "Партнер Нефть" [02:31:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:31:52]line СНО: Общий режим [02:31:52]line Чек 14 22.10.2024 02:31 [02:31:52]line Смена: 545 ФФД: 1.0 [02:31:52]line ЗНМ: 0300000154 [02:31:52]line РНМ: 0000000000091619 [02:31:52]line Версия ККМ: 001 [02:31:52]line ФМ: 0000000000874676 [02:31:52]line ФД: 63158 [02:31:52]line ФПД: 257829091184969 [02:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023156&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63158&fm=257829091184969&tin=02508201610067®Number=0000000000091619&sum=18500 [02:31:52]line 0 [02:31:52]OFD Sender: Processing packet 63158 [packets to send 232, broken 231] [02:31:52]ProducePacketName [02:31:52]name=ofd_packets/00063158 [02:31:52]OFD Sender: To server: pG, [02:31:52]CommunicateWithHost lk.salyk.kg:30040 [02:31:52]ConnectInit lk.salyk.kg [02:31:52]written 0, free lines is 4095 [02:31:53]Connected sock=10 [02:31: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 99 01 00 00 64 7A 91 01 04 55 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 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 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9C 0E 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B6 F6 00 00 35 04 06 00 EA 7E 83 64 91 49 9E FA 46 86 B3 76 E8 AF [02:31: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 33 1E 47 00 58 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B6 F6 00 00 F4 03 04 00 97 B8 16 67 B6 04 01 00 00 55 4E 10 BD 67 F0 7B 9E [02:31:53]CommunicateWithHost err = 0 [02:31:53]CheckOFDResponse [02:31:53]1017 (14) - 77093643461234 [02:31:53]1041 (16) - 0000000000874676 [02:31:53]1040 (4) - 63158 [02:31:53]1012 (4) - 21.10.2024 20:24 [02:31:53]1206 (1) - 0 [02:31:53]OFD Sender: Remove packet 63158 [02:31:53]ProducePacketName [02:31:53]name=ofd_packets/00063158 [02:31:53]NVStorageDeleteData [02:31:53]Write to MH i2c: 01 00 00 32 29 5B [02:31:53]Write i2c OK [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: 01 [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: 01 07 00 [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: 01 07 00 32 29 00 00 00 00 00 E8 0C 56 [02:31:53]RasterBufferAndPrint [02:31:53]line [02:31:53]line [02:31:53]line [02:31:53]line [02:31:53]line [02:31:53]written 0, free lines is 3310 [02:31:53]MH_Cut [02:31:53]Write to MH i2c: D1 01 00 39 29 01 34 [02:31:53]Write i2c OK [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: D1 [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: D1 01 00 [02:31:53]MH_I2C_Read... [02:31:53]Read from MH i2c: D1 01 00 39 29 00 33 [02:31:53]Write to MH i2c: 01 00 00 3A 29 63 [02:31:53]Write i2c OK [02:31:53]MH_I2C_Read... [02:31:53]OFD Sender: No OFD packet to send [02:31:54]*** Cut start [02:31:54]*** Partial cut [02:31:54]*** CUTSNS_PIN = 1 [02:31:54]*** CUTSNS_PIN = 0 [02:31:54]*** Brake cut motor [02:31:54]Read from MH i2c: 01 [02:31:54]MH_I2C_Read... [02:31:54]*** Stop cut motor [02:31:54]*** Cut end [02:31:54]Read from MH i2c: 01 07 00 [02:31:54]MH_I2C_Read... [02:31:54]Read from MH i2c: 01 07 00 3A 29 00 00 00 00 00 FF 0F 78 [02:31:54]process_action close_receipt done [02:31:54]requested_data is exist [02:31:54]produce_requested_data [02:31:54]requested_item fm.sn is exist - process it [02:31:54]wFMCommunicate request_size=4 [02:31:54]MH_SAM_APDU [02:31:54]CAPDU: 80 11 00 00 [02:31:54]Write to MH i2c: E2 08 00 3B 29 80 11 00 00 00 00 00 00 DE [02:31:54]Write i2c OK [02:31:54]MH_I2C_Read... [02:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:54]Read from MH i2c: E2 [02:31:54]MH_I2C_Read... [02:31:54]Read from MH i2c: E2 17 00 [02:31:54]MH_I2C_Read... [02:31:54]Read from MH i2c: E2 17 00 3B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 37 [02:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:31:54]wFMCommunicate OK [02:31:54]requested_item fd.num is exist - process it [02:31:54]SAM_PROTO_GetFieldsCounters [02:31:54]wFMCommunicate request_size=4 [02:31:54]MH_SAM_APDU [02:31:54]CAPDU: 80 13 00 00 [02:31:54]Write to MH i2c: E2 08 00 3C 29 80 13 00 00 00 00 00 00 E1 [02:31:54]Write i2c OK [02:31:54]MH_I2C_Read... [02:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:31:54]Read from MH i2c: E2 [02:31:54]MH_I2C_Read... [02:31:54]Read from MH i2c: E2 62 00 [02:31:54]MH_I2C_Read... [02:31:54]Read from MH i2c: E2 62 00 3C 29 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 B6 F6 00 00 0E 04 04 00 21 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 02 [02:31: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 B6 F6 00 00 0E 04 04 00 21 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 [02:31:54]wFMCommunicate OK [02:31:54]SAM_PROTO_GetFieldsCounters done [02:31:54]requested_item shift.num is exist - process it [02:31:54]requested_item shift.opened is exist - process it [02:31:54]req_shift_opened [02:31:54]FM_GetShiftState [02:31:54]SAM_PROTO_GetShiftState [02:31:54]wFMCommunicate request_size=4 [02:31:54]MH_SAM_APDU [02:31:54]CAPDU: 80 13 01 00 [02:31:54]Write to MH i2c: E2 08 00 3D 29 80 13 01 00 00 00 00 00 E3 [02:31:54]Write i2c OK [02:31:54]MH_I2C_Read... [02:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:55]Read from MH i2c: E2 [02:31:55]MH_I2C_Read... [02:31:55]Read from MH i2c: E2 0E 00 [02:31:55]MH_I2C_Read... [02:31:55]Read from MH i2c: E2 0E 00 3D 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 D9 [02:31:55]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:31:55]wFMCommunicate OK [02:31:55]SAM_PROTO_GetShiftState done [02:31:55]FM_GetShiftState done [02:31:55]req_shift_opened done [02:31:55]requested_item shift.open_date is exist - process it [02:31:55]req_shift_open_date [02:31:55]req_shift_open_date done [02:31:55]produce_requested_data done [02:31:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63158,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:31:55]process_action_free close_receipt [02:31:55]json_value_free [02:31:55]json_value_free done [02:31:55]process_json_proto returns [02:31:55]Send response to host [02:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63158,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:31:55]free response buf [02:31:55]execute_script done [02:31:55]execute_script returns [02:31:55]free content buf [02:31:55]Sock 7.Close socket [02:31:55]Sock 7.Thread stoped [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:05]accept exits with 9 [02:36:05]New connection [02:36:05]New thread 3067198820 created [02:36:05]Thread 3067055460 joined [02:36:05]Waiting for new connection... [02:36:05] Sock 9.Parse request [02:36:05]Sock 9.Check first char [02:36:05]Sock 9.First char is OK [02:36:05]request: POST /json_proto HTTP/1.0 [02:36:05]Method: POST [02:36:05]URL: /json_proto [02:36:05]Method is POST - this is cgi request [02:36:05]url: /json_proto [02:36:05]query_string will be loaded in cgi processing [02:36:05]execute_cgi json_proto POST (null) [02:36:05]execute_cgi path=json_proto method=POST [02:36:05]POST find Content-Length [02:36:05]Host: 172.17.42.132:8080 [02:36:05]Content-Length: 1097 [02:36:05]Content-Type: application/json [02:36:05] [02:36:05]POST finish read [02:36:05]Found Content-Length = 1097 [02:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47469", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "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" : 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" : 218.05 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:05]execute_script... [02:36: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)47469", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "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" : 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" : 218.05 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:05]POST & json_proto [02:36:05]process_json_proto [02:36:05]json parsed OK: [02:36:05]protocol is kg_v1.0 [02:36:05]action value=close_receipt [02:36:05]process_action close_receipt [02:36:05]cmd_close_receipt [02:36:05]MH_GetDate [02:36:05]Write to MH i2c: F0 00 00 3E 29 56 [02:36:05]Write i2c OK [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: F0 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: F0 09 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: F0 09 00 3E 29 00 9A 0F 17 67 4C DF 56 66 6D [02:36:05]GetLastDocTimeStamp 1729564316 [02:36:05]current date 1729564570 [02:36:05]FM_GetShiftState [02:36:05]SAM_PROTO_GetShiftState [02:36:05]wFMCommunicate request_size=4 [02:36:05]MH_SAM_APDU [02:36:05]CAPDU: 80 13 01 00 [02:36:05]Write to MH i2c: E2 08 00 3F 29 80 13 01 00 00 00 00 00 E5 [02:36:05]Write i2c OK [02:36:05]MH_I2C_Read... [02:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:05]Read from MH i2c: E2 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 0E 00 [02:36:05]MH_I2C_Read... [02:36:05]Read from MH i2c: E2 0E 00 3F 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 DB [02:36:05]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:36:05]wFMCommunicate OK [02:36:05]SAM_PROTO_GetShiftState done [02:36:05]FM_GetShiftState done [02:36:05]opened in 1729556095 [02:36:05]opened+sec_in_day 1729642495 [02:36:05]quantity*price = 8920 [02:36:05]sum+1 = 8921 [02:36:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 128.85 = 128.85 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 218.05 НСП 1% : 1.93 НДС 12% : 23.15 Наличными: 0.00 Безнал.: 218.05 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 22.10.2024 02:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63159 ФПД: 186134309425747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63159&fm=186134309425747&tin=02508201610067®Number=0000000000091619&sum=21805 0 [02:36:06]StoreToDocumentArchive [02:36:06]shift 545 fd 63159 [02:36:06]save to /storage/0545/doc_00063159 [02:36:06]save last doc name /storage/0545/doc_00063159 to /storage/kkm_last_doc_name [02:36:06]save OK [02:36:06]Clear old archive folders... [02:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=411 [02:36:06]tlvbuf is 01854D50 [02:36:06]SAM_PROTO_ClearQueue [02:36:06]wFMCommunicate request_size=4 [02:36:06]MH_SAM_APDU [02:36:06]CAPDU: 80 09 00 00 [02:36:06]Write to MH i2c: E2 08 00 4C 29 80 09 00 00 00 00 00 00 E7 [02:36:06]Write i2c OK [02:36:06]MH_I2C_Read... [02:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:06]Read from MH i2c: E2 [02:36:06]MH_I2C_Read... [02:36:06]Read from MH i2c: E2 03 00 [02:36:06]MH_I2C_Read... [02:36:06]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [02:36:06]RAPDU: 90 00 [02:36:06]wFMCommunicate OK [02:36:06]SAM_PROTO_ClearQueue done [02:36:06]KKMCreateOFDPacket [02:36:06]OFDProtocolAddRootSTLVToBuf [02:36:06]FM_MakeSignedData [02:36:06]FM_MakeSignedData [02:36:06]SAM_PROTO_SignData [02:36:06]wFMCommunicate request_size=4 [02:36:06]MH_SAM_APDU [02:36:06]CAPDU: 80 0D 01 02 [02:36:06]Write to MH i2c: E2 08 00 4D 29 80 0D 01 02 00 00 00 00 EF [02:36:06]Write i2c OK [02:36:06]MH_I2C_Read... [02:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:06]Read from MH i2c: E2 [02:36:06]MH_I2C_Read... [02:36:06]Read from MH i2c: E2 03 00 [02:36:06]MH_I2C_Read... [02:36:06]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [02:36:06]RAPDU: 90 00 [02:36:06]wFMCommunicate OK [02:36:06]wFMCommunicate request_size=255 [02:36:06]MH_SAM_APDU [02:36:06]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 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 [02:36:06]Write to MH i2c: E2 02 01 4E 29 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 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 00 00 C4 [02:36:06]Write i2c OK [02:36:06]MH_I2C_Read... [02:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:07]Read from MH i2c: E2 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 03 00 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 03 00 4E 29 00 90 00 EB [02:36:07]RAPDU: 90 00 [02:36:07]wFMCommunicate OK [02:36:07]wFMCommunicate request_size=170 [02:36:07]MH_SAM_APDU [02:36:07]CAPDU: 80 0D 02 02 A5 FC 03 06 00 2D 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B 0F 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B7 F6 00 00 35 04 06 00 A9 49 C5 64 D2 53 [02:36:07]Write to MH i2c: E2 AD 00 4F 29 80 0D 02 02 A5 00 FC 03 06 00 2D 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B 0F 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B7 F6 00 00 35 04 06 00 A9 49 C5 64 D2 53 00 00 A5 [02:36:07]Write i2c OK [02:36:07]MH_I2C_Read... [02:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:07]Read from MH i2c: E2 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 03 00 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 03 00 4F 29 00 90 00 EC [02:36:07]RAPDU: 90 00 [02:36:07]wFMCommunicate OK [02:36:07]wFMCommunicate request_size=4 [02:36:07]MH_SAM_APDU [02:36:07]CAPDU: 80 0D 03 02 [02:36:07]Write to MH i2c: E2 08 00 50 29 80 0D 03 02 00 00 00 00 F4 [02:36:07]Write i2c OK [02:36:07]MH_I2C_Read... [02:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:07]Read from MH i2c: E2 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 0B 00 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 0B 00 50 29 00 B6 12 F5 A3 38 65 1B 57 90 00 64 [02:36:07]RAPDU: B6 12 F5 A3 38 65 1B 57 90 00 [02:36:07]wFMCommunicate OK [02:36:07]SAM_PROTO_SignData done [02:36:07]FM_MakeSignedData done [02:36:07]CreateOFDProtocolMessage [02:36:07]wFMCommunicate request_size=4 [02:36:07]MH_SAM_APDU [02:36:07]CAPDU: 80 11 00 00 [02:36:07]Write to MH i2c: E2 08 00 51 29 80 11 00 00 00 00 00 00 F4 [02:36:07]Write i2c OK [02:36:07]MH_I2C_Read... [02:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:07]Read from MH i2c: E2 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 17 00 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: E2 17 00 51 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4D [02:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:36:07]wFMCommunicate OK [02:36:07]CreateOFDProtocolMessage done [02:36:07]OFDSenderStorePacket 63159 [02:36:07]StoreOFDPacket docnum=63159 [02:36:07]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 F8 E3 A7 01 19 9F 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 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 2D 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B 0F 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B7 F6 00 00 35 04 06 00 A9 49 C5 64 D2 53 B6 12 F5 A3 38 65 1B 57 [02:36:07]CheckFolder [02:36:07]dirname=/storage/ofd_packets [02:36:07]CheckFolder done [02:36:07]ProducePacketName [02:36:07]name=ofd_packets/00063159 [02:36:07]NVStorageSaveData ofd_packets/00063159 [02:36:07]File name is /storage/ofd_packets/00063159 [02:36:07]Write 461 bytes [02:36:07]NVStorageSaveData done [02:36:07]OFDSenderStorePacket done [02:36:07]KKMCreateOFDPacket done [02:36:07]NVStorageSaveData kkm_last_timestamp [02:36:07]File name is /storage/kkm_last_timestamp [02:36:07]Write 4 bytes [02:36:07]NVStorageSaveData done [02:36:07]ExternCall_PrintAddStr [02:36:07]wPrintStart [02:36:07]Write to MH i2c: 01 00 00 52 29 7B [02:36:07]OFD Sender: Processing packet 63159 [packets to send 232, broken 231] [02:36:07]ProducePacketName [02:36:07]name=ofd_packets/00063159 [02:36:07]OFD Sender: To server: pG, [02:36:07]CommunicateWithHost lk.salyk.kg:30040 [02:36:07]ConnectInit lk.salyk.kg [02:36:07]Write i2c OK [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: 01 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: 01 07 00 [02:36:07]MH_I2C_Read... [02:36:07]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 FF 0F 90 [02:36:07]RasterBufferAndPrint [02:36:07]line Счет N : (3)47469 [02:36:07]line ИНН: 02508201610067 [02:36:07]line Контрольно-Кассовый Чек [02:36:07]line ПРОДАЖА [02:36:07]line Товар: 4660085515163 [02:36:07]line Шок Батончик Сникерс супер 95/80г [02:36:07]line 1.000 * 89.20 [02:36:07]line = 89.20 [02:36:07]line НДС 12% НСП 1% [02:36:07]line > о реализуемом товаре [02:36:07]line Товар: 2000036220012 [02:36:07]line Кофе Капучино XL(GABB TRADE) [02:36:07]line 1.000 * 128.85 [02:36:07]line = 128.85 [02:36:07]line НДС 12% НСП 1% [02:36:07]line > о реализуемом товаре [02:36:07]line ИТОГО: 218.05 [02:36:07]line НСП 1% : 1.93 [02:36:07]line НДС 12% : 23.15 [02:36:07]line Наличными: 0.00 [02:36:07]line Безнал.: 218.05 [02:36:07]line Место: АЗС № 86 "Партнер Нефть" [02:36:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:36:07]line СНО: Общий режим [02:36:07]line Чек 15 22.10.2024 02:36 [02:36:07]line Смена: 545 ФФД: 1.0 [02:36:07]line ЗНМ: 0300000154 [02:36:07]line РНМ: 0000000000091619 [02:36:07]line Версия ККМ: 001 [02:36:07]line Платежная система: Mbank [02:36:07]line ФМ: 0000000000874676 [02:36:07]line ФД: 63159 [02:36:07]line ФПД: 186134309425747 [02:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63159&fm=186134309425747&tin=02508201610067®Number=0000000000091619&sum=21805 [02:36:07]line 0 [02:36:07]written 0, free lines is 4095 [02:36:07]Connected sock=10 [02:36: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 AF 01 00 00 F8 E3 A7 01 19 9F 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 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 2D 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 9B 0F 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B7 F6 00 00 35 04 06 00 A9 49 C5 64 D2 53 B6 12 F5 A3 38 65 1B 57 [02:36: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 29 EA 47 00 A3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B7 F6 00 00 F4 03 04 00 96 B9 16 67 B6 04 01 00 00 D1 E7 18 93 42 E6 DA 08 [02:36:08]CommunicateWithHost err = 0 [02:36:08]CheckOFDResponse [02:36:08]1017 (14) - 77093643461234 [02:36:08]1041 (16) - 0000000000874676 [02:36:08]1040 (4) - 63159 [02:36:08]1012 (4) - 21.10.2024 20:29 [02:36:08]1206 (1) - 0 [02:36:08]OFD Sender: Remove packet 63159 [02:36:08]ProducePacketName [02:36:08]name=ofd_packets/00063159 [02:36:08]NVStorageDeleteData [02:36:08]Write to MH i2c: 01 00 00 83 29 AC [02:36:08]Write i2c OK [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: 01 [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: 01 07 00 [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: 01 07 00 83 29 00 00 00 00 00 C1 0C 80 [02:36:08]RasterBufferAndPrint [02:36:08]line [02:36:08]line [02:36:08]line [02:36:08]line [02:36:08]line [02:36:08]written 0, free lines is 3274 [02:36:08]MH_Cut [02:36:08]Write to MH i2c: D1 01 00 8A 29 01 85 [02:36:08]Write i2c OK [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: D1 [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: D1 01 00 [02:36:08]MH_I2C_Read... [02:36:08]Read from MH i2c: D1 01 00 8A 29 00 84 [02:36:08]Write to MH i2c: 01 00 00 8B 29 B4 [02:36:08]Write i2c OK [02:36:08]MH_I2C_Read... [02:36:08]OFD Sender: No OFD packet to send [02:36:09]*** Cut start [02:36:09]*** Partial cut [02:36:09]*** CUTSNS_PIN = 1 [02:36:09]*** CUTSNS_PIN = 0 [02:36:09]*** Brake cut motor [02:36:09]Read from MH i2c: 01 [02:36:09]MH_I2C_Read... [02:36:09]*** Stop cut motor [02:36:09]*** Cut end [02:36:09]Read from MH i2c: 01 07 00 [02:36:09]MH_I2C_Read... [02:36:09]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [02:36:09]process_action close_receipt done [02:36:09]requested_data is exist [02:36:09]produce_requested_data [02:36:09]requested_item fm.sn is exist - process it [02:36:09]wFMCommunicate request_size=4 [02:36:09]MH_SAM_APDU [02:36:09]CAPDU: 80 11 00 00 [02:36:09]Write to MH i2c: E2 08 00 8C 29 80 11 00 00 00 00 00 00 2F [02:36:09]Write i2c OK [02:36:09]MH_I2C_Read... [02:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:09]Read from MH i2c: E2 [02:36:09]MH_I2C_Read... [02:36:09]Read from MH i2c: E2 17 00 [02:36:09]MH_I2C_Read... [02:36:09]Read from MH i2c: E2 17 00 8C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 88 [02:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:36:09]wFMCommunicate OK [02:36:09]requested_item fd.num is exist - process it [02:36:09]SAM_PROTO_GetFieldsCounters [02:36:09]wFMCommunicate request_size=4 [02:36:09]MH_SAM_APDU [02:36:09]CAPDU: 80 13 00 00 [02:36:09]Write to MH i2c: E2 08 00 8D 29 80 13 00 00 00 00 00 00 32 [02:36:09]Write i2c OK [02:36:09]MH_I2C_Read... [02:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:09]Read from MH i2c: E2 [02:36:09]MH_I2C_Read... [02:36:09]Read from MH i2c: E2 62 00 [02:36:09]MH_I2C_Read... [02:36:09]Read from MH i2c: E2 62 00 8D 29 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 B7 F6 00 00 0E 04 04 00 21 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 57 [02:36: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 B7 F6 00 00 0E 04 04 00 21 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 [02:36:09]wFMCommunicate OK [02:36:09]SAM_PROTO_GetFieldsCounters done [02:36:09]requested_item shift.num is exist - process it [02:36:09]requested_item shift.opened is exist - process it [02:36:09]req_shift_opened [02:36:09]FM_GetShiftState [02:36:09]SAM_PROTO_GetShiftState [02:36:09]wFMCommunicate request_size=4 [02:36:09]MH_SAM_APDU [02:36:09]CAPDU: 80 13 01 00 [02:36:09]Write to MH i2c: E2 08 00 8E 29 80 13 01 00 00 00 00 00 34 [02:36:09]Write i2c OK [02:36:09]MH_I2C_Read... [02:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:10]Read from MH i2c: E2 [02:36:10]MH_I2C_Read... [02:36:10]Read from MH i2c: E2 0E 00 [02:36:10]MH_I2C_Read... [02:36:10]Read from MH i2c: E2 0E 00 8E 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 2A [02:36:10]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:36:10]wFMCommunicate OK [02:36:10]SAM_PROTO_GetShiftState done [02:36:10]FM_GetShiftState done [02:36:10]req_shift_opened done [02:36:10]requested_item shift.open_date is exist - process it [02:36:10]req_shift_open_date [02:36:10]req_shift_open_date done [02:36:10]produce_requested_data done [02:36:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63159,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:36:10]process_action_free close_receipt [02:36:10]json_value_free [02:36:10]json_value_free done [02:36:10]process_json_proto returns [02:36:10]Send response to host [02:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63159,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:36:10]free response buf [02:36:10]execute_script done [02:36:10]execute_script returns [02:36:10]free content buf [02:36:10]Sock 9.Close socket [02:36:10]Sock 9.Thread stoped [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:31]accept exits with 7 [02:39:31]New connection [02:39:31]New thread 3067055460 created [02:39:31]Thread 3067198820 joined [02:39:31]Waiting for new connection... [02:39:31] Sock 7.Parse request [02:39:31]Sock 7.Check first char [02:39:31]Sock 7.First char is OK [02:39:31]request: POST /json_proto HTTP/1.0 [02:39:31]Method: POST [02:39:31]URL: /json_proto [02:39:31]Method is POST - this is cgi request [02:39:31]url: /json_proto [02:39:31]query_string will be loaded in cgi processing [02:39:31]execute_cgi json_proto POST (null) [02:39:31]execute_cgi path=json_proto method=POST [02:39:31]POST find Content-Length [02:39:31]Host: 172.17.42.132:8080 [02:39:31]Content-Length: 657 [02:39:31]Content-Type: application/json [02:39:31] [02:39:31]POST finish read [02:39:31]Found Content-Length = 657 [02:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47470", "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" ] } } [02:39:31]execute_script... [02:39: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)47470", "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" ] } } [02:39:31]POST & json_proto [02:39:31]process_json_proto [02:39:31]json parsed OK: [02:39:31]protocol is kg_v1.0 [02:39:31]action value=close_receipt [02:39:31]process_action close_receipt [02:39:31]cmd_close_receipt [02:39:31]MH_GetDate [02:39:31]Write to MH i2c: F0 00 00 8F 29 A7 [02:39:31]Write i2c OK [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: F0 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: F0 09 00 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: F0 09 00 8F 29 00 68 10 17 67 4C DF 56 66 8D [02:39:31]GetLastDocTimeStamp 1729564571 [02:39:31]current date 1729564776 [02:39:31]FM_GetShiftState [02:39:31]SAM_PROTO_GetShiftState [02:39:31]wFMCommunicate request_size=4 [02:39:31]MH_SAM_APDU [02:39:31]CAPDU: 80 13 01 00 [02:39:31]Write to MH i2c: E2 08 00 90 29 80 13 01 00 00 00 00 00 36 [02:39:31]Write i2c OK [02:39:31]MH_I2C_Read... [02:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:31]Read from MH i2c: E2 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: E2 0E 00 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: E2 0E 00 90 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 2C [02:39:31]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:39:31]wFMCommunicate OK [02:39:31]SAM_PROTO_GetShiftState done [02:39:31]FM_GetShiftState done [02:39:31]opened in 1729556095 [02:39:31]opened+sec_in_day 1729642495 [02:39:31]quantity*price = 12500 [02:39:31]sum+1 = 12501 [02:39:31]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 СНО: Общий режим Чек 16 22.10.2024 02:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63160 ФПД: 65185911215428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63160&fm=65185911215428&tin=02508201610067®Number=0000000000091619&sum=12500 0 [02:39:32]StoreToDocumentArchive [02:39:32]shift 545 fd 63160 [02:39:32]save to /storage/0545/doc_00063160 [02:39:32]save last doc name /storage/0545/doc_00063160 to /storage/kkm_last_doc_name [02:39:32]save OK [02:39:32]Clear old archive folders... [02:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [02:39:32]tlvbuf is 018C8790 [02:39:32]SAM_PROTO_ClearQueue [02:39:32]wFMCommunicate request_size=4 [02:39:32]MH_SAM_APDU [02:39:32]CAPDU: 80 09 00 00 [02:39:32]Write to MH i2c: E2 08 00 9D 29 80 09 00 00 00 00 00 00 38 [02:39:32]Write i2c OK [02:39:32]MH_I2C_Read... [02:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:39:32]Read from MH i2c: E2 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 9D 29 00 90 00 3A [02:39:32]RAPDU: 90 00 [02:39:32]wFMCommunicate OK [02:39:32]SAM_PROTO_ClearQueue done [02:39:32]KKMCreateOFDPacket [02:39:32]OFDProtocolAddRootSTLVToBuf [02:39:32]FM_MakeSignedData [02:39:32]FM_MakeSignedData [02:39:32]SAM_PROTO_SignData [02:39:32]wFMCommunicate request_size=4 [02:39:32]MH_SAM_APDU [02:39:32]CAPDU: 80 0D 01 02 [02:39:32]Write to MH i2c: E2 08 00 9E 29 80 0D 01 02 00 00 00 00 40 [02:39:32]Write i2c OK [02:39:32]MH_I2C_Read... [02:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:39:32]Read from MH i2c: E2 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 9E 29 00 90 00 3B [02:39:32]RAPDU: 90 00 [02:39:32]wFMCommunicate OK [02:39:32]wFMCommunicate request_size=255 [02:39:32]MH_SAM_APDU [02:39:32]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 10 00 00 00 F4 03 04 00 68 10 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [02:39:32]Write to MH i2c: E2 02 01 9F 29 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 10 00 00 00 F4 03 04 00 68 10 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 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 16 [02:39:32]Write i2c OK [02:39:32]MH_I2C_Read... [02:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:32]Read from MH i2c: E2 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 [02:39:32]MH_I2C_Read... [02:39:32]Read from MH i2c: E2 03 00 9F 29 00 90 00 3C [02:39:32]RAPDU: 90 00 [02:39:32]wFMCommunicate OK [02:39:32]wFMCommunicate request_size=37 [02:39:32]MH_SAM_APDU [02:39:32]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B8 F6 00 00 35 04 06 00 3B 49 47 15 15 44 [02:39:32]Write to MH i2c: E2 28 00 A0 29 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B8 F6 00 00 35 04 06 00 3B 49 47 15 15 44 00 00 87 [02:39:32]Write i2c OK [02:39:32]MH_I2C_Read... [02:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:33]Read from MH i2c: E2 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 03 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 03 00 A0 29 00 90 00 3D [02:39:33]RAPDU: 90 00 [02:39:33]wFMCommunicate OK [02:39:33]wFMCommunicate request_size=4 [02:39:33]MH_SAM_APDU [02:39:33]CAPDU: 80 0D 03 02 [02:39:33]Write to MH i2c: E2 08 00 A1 29 80 0D 03 02 00 00 00 00 45 [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:39:33]Read from MH i2c: E2 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 0B 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 0B 00 A1 29 00 11 AD 34 13 82 78 B5 D9 90 00 D3 [02:39:33]RAPDU: 11 AD 34 13 82 78 B5 D9 90 00 [02:39:33]wFMCommunicate OK [02:39:33]SAM_PROTO_SignData done [02:39:33]FM_MakeSignedData done [02:39:33]CreateOFDProtocolMessage [02:39:33]wFMCommunicate request_size=4 [02:39:33]MH_SAM_APDU [02:39:33]CAPDU: 80 11 00 00 [02:39:33]Write to MH i2c: E2 08 00 A2 29 80 11 00 00 00 00 00 00 45 [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:33]Read from MH i2c: E2 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 17 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 17 00 A2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9E [02:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:39:33]wFMCommunicate OK [02:39:33]CreateOFDProtocolMessage done [02:39:33]OFDSenderStorePacket 63160 [02:39:33]StoreOFDPacket docnum=63160 [02:39: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 2A 01 00 00 12 FE 22 01 EB 32 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 10 00 00 00 F4 03 04 00 68 10 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B8 F6 00 00 35 04 06 00 3B 49 47 15 15 44 11 AD 34 13 82 78 B5 D9 [02:39:33]CheckFolder [02:39:33]dirname=/storage/ofd_packets [02:39:33]CheckFolder done [02:39:33]ProducePacketName [02:39:33]name=ofd_packets/00063160 [02:39:33]NVStorageSaveData ofd_packets/00063160 [02:39:33]File name is /storage/ofd_packets/00063160 [02:39:33]Write 328 bytes [02:39:33]NVStorageSaveData done [02:39:33]OFDSenderStorePacket done [02:39:33]KKMCreateOFDPacket done [02:39:33]NVStorageSaveData kkm_last_timestamp [02:39:33]File name is /storage/kkm_last_timestamp [02:39:33]Write 4 bytes [02:39:33]NVStorageSaveData done [02:39:33]ExternCall_PrintAddStr [02:39:33]wPrintStart [02:39:33]Write to MH i2c: 01 00 00 A3 29 CC [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 07 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 07 00 A3 29 00 00 00 00 00 FF 0F E1 [02:39:33]RasterBufferAndPrint [02:39:33]line Счет N : (3)47470 [02:39:33]line ИНН: 02508201610067 [02:39:33]line Контрольно-Кассовый Чек [02:39:33]line ПРОДАЖА [02:39:33]line Товар: 5449000054227 [02:39:33]line Напиток Кока-Кола 1л [02:39:33]line 1.000 * 125.00 [02:39:33]line = 125.00 [02:39:33]line НДС 12% НСП 1% [02:39:33]line > о реализуемом товаре [02:39:33]line ИТОГО: 125.00 [02:39:33]line НСП 1% : 1.11 [02:39:33]line НДС 12% : 13.27 [02:39:33]line Наличными: 125.00 [02:39:33]line Безнал.: 0.00 [02:39:33]line Место: АЗС № 86 "Партнер Нефть" [02:39:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:39:33]line СНО: Общий режим [02:39:33]line Чек 16 22.10.2024 02:39 [02:39:33]line Смена: 545 ФФД: 1.0 [02:39:33]line ЗНМ: 0300000154 [02:39:33]line РНМ: 0000000000091619 [02:39:33]line Версия ККМ: 001 [02:39:33]line ФМ: 0000000000874676 [02:39:33]line ФД: 63160 [02:39:33]line ФПД: 65185911215428 [02:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63160&fm=65185911215428&tin=02508201610067®Number=0000000000091619&sum=12500 [02:39:33]line 0 [02:39:33]written 0, free lines is 4095 [02:39:33]OFD Sender: Processing packet 63160 [packets to send 232, broken 231] [02:39:33]ProducePacketName [02:39:33]name=ofd_packets/00063160 [02:39:33]OFD Sender: To server: pG, [02:39:33]CommunicateWithHost lk.salyk.kg:30040 [02:39:33]ConnectInit lk.salyk.kg [02:39:33]Write to MH i2c: 01 00 00 CB 29 F4 [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 07 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 12 0D 1A [02:39:33]RasterBufferAndPrint [02:39:33]line [02:39:33]line [02:39:33]line [02:39:33]line [02:39:33]line [02:39:33]written 0, free lines is 3350 [02:39:33]MH_Cut [02:39:33]Write to MH i2c: D1 01 00 D2 29 01 CD [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: D1 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: D1 01 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: D1 01 00 D2 29 00 CC [02:39:33]Write to MH i2c: 01 00 00 D3 29 FC [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:34]*** Cut start [02:39:34]*** Partial cut [02:39:34]*** CUTSNS_PIN = 1 [02:39:34]*** CUTSNS_PIN = 0 [02:39:34]*** Brake cut motor [02:39:34]Read from MH i2c: 01 [02:39:34]MH_I2C_Read... [02:39:34]*** Stop cut motor [02:39:34]*** Cut end [02:39:34]Read from MH i2c: 01 07 00 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: 01 07 00 D3 29 00 00 00 00 00 FF 0F 11 [02:39:34]process_action close_receipt done [02:39:34]requested_data is exist [02:39:34]produce_requested_data [02:39:34]requested_item fm.sn is exist - process it [02:39:34]wFMCommunicate request_size=4 [02:39:34]MH_SAM_APDU [02:39:34]CAPDU: 80 11 00 00 [02:39:34]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [02:39:34]Write i2c OK [02:39:34]MH_I2C_Read... [02:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:34]Read from MH i2c: E2 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 17 00 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D0 [02:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:39:34]wFMCommunicate OK [02:39:34]requested_item fd.num is exist - process it [02:39:34]SAM_PROTO_GetFieldsCounters [02:39:34]wFMCommunicate request_size=4 [02:39:34]MH_SAM_APDU [02:39:34]CAPDU: 80 13 00 00 [02:39:34]Write to MH i2c: E2 08 00 D5 29 80 13 00 00 00 00 00 00 7A [02:39:34]Write i2c OK [02:39:34]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 62 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 62 00 D5 29 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 B8 F6 00 00 0E 04 04 00 21 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 A3 [02:39: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 B8 F6 00 00 0E 04 04 00 21 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 [02:39:35]wFMCommunicate OK [02:39:35]SAM_PROTO_GetFieldsCounters done [02:39:35]requested_item shift.num is exist - process it [02:39:35]requested_item shift.opened is exist - process it [02:39:35]req_shift_opened [02:39:35]FM_GetShiftState [02:39:35]SAM_PROTO_GetShiftState [02:39:35]wFMCommunicate request_size=4 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 13 01 00 [02:39:35]Write to MH i2c: E2 08 00 D6 29 80 13 01 00 00 00 00 00 7C [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 0E 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 0E 00 D6 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 72 [02:39:35]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:39:35]wFMCommunicate OK [02:39:35]SAM_PROTO_GetShiftState done [02:39:35]FM_GetShiftState done [02:39:35]req_shift_opened done [02:39:35]requested_item shift.open_date is exist - process it [02:39:35]req_shift_open_date [02:39:35]req_shift_open_date done [02:39:35]produce_requested_data done [02:39:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63160,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:39:35]process_action_free close_receipt [02:39:35]json_value_free [02:39:35]json_value_free done [02:39:35]process_json_proto returns [02:39:35]Send response to host [02:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63160,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:39:35]free response buf [02:39:35]execute_script done [02:39:35]execute_script returns [02:39:35]free content buf [02:39:35]Sock 7.Close socket [02:39:35]Sock 7.Thread stoped [02:41:43]ConnectInit Can't connect to host [02:41:43]CommunicateWithHost connect error [02:41:43]CommunicateWithHost err = -1 [02:41:43]OFD Sender: Server communicate error [02:41:48]OFD Sender: Processing packet 63160 [packets to send 232, broken 231] [02:41:48]ProducePacketName [02:41:48]name=ofd_packets/00063160 [02:41:48]OFD Sender: To server: pG, [02:41:48]CommunicateWithHost lk.salyk.kg:30040 [02:41:48]ConnectInit lk.salyk.kg [02:41:48]Connected sock=7 [02:41: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 2A 01 00 00 12 FE 22 01 EB 32 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 10 00 00 00 F4 03 04 00 68 10 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B8 F6 00 00 35 04 06 00 3B 49 47 15 15 44 11 AD 34 13 82 78 B5 D9 [02:41:48]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 5F 47 00 46 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B8 F6 00 00 F4 03 04 00 EB BA 16 67 B6 04 01 00 00 C6 34 35 DB F2 FF CD F4 [02:41:48]CommunicateWithHost err = 0 [02:41:48]CheckOFDResponse [02:41:48]1017 (14) - 77093643461234 [02:41:48]1041 (16) - 0000000000874676 [02:41:48]1040 (4) - 63160 [02:41:48]1012 (4) - 21.10.2024 20:34 [02:41:48]1206 (1) - 0 [02:41:48]OFD Sender: Remove packet 63160 [02:41:48]ProducePacketName [02:41:48]name=ofd_packets/00063160 [02:41:48]NVStorageDeleteData [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:19]accept exits with 9 [02:42:19]New connection [02:42:19]New thread 3067198820 created [02:42:19]Thread 3067055460 joined [02:42:19]Waiting for new connection... [02:42:19] Sock 9.Parse request [02:42:19]Sock 9.Check first char [02:42:19]Sock 9.First char is OK [02:42:19]request: POST /json_proto HTTP/1.0 [02:42:19]Method: POST [02:42:19]URL: /json_proto [02:42:19]Method is POST - this is cgi request [02:42:19]url: /json_proto [02:42:19]query_string will be loaded in cgi processing [02:42:19]execute_cgi json_proto POST (null) [02:42:19]execute_cgi path=json_proto method=POST [02:42:19]POST find Content-Length [02:42:19]Host: 172.17.42.132:8080 [02:42:19]Content-Length: 747 [02:42:19]Content-Type: application/json [02:42:19] [02:42:19]POST finish read [02:42:19]Found Content-Length = 747 [02:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47471", "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" ] } } [02:42:19]execute_script... [02:42: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)47471", "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" ] } } [02:42:19]POST & json_proto [02:42:19]process_json_proto [02:42:19]json parsed OK: [02:42:19]protocol is kg_v1.0 [02:42:19]action value=close_receipt [02:42:19]process_action close_receipt [02:42:19]cmd_close_receipt [02:42:19]MH_GetDate [02:42:19]Write to MH i2c: F0 00 00 D7 29 EF [02:42:19]Write i2c OK [02:42:19]MH_I2C_Read... [02:42:19]Read from MH i2c: F0 [02:42:19]MH_I2C_Read... [02:42:19]Read from MH i2c: F0 09 00 [02:42:19]MH_I2C_Read... [02:42:19]Read from MH i2c: F0 09 00 D7 29 00 10 11 17 67 4C DF 56 66 7E [02:42:19]GetLastDocTimeStamp 1729564776 [02:42:19]current date 1729564944 [02:42:19]FM_GetShiftState [02:42:19]SAM_PROTO_GetShiftState [02:42:19]wFMCommunicate request_size=4 [02:42:19]MH_SAM_APDU [02:42:19]CAPDU: 80 13 01 00 [02:42:19]Write to MH i2c: E2 08 00 D8 29 80 13 01 00 00 00 00 00 7E [02:42:19]Write i2c OK [02:42:19]MH_I2C_Read... [02:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:19]Read from MH i2c: E2 [02:42:19]MH_I2C_Read... [02:42:19]Read from MH i2c: E2 0E 00 [02:42:19]MH_I2C_Read... [02:42:19]Read from MH i2c: E2 0E 00 D8 29 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 74 [02:42:19]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:42:19]wFMCommunicate OK [02:42:19]SAM_PROTO_GetShiftState done [02:42:19]FM_GetShiftState done [02:42:19]opened in 1729556095 [02:42:19]opened+sec_in_day 1729642495 [02:42:19]quantity*price = 14273 [02:42:19]sum+1 = 14274 [02:42: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 СНО: Общий режим Чек 17 22.10.2024 02:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63161 ФПД: 145796833978334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T024224&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63161&fm=145796833978334&tin=02508201610067®Number=0000000000091619&sum=14273 0 [02:42:20]StoreToDocumentArchive [02:42:20]shift 545 fd 63161 [02:42:20]save to /storage/0545/doc_00063161 [02:42:20]save last doc name /storage/0545/doc_00063161 to /storage/kkm_last_doc_name [02:42:20]save OK [02:42:20]Clear old archive folders... [02:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:42:20]tlvbuf is 01908C00 [02:42:20]SAM_PROTO_ClearQueue [02:42:20]wFMCommunicate request_size=4 [02:42:20]MH_SAM_APDU [02:42:20]CAPDU: 80 09 00 00 [02:42:20]Write to MH i2c: E2 08 00 E5 29 80 09 00 00 00 00 00 00 80 [02:42:20]Write i2c OK [02:42:20]MH_I2C_Read... [02:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:20]Read from MH i2c: E2 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 E5 29 00 90 00 82 [02:42:20]RAPDU: 90 00 [02:42:20]wFMCommunicate OK [02:42:20]SAM_PROTO_ClearQueue done [02:42:20]KKMCreateOFDPacket [02:42:20]OFDProtocolAddRootSTLVToBuf [02:42:20]FM_MakeSignedData [02:42:20]FM_MakeSignedData [02:42:20]SAM_PROTO_SignData [02:42:20]wFMCommunicate request_size=4 [02:42:20]MH_SAM_APDU [02:42:20]CAPDU: 80 0D 01 02 [02:42:20]Write to MH i2c: E2 08 00 E6 29 80 0D 01 02 00 00 00 00 88 [02:42:20]Write i2c OK [02:42:20]MH_I2C_Read... [02:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:20]Read from MH i2c: E2 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 E6 29 00 90 00 83 [02:42:20]RAPDU: 90 00 [02:42:20]wFMCommunicate OK [02:42:20]wFMCommunicate request_size=255 [02:42:20]MH_SAM_APDU [02:42: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 11 00 00 00 F4 03 04 00 10 11 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [02:42:20]Write to MH i2c: E2 02 01 E7 29 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 11 00 00 00 F4 03 04 00 10 11 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 B8 [02:42:20]Write i2c OK [02:42:20]MH_I2C_Read... [02:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:20]Read from MH i2c: E2 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 [02:42:20]MH_I2C_Read... [02:42:20]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [02:42:20]RAPDU: 90 00 [02:42:20]wFMCommunicate OK [02:42:20]wFMCommunicate request_size=32 [02:42:20]MH_SAM_APDU [02:42:20]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 B9 F6 00 00 35 04 06 00 84 99 F8 7F A7 DE [02:42:20]Write to MH i2c: E2 23 00 E8 29 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 B9 F6 00 00 35 04 06 00 84 99 F8 7F A7 DE 00 00 B6 [02:42:20]Write i2c OK [02:42:20]MH_I2C_Read... [02:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:21]Read from MH i2c: E2 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 03 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 03 00 E8 29 00 90 00 85 [02:42:21]RAPDU: 90 00 [02:42:21]wFMCommunicate OK [02:42:21]wFMCommunicate request_size=4 [02:42:21]MH_SAM_APDU [02:42:21]CAPDU: 80 0D 03 02 [02:42:21]Write to MH i2c: E2 08 00 E9 29 80 0D 03 02 00 00 00 00 8D [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:21]Read from MH i2c: E2 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 0B 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 0B 00 E9 29 00 C2 88 18 46 4B DC 1E 1F 90 00 9A [02:42:21]RAPDU: C2 88 18 46 4B DC 1E 1F 90 00 [02:42:21]wFMCommunicate OK [02:42:21]SAM_PROTO_SignData done [02:42:21]FM_MakeSignedData done [02:42:21]CreateOFDProtocolMessage [02:42:21]wFMCommunicate request_size=4 [02:42:21]MH_SAM_APDU [02:42:21]CAPDU: 80 11 00 00 [02:42:21]Write to MH i2c: E2 08 00 EA 29 80 11 00 00 00 00 00 00 8D [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:21]Read from MH i2c: E2 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 17 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: E2 17 00 EA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E6 [02:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:42:21]wFMCommunicate OK [02:42:21]CreateOFDProtocolMessage done [02:42:21]OFDSenderStorePacket 63161 [02:42:21]StoreOFDPacket docnum=63161 [02:42:21]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 F5 C1 1D 01 D2 3C 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 11 00 00 00 F4 03 04 00 10 11 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B9 F6 00 00 35 04 06 00 84 99 F8 7F A7 DE C2 88 18 46 4B DC 1E 1F [02:42:21]CheckFolder [02:42:21]dirname=/storage/ofd_packets [02:42:21]CheckFolder done [02:42:21]ProducePacketName [02:42:21]name=ofd_packets/00063161 [02:42:21]NVStorageSaveData ofd_packets/00063161 [02:42:21]File name is /storage/ofd_packets/00063161 [02:42:21]Write 323 bytes [02:42:21]NVStorageSaveData done [02:42:21]OFDSenderStorePacket done [02:42:21]KKMCreateOFDPacket done [02:42:21]NVStorageSaveData kkm_last_timestamp [02:42:21]File name is /storage/kkm_last_timestamp [02:42:21]Write 4 bytes [02:42:21]NVStorageSaveData done [02:42:21]ExternCall_PrintAddStr [02:42:21]wPrintStart [02:42:21]Write to MH i2c: 01 00 00 EB 29 14 [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 07 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [02:42:21]RasterBufferAndPrint [02:42:21]line Счет N : (3)47471 [02:42:21]line ИНН: 02508201610067 [02:42:21]line Контрольно-Кассовый Чек [02:42:21]line ПРОДАЖА [02:42:21]line Товар: 48743570 [02:42:21]line Сигареты Winston XStyle Blue [02:42:21]line 1.000 * 142.73 [02:42:21]line = 142.73 [02:42:21]line НДС 12% НСП 1% [02:42:21]line > о реализуемом товаре [02:42:21]line ИТОГО: 142.73 [02:42:21]line НСП 1% : 1.26 [02:42:21]line НДС 12% : 15.16 [02:42:21]line Наличными: 0.00 [02:42:21]line Безнал.: 142.73 [02:42:21]line Место: АЗС № 86 "Партнер Нефть" [02:42:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:42:21]line СНО: Общий режим [02:42:21]line Чек 17 22.10.2024 02:42 [02:42:21]line Смена: 545 ФФД: 1.0 [02:42:21]line ЗНМ: 0300000154 [02:42:21]line РНМ: 0000000000091619 [02:42:21]line Версия ККМ: 001 [02:42:21]line Платежная система: Mbank [02:42:21]line ФМ: 0000000000874676 [02:42:21]line ФД: 63161 [02:42:21]line ФПД: 145796833978334 [02:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T024224&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63161&fm=145796833978334&tin=02508201610067®Number=0000000000091619&sum=14273 [02:42:21]OFD Sender: Processing packet 63161 [packets to send 232, broken 231] [02:42:21]ProducePacketName [02:42:21]name=ofd_packets/00063161 [02:42:21]OFD Sender: To server: pG, [02:42:21]CommunicateWithHost lk.salyk.kg:30040 [02:42:21]ConnectInit lk.salyk.kg [02:42:21]line 0 [02:42:21]written 0, free lines is 4095 [02:42:21]Connected sock=10 [02:42: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 F5 C1 1D 01 D2 3C 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 11 00 00 00 F4 03 04 00 10 11 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B9 F6 00 00 35 04 06 00 84 99 F8 7F A7 DE C2 88 18 46 4B DC 1E 1F [02:42:21]Write to MH i2c: 01 00 00 14 2A 3E [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 07 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 0E 0D 60 [02:42:21]RasterBufferAndPrint [02:42:21]line [02:42:21]line [02:42:21]line [02:42:21]line [02:42:21]line [02:42:21]written 0, free lines is 3348 [02:42:21]MH_Cut [02:42:21]Write to MH i2c: D1 01 00 1B 2A 01 17 [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: D1 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: D1 01 00 [02:42:21]MH_I2C_Read... [02:42:21]Read from MH i2c: D1 01 00 1B 2A 00 16 [02:42:21]Write to MH i2c: 01 00 00 1C 2A 46 [02:42:21]Write i2c OK [02:42:21]MH_I2C_Read... [02:42: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 FC 60 47 00 33 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 B9 F6 00 00 F4 03 04 00 0C BB 16 67 B6 04 01 00 00 E8 5E 34 83 A8 1E 49 AB [02:42:22]CommunicateWithHost err = 0 [02:42:22]CheckOFDResponse [02:42:22]1017 (14) - 77093643461234 [02:42:22]1041 (16) - 0000000000874676 [02:42:22]1040 (4) - 63161 [02:42:22]1012 (4) - 21.10.2024 20:35 [02:42:22]1206 (1) - 0 [02:42:22]OFD Sender: Remove packet 63161 [02:42:22]ProducePacketName [02:42:22]name=ofd_packets/00063161 [02:42:22]NVStorageDeleteData [02:42:22]OFD Sender: No OFD packet to send [02:42:22]*** Cut start [02:42:22]*** Partial cut [02:42:22]*** CUTSNS_PIN = 1 [02:42:22]*** CUTSNS_PIN = 0 [02:42:22]*** Brake cut motor [02:42:23]Read from MH i2c: 01 [02:42:23]MH_I2C_Read... [02:42:23]*** Stop cut motor [02:42:23]*** Cut end [02:42:23]Read from MH i2c: 01 07 00 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 FF 0F 5B [02:42:23]process_action close_receipt done [02:42:23]requested_data is exist [02:42:23]produce_requested_data [02:42:23]requested_item fm.sn is exist - process it [02:42:23]wFMCommunicate request_size=4 [02:42:23]MH_SAM_APDU [02:42:23]CAPDU: 80 11 00 00 [02:42:23]Write to MH i2c: E2 08 00 1D 2A 80 11 00 00 00 00 00 00 C1 [02:42:23]Write i2c OK [02:42:23]MH_I2C_Read... [02:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:23]Read from MH i2c: E2 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 17 00 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 17 00 1D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1A [02:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:42:23]wFMCommunicate OK [02:42:23]requested_item fd.num is exist - process it [02:42:23]SAM_PROTO_GetFieldsCounters [02:42:23]wFMCommunicate request_size=4 [02:42:23]MH_SAM_APDU [02:42:23]CAPDU: 80 13 00 00 [02:42:23]Write to MH i2c: E2 08 00 1E 2A 80 13 00 00 00 00 00 00 C4 [02:42:23]Write i2c OK [02:42:23]MH_I2C_Read... [02:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:23]Read from MH i2c: E2 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 62 00 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 62 00 1E 2A 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 B9 F6 00 00 0E 04 04 00 21 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 F1 [02:42: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 B9 F6 00 00 0E 04 04 00 21 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 [02:42:23]wFMCommunicate OK [02:42:23]SAM_PROTO_GetFieldsCounters done [02:42:23]requested_item shift.num is exist - process it [02:42:23]requested_item shift.opened is exist - process it [02:42:23]req_shift_opened [02:42:23]FM_GetShiftState [02:42:23]SAM_PROTO_GetShiftState [02:42:23]wFMCommunicate request_size=4 [02:42:23]MH_SAM_APDU [02:42:23]CAPDU: 80 13 01 00 [02:42:23]Write to MH i2c: E2 08 00 1F 2A 80 13 01 00 00 00 00 00 C6 [02:42:23]Write i2c OK [02:42:23]MH_I2C_Read... [02:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:23]Read from MH i2c: E2 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 0E 00 [02:42:23]MH_I2C_Read... [02:42:23]Read from MH i2c: E2 0E 00 1F 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 BC [02:42:23]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:42:23]wFMCommunicate OK [02:42:23]SAM_PROTO_GetShiftState done [02:42:23]FM_GetShiftState done [02:42:23]req_shift_opened done [02:42:23]requested_item shift.open_date is exist - process it [02:42:23]req_shift_open_date [02:42:23]req_shift_open_date done [02:42:23]produce_requested_data done [02:42:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63161,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:42:23]process_action_free close_receipt [02:42:23]json_value_free [02:42:23]json_value_free done [02:42:23]process_json_proto returns [02:42:23]Send response to host [02:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63161,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:42:23]free response buf [02:42:23]execute_script done [02:42:23]execute_script returns [02:42:23]free content buf [02:42:23]Sock 9.Close socket [02:42:23]Sock 9.Thread stoped [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:52]accept exits with 7 [02:51:52]New connection [02:51:52]New thread 3067055460 created [02:51:52]Thread 3067198820 joined [02:51:52]Waiting for new connection... [02:51:52] Sock 7.Parse request [02:51:52]Sock 7.Check first char [02:51:52]Sock 7.First char is OK [02:51:52]request: POST /json_proto HTTP/1.0 [02:51:52]Method: POST [02:51:52]URL: /json_proto [02:51:52]Method is POST - this is cgi request [02:51:52]url: /json_proto [02:51:52]query_string will be loaded in cgi processing [02:51:52]execute_cgi json_proto POST (null) [02:51:52]execute_cgi path=json_proto method=POST [02:51:52]POST find Content-Length [02:51:52]Host: 172.17.42.132:8080 [02:51:52]Content-Length: 1422 [02:51:52]Content-Type: application/json [02:51:52] [02:51:52]POST finish read [02:51:52]Found Content-Length = 1422 [02:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47472", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 443.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:52]execute_script... [02:51: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)47472", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 443.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:52]POST & json_proto [02:51:52]process_json_proto [02:51:52]json parsed OK: [02:51:52]protocol is kg_v1.0 [02:51:52]action value=close_receipt [02:51:52]process_action close_receipt [02:51:52]cmd_close_receipt [02:51:52]MH_GetDate [02:51:52]Write to MH i2c: F0 00 00 20 2A 39 [02:51:52]Write i2c OK [02:51:52]MH_I2C_Read... [02:51:52]Read from MH i2c: F0 [02:51:52]MH_I2C_Read... [02:51:52]Read from MH i2c: F0 09 00 [02:51:52]MH_I2C_Read... [02:51:52]Read from MH i2c: F0 09 00 20 2A 00 4D 13 17 67 4C DF 56 66 07 [02:51:52]GetLastDocTimeStamp 1729564944 [02:51:52]current date 1729565517 [02:51:52]FM_GetShiftState [02:51:52]SAM_PROTO_GetShiftState [02:51:52]wFMCommunicate request_size=4 [02:51:52]MH_SAM_APDU [02:51:52]CAPDU: 80 13 01 00 [02:51:52]Write to MH i2c: E2 08 00 21 2A 80 13 01 00 00 00 00 00 C8 [02:51:52]Write i2c OK [02:51:52]MH_I2C_Read... [02:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:52]Read from MH i2c: E2 [02:51:52]MH_I2C_Read... [02:51:52]Read from MH i2c: E2 0E 00 [02:51:52]MH_I2C_Read... [02:51:52]Read from MH i2c: E2 0E 00 21 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 BE [02:51:52]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:51:52]wFMCommunicate OK [02:51:52]SAM_PROTO_GetShiftState done [02:51:52]FM_GetShiftState done [02:51:52]opened in 1729556095 [02:51:52]opened+sec_in_day 1729642495 [02:51:52]quantity*price = 19900 [02:51:52]sum+1 = 19901 [02:51:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 443.00 НСП 1% : 3.91 НДС 12% : 47.03 Наличными: 443.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 22.10.2024 02:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63162 ФПД: 102433445111487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63162&fm=102433445111487&tin=02508201610067®Number=0000000000091619&sum=44300 0 [02:51:53]StoreToDocumentArchive [02:51:53]shift 545 fd 63162 [02:51:53]save to /storage/0545/doc_00063162 [02:51:53]save last doc name /storage/0545/doc_00063162 to /storage/kkm_last_doc_name [02:51:53]save OK [02:51:53]Clear old archive folders... [02:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=597 [02:51:53]tlvbuf is B6F94230 [02:51:53]SAM_PROTO_ClearQueue [02:51:53]wFMCommunicate request_size=4 [02:51:53]MH_SAM_APDU [02:51:53]CAPDU: 80 09 00 00 [02:51:53]Write to MH i2c: E2 08 00 2E 2A 80 09 00 00 00 00 00 00 CA [02:51:53]Write i2c OK [02:51:53]MH_I2C_Read... [02:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:53]Read from MH i2c: E2 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 2E 2A 00 90 00 CC [02:51:53]RAPDU: 90 00 [02:51:53]wFMCommunicate OK [02:51:53]SAM_PROTO_ClearQueue done [02:51:53]KKMCreateOFDPacket [02:51:53]OFDProtocolAddRootSTLVToBuf [02:51:53]FM_MakeSignedData [02:51:53]FM_MakeSignedData [02:51:53]SAM_PROTO_SignData [02:51:53]wFMCommunicate request_size=4 [02:51:53]MH_SAM_APDU [02:51:53]CAPDU: 80 0D 01 02 [02:51:53]Write to MH i2c: E2 08 00 2F 2A 80 0D 01 02 00 00 00 00 D2 [02:51:53]Write i2c OK [02:51:53]MH_I2C_Read... [02:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:53]Read from MH i2c: E2 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 2F 2A 00 90 00 CD [02:51:53]RAPDU: 90 00 [02:51:53]wFMCommunicate OK [02:51:53]wFMCommunicate request_size=255 [02:51:53]MH_SAM_APDU [02:51:53]CAPDU: 80 0D 02 02 FA 03 00 55 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 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 [02:51:53]Write to MH i2c: E2 02 01 30 2A 80 0D 02 02 FA 00 03 00 55 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 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 00 00 B4 [02:51:53]Write i2c OK [02:51:53]MH_I2C_Read... [02:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:53]Read from MH i2c: E2 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 [02:51:53]MH_I2C_Read... [02:51:53]Read from MH i2c: E2 03 00 30 2A 00 90 00 CE [02:51:53]RAPDU: 90 00 [02:51:53]wFMCommunicate OK [02:51:53]wFMCommunicate request_size=255 [02:51:53]MH_SAM_APDU [02:51:53]CAPDU: 80 0D 02 02 FA 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 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 [02:51:53]Write to MH i2c: E2 02 01 31 2A 80 0D 02 02 FA 00 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 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 00 00 8E [02:51:53]Write i2c OK [02:51:53]MH_I2C_Read... [02:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:54]Read from MH i2c: E2 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 03 00 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 03 00 31 2A 00 90 00 CF [02:51:54]RAPDU: 90 00 [02:51:54]wFMCommunicate OK [02:51:54]wFMCommunicate request_size=106 [02:51:54]MH_SAM_APDU [02:51:54]CAPDU: 80 0D 02 02 65 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 4D 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BA F6 00 00 35 04 06 00 5D 29 A5 1B E6 BF [02:51:54]Write to MH i2c: E2 6D 00 32 2A 80 0D 02 02 65 00 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 4D 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BA F6 00 00 35 04 06 00 5D 29 A5 1B E6 BF 00 00 41 [02:51:54]Write i2c OK [02:51:54]MH_I2C_Read... [02:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:54]Read from MH i2c: E2 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 03 00 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 03 00 32 2A 00 90 00 D0 [02:51:54]RAPDU: 90 00 [02:51:54]wFMCommunicate OK [02:51:54]wFMCommunicate request_size=4 [02:51:54]MH_SAM_APDU [02:51:54]CAPDU: 80 0D 03 02 [02:51:54]Write to MH i2c: E2 08 00 33 2A 80 0D 03 02 00 00 00 00 D8 [02:51:54]Write i2c OK [02:51:54]MH_I2C_Read... [02:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:54]Read from MH i2c: E2 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 0B 00 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 0B 00 33 2A 00 65 EF 20 30 D6 57 2E 31 90 00 09 [02:51:54]RAPDU: 65 EF 20 30 D6 57 2E 31 90 00 [02:51:54]wFMCommunicate OK [02:51:54]SAM_PROTO_SignData done [02:51:54]FM_MakeSignedData done [02:51:54]CreateOFDProtocolMessage [02:51:54]wFMCommunicate request_size=4 [02:51:54]MH_SAM_APDU [02:51:54]CAPDU: 80 11 00 00 [02:51:54]Write to MH i2c: E2 08 00 34 2A 80 11 00 00 00 00 00 00 D8 [02:51:54]Write i2c OK [02:51:54]MH_I2C_Read... [02:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:54]Read from MH i2c: E2 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 17 00 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: E2 17 00 34 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 31 [02:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:51:54]wFMCommunicate OK [02:51:54]CreateOFDProtocolMessage done [02:51:54]OFDSenderStorePacket 63162 [02:51:54]StoreOFDPacket docnum=63162 [02:51: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 69 02 00 00 11 33 61 02 49 EB 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 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 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 12 00 00 00 00 07 04 06 00 0C AD 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 4D 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BA F6 00 00 35 04 06 00 5D 29 A5 1B E6 BF 65 EF 20 30 D6 57 2E 31 [02:51:54]CheckFolder [02:51:54]dirname=/storage/ofd_packets [02:51:54]CheckFolder done [02:51:54]ProducePacketName [02:51:54]name=ofd_packets/00063162 [02:51:54]NVStorageSaveData ofd_packets/00063162 [02:51:54]File name is /storage/ofd_packets/00063162 [02:51:54]Write 647 bytes [02:51:54]NVStorageSaveData done [02:51:54]OFDSenderStorePacket done [02:51:54]KKMCreateOFDPacket done [02:51:54]NVStorageSaveData kkm_last_timestamp [02:51:54]File name is /storage/kkm_last_timestamp [02:51:54]Write 4 bytes [02:51:54]NVStorageSaveData done [02:51:54]ExternCall_PrintAddStr [02:51:54]wPrintStart [02:51:54]Write to MH i2c: 01 00 00 35 2A 5F [02:51:54]Write i2c OK [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: 01 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: 01 07 00 [02:51:54]MH_I2C_Read... [02:51:54]Read from MH i2c: 01 07 00 35 2A 00 00 00 00 00 FF 0F 74 [02:51:54]RasterBufferAndPrint [02:51:54]line Счет N : (3)47472 [02:51:54]line ИНН: 02508201610067 [02:51:54]line Контрольно-Кассовый Чек [02:51:54]line ПРОДАЖА [02:51:54]line Товар: 4700000480517 [02:51:54]line Пиво Живое 1л ПЭТ [02:51:54]line 1.000 * 199.00 [02:51:54]line = 199.00 [02:51:54]line НДС 12% НСП 1% [02:51:54]line > о реализуемом товаре [02:51:54]line Товар: 46230607 [02:51:54]line Сигареты Richmond Bronze Edition [02:51:54]line 1.000 * 154.00 [02:51:54]line = 154.00 [02:51:54]line НДС 12% НСП 1% [02:51:54]line > о реализуемом товаре [02:51:54]line Товар: 47011656 [02:51:54]line Водка Пшеничная 0,1л [02:51:54]line 1.000 * 65.00 [02:51:54]line = 65.00 [02:51:54]line НДС 12% НСП 1% [02:51:54]line > о реализуемом товаре [02:51:54]line Товар: 4607120854177 [02:51:54]line Снек Орехи BEERKa Арахис 30г [02:51:54]line 1.000 * 25.00 [02:51:54]line = 25.00 [02:51:54]line НДС 12% НСП 1% [02:51:54]line > о реализуемом товаре [02:51:54]line ИТОГО: 443.00 [02:51:54]line НСП 1% : 3.91 [02:51:54]line НДС 12% : 47.03 [02:51:54]line Наличными: 443.00 [02:51:54]line Безнал.: 0.00 [02:51:54]line Место: АЗС № 86 "Партнер Нефть" [02:51:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:51:54]line СНО: Общий режим [02:51:54]line Чек 18 22.10.2024 02:51 [02:51:54]line Смена: 545 ФФД: 1.0 [02:51:54]line ЗНМ: 0300000154 [02:51:54]line РНМ: 0000000000091619 [02:51:54]line Версия ККМ: 001 [02:51:54]line ФМ: 0000000000874676 [02:51:54]line ФД: 63162 [02:51:54]line ФПД: 102433445111487 [02:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025157&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63162&fm=102433445111487&tin=02508201610067®Number=0000000000091619&sum=44300 [02:51:54]line 0 [02:51:54]OFD Sender: Processing packet 63162 [packets to send 232, broken 231] [02:51:54]ProducePacketName [02:51:54]name=ofd_packets/00063162 [02:51:54]OFD Sender: To server: pG, [02:51:54]CommunicateWithHost lk.salyk.kg:30040 [02:51:54]ConnectInit lk.salyk.kg [02:51:54]written 0, free lines is 4095 [02:51:55]Connected sock=11 [02:51: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 69 02 00 00 11 33 61 02 49 EB 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 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 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 12 00 00 00 00 07 04 06 00 0C AD 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 4D 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BA F6 00 00 35 04 06 00 5D 29 A5 1B E6 BF 65 EF 20 30 D6 57 2E 31 [02:51: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 FB 10 47 00 C7 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BA F6 00 00 F4 03 04 00 4A BD 16 67 B6 04 01 00 00 77 03 38 7E 78 F6 8D 7B [02:51:55]CommunicateWithHost err = 0 [02:51:55]CheckOFDResponse [02:51:55]1017 (14) - 77093643461234 [02:51:55]1041 (16) - 0000000000874676 [02:51:55]1040 (4) - 63162 [02:51:55]1012 (4) - 21.10.2024 20:44 [02:51:55]1206 (1) - 0 [02:51:55]OFD Sender: Remove packet 63162 [02:51:55]ProducePacketName [02:51:55]name=ofd_packets/00063162 [02:51:55]NVStorageDeleteData [02:51:55]Write to MH i2c: 01 00 00 71 2A 9B [02:51:55]Write i2c OK [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: 01 [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: 01 07 00 [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: 01 07 00 71 2A 00 00 00 00 00 03 0C B1 [02:51:55]RasterBufferAndPrint [02:51:55]line [02:51:55]line [02:51:55]line [02:51:55]line [02:51:55]line [02:51:55]written 0, free lines is 3084 [02:51:55]MH_Cut [02:51:55]Write to MH i2c: D1 01 00 78 2A 01 74 [02:51:55]Write i2c OK [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: D1 [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: D1 01 00 [02:51:55]MH_I2C_Read... [02:51:55]Read from MH i2c: D1 01 00 78 2A 00 73 [02:51:55]Write to MH i2c: 01 00 00 79 2A A3 [02:51:55]Write i2c OK [02:51:55]MH_I2C_Read... [02:51:55]OFD Sender: No OFD packet to send [02:51:56]*** Cut start [02:51:56]*** Partial cut [02:51:56]*** CUTSNS_PIN = 1 [02:51:56]*** CUTSNS_PIN = 0 [02:51:56]*** Brake cut motor [02:51:56]Read from MH i2c: 01 [02:51:56]MH_I2C_Read... [02:51:56]*** Stop cut motor [02:51:56]*** Cut end [02:51:56]Read from MH i2c: 01 07 00 [02:51:56]MH_I2C_Read... [02:51:56]Read from MH i2c: 01 07 00 79 2A 00 00 00 00 00 FF 0F B8 [02:51:56]process_action close_receipt done [02:51:56]requested_data is exist [02:51:56]produce_requested_data [02:51:56]requested_item fm.sn is exist - process it [02:51:56]wFMCommunicate request_size=4 [02:51:56]MH_SAM_APDU [02:51:56]CAPDU: 80 11 00 00 [02:51:56]Write to MH i2c: E2 08 00 7A 2A 80 11 00 00 00 00 00 00 1E [02:51:56]Write i2c OK [02:51:56]MH_I2C_Read... [02:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:56]Read from MH i2c: E2 [02:51:56]MH_I2C_Read... [02:51:56]Read from MH i2c: E2 17 00 [02:51:56]MH_I2C_Read... [02:51:56]Read from MH i2c: E2 17 00 7A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 77 [02:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:51:56]wFMCommunicate OK [02:51:56]requested_item fd.num is exist - process it [02:51:56]SAM_PROTO_GetFieldsCounters [02:51:56]wFMCommunicate request_size=4 [02:51:56]MH_SAM_APDU [02:51:56]CAPDU: 80 13 00 00 [02:51:56]Write to MH i2c: E2 08 00 7B 2A 80 13 00 00 00 00 00 00 21 [02:51:57]Write i2c OK [02:51:57]MH_I2C_Read... [02:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:57]Read from MH i2c: E2 [02:51:57]MH_I2C_Read... [02:51:57]Read from MH i2c: E2 62 00 [02:51:57]MH_I2C_Read... [02:51:57]Read from MH i2c: E2 62 00 7B 2A 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 BA F6 00 00 0E 04 04 00 21 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 52 [02:51: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 BA F6 00 00 0E 04 04 00 21 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 [02:51:57]wFMCommunicate OK [02:51:57]SAM_PROTO_GetFieldsCounters done [02:51:57]requested_item shift.num is exist - process it [02:51:57]requested_item shift.opened is exist - process it [02:51:57]req_shift_opened [02:51:57]FM_GetShiftState [02:51:57]SAM_PROTO_GetShiftState [02:51:57]wFMCommunicate request_size=4 [02:51:57]MH_SAM_APDU [02:51:57]CAPDU: 80 13 01 00 [02:51:57]Write to MH i2c: E2 08 00 7C 2A 80 13 01 00 00 00 00 00 23 [02:51:57]Write i2c OK [02:51:57]MH_I2C_Read... [02:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:57]Read from MH i2c: E2 [02:51:57]MH_I2C_Read... [02:51:57]Read from MH i2c: E2 0E 00 [02:51:57]MH_I2C_Read... [02:51:57]Read from MH i2c: E2 0E 00 7C 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 19 [02:51:57]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:51:57]wFMCommunicate OK [02:51:57]SAM_PROTO_GetShiftState done [02:51:57]FM_GetShiftState done [02:51:57]req_shift_opened done [02:51:57]requested_item shift.open_date is exist - process it [02:51:57]req_shift_open_date [02:51:57]req_shift_open_date done [02:51:57]produce_requested_data done [02:51:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63162,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:51:57]process_action_free close_receipt [02:51:57]json_value_free [02:51:57]json_value_free done [02:51:57]process_json_proto returns [02:51:57]Send response to host [02:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63162,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:51:57]free response buf [02:51:57]execute_script done [02:51:57]execute_script returns [02:51:57]free content buf [02:51:57]Sock 7.Close socket [02:51:57]Sock 7.Thread stoped [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:43]accept exits with 9 [02:52:43]New connection [02:52:43]New thread 3067198820 created [02:52:43]Thread 3067055460 joined [02:52:43]Waiting for new connection... [02:52:43] Sock 9.Parse request [02:52:43]Sock 9.Check first char [02:52:43]Sock 9.First char is OK [02:52:43]request: POST /json_proto HTTP/1.0 [02:52:43]Method: POST [02:52:43]URL: /json_proto [02:52:43]Method is POST - this is cgi request [02:52:43]url: /json_proto [02:52:43]query_string will be loaded in cgi processing [02:52:43]execute_cgi json_proto POST (null) [02:52:43]execute_cgi path=json_proto method=POST [02:52:43]POST find Content-Length [02:52:43]Host: 172.17.42.132:8080 [02:52:43]Content-Length: 640 [02:52:43]Content-Type: application/json [02:52:43] [02:52:43]POST finish read [02:52:43]Found Content-Length = 640 [02:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47473", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "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" ] } } [02:52:43]execute_script... [02:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47473", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "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" ] } } [02:52:43]POST & json_proto [02:52:43]process_json_proto [02:52:43]json parsed OK: [02:52:43]protocol is kg_v1.0 [02:52:43]action value=close_receipt [02:52:43]process_action close_receipt [02:52:43]cmd_close_receipt [02:52:43]MH_GetDate [02:52:43]Write to MH i2c: F0 00 00 7D 2A 96 [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: F0 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: F0 09 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: F0 09 00 7D 2A 00 80 13 17 67 4C DF 56 66 97 [02:52:43]GetLastDocTimeStamp 1729565517 [02:52:43]current date 1729565568 [02:52:43]FM_GetShiftState [02:52:43]SAM_PROTO_GetShiftState [02:52:43]wFMCommunicate request_size=4 [02:52:43]MH_SAM_APDU [02:52:43]CAPDU: 80 13 01 00 [02:52:43]Write to MH i2c: E2 08 00 7E 2A 80 13 01 00 00 00 00 00 25 [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:43]Read from MH i2c: E2 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 0E 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 0E 00 7E 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 1B [02:52:43]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:52:43]wFMCommunicate OK [02:52:43]SAM_PROTO_GetShiftState done [02:52:43]FM_GetShiftState done [02:52:43]opened in 1729556095 [02:52:43]opened+sec_in_day 1729642495 [02:52:43]quantity*price = 13000 [02:52:43]sum+1 = 13001 [02:52:43]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 СНО: Общий режим Чек 19 22.10.2024 02:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63163 ФПД: 8278934919870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025248&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63163&fm=8278934919870&tin=02508201610067®Number=0000000000091619&sum=13000 0 [02:52:44]StoreToDocumentArchive [02:52:44]shift 545 fd 63163 [02:52:44]save to /storage/0545/doc_00063163 [02:52:44]save last doc name /storage/0545/doc_00063163 to /storage/kkm_last_doc_name [02:52:44]save OK [02:52:44]Clear old archive folders... [02:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:52:44]tlvbuf is 018EF750 [02:52:44]SAM_PROTO_ClearQueue [02:52:44]wFMCommunicate request_size=4 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 09 00 00 [02:52:44]Write to MH i2c: E2 08 00 8B 2A 80 09 00 00 00 00 00 00 27 [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:44]Read from MH i2c: E2 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 8B 2A 00 90 00 29 [02:52:44]RAPDU: 90 00 [02:52:44]wFMCommunicate OK [02:52:44]SAM_PROTO_ClearQueue done [02:52:44]KKMCreateOFDPacket [02:52:44]OFDProtocolAddRootSTLVToBuf [02:52:44]FM_MakeSignedData [02:52:44]FM_MakeSignedData [02:52:44]SAM_PROTO_SignData [02:52:44]wFMCommunicate request_size=4 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 0D 01 02 [02:52:44]Write to MH i2c: E2 08 00 8C 2A 80 0D 01 02 00 00 00 00 2F [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:44]Read from MH i2c: E2 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 8C 2A 00 90 00 2A [02:52:44]RAPDU: 90 00 [02:52:44]wFMCommunicate OK [02:52:44]wFMCommunicate request_size=255 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 13 00 00 00 F4 03 04 00 80 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [02:52:44]Write to MH i2c: E2 02 01 8D 2A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 13 00 00 00 F4 03 04 00 80 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 4F [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:44]Read from MH i2c: E2 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 8D 2A 00 90 00 2B [02:52:44]RAPDU: 90 00 [02:52:44]wFMCommunicate OK [02:52:44]wFMCommunicate request_size=32 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 BB F6 00 00 35 04 06 00 07 87 96 F9 9A BE [02:52:44]Write to MH i2c: E2 23 00 8E 2A 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 BB F6 00 00 35 04 06 00 07 87 96 F9 9A BE 00 00 BB [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:44]Read from MH i2c: E2 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 03 00 8E 2A 00 90 00 2C [02:52:44]RAPDU: 90 00 [02:52:44]wFMCommunicate OK [02:52:44]wFMCommunicate request_size=4 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 0D 03 02 [02:52:44]Write to MH i2c: E2 08 00 8F 2A 80 0D 03 02 00 00 00 00 34 [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:44]Read from MH i2c: E2 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 0B 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: E2 0B 00 8F 2A 00 8B 71 9C A5 3E EC D1 35 90 00 A2 [02:52:44]RAPDU: 8B 71 9C A5 3E EC D1 35 90 00 [02:52:44]wFMCommunicate OK [02:52:44]SAM_PROTO_SignData done [02:52:44]FM_MakeSignedData done [02:52:44]CreateOFDProtocolMessage [02:52:44]wFMCommunicate request_size=4 [02:52:44]MH_SAM_APDU [02:52:44]CAPDU: 80 11 00 00 [02:52:44]Write to MH i2c: E2 08 00 90 2A 80 11 00 00 00 00 00 00 34 [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:45]Read from MH i2c: E2 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 17 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 17 00 90 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8D [02: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 [02:52:45]wFMCommunicate OK [02:52:45]CreateOFDProtocolMessage done [02:52:45]OFDSenderStorePacket 63163 [02:52:45]StoreOFDPacket docnum=63163 [02:52:45]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 6C EF 1D 01 78 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 13 00 00 00 F4 03 04 00 80 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BB F6 00 00 35 04 06 00 07 87 96 F9 9A BE 8B 71 9C A5 3E EC D1 35 [02:52:45]CheckFolder [02:52:45]dirname=/storage/ofd_packets [02:52:45]CheckFolder done [02:52:45]ProducePacketName [02:52:45]name=ofd_packets/00063163 [02:52:45]NVStorageSaveData ofd_packets/00063163 [02:52:45]File name is /storage/ofd_packets/00063163 [02:52:45]Write 323 bytes [02:52:45]NVStorageSaveData done [02:52:45]OFDSenderStorePacket done [02:52:45]KKMCreateOFDPacket done [02:52:45]NVStorageSaveData kkm_last_timestamp [02:52:45]File name is /storage/kkm_last_timestamp [02:52:45]Write 4 bytes [02:52:45]NVStorageSaveData done [02:52:45]ExternCall_PrintAddStr [02:52:45]wPrintStart [02:52:45]Write to MH i2c: 01 00 00 91 2A BB [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 07 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [02:52:45]RasterBufferAndPrint [02:52:45]line Счет N : (3)47473 [02:52:45]line ИНН: 02508201610067 [02:52:45]line Контрольно-Кассовый Чек [02:52:45]line ПРОДАЖА [02:52:45]line Товар: 4630007400389 [02:52:45]line Семечки ДЖИНН 140г [02:52:45]line 1.000 * 130.00 [02:52:45]line = 130.00 [02:52:45]line НДС 12% НСП 1% [02:52:45]line > о реализуемом товаре [02:52:45]line ИТОГО: 130.00 [02:52:45]line НСП 1% : 1.15 [02:52:45]line НДС 12% : 13.80 [02:52:45]line Наличными: 130.00 [02:52:45]line Безнал.: 0.00 [02:52:45]line Место: АЗС № 86 "Партнер Нефть" [02:52:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:52:45]line СНО: Общий режим [02:52:45]line Чек 19 22.10.2024 02:52 [02:52:45]line Смена: 545 ФФД: 1.0 [02:52:45]line ЗНМ: 0300000154 [02:52:45]line РНМ: 0000000000091619 [02:52:45]line Версия ККМ: 001 [02:52:45]line ФМ: 0000000000874676 [02:52:45]line ФД: 63163 [02:52:45]line ФПД: 8278934919870 [02:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025248&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63163&fm=8278934919870&tin=02508201610067®Number=0000000000091619&sum=13000 [02:52:45]line 0 [02:52:45]OFD Sender: Processing packet 63163 [packets to send 232, broken 231] [02:52:45]ProducePacketName [02:52:45]name=ofd_packets/00063163 [02:52:45]OFD Sender: To server: pG, [02:52:45]CommunicateWithHost lk.salyk.kg:30040 [02:52:45]ConnectInit lk.salyk.kg [02:52:45]written 0, free lines is 4095 [02:52:45]Connected sock=10 [02:52: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 25 01 00 00 6C EF 1D 01 78 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 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 13 00 00 00 F4 03 04 00 80 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BB F6 00 00 35 04 06 00 07 87 96 F9 9A BE 8B 71 9C A5 3E EC D1 35 [02:52:45]Write to MH i2c: 01 00 00 B9 2A E3 [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 07 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 20 0D 17 [02:52:45]RasterBufferAndPrint [02:52:45]line [02:52:45]line [02:52:45]line [02:52:45]line [02:52:45]line [02:52:45]written 0, free lines is 3366 [02:52:45]MH_Cut [02:52:45]Write to MH i2c: D1 01 00 C0 2A 01 BC [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: D1 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: D1 01 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: D1 01 00 C0 2A 00 BB [02:52:45]Write to MH i2c: 01 00 00 C1 2A EB [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]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 D1 E1 47 00 5D 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 BB F6 00 00 F4 03 04 00 7C BD 16 67 B6 04 01 00 00 75 03 29 23 4A 14 C9 69 [02:52:45]CommunicateWithHost err = 0 [02:52:45]CheckOFDResponse [02:52:45]1017 (14) - 77093643461234 [02:52:45]1041 (16) - 0000000000874676 [02:52:45]1040 (4) - 63163 [02:52:45]1012 (4) - 21.10.2024 20:45 [02:52:45]1206 (1) - 0 [02:52:45]OFD Sender: Remove packet 63163 [02:52:45]ProducePacketName [02:52:45]name=ofd_packets/00063163 [02:52:45]NVStorageDeleteData [02:52:46]OFD Sender: No OFD packet to send [02:52:46]*** Cut start [02:52:46]*** Partial cut [02:52:46]*** CUTSNS_PIN = 1 [02:52:46]*** CUTSNS_PIN = 0 [02:52:46]*** Brake cut motor [02:52:47]Read from MH i2c: 01 [02:52:47]MH_I2C_Read... [02:52:47]*** Stop cut motor [02:52:47]*** Cut end [02:52:47]Read from MH i2c: 01 07 00 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: 01 07 00 C1 2A 00 00 00 00 00 FF 0F 00 [02:52:47]process_action close_receipt done [02:52:47]requested_data is exist [02:52:47]produce_requested_data [02:52:47]requested_item fm.sn is exist - process it [02:52:47]wFMCommunicate request_size=4 [02:52:47]MH_SAM_APDU [02:52:47]CAPDU: 80 11 00 00 [02:52:47]Write to MH i2c: E2 08 00 C2 2A 80 11 00 00 00 00 00 00 66 [02:52:47]Write i2c OK [02:52:47]MH_I2C_Read... [02:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:47]Read from MH i2c: E2 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 17 00 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 17 00 C2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BF [02:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:52:47]wFMCommunicate OK [02:52:47]requested_item fd.num is exist - process it [02:52:47]SAM_PROTO_GetFieldsCounters [02:52:47]wFMCommunicate request_size=4 [02:52:47]MH_SAM_APDU [02:52:47]CAPDU: 80 13 00 00 [02:52:47]Write to MH i2c: E2 08 00 C3 2A 80 13 00 00 00 00 00 00 69 [02:52:47]Write i2c OK [02:52:47]MH_I2C_Read... [02:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:47]Read from MH i2c: E2 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 62 00 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 62 00 C3 2A 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 BB F6 00 00 0E 04 04 00 21 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 9E [02:52:47]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 BB F6 00 00 0E 04 04 00 21 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 [02:52:47]wFMCommunicate OK [02:52:47]SAM_PROTO_GetFieldsCounters done [02:52:47]requested_item shift.num is exist - process it [02:52:47]requested_item shift.opened is exist - process it [02:52:47]req_shift_opened [02:52:47]FM_GetShiftState [02:52:47]SAM_PROTO_GetShiftState [02:52:47]wFMCommunicate request_size=4 [02:52:47]MH_SAM_APDU [02:52:47]CAPDU: 80 13 01 00 [02:52:47]Write to MH i2c: E2 08 00 C4 2A 80 13 01 00 00 00 00 00 6B [02:52:47]Write i2c OK [02:52:47]MH_I2C_Read... [02:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:47]Read from MH i2c: E2 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 0E 00 [02:52:47]MH_I2C_Read... [02:52:47]Read from MH i2c: E2 0E 00 C4 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 61 [02:52:47]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:52:47]wFMCommunicate OK [02:52:47]SAM_PROTO_GetShiftState done [02:52:47]FM_GetShiftState done [02:52:47]req_shift_opened done [02:52:47]requested_item shift.open_date is exist - process it [02:52:47]req_shift_open_date [02:52:47]req_shift_open_date done [02:52:47]produce_requested_data done [02:52:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63163,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:52:47]process_action_free close_receipt [02:52:47]json_value_free [02:52:47]json_value_free done [02:52:47]process_json_proto returns [02:52:47]Send response to host [02:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63163,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:52:47]free response buf [02:52:47]execute_script done [02:52:47]execute_script returns [02:52:47]free content buf [02:52:47]Sock 9.Close socket [02:52:47]Sock 9.Thread stoped [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]accept exits with 7 [02:54:31]New connection [02:54:31]New thread 3067055460 created [02:54:31]Thread 3067198820 joined [02:54:31]Waiting for new connection... [02:54:31] Sock 7.Parse request [02:54:31]Sock 7.Check first char [02:54:31]Sock 7.First char is OK [02:54:31]request: POST /json_proto HTTP/1.0 [02:54:31]Method: POST [02:54:31]URL: /json_proto [02:54:31]Method is POST - this is cgi request [02:54:31]url: /json_proto [02:54:31]query_string will be loaded in cgi processing [02:54:31]execute_cgi json_proto POST (null) [02:54:31]execute_cgi path=json_proto method=POST [02:54:31]POST find Content-Length [02:54:31]Host: 172.17.42.132:8080 [02:54:31]Content-Length: 788 [02:54:31]Content-Type: application/json [02:54:31] [02:54:31]POST finish read [02:54:31]Found Content-Length = 788 [02:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47474", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 94.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:31]execute_script... [02: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)47474", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 94.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:54:31]POST & json_proto [02:54:31]process_json_proto [02:54:31]json parsed OK: [02:54:31]protocol is kg_v1.0 [02:54:31]action value=close_receipt [02:54:31]process_action close_receipt [02:54:31]cmd_close_receipt [02:54:31]MH_GetDate [02:54:31]Write to MH i2c: F0 00 00 C5 2A DE [02:54:31]Write i2c OK [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 09 00 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: F0 09 00 C5 2A 00 EC 13 17 67 4C DF 56 66 4B [02:54:31]GetLastDocTimeStamp 1729565568 [02:54:31]current date 1729565676 [02:54:31]FM_GetShiftState [02:54:31]SAM_PROTO_GetShiftState [02:54:31]wFMCommunicate request_size=4 [02:54:31]MH_SAM_APDU [02:54:31]CAPDU: 80 13 01 00 [02:54:31]Write to MH i2c: E2 08 00 C6 2A 80 13 01 00 00 00 00 00 6D [02:54:31]Write i2c OK [02:54:31]MH_I2C_Read... [02:54:31]OFD Sender: No OFD packet to send [02:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:31]Read from MH i2c: E2 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: E2 0E 00 [02:54:31]MH_I2C_Read... [02:54:31]Read from MH i2c: E2 0E 00 C6 2A 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 63 [02:54:31]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:54:31]wFMCommunicate OK [02:54:31]SAM_PROTO_GetShiftState done [02:54:31]FM_GetShiftState done [02:54:31]opened in 1729556095 [02:54:31]opened+sec_in_day 1729642495 [02:54:31]quantity*price = 9416 [02:54:31]sum+1 = 9417 [02:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 94.16 НСП 1% : 0.83 НДС 12% : 10.00 Наличными: 0.00 Безнал.: 94.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 22.10.2024 02:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63164 ФПД: 176258833095538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025436&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63164&fm=176258833095538&tin=02508201610067®Number=0000000000091619&sum=9416 0 [02:54:32]StoreToDocumentArchive [02:54:32]shift 545 fd 63164 [02:54:32]save to /storage/0545/doc_00063164 [02:54:32]save last doc name /storage/0545/doc_00063164 to /storage/kkm_last_doc_name [02:54:32]save OK [02:54:32]Clear old archive folders... [02:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=289 [02:54:32]tlvbuf is 0186F540 [02:54:32]SAM_PROTO_ClearQueue [02:54:32]wFMCommunicate request_size=4 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 09 00 00 [02:54:32]Write to MH i2c: E2 08 00 D3 2A 80 09 00 00 00 00 00 00 6F [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:32]Read from MH i2c: E2 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 D3 2A 00 90 00 71 [02:54:32]RAPDU: 90 00 [02:54:32]wFMCommunicate OK [02:54:32]SAM_PROTO_ClearQueue done [02:54:32]KKMCreateOFDPacket [02:54:32]OFDProtocolAddRootSTLVToBuf [02:54:32]FM_MakeSignedData [02:54:32]FM_MakeSignedData [02:54:32]SAM_PROTO_SignData [02:54:32]wFMCommunicate request_size=4 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 0D 01 02 [02:54:32]Write to MH i2c: E2 08 00 D4 2A 80 0D 01 02 00 00 00 00 77 [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:32]Read from MH i2c: E2 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 [02:54:32]MH_I2C_Read... [02:54:32]Read from MH i2c: E2 03 00 D4 2A 00 90 00 72 [02:54:32]RAPDU: 90 00 [02:54:32]wFMCommunicate OK [02:54:32]wFMCommunicate request_size=255 [02:54:32]MH_SAM_APDU [02:54:32]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 FC 03 06 00 C8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EC 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [02:54:32]Write to MH i2c: E2 02 01 D5 2A 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 FC 03 06 00 C8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EC 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 3D [02:54:32]Write i2c OK [02:54:32]MH_I2C_Read... [02:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 D5 2A 00 90 00 73 [02:54:33]RAPDU: 90 00 [02:54:33]wFMCommunicate OK [02:54:33]wFMCommunicate request_size=48 [02:54:33]MH_SAM_APDU [02:54:33]CAPDU: 80 0D 02 02 2B 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BC F6 00 00 35 04 06 00 A0 4E 75 22 9B 72 [02:54:33]Write to MH i2c: E2 33 00 D6 2A 80 0D 02 02 2B 00 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BC F6 00 00 35 04 06 00 A0 4E 75 22 9B 72 00 00 C0 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 03 00 D6 2A 00 90 00 74 [02:54:33]RAPDU: 90 00 [02:54:33]wFMCommunicate OK [02:54:33]wFMCommunicate request_size=4 [02:54:33]MH_SAM_APDU [02:54:33]CAPDU: 80 0D 03 02 [02:54:33]Write to MH i2c: E2 08 00 D7 2A 80 0D 03 02 00 00 00 00 7C [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 0B 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 0B 00 D7 2A 00 0B CC F4 38 51 10 F5 57 90 00 2D [02:54:33]RAPDU: 0B CC F4 38 51 10 F5 57 90 00 [02:54:33]wFMCommunicate OK [02:54:33]SAM_PROTO_SignData done [02:54:33]FM_MakeSignedData done [02:54:33]CreateOFDProtocolMessage [02:54:33]wFMCommunicate request_size=4 [02:54:33]MH_SAM_APDU [02:54:33]CAPDU: 80 11 00 00 [02:54:33]Write to MH i2c: E2 08 00 D8 2A 80 11 00 00 00 00 00 00 7C [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:33]Read from MH i2c: E2 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 17 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: E2 17 00 D8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D5 [02: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 [02:54:33]wFMCommunicate OK [02:54:33]CreateOFDProtocolMessage done [02:54:33]OFDSenderStorePacket 63164 [02:54:33]StoreOFDPacket docnum=63164 [02: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 35 01 00 00 D5 6D 2D 01 C8 B1 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 FC 03 06 00 C8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EC 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BC F6 00 00 35 04 06 00 A0 4E 75 22 9B 72 0B CC F4 38 51 10 F5 57 [02:54:33]CheckFolder [02:54:33]dirname=/storage/ofd_packets [02:54:33]CheckFolder done [02:54:33]ProducePacketName [02:54:33]name=ofd_packets/00063164 [02:54:33]NVStorageSaveData ofd_packets/00063164 [02:54:33]File name is /storage/ofd_packets/00063164 [02:54:33]Write 339 bytes [02:54:33]NVStorageSaveData done [02:54:33]OFDSenderStorePacket done [02:54:33]KKMCreateOFDPacket done [02:54:33]NVStorageSaveData kkm_last_timestamp [02:54:33]File name is /storage/kkm_last_timestamp [02:54:33]Write 4 bytes [02:54:33]NVStorageSaveData done [02:54:33]ExternCall_PrintAddStr [02:54:33]wPrintStart [02:54:33]Write to MH i2c: 01 00 00 D9 2A 03 [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 FF 0F 18 [02:54:33]RasterBufferAndPrint [02:54:33]line Счет N : (3)47474 [02:54:33]line ИНН: 02508201610067 [02:54:33]line Контрольно-Кассовый Чек [02:54:33]line ПРОДАЖА [02:54:33]line Товар: 5449000176431 [02:54:33]line Сок Piko Pulpy апельсин ПЭТ 0,5л [02:54:33]line 1.000 * 94.16 [02:54:33]line = 94.16 [02:54:33]line НДС 12% НСП 1% [02:54:33]line > о реализуемом товаре [02:54:33]line ИТОГО: 94.16 [02:54:33]line НСП 1% : 0.83 [02:54:33]line НДС 12% : 10.00 [02:54:33]line Наличными: 0.00 [02:54:33]line Безнал.: 94.16 [02:54:33]line Место: АЗС № 86 "Партнер Нефть" [02:54:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:54:33]line СНО: Общий режим [02:54:33]line Чек 20 22.10.2024 02:54 [02:54:33]line Смена: 545 ФФД: 1.0 [02:54:33]line ЗНМ: 0300000154 [02:54:33]line РНМ: 0000000000091619 [02:54:33]line Версия ККМ: 001 [02:54:33]line Платежная система: Mbank [02:54:33]line ФМ: 0000000000874676 [02:54:33]line ФД: 63164 [02:54:33]line ФПД: 176258833095538 [02:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025436&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63164&fm=176258833095538&tin=02508201610067®Number=0000000000091619&sum=9416 [02:54:33]OFD Sender: Processing packet 63164 [packets to send 232, broken 231] [02:54:33]ProducePacketName [02:54:33]name=ofd_packets/00063164 [02:54:33]OFD Sender: To server: pG, [02:54:33]CommunicateWithHost lk.salyk.kg:30040 [02:54:33]ConnectInit lk.salyk.kg [02:54:33]line 0 [02:54:33]written 0, free lines is 4095 [02:54:33]Connected sock=10 [02: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 35 01 00 00 D5 6D 2D 01 C8 B1 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 FC 03 06 00 C8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EC 13 17 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 BC F6 00 00 35 04 06 00 A0 4E 75 22 9B 72 0B CC F4 38 51 10 F5 57 [02:54:33]Write to MH i2c: 01 00 00 03 2B 2E [02:54:33]Write i2c OK [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 [02:54:33]MH_I2C_Read... [02:54:33]Read from MH i2c: 01 07 00 03 2B 00 00 00 00 00 F3 0C 34 [02:54:33]RasterBufferAndPrint [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]line [02:54:33]written 0, free lines is 3321 [02:54:34]MH_Cut [02:54:34]Write to MH i2c: D1 01 00 0A 2B 01 07 [02:54:34]Write i2c OK [02:54:34]MH_I2C_Read... [02:54:34]Read from MH i2c: D1 [02:54:34]MH_I2C_Read... [02:54:34]Read from MH i2c: D1 01 00 [02:54:34]MH_I2C_Read... [02:54:34]Read from MH i2c: D1 01 00 0A 2B 00 06 [02:54:34]Write to MH i2c: 01 00 00 0B 2B 36 [02:54:34]Write i2c OK [02:54:34]MH_I2C_Read... [02: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 A0 69 47 00 65 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 BC F6 00 00 F4 03 04 00 E8 BD 16 67 B6 04 01 00 00 D4 90 F9 64 01 8A 12 A5 [02:54:34]CommunicateWithHost err = 0 [02:54:34]CheckOFDResponse [02:54:34]1017 (14) - 77093643461234 [02:54:34]1041 (16) - 0000000000874676 [02:54:34]1040 (4) - 63164 [02:54:34]1012 (4) - 21.10.2024 20:47 [02:54:34]1206 (1) - 0 [02:54:34]OFD Sender: Remove packet 63164 [02:54:34]ProducePacketName [02:54:34]name=ofd_packets/00063164 [02:54:34]NVStorageDeleteData [02:54:34]OFD Sender: No OFD packet to send [02:54:34]*** Cut start [02:54:34]*** Partial cut [02:54:34]*** CUTSNS_PIN = 1 [02:54:34]*** CUTSNS_PIN = 0 [02:54:34]*** Brake cut motor [02:54:35]Read from MH i2c: 01 [02:54:35]MH_I2C_Read... [02:54:35]*** Stop cut motor [02:54:35]*** Cut end [02:54:35]Read from MH i2c: 01 07 00 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: 01 07 00 0B 2B 00 00 00 00 00 FF 0F 4B [02:54:35]process_action close_receipt done [02:54:35]requested_data is exist [02:54:35]produce_requested_data [02:54:35]requested_item fm.sn is exist - process it [02:54:35]wFMCommunicate request_size=4 [02:54:35]MH_SAM_APDU [02:54:35]CAPDU: 80 11 00 00 [02:54:35]Write to MH i2c: E2 08 00 0C 2B 80 11 00 00 00 00 00 00 B1 [02:54:35]Write i2c OK [02:54:35]MH_I2C_Read... [02:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:35]Read from MH i2c: E2 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 17 00 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 17 00 0C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0A [02: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 [02:54:35]wFMCommunicate OK [02:54:35]requested_item fd.num is exist - process it [02:54:35]SAM_PROTO_GetFieldsCounters [02:54:35]wFMCommunicate request_size=4 [02:54:35]MH_SAM_APDU [02:54:35]CAPDU: 80 13 00 00 [02:54:35]Write to MH i2c: E2 08 00 0D 2B 80 13 00 00 00 00 00 00 B4 [02:54:35]Write i2c OK [02:54:35]MH_I2C_Read... [02:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:35]Read from MH i2c: E2 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 62 00 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 62 00 0D 2B 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 BC F6 00 00 0E 04 04 00 21 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 ED [02: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 BC F6 00 00 0E 04 04 00 21 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 [02:54:35]wFMCommunicate OK [02:54:35]SAM_PROTO_GetFieldsCounters done [02:54:35]requested_item shift.num is exist - process it [02:54:35]requested_item shift.opened is exist - process it [02:54:35]req_shift_opened [02:54:35]FM_GetShiftState [02:54:35]SAM_PROTO_GetShiftState [02:54:35]wFMCommunicate request_size=4 [02:54:35]MH_SAM_APDU [02:54:35]CAPDU: 80 13 01 00 [02:54:35]Write to MH i2c: E2 08 00 0E 2B 80 13 01 00 00 00 00 00 B6 [02:54:35]Write i2c OK [02:54:35]MH_I2C_Read... [02:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:35]Read from MH i2c: E2 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 0E 00 [02:54:35]MH_I2C_Read... [02:54:35]Read from MH i2c: E2 0E 00 0E 2B 00 09 00 01 7F EE 16 67 00 00 00 00 90 00 AC [02:54:35]RAPDU: 09 00 01 7F EE 16 67 00 00 00 00 90 00 [02:54:35]wFMCommunicate OK [02:54:35]SAM_PROTO_GetShiftState done [02:54:35]FM_GetShiftState done [02:54:35]req_shift_opened done [02:54:35]requested_item shift.open_date is exist - process it [02:54:35]req_shift_open_date [02:54:35]req_shift_open_date done [02:54:35]produce_requested_data done [02:54:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63164,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095} [02:54:35]process_action_free close_receipt [02:54:35]json_value_free [02:54:35]json_value_free done [02:54:35]process_json_proto returns [02:54:35]Send response to host [02:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63164,"shift.num":545,"shift.opened":1,"shift.open_date":1729556095}}} [02:54:35]free response buf [02:54:35]execute_script done [02:54:35]execute_script returns [02:54:35]free content buf [02:54:35]Sock 7.Close socket [02:54:35]Sock 7.Thread stoped [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send