[03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]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:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]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:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46: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:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:06]accept exits with 9 [04:02:06]New connection [04:02:06]New thread 3066944868 created [04:02:06]Thread 3066801508 joined [04:02:06]Waiting for new connection... [04:02:06] Sock 9.Parse request [04:02:06]Sock 9.Check first char [04:02:06]Sock 9.First char is OK [04:02:06]request: POST /json_proto HTTP/1.0 [04:02:06]Method: POST [04:02:06]URL: /json_proto [04:02:06]Method is POST - this is cgi request [04:02:06]url: /json_proto [04:02:06]query_string will be loaded in cgi processing [04:02:06]execute_cgi json_proto POST (null) [04:02:06]execute_cgi path=json_proto method=POST [04:02:06]POST find Content-Length [04:02:06]Host: 172.17.44.4:8080 [04:02:06]Content-Length: 661 [04:02:06]Content-Type: application/json [04:02:06] [04:02:06]POST finish read [04:02:06]Found Content-Length = 661 [04:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151253", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:06]execute_script... [04:02: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)151253", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:06]POST & json_proto [04:02:06]process_json_proto [04:02:06]json parsed OK: [04:02:06]protocol is kg_v1.0 [04:02:06]action value=close_receipt [04:02:06]process_action close_receipt [04:02:06]cmd_close_receipt [04:02:06]MH_GetDate [04:02:06]Write to MH i2c: F0 00 00 58 13 5A [04:02:06]Write i2c OK [04:02:06]MH_I2C_Read... [04:02:06]Read from MH i2c: F0 [04:02:06]MH_I2C_Read... [04:02:06]Read from MH i2c: F0 09 00 [04:02:06]MH_I2C_Read... [04:02:06]Read from MH i2c: F0 09 00 58 13 00 C1 09 C8 66 0F 81 47 66 98 [04:02:06]GetLastDocTimeStamp 1724379711 [04:02:06]current date 1724385729 [04:02:06]FM_GetShiftState [04:02:06]SAM_PROTO_GetShiftState [04:02:06]wFMCommunicate request_size=4 [04:02:06]MH_SAM_APDU [04:02:06]CAPDU: 80 13 01 00 [04:02:06]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [04:02:06]Write i2c OK [04:02:06]MH_I2C_Read... [04:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:06]Read from MH i2c: E2 [04:02:06]MH_I2C_Read... [04:02:06]Read from MH i2c: E2 0E 00 [04:02:06]MH_I2C_Read... [04:02:06]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AD [04:02:06]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [04:02:06]wFMCommunicate OK [04:02:06]SAM_PROTO_GetShiftState done [04:02:06]FM_GetShiftState done [04:02:06]opened in 1724372406 [04:02:06]opened+sec_in_day 1724458806 [04:02:06]quantity*price = 6700 [04:02:06]sum+1 = 6701 [04:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 6 23.08.2024 04:02 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15212 ФПД: 229493682915618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040209&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15212&fm=229493682915618&tin=02508201610067®Number=0000000000162784&sum=6700 0 [04:02:08]StoreToDocumentArchive [04:02:08]shift 102 fd 15212 [04:02:08]save to /storage/0102/doc_00015212 [04:02:08]save last doc name /storage/0102/doc_00015212 to /storage/kkm_last_doc_name [04:02:08]save OK [04:02:08]Clear old archive folders... [04:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=284 [04:02:08]tlvbuf is 00455C90 [04:02:08]SAM_PROTO_ClearQueue [04:02:08]wFMCommunicate request_size=4 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 09 00 00 [04:02:08]Write to MH i2c: E2 08 00 66 13 80 09 00 00 00 00 00 00 EB [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [04:02:08]RAPDU: 90 00 [04:02:08]wFMCommunicate OK [04:02:08]SAM_PROTO_ClearQueue done [04:02:08]KKMCreateOFDPacket [04:02:08]OFDProtocolAddRootSTLVToBuf [04:02:08]FM_MakeSignedData [04:02:08]FM_MakeSignedData [04:02:08]SAM_PROTO_SignData [04:02:08]wFMCommunicate request_size=4 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 0D 01 02 [04:02:08]Write to MH i2c: E2 08 00 67 13 80 0D 01 02 00 00 00 00 F3 [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [04:02:08]RAPDU: 90 00 [04:02:08]wFMCommunicate OK [04:02:08]wFMCommunicate request_size=255 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C1 09 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 [04:02:08]Write to MH i2c: E2 02 01 68 13 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C1 09 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 00 00 7B [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [04:02:08]RAPDU: 90 00 [04:02:08]wFMCommunicate OK [04:02:08]wFMCommunicate request_size=43 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6C 3B 00 00 35 04 06 00 D0 B9 29 72 C9 22 [04:02:08]Write to MH i2c: E2 2E 00 69 13 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6C 3B 00 00 35 04 06 00 D0 B9 29 72 C9 22 00 00 93 [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [04:02:08]RAPDU: 90 00 [04:02:08]wFMCommunicate OK [04:02:08]wFMCommunicate request_size=4 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 0D 03 02 [04:02:08]Write to MH i2c: E2 08 00 6A 13 80 0D 03 02 00 00 00 00 F8 [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 0B 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 0B 00 6A 13 00 DB C1 B5 81 E9 81 71 CD 90 00 73 [04:02:08]RAPDU: DB C1 B5 81 E9 81 71 CD 90 00 [04:02:08]wFMCommunicate OK [04:02:08]SAM_PROTO_SignData done [04:02:08]FM_MakeSignedData done [04:02:08]CreateOFDProtocolMessage [04:02:08]wFMCommunicate request_size=4 [04:02:08]MH_SAM_APDU [04:02:08]CAPDU: 80 11 00 00 [04:02:08]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:08]Read from MH i2c: E2 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 17 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 4A [04:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [04:02:08]wFMCommunicate OK [04:02:08]CreateOFDProtocolMessage done [04:02:08]OFDSenderStorePacket 15212 [04:02:08]StoreOFDPacket docnum=15212 [04:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 A6 6E 28 01 CA D1 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C1 09 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6C 3B 00 00 35 04 06 00 D0 B9 29 72 C9 22 DB C1 B5 81 E9 81 71 CD [04:02:08]CheckFolder [04:02:08]dirname=/storage/ofd_packets [04:02:08]CheckFolder done [04:02:08]ProducePacketName [04:02:08]name=ofd_packets/00015212 [04:02:08]NVStorageSaveData ofd_packets/00015212 [04:02:08]File name is /storage/ofd_packets/00015212 [04:02:08]Write 334 bytes [04:02:08]NVStorageSaveData done [04:02:08]OFDSenderStorePacket done [04:02:08]KKMCreateOFDPacket done [04:02:08]NVStorageSaveData kkm_last_timestamp [04:02:08]File name is /storage/kkm_last_timestamp [04:02:08]Write 4 bytes [04:02:08]NVStorageSaveData done [04:02:08]ExternCall_PrintAddStr [04:02:08]wPrintStart [04:02:08]Write to MH i2c: 01 00 00 6C 13 7F [04:02:08]Write i2c OK [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: 01 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: 01 07 00 [04:02:08]MH_I2C_Read... [04:02:08]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [04:02:08]RasterBufferAndPrint [04:02:08]line Счет N : (3)151253 [04:02:08]line ИНН: 02508201610067 [04:02:08]line Контрольно-Кассовый Чек [04:02:08]line ПРОДАЖА [04:02:08]line Товар: 6931280300549 [04:02:08]line Зажигалка Cricket ПН пьезо [04:02:08]line 1.000 * 67.00 [04:02:08]line = 67.00 [04:02:08]line НДС 12% НСП 1% [04:02:08]line > о реализуемом товаре [04:02:08]line ИТОГО: 67.00 [04:02:08]line НСП 1% : 0.59 [04:02:08]line НДС 12% : 7.11 [04:02:08]line Наличными: 67.00 [04:02:08]line Безнал.: 0.00 [04:02:08]line Место: АЗС № 135 "Партнер Нефть" [04:02:08]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [04:02:08]line СНО: Общий режим [04:02:08]line Чек 6 23.08.2024 04:02 [04:02:08]line Смена: 102 ФФД: 1.0 [04:02:08]line ЗНМ: 0300000144 [04:02:08]line РНМ: 0000000000162784 [04:02:08]line Версия ККМ: v1.0 [04:02:08]line ФМ: 0000000002094529 [04:02:08]line ФД: 15212 [04:02:08]line ФПД: 229493682915618 [04:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040209&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15212&fm=229493682915618&tin=02508201610067®Number=0000000000162784&sum=6700 [04:02:08]line 0 [04:02:08]OFD Sender: Processing packet 15212 [packets to send 8, broken 7] [04:02:08]ProducePacketName [04:02:08]name=ofd_packets/00015212 [04:02:08]OFD Sender: To server: pG, [04:02:08]CommunicateWithHost lk.salyk.kg:30040 [04:02:08]ConnectInit lk.salyk.kg [04:02:08]written 0, free lines is 4095 [04:02:09]Connected sock=10 [04:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 A6 6E 28 01 CA D1 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C1 09 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6C 3B 00 00 35 04 06 00 D0 B9 29 72 C9 22 DB C1 B5 81 E9 81 71 CD [04:02:09]Write to MH i2c: 01 00 00 94 13 A7 [04:02:09]Write i2c OK [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: 01 [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: 01 07 00 [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 FF 0C B9 [04:02:09]RasterBufferAndPrint [04:02:09]line [04:02:09]line [04:02:09]line [04:02:09]line [04:02:09]line [04:02:09]written 0, free lines is 3332 [04:02:09]MH_Cut [04:02:09]Write to MH i2c: D1 01 00 9B 13 01 80 [04:02:09]Write i2c OK [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: D1 [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: D1 01 00 [04:02:09]MH_I2C_Read... [04:02:09]Read from MH i2c: D1 01 00 9B 13 00 7F [04:02:09]Write to MH i2c: 01 00 00 9C 13 AF [04:02:09]Write i2c OK [04:02:09]MH_I2C_Read... [04:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 95 C7 47 00 AB 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6C 3B 00 00 F4 03 04 00 1E B4 C7 66 B6 04 01 00 00 95 93 DD FA 05 D9 17 31 [04:02:09]CommunicateWithHost err = 0 [04:02:09]CheckOFDResponse [04:02:09]1017 (14) - 77093643461234 [04:02:09]1041 (16) - 0000000002094529 [04:02:09]1040 (4) - 15212 [04:02:09]1012 (4) - 22.08.2024 21:56 [04:02:09]1206 (1) - 0 [04:02:09]OFD Sender: Remove packet 15212 [04:02:09]ProducePacketName [04:02:09]name=ofd_packets/00015212 [04:02:09]NVStorageDeleteData [04:02:10]OFD Sender: No OFD packet to send [04:02:10]*** Cut start [04:02:10]*** Partial cut [04:02:10]*** CUTSNS_PIN = 1 [04:02:10]*** CUTSNS_PIN = 0 [04:02:10]*** Brake cut motor [04:02:10]Read from MH i2c: 01 [04:02:10]MH_I2C_Read... [04:02:10]*** Stop cut motor [04:02:10]*** Cut end [04:02:10]Read from MH i2c: 01 07 00 [04:02:10]MH_I2C_Read... [04:02:10]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [04:02:10]process_action close_receipt done [04:02:10]requested_data is exist [04:02:10]produce_requested_data [04:02:10]requested_item fm.sn is exist - process it [04:02:10]wFMCommunicate request_size=4 [04:02:10]MH_SAM_APDU [04:02:10]CAPDU: 80 11 00 00 [04:02:10]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [04:02:10]Write i2c OK [04:02:10]MH_I2C_Read... [04:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:10]Read from MH i2c: E2 [04:02:10]MH_I2C_Read... [04:02:10]Read from MH i2c: E2 17 00 [04:02:10]MH_I2C_Read... [04:02:10]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 7C [04:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [04:02:10]wFMCommunicate OK [04:02:10]requested_item fd.num is exist - process it [04:02:10]SAM_PROTO_GetFieldsCounters [04:02:10]wFMCommunicate request_size=4 [04:02:10]MH_SAM_APDU [04:02:10]CAPDU: 80 13 00 00 [04:02:10]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [04:02:10]Write i2c OK [04:02:10]MH_I2C_Read... [04:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:02:10]Read from MH i2c: E2 [04:02:10]MH_I2C_Read... [04:02:10]Read from MH i2c: E2 62 00 [04:02:10]MH_I2C_Read... [04:02:10]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [04:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:02:10]wFMCommunicate OK [04:02:10]SAM_PROTO_GetFieldsCounters done [04:02:10]requested_item shift.num is exist - process it [04:02:10]requested_item shift.opened is exist - process it [04:02:10]req_shift_opened [04:02:10]FM_GetShiftState [04:02:10]SAM_PROTO_GetShiftState [04:02:10]wFMCommunicate request_size=4 [04:02:10]MH_SAM_APDU [04:02:10]CAPDU: 80 13 01 00 [04:02:10]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [04:02:10]Write i2c OK [04:02:10]MH_I2C_Read... [04:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:11]Read from MH i2c: E2 [04:02:11]MH_I2C_Read... [04:02:11]Read from MH i2c: E2 0E 00 [04:02:11]MH_I2C_Read... [04:02:11]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F3 [04:02:11]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [04:02:11]wFMCommunicate OK [04:02:11]SAM_PROTO_GetShiftState done [04:02:11]FM_GetShiftState done [04:02:11]req_shift_opened done [04:02:11]requested_item shift.open_date is exist - process it [04:02:11]req_shift_open_date [04:02:11]req_shift_open_date done [04:02:11]produce_requested_data done [04:02:11]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15212,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [04:02:11]process_action_free close_receipt [04:02:11]json_value_free [04:02:11]json_value_free done [04:02:11]process_json_proto returns [04:02:11]Send response to host [04:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15212,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [04:02:11]free response buf [04:02:11]execute_script done [04:02:11]execute_script returns [04:02:11]free content buf [04:02:11]Sock 9.Close socket [04:02:11]Sock 9.Thread stoped [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:16]accept exits with 8 [04:12:16]New connection [04:12:16]New thread 3066801508 created [04:12:16]Thread 3066944868 joined [04:12:16]Waiting for new connection... [04:12:16] Sock 8.Parse request [04:12:16]Sock 8.Check first char [04:12:16]Sock 8.First char is OK [04:12:16]request: POST /json_proto HTTP/1.0 [04:12:16]Method: POST [04:12:16]URL: /json_proto [04:12:16]Method is POST - this is cgi request [04:12:16]url: /json_proto [04:12:16]query_string will be loaded in cgi processing [04:12:16]execute_cgi json_proto POST (null) [04:12:16]execute_cgi path=json_proto method=POST [04:12:16]POST find Content-Length [04:12:16]Host: 172.17.44.4:8080 [04:12:16]Content-Length: 684 [04:12:16]Content-Type: application/json [04:12:16] [04:12:16]POST finish read [04:12:16]Found Content-Length = 684 [04:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151254", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:16]execute_script... [04:12:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151254", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:16]POST & json_proto [04:12:16]process_json_proto [04:12:16]json parsed OK: [04:12:16]protocol is kg_v1.0 [04:12:16]action value=close_receipt [04:12:16]process_action close_receipt [04:12:16]cmd_close_receipt [04:12:16]MH_GetDate [04:12:16]Write to MH i2c: F0 00 00 A0 13 A2 [04:12:16]Write i2c OK [04:12:16]MH_I2C_Read... [04:12:16]Read from MH i2c: F0 [04:12:16]MH_I2C_Read... [04:12:16]Read from MH i2c: F0 09 00 [04:12:16]MH_I2C_Read... [04:12:16]Read from MH i2c: F0 09 00 A0 13 00 23 0C C8 66 0F 81 47 66 45 [04:12:16]GetLastDocTimeStamp 1724385729 [04:12:16]current date 1724386339 [04:12:16]FM_GetShiftState [04:12:16]SAM_PROTO_GetShiftState [04:12:16]wFMCommunicate request_size=4 [04:12:16]MH_SAM_APDU [04:12:16]CAPDU: 80 13 01 00 [04:12:16]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [04:12:16]Write i2c OK [04:12:16]MH_I2C_Read... [04:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:16]Read from MH i2c: E2 [04:12:16]MH_I2C_Read... [04:12:16]Read from MH i2c: E2 0E 00 [04:12:16]MH_I2C_Read... [04:12:16]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F5 [04:12:16]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [04:12:16]wFMCommunicate OK [04:12:16]SAM_PROTO_GetShiftState done [04:12:16]FM_GetShiftState done [04:12:16]opened in 1724372406 [04:12:16]opened+sec_in_day 1724458806 [04:12:16]quantity*price = 6500 [04:12:16]sum+1 = 6501 [04:12:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 7 23.08.2024 04:12 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15213 ФПД: 79032251096270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T041219&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15213&fm=79032251096270&tin=02508201610067®Number=0000000000162784&sum=6500 0 [04:12:18]StoreToDocumentArchive [04:12:18]shift 102 fd 15213 [04:12:18]save to /storage/0102/doc_00015213 [04:12:18]save last doc name /storage/0102/doc_00015213 to /storage/kkm_last_doc_name [04:12:18]save OK [04:12:18]Clear old archive folders... [04:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=295 [04:12:18]tlvbuf is 004692E0 [04:12:18]SAM_PROTO_ClearQueue [04:12:18]wFMCommunicate request_size=4 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 09 00 00 [04:12:18]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [04:12:18]RAPDU: 90 00 [04:12:18]wFMCommunicate OK [04:12:18]SAM_PROTO_ClearQueue done [04:12:18]KKMCreateOFDPacket [04:12:18]OFDProtocolAddRootSTLVToBuf [04:12:18]FM_MakeSignedData [04:12:18]FM_MakeSignedData [04:12:18]SAM_PROTO_SignData [04:12:18]wFMCommunicate request_size=4 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 0D 01 02 [04:12:18]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [04:12:18]RAPDU: 90 00 [04:12:18]wFMCommunicate OK [04:12:18]wFMCommunicate request_size=255 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 23 0C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [04:12:18]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 23 0C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 26 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [04:12:18]RAPDU: 90 00 [04:12:18]wFMCommunicate OK [04:12:18]wFMCommunicate request_size=54 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6D 3B 00 00 35 04 06 00 47 E1 21 40 9C CE [04:12:18]Write to MH i2c: E2 39 00 B1 13 80 0D 02 02 31 00 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6D 3B 00 00 35 04 06 00 47 E1 21 40 9C CE 00 00 02 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [04:12:18]RAPDU: 90 00 [04:12:18]wFMCommunicate OK [04:12:18]wFMCommunicate request_size=4 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 0D 03 02 [04:12:18]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 0B 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 0B 00 B2 13 00 7C 07 24 5D EE BF 9F 7D 90 00 0E [04:12:18]RAPDU: 7C 07 24 5D EE BF 9F 7D 90 00 [04:12:18]wFMCommunicate OK [04:12:18]SAM_PROTO_SignData done [04:12:18]FM_MakeSignedData done [04:12:18]CreateOFDProtocolMessage [04:12:18]wFMCommunicate request_size=4 [04:12:18]MH_SAM_APDU [04:12:18]CAPDU: 80 11 00 00 [04:12:18]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:18]Read from MH i2c: E2 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 17 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 92 [04:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [04:12:18]wFMCommunicate OK [04:12:18]CreateOFDProtocolMessage done [04:12:18]OFDSenderStorePacket 15213 [04:12:18]StoreOFDPacket docnum=15213 [04:12:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3B 01 00 00 37 34 33 01 1F D1 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 23 0C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6D 3B 00 00 35 04 06 00 47 E1 21 40 9C CE 7C 07 24 5D EE BF 9F 7D [04:12:18]CheckFolder [04:12:18]dirname=/storage/ofd_packets [04:12:18]CheckFolder done [04:12:18]ProducePacketName [04:12:18]name=ofd_packets/00015213 [04:12:18]NVStorageSaveData ofd_packets/00015213 [04:12:18]File name is /storage/ofd_packets/00015213 [04:12:18]Write 345 bytes [04:12:18]NVStorageSaveData done [04:12:18]OFDSenderStorePacket done [04:12:18]KKMCreateOFDPacket done [04:12:18]NVStorageSaveData kkm_last_timestamp [04:12:18]File name is /storage/kkm_last_timestamp [04:12:18]Write 4 bytes [04:12:18]NVStorageSaveData done [04:12:18]ExternCall_PrintAddStr [04:12:18]wPrintStart [04:12:18]Write to MH i2c: 01 00 00 B4 13 C7 [04:12:18]Write i2c OK [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: 01 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: 01 07 00 [04:12:18]MH_I2C_Read... [04:12:18]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [04:12:18]RasterBufferAndPrint [04:12:18]line Счет N : (3)151254 [04:12:18]line ИНН: 02508201610067 [04:12:18]line Контрольно-Кассовый Чек [04:12:18]line ПРОДАЖА [04:12:18]line Товар: 5449000027450 [04:12:18]line Напиток FuzeTea чай манго,ром 0,5л [04:12:18]line 1.000 * 65.00 [04:12:18]line = 65.00 [04:12:18]line НДС 12% НСП 1% [04:12:18]line > о реализуемом товаре [04:12:18]line ИТОГО: 65.00 [04:12:18]line НСП 1% : 0.57 [04:12:18]line НДС 12% : 6.90 [04:12:18]line Наличными: 65.00 [04:12:18]line Безнал.: 0.00 [04:12:18]line Место: АЗС № 135 "Партнер Нефть" [04:12:18]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [04:12:18]line СНО: Общий режим [04:12:18]line Чек 7 23.08.2024 04:12 [04:12:18]line Смена: 102 ФФД: 1.0 [04:12:18]line ЗНМ: 0300000144 [04:12:18]line РНМ: 0000000000162784 [04:12:18]line Версия ККМ: v1.0 [04:12:18]line ФМ: 0000000002094529 [04:12:18]line ФД: 15213 [04:12:18]line ФПД: 79032251096270 [04:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T041219&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15213&fm=79032251096270&tin=02508201610067®Number=0000000000162784&sum=6500 [04:12:18]line 0 [04:12:18]OFD Sender: Processing packet 15213 [packets to send 8, broken 7] [04:12:18]ProducePacketName [04:12:18]name=ofd_packets/00015213 [04:12:18]OFD Sender: To server: pG, [04:12:18]CommunicateWithHost lk.salyk.kg:30040 [04:12:18]ConnectInit lk.salyk.kg [04:12:18]written 0, free lines is 4095 [04:12:19]Connected sock=10 [04:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3B 01 00 00 37 34 33 01 1F D1 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 23 0C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6D 3B 00 00 35 04 06 00 47 E1 21 40 9C CE 7C 07 24 5D EE BF 9F 7D [04:12:19]Write to MH i2c: 01 00 00 DD 13 F0 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 07 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 D3 0C D6 [04:12:19]RasterBufferAndPrint [04:12:19]line [04:12:19]line [04:12:19]line [04:12:19]line [04:12:19]line [04:12:19]written 0, free lines is 3293 [04:12:19]MH_Cut [04:12:19]Write to MH i2c: D1 01 00 E4 13 01 C9 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: D1 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: D1 01 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: D1 01 00 E4 13 00 C8 [04:12:19]Write to MH i2c: 01 00 00 E5 13 F8 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 A6 57 47 00 13 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6D 3B 00 00 F4 03 04 00 80 B6 C7 66 B6 04 01 00 00 10 BC 9C A3 3F 63 EF 80 [04:12:19]CommunicateWithHost err = 0 [04:12:19]CheckOFDResponse [04:12:19]1017 (14) - 77093643461234 [04:12:19]1041 (16) - 0000000002094529 [04:12:19]1040 (4) - 15213 [04:12:19]1012 (4) - 22.08.2024 22:06 [04:12:19]1206 (1) - 0 [04:12:19]OFD Sender: Remove packet 15213 [04:12:19]ProducePacketName [04:12:19]name=ofd_packets/00015213 [04:12:19]NVStorageDeleteData [04:12:20]OFD Sender: No OFD packet to send [04:12:20]*** Cut start [04:12:20]*** Partial cut [04:12:20]*** CUTSNS_PIN = 1 [04:12:20]*** CUTSNS_PIN = 0 [04:12:20]*** Brake cut motor [04:12:20]Read from MH i2c: 01 [04:12:20]MH_I2C_Read... [04:12:20]*** Stop cut motor [04:12:20]*** Cut end [04:12:20]Read from MH i2c: 01 07 00 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 FF 0F 0D [04:12:20]process_action close_receipt done [04:12:20]requested_data is exist [04:12:20]produce_requested_data [04:12:20]requested_item fm.sn is exist - process it [04:12:20]wFMCommunicate request_size=4 [04:12:20]MH_SAM_APDU [04:12:20]CAPDU: 80 11 00 00 [04:12:20]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [04:12:20]Write i2c OK [04:12:20]MH_I2C_Read... [04:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:20]Read from MH i2c: E2 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: E2 17 00 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: E2 17 00 E6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C5 [04:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [04:12:20]wFMCommunicate OK [04:12:20]requested_item fd.num is exist - process it [04:12:20]SAM_PROTO_GetFieldsCounters [04:12:20]wFMCommunicate request_size=4 [04:12:20]MH_SAM_APDU [04:12:20]CAPDU: 80 13 00 00 [04:12:20]Write to MH i2c: E2 08 00 E7 13 80 13 00 00 00 00 00 00 76 [04:12:20]Write i2c OK [04:12:20]MH_I2C_Read... [04:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:21]Read from MH i2c: E2 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 62 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 62 00 E7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [04:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:12:21]wFMCommunicate OK [04:12:21]SAM_PROTO_GetFieldsCounters done [04:12:21]requested_item shift.num is exist - process it [04:12:21]requested_item shift.opened is exist - process it [04:12:21]req_shift_opened [04:12:21]FM_GetShiftState [04:12:21]SAM_PROTO_GetShiftState [04:12:21]wFMCommunicate request_size=4 [04:12:21]MH_SAM_APDU [04:12:21]CAPDU: 80 13 01 00 [04:12:21]Write to MH i2c: E2 08 00 E8 13 80 13 01 00 00 00 00 00 78 [04:12:21]Write i2c OK [04:12:21]MH_I2C_Read... [04:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:21]Read from MH i2c: E2 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 0E 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 0E 00 E8 13 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 3C [04:12:21]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [04:12:21]wFMCommunicate OK [04:12:21]SAM_PROTO_GetShiftState done [04:12:21]FM_GetShiftState done [04:12:21]req_shift_opened done [04:12:21]requested_item shift.open_date is exist - process it [04:12:21]req_shift_open_date [04:12:21]req_shift_open_date done [04:12:21]produce_requested_data done [04:12:21]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15213,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [04:12:21]process_action_free close_receipt [04:12:21]json_value_free [04:12:21]json_value_free done [04:12:21]process_json_proto returns [04:12:21]Send response to host [04:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15213,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [04:12:21]free response buf [04:12:21]execute_script done [04:12:21]execute_script returns [04:12:21]free content buf [04:12:21]Sock 8.Close socket [04:12:21]Sock 8.Thread stoped [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:00]accept exits with 9 [05:13:00]New connection [05:13:00]New thread 3066944868 created [05:13:00]Thread 3066801508 joined [05:13:00]Waiting for new connection... [05:13:00] Sock 9.Parse request [05:13:00]Sock 9.Check first char [05:13:00]Sock 9.First char is OK [05:13:00]request: POST /json_proto HTTP/1.0 [05:13:00]Method: POST [05:13:00]URL: /json_proto [05:13:00]Method is POST - this is cgi request [05:13:00]url: /json_proto [05:13:00]query_string will be loaded in cgi processing [05:13:00]execute_cgi json_proto POST (null) [05:13:00]execute_cgi path=json_proto method=POST [05:13:00]POST find Content-Length [05:13:00]Host: 172.17.44.4:8080 [05:13:00]Content-Length: 630 [05:13:00]Content-Type: application/json [05:13:00] [05:13:00]POST finish read [05:13:00]Found Content-Length = 630 [05:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151255", "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" ] } } [05:13:00]execute_script... [05:13: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)151255", "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" ] } } [05:13:00]POST & json_proto [05:13:00]process_json_proto [05:13:00]json parsed OK: [05:13:00]protocol is kg_v1.0 [05:13:00]action value=close_receipt [05:13:00]process_action close_receipt [05:13:00]cmd_close_receipt [05:13:00]MH_GetDate [05:13:00]Write to MH i2c: F0 00 00 E9 13 EB [05:13:00]Write i2c OK [05:13:00]MH_I2C_Read... [05:13:00]Read from MH i2c: F0 [05:13:00]MH_I2C_Read... [05:13:00]Read from MH i2c: F0 09 00 [05:13:00]MH_I2C_Read... [05:13:00]Read from MH i2c: F0 09 00 E9 13 00 5F 1A C8 66 0F 81 47 66 D8 [05:13:00]GetLastDocTimeStamp 1724386339 [05:13:00]current date 1724389983 [05:13:00]FM_GetShiftState [05:13:00]SAM_PROTO_GetShiftState [05:13:00]wFMCommunicate request_size=4 [05:13:00]MH_SAM_APDU [05:13:00]CAPDU: 80 13 01 00 [05:13:00]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [05:13:00]Write i2c OK [05:13:00]MH_I2C_Read... [05:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:00]Read from MH i2c: E2 [05:13:00]MH_I2C_Read... [05:13:00]Read from MH i2c: E2 0E 00 [05:13:00]MH_I2C_Read... [05:13:00]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 3E [05:13:00]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [05:13:00]wFMCommunicate OK [05:13:00]SAM_PROTO_GetShiftState done [05:13:00]FM_GetShiftState done [05:13:00]opened in 1724372406 [05:13:00]opened+sec_in_day 1724458806 [05:13:00]quantity*price = 5000 [05:13:00]sum+1 = 5001 [05:13:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 8 23.08.2024 05:13 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15214 ФПД: 116583369665470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051303&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15214&fm=116583369665470&tin=02508201610067®Number=0000000000162784&sum=5000 0 [05:13:01]StoreToDocumentArchive [05:13:01]shift 102 fd 15214 [05:13:01]save to /storage/0102/doc_00015214 [05:13:01]save last doc name /storage/0102/doc_00015214 to /storage/kkm_last_doc_name [05:13:01]save OK [05:13:01]Clear old archive folders... [05:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [05:13:01]tlvbuf is 00459840 [05:13:01]SAM_PROTO_ClearQueue [05:13:01]wFMCommunicate request_size=4 [05:13:01]MH_SAM_APDU [05:13:01]CAPDU: 80 09 00 00 [05:13:01]Write to MH i2c: E2 08 00 F7 13 80 09 00 00 00 00 00 00 7C [05:13:01]Write i2c OK [05:13:01]MH_I2C_Read... [05:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:01]Read from MH i2c: E2 [05:13:01]MH_I2C_Read... [05:13:01]Read from MH i2c: E2 03 00 [05:13:01]MH_I2C_Read... [05:13:01]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [05:13:01]RAPDU: 90 00 [05:13:01]wFMCommunicate OK [05:13:01]SAM_PROTO_ClearQueue done [05:13:01]KKMCreateOFDPacket [05:13:01]OFDProtocolAddRootSTLVToBuf [05:13:01]FM_MakeSignedData [05:13:01]FM_MakeSignedData [05:13:01]SAM_PROTO_SignData [05:13:01]wFMCommunicate request_size=4 [05:13:01]MH_SAM_APDU [05:13:01]CAPDU: 80 0D 01 02 [05:13:01]Write to MH i2c: E2 08 00 F8 13 80 0D 01 02 00 00 00 00 84 [05:13:01]Write i2c OK [05:13:01]MH_I2C_Read... [05:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:01]Read from MH i2c: E2 [05:13:01]MH_I2C_Read... [05:13:01]Read from MH i2c: E2 03 00 [05:13:01]MH_I2C_Read... [05:13:01]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [05:13:01]RAPDU: 90 00 [05:13:01]wFMCommunicate OK [05:13:01]wFMCommunicate request_size=255 [05:13:01]MH_SAM_APDU [05:13:01]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 08 00 00 00 F4 03 04 00 5F 1A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [05:13:01]Write to MH i2c: E2 02 01 F9 13 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 08 00 00 00 F4 03 04 00 5F 1A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 AD [05:13:01]Write i2c OK [05:13:01]MH_I2C_Read... [05:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:02]Read from MH i2c: E2 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 03 00 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [05:13:02]RAPDU: 90 00 [05:13:02]wFMCommunicate OK [05:13:02]wFMCommunicate request_size=28 [05:13:02]MH_SAM_APDU [05:13:02]CAPDU: 80 0D 02 02 17 39 34 35 32 39 10 04 04 00 6E 3B 00 00 35 04 06 00 6A 08 2E 55 EB BE [05:13:02]Write to MH i2c: E2 1F 00 FA 13 80 0D 02 02 17 00 39 34 35 32 39 10 04 04 00 6E 3B 00 00 35 04 06 00 6A 08 2E 55 EB BE 00 00 60 [05:13:02]Write i2c OK [05:13:02]MH_I2C_Read... [05:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:02]Read from MH i2c: E2 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 03 00 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [05:13:02]RAPDU: 90 00 [05:13:02]wFMCommunicate OK [05:13:02]wFMCommunicate request_size=4 [05:13:02]MH_SAM_APDU [05:13:02]CAPDU: 80 0D 03 02 [05:13:02]Write to MH i2c: E2 08 00 FB 13 80 0D 03 02 00 00 00 00 89 [05:13:02]Write i2c OK [05:13:02]MH_I2C_Read... [05:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:02]Read from MH i2c: E2 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 0B 00 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 0B 00 FB 13 00 AD 28 66 FF B3 FC E5 3A 90 00 92 [05:13:02]RAPDU: AD 28 66 FF B3 FC E5 3A 90 00 [05:13:02]wFMCommunicate OK [05:13:02]SAM_PROTO_SignData done [05:13:02]FM_MakeSignedData done [05:13:02]CreateOFDProtocolMessage [05:13:02]wFMCommunicate request_size=4 [05:13:02]MH_SAM_APDU [05:13:02]CAPDU: 80 11 00 00 [05:13:02]Write to MH i2c: E2 08 00 FC 13 80 11 00 00 00 00 00 00 89 [05:13:02]Write i2c OK [05:13:02]MH_I2C_Read... [05:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:02]Read from MH i2c: E2 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 17 00 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: E2 17 00 FC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 DB [05:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [05:13:02]wFMCommunicate OK [05:13:02]CreateOFDProtocolMessage done [05:13:02]OFDSenderStorePacket 15214 [05:13:02]StoreOFDPacket docnum=15214 [05:13:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 21 01 00 00 28 49 19 01 47 38 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 08 00 00 00 F4 03 04 00 5F 1A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6E 3B 00 00 35 04 06 00 6A 08 2E 55 EB BE AD 28 66 FF B3 FC E5 3A [05:13:02]CheckFolder [05:13:02]dirname=/storage/ofd_packets [05:13:02]CheckFolder done [05:13:02]ProducePacketName [05:13:02]name=ofd_packets/00015214 [05:13:02]NVStorageSaveData ofd_packets/00015214 [05:13:02]File name is /storage/ofd_packets/00015214 [05:13:02]Write 319 bytes [05:13:02]NVStorageSaveData done [05:13:02]OFDSenderStorePacket done [05:13:02]KKMCreateOFDPacket done [05:13:02]NVStorageSaveData kkm_last_timestamp [05:13:02]File name is /storage/kkm_last_timestamp [05:13:02]Write 4 bytes [05:13:02]NVStorageSaveData done [05:13:02]ExternCall_PrintAddStr [05:13:02]wPrintStart [05:13:02]Write to MH i2c: 01 00 00 FD 13 10 [05:13:02]Write i2c OK [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: 01 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: 01 07 00 [05:13:02]MH_I2C_Read... [05:13:02]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [05:13:02]RasterBufferAndPrint [05:13:02]line Счет N : (3)151255 [05:13:02]line ИНН: 02508201610067 [05:13:02]line Контрольно-Кассовый Чек [05:13:02]line ПРОДАЖА [05:13:02]line Товар: 4700000160358 [05:13:02]line Вода Легенда 1л [05:13:02]line 1.000 * 50.00 [05:13:02]line = 50.00 [05:13:02]line НДС 12% НСП 1% [05:13:02]line > о реализуемом товаре [05:13:02]line ИТОГО: 50.00 [05:13:02]line НСП 1% : 0.44 [05:13:02]line НДС 12% : 5.31 [05:13:02]line Наличными: 50.00 [05:13:02]line Безнал.: 0.00 [05:13:02]line Место: АЗС № 135 "Партнер Нефть" [05:13:02]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [05:13:02]line СНО: Общий режим [05:13:02]line Чек 8 23.08.2024 05:13 [05:13:02]line Смена: 102 ФФД: 1.0 [05:13:02]line ЗНМ: 0300000144 [05:13:02]line РНМ: 0000000000162784 [05:13:02]line Версия ККМ: v1.0 [05:13:02]line ФМ: 0000000002094529 [05:13:02]line ФД: 15214 [05:13:02]line ФПД: 116583369665470 [05:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051303&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15214&fm=116583369665470&tin=02508201610067®Number=0000000000162784&sum=5000 [05:13:02]line 0 [05:13:02]OFD Sender: Processing packet 15214 [packets to send 8, broken 7] [05:13:02]ProducePacketName [05:13:02]name=ofd_packets/00015214 [05:13:02]OFD Sender: To server: pG, [05:13:02]CommunicateWithHost lk.salyk.kg:30040 [05:13:02]ConnectInit lk.salyk.kg [05:13:02]written 0, free lines is 4095 [05:13:02]Connected sock=8 [05:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 21 01 00 00 28 49 19 01 47 38 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 08 00 00 00 F4 03 04 00 5F 1A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6E 3B 00 00 35 04 06 00 6A 08 2E 55 EB BE AD 28 66 FF B3 FC E5 3A [05:13:03]Write to MH i2c: 01 00 00 25 14 39 [05:13:03]Write i2c OK [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: 01 [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: 01 07 00 [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 FE 0C 4A [05:13:03]RasterBufferAndPrint [05:13:03]line [05:13:03]line [05:13:03]line [05:13:03]line [05:13:03]line [05:13:03]written 0, free lines is 3332 [05:13:03]MH_Cut [05:13:03]Write to MH i2c: D1 01 00 2C 14 01 12 [05:13:03]Write i2c OK [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: D1 [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: D1 01 00 [05:13:03]MH_I2C_Read... [05:13:03]Read from MH i2c: D1 01 00 2C 14 00 11 [05:13:03]Write to MH i2c: 01 00 00 2D 14 41 [05:13:03]Write i2c OK [05:13:03]MH_I2C_Read... [05:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 47 5D 47 00 34 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6E 3B 00 00 F4 03 04 00 BB C4 C7 66 B6 04 01 00 00 FE B2 B2 0D D7 44 1E 76 [05:13:03]CommunicateWithHost err = 0 [05:13:03]CheckOFDResponse [05:13:03]1017 (14) - 77093643461234 [05:13:03]1041 (16) - 0000000002094529 [05:13:03]1040 (4) - 15214 [05:13:03]1012 (4) - 22.08.2024 23:07 [05:13:03]1206 (1) - 0 [05:13:03]OFD Sender: Remove packet 15214 [05:13:03]ProducePacketName [05:13:03]name=ofd_packets/00015214 [05:13:03]NVStorageDeleteData [05:13:03]OFD Sender: No OFD packet to send [05:13:03]*** Cut start [05:13:03]*** Partial cut [05:13:03]*** CUTSNS_PIN = 1 [05:13:03]*** CUTSNS_PIN = 0 [05:13:04]*** Brake cut motor [05:13:04]Read from MH i2c: 01 [05:13:04]MH_I2C_Read... [05:13:04]*** Stop cut motor [05:13:04]*** Cut end [05:13:04]Read from MH i2c: 01 07 00 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 FF 0F 56 [05:13:04]process_action close_receipt done [05:13:04]requested_data is exist [05:13:04]produce_requested_data [05:13:04]requested_item fm.sn is exist - process it [05:13:04]wFMCommunicate request_size=4 [05:13:04]MH_SAM_APDU [05:13:04]CAPDU: 80 11 00 00 [05:13:04]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [05:13:04]Write i2c OK [05:13:04]MH_I2C_Read... [05:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:04]Read from MH i2c: E2 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 17 00 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 0E [05:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [05:13:04]wFMCommunicate OK [05:13:04]requested_item fd.num is exist - process it [05:13:04]SAM_PROTO_GetFieldsCounters [05:13:04]wFMCommunicate request_size=4 [05:13:04]MH_SAM_APDU [05:13:04]CAPDU: 80 13 00 00 [05:13:04]Write to MH i2c: E2 08 00 2F 14 80 13 00 00 00 00 00 00 BF [05:13:04]Write i2c OK [05:13:04]MH_I2C_Read... [05:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:04]Read from MH i2c: E2 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 62 00 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 62 00 2F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [05:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:13:04]wFMCommunicate OK [05:13:04]SAM_PROTO_GetFieldsCounters done [05:13:04]requested_item shift.num is exist - process it [05:13:04]requested_item shift.opened is exist - process it [05:13:04]req_shift_opened [05:13:04]FM_GetShiftState [05:13:04]SAM_PROTO_GetShiftState [05:13:04]wFMCommunicate request_size=4 [05:13:04]MH_SAM_APDU [05:13:04]CAPDU: 80 13 01 00 [05:13:04]Write to MH i2c: E2 08 00 30 14 80 13 01 00 00 00 00 00 C1 [05:13:04]Write i2c OK [05:13:04]MH_I2C_Read... [05:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:04]Read from MH i2c: E2 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 0E 00 [05:13:04]MH_I2C_Read... [05:13:04]Read from MH i2c: E2 0E 00 30 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 85 [05:13:04]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [05:13:04]wFMCommunicate OK [05:13:04]SAM_PROTO_GetShiftState done [05:13:04]FM_GetShiftState done [05:13:04]req_shift_opened done [05:13:04]requested_item shift.open_date is exist - process it [05:13:04]req_shift_open_date [05:13:04]req_shift_open_date done [05:13:04]produce_requested_data done [05:13:04]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15214,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [05:13:04]process_action_free close_receipt [05:13:04]json_value_free [05:13:04]json_value_free done [05:13:04]process_json_proto returns [05:13:04]Send response to host [05:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15214,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [05:13:04]free response buf [05:13:04]execute_script done [05:13:04]execute_script returns [05:13:04]free content buf [05:13:04]Sock 9.Close socket [05:13:04]Sock 9.Thread stoped [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40: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:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:04]recv_with_timeout no data received [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:10]accept exits with 10 [07:12:10]New connection [07:12:10]New thread 3066801508 created [07:12:10]Thread 3066944868 joined [07:12:10]Waiting for new connection... [07:12:10] Sock 10.Parse request [07:12:10]Sock 10.Check first char [07:12:10]Sock 10.First char is OK [07:12:10]request: POST /json_proto HTTP/1.0 [07:12:10]Method: POST [07:12:10]URL: /json_proto [07:12:10]Method is POST - this is cgi request [07:12:10]url: /json_proto [07:12:10]query_string will be loaded in cgi processing [07:12:10]execute_cgi json_proto POST (null) [07:12:10]execute_cgi path=json_proto method=POST [07:12:10]POST find Content-Length [07:12:10]Host: 172.17.44.4:8080 [07:12:10]Content-Length: 622 [07:12:10]Content-Type: application/json [07:12:10] [07:12:10]POST finish read [07:12:10]Found Content-Length = 622 [07:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151256", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:10]execute_script... [07:12: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)151256", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:10]POST & json_proto [07:12:10]process_json_proto [07:12:10]json parsed OK: [07:12:10]protocol is kg_v1.0 [07:12:10]action value=close_receipt [07:12:10]process_action close_receipt [07:12:10]cmd_close_receipt [07:12:10]MH_GetDate [07:12:10]Write to MH i2c: F0 00 00 31 14 34 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 09 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 09 00 31 14 00 4D 36 C8 66 0F 81 47 66 2B [07:12:10]GetLastDocTimeStamp 1724389983 [07:12:10]current date 1724397133 [07:12:10]FM_GetShiftState [07:12:10]SAM_PROTO_GetShiftState [07:12:10]wFMCommunicate request_size=4 [07:12:10]MH_SAM_APDU [07:12:10]CAPDU: 80 13 01 00 [07:12:10]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:10]Read from MH i2c: E2 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 0E 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 87 [07:12:10]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:12:10]wFMCommunicate OK [07:12:10]SAM_PROTO_GetShiftState done [07:12:10]FM_GetShiftState done [07:12:10]opened in 1724372406 [07:12:10]opened+sec_in_day 1724458806 [07:12:10]quantity*price = 15600 [07:12:10]sum+1 = 15601 [07:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 9 23.08.2024 07:12 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15215 ФПД: 26289482478192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071213&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15215&fm=26289482478192&tin=02508201610067®Number=0000000000162784&sum=15600 0 [07:12:11]StoreToDocumentArchive [07:12:11]shift 102 fd 15215 [07:12:11]save to /storage/0102/doc_00015215 [07:12:11]save last doc name /storage/0102/doc_00015215 to /storage/kkm_last_doc_name [07:12:11]save OK [07:12:11]Clear old archive folders... [07:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:12:11]tlvbuf is 00468CF0 [07:12:11]SAM_PROTO_ClearQueue [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 09 00 00 [07:12:11]Write to MH i2c: E2 08 00 3F 14 80 09 00 00 00 00 00 00 C5 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_ClearQueue done [07:12:11]KKMCreateOFDPacket [07:12:11]OFDProtocolAddRootSTLVToBuf [07:12:11]FM_MakeSignedData [07:12:11]FM_MakeSignedData [07:12:11]SAM_PROTO_SignData [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 01 02 [07:12:11]Write to MH i2c: E2 08 00 40 14 80 0D 01 02 00 00 00 00 CD [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 40 14 00 90 00 C8 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=255 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 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 09 00 00 00 F4 03 04 00 4D 36 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 [07:12:11]Write to MH i2c: E2 02 01 41 14 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 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 09 00 00 00 F4 03 04 00 4D 36 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 00 00 CB [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=33 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6F 3B 00 00 35 04 06 00 17 E8 FF 43 B2 70 [07:12:11]Write to MH i2c: E2 24 00 42 14 80 0D 02 02 1C 00 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6F 3B 00 00 35 04 06 00 17 E8 FF 43 B2 70 00 00 6B [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:12]Read from MH i2c: E2 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 03 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [07:12:12]RAPDU: 90 00 [07:12:12]wFMCommunicate OK [07:12:12]wFMCommunicate request_size=4 [07:12:12]MH_SAM_APDU [07:12:12]CAPDU: 80 0D 03 02 [07:12:12]Write to MH i2c: E2 08 00 43 14 80 0D 03 02 00 00 00 00 D2 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:12]Read from MH i2c: E2 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 0B 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 0B 00 43 14 00 98 C7 DE 70 97 58 32 63 90 00 04 [07:12:12]RAPDU: 98 C7 DE 70 97 58 32 63 90 00 [07:12:12]wFMCommunicate OK [07:12:12]SAM_PROTO_SignData done [07:12:12]FM_MakeSignedData done [07:12:12]CreateOFDProtocolMessage [07:12:12]wFMCommunicate request_size=4 [07:12:12]MH_SAM_APDU [07:12:12]CAPDU: 80 11 00 00 [07:12:12]Write to MH i2c: E2 08 00 44 14 80 11 00 00 00 00 00 00 D2 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:12]Read from MH i2c: E2 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 17 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 17 00 44 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 24 [07:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:12:12]wFMCommunicate OK [07:12:12]CreateOFDProtocolMessage done [07:12:12]OFDSenderStorePacket 15215 [07:12:12]StoreOFDPacket docnum=15215 [07:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 26 01 00 00 BE 95 1E 01 D7 E3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 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 09 00 00 00 F4 03 04 00 4D 36 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6F 3B 00 00 35 04 06 00 17 E8 FF 43 B2 70 98 C7 DE 70 97 58 32 63 [07:12:12]CheckFolder [07:12:12]dirname=/storage/ofd_packets [07:12:12]CheckFolder done [07:12:12]ProducePacketName [07:12:12]name=ofd_packets/00015215 [07:12:12]NVStorageSaveData ofd_packets/00015215 [07:12:12]File name is /storage/ofd_packets/00015215 [07:12:12]Write 324 bytes [07:12:12]NVStorageSaveData done [07:12:12]OFDSenderStorePacket done [07:12:12]KKMCreateOFDPacket done [07:12:12]NVStorageSaveData kkm_last_timestamp [07:12:12]File name is /storage/kkm_last_timestamp [07:12:12]Write 4 bytes [07:12:12]NVStorageSaveData done [07:12:12]ExternCall_PrintAddStr [07:12:12]wPrintStart [07:12:12]Write to MH i2c: 01 00 00 45 14 59 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 45 14 00 00 00 00 00 FF 0F 6E [07:12:12]RasterBufferAndPrint [07:12:12]line Счет N : (3)151256 [07:12:12]line ИНН: 02508201610067 [07:12:12]line Контрольно-Кассовый Чек [07:12:12]line ПРОДАЖА [07:12:12]line Товар: 48741958 [07:12:12]line Сигареты Parliament Aqua Blue [07:12:12]line 1.000 * 156.00 [07:12:12]line = 156.00 [07:12:12]line НДС 12% НСП 1% [07:12:12]line > о реализуемом товаре [07:12:12]line ИТОГО: 156.00 [07:12:12]line НСП 1% : 1.38 [07:12:12]line НДС 12% : 16.57 [07:12:12]line Наличными: 156.00 [07:12:12]line Безнал.: 0.00 [07:12:12]line Место: АЗС № 135 "Партнер Нефть" [07:12:12]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [07:12:12]line СНО: Общий режим [07:12:12]line Чек 9 23.08.2024 07:12 [07:12:12]line Смена: 102 ФФД: 1.0 [07:12:12]line ЗНМ: 0300000144 [07:12:12]line РНМ: 0000000000162784 [07:12:12]line Версия ККМ: v1.0 [07:12:12]line ФМ: 0000000002094529 [07:12:12]line ФД: 15215 [07:12:12]line ФПД: 26289482478192 [07:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071213&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15215&fm=26289482478192&tin=02508201610067®Number=0000000000162784&sum=15600 [07:12:12]line 0 [07:12:12]OFD Sender: Processing packet 15215 [packets to send 8, broken 7] [07:12:12]ProducePacketName [07:12:12]name=ofd_packets/00015215 [07:12:12]OFD Sender: To server: pG, [07:12:12]CommunicateWithHost lk.salyk.kg:30040 [07:12:12]ConnectInit lk.salyk.kg [07:12:12]written 0, free lines is 4095 [07:12:12]Connected sock=9 [07:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 26 01 00 00 BE 95 1E 01 D7 E3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 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 09 00 00 00 F4 03 04 00 4D 36 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6F 3B 00 00 35 04 06 00 17 E8 FF 43 B2 70 98 C7 DE 70 97 58 32 63 [07:12:12]Write to MH i2c: 01 00 00 6E 14 82 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 6E 14 00 00 00 00 00 D4 0C 69 [07:12:12]RasterBufferAndPrint [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]written 0, free lines is 3289 [07:12:12]MH_Cut [07:12:12]Write to MH i2c: D1 01 00 75 14 01 5B [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 75 14 00 5A [07:12:12]Write to MH i2c: 01 00 00 76 14 8A [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 FF 10 47 00 A6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 6F 3B 00 00 F4 03 04 00 A9 E0 C7 66 B6 04 01 00 00 DE F9 4C E7 A4 A1 D7 06 [07:12:12]CommunicateWithHost err = 0 [07:12:12]CheckOFDResponse [07:12:12]1017 (14) - 77093643461234 [07:12:12]1041 (16) - 0000000002094529 [07:12:12]1040 (4) - 15215 [07:12:12]1012 (4) - 23.08.2024 01:06 [07:12:12]1206 (1) - 0 [07:12:12]OFD Sender: Remove packet 15215 [07:12:12]ProducePacketName [07:12:12]name=ofd_packets/00015215 [07:12:12]NVStorageDeleteData [07:12:13]OFD Sender: No OFD packet to send [07:12:13]*** Cut start [07:12:13]*** Partial cut [07:12:13]*** CUTSNS_PIN = 1 [07:12:13]*** CUTSNS_PIN = 0 [07:12:13]*** Brake cut motor [07:12:14]Read from MH i2c: 01 [07:12:14]MH_I2C_Read... [07:12:14]*** Stop cut motor [07:12:14]*** Cut end [07:12:14]Read from MH i2c: 01 07 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 76 14 00 00 00 00 00 FF 0F 9F [07:12:14]process_action close_receipt done [07:12:14]requested_data is exist [07:12:14]produce_requested_data [07:12:14]requested_item fm.sn is exist - process it [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 11 00 00 [07:12:14]Write to MH i2c: E2 08 00 77 14 80 11 00 00 00 00 00 00 05 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 77 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 57 [07:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:12:14]wFMCommunicate OK [07:12:14]requested_item fd.num is exist - process it [07:12:14]SAM_PROTO_GetFieldsCounters [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 13 00 00 [07:12:14]Write to MH i2c: E2 08 00 78 14 80 13 00 00 00 00 00 00 08 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 62 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 62 00 78 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [07:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 6F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:14]wFMCommunicate OK [07:12:14]SAM_PROTO_GetFieldsCounters done [07:12:14]requested_item shift.num is exist - process it [07:12:14]requested_item shift.opened is exist - process it [07:12:14]req_shift_opened [07:12:14]FM_GetShiftState [07:12:14]SAM_PROTO_GetShiftState [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 13 01 00 [07:12:14]Write to MH i2c: E2 08 00 79 14 80 13 01 00 00 00 00 00 0A [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 0E 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 0E 00 79 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CE [07:12:14]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:12:14]wFMCommunicate OK [07:12:14]SAM_PROTO_GetShiftState done [07:12:14]FM_GetShiftState done [07:12:14]req_shift_opened done [07:12:14]requested_item shift.open_date is exist - process it [07:12:14]req_shift_open_date [07:12:14]req_shift_open_date done [07:12:14]produce_requested_data done [07:12:14]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15215,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [07:12:14]process_action_free close_receipt [07:12:14]json_value_free [07:12:14]json_value_free done [07:12:14]process_json_proto returns [07:12:14]Send response to host [07:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15215,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [07:12:14]free response buf [07:12:14]execute_script done [07:12:14]execute_script returns [07:12:14]free content buf [07:12:14]Sock 10.Close socket [07:12:14]Sock 10.Thread stoped [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28: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]accept exits with 8 [07:32:19]New connection [07:32:19]New thread 3066944868 created [07:32:19]Thread 3066801508 joined [07:32:19]Waiting for new connection... [07:32:19] Sock 8.Parse request [07:32:19]Sock 8.Check first char [07:32:19]Sock 8.First char is OK [07:32:19]request: POST /json_proto HTTP/1.0 [07:32:19]Method: POST [07:32:19]URL: /json_proto [07:32:19]Method is POST - this is cgi request [07:32:19]url: /json_proto [07:32:19]query_string will be loaded in cgi processing [07:32:19]execute_cgi json_proto POST (null) [07:32:19]execute_cgi path=json_proto method=POST [07:32:19]POST find Content-Length [07:32:19]Host: 172.17.44.4:8080 [07:32:19]Content-Length: 801 [07:32:19]Content-Type: application/json [07:32:19] [07:32:19]POST finish read [07:32:19]Found Content-Length = 801 [07:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:19]execute_script... [07:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:19]POST & json_proto [07:32:19]process_json_proto [07:32:19]json parsed OK: [07:32:19]protocol is kg_v1.0 [07:32:19]action value=close_receipt [07:32:19]process_action close_receipt [07:32:19]cmd_close_receipt [07:32:19]MH_GetDate [07:32:19]Write to MH i2c: F0 00 00 7A 14 7D [07:32:19]Write i2c OK [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: F0 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: F0 09 00 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: F0 09 00 7A 14 00 06 3B C8 66 0F 81 47 66 32 [07:32:19]GetLastDocTimeStamp 1724397133 [07:32:19]current date 1724398342 [07:32:19]FM_GetShiftState [07:32:19]SAM_PROTO_GetShiftState [07:32:19]wFMCommunicate request_size=4 [07:32:19]MH_SAM_APDU [07:32:19]CAPDU: 80 13 01 00 [07:32:19]Write to MH i2c: E2 08 00 7B 14 80 13 01 00 00 00 00 00 0C [07:32:19]Write i2c OK [07:32:19]MH_I2C_Read... [07:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:19]Read from MH i2c: E2 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: E2 0E 00 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: E2 0E 00 7B 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D0 [07:32:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:32:19]wFMCommunicate OK [07:32:19]SAM_PROTO_GetShiftState done [07:32:19]FM_GetShiftState done [07:32:19]opened in 1724372406 [07:32:19]opened+sec_in_day 1724458806 [07:32:19]quantity*price = 50010 [07:32:19]sum+1 = 50012 [07:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 10 23.08.2024 07:32 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15216 ФПД: 2692211208693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T073222&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15216&fm=2692211208693&tin=02508201610067®Number=0000000000162784&sum=50011 [07:32:20]StoreToDocumentArchive [07:32:20]shift 102 fd 15216 [07:32:20]save to /storage/0102/doc_00015216 [07:32:20]save last doc name /storage/0102/doc_00015216 to /storage/kkm_last_doc_name [07:32:20]save OK [07:32:20]Clear old archive folders... [07:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:20]tlvbuf is B6EA6B80 [07:32:20]SAM_PROTO_ClearQueue [07:32:20]wFMCommunicate request_size=4 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 09 00 00 [07:32:20]Write to MH i2c: E2 08 00 88 14 80 09 00 00 00 00 00 00 0E [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [07:32:20]RAPDU: 90 00 [07:32:20]wFMCommunicate OK [07:32:20]SAM_PROTO_ClearQueue done [07:32:20]KKMCreateOFDPacket [07:32:20]OFDProtocolAddRootSTLVToBuf [07:32:20]FM_MakeSignedData [07:32:20]FM_MakeSignedData [07:32:20]SAM_PROTO_SignData [07:32:20]wFMCommunicate request_size=4 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 0D 01 02 [07:32:20]Write to MH i2c: E2 08 00 89 14 80 0D 01 02 00 00 00 00 16 [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [07:32:20]RAPDU: 90 00 [07:32:20]wFMCommunicate OK [07:32:20]wFMCommunicate request_size=255 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 3B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 70 3B 00 00 35 04 06 00 02 [07:32:20]Write to MH i2c: E2 02 01 8A 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 3B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 70 3B 00 00 35 04 06 00 02 00 00 21 [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 8A 14 00 90 00 12 [07:32:20]RAPDU: 90 00 [07:32:20]wFMCommunicate OK [07:32:20]wFMCommunicate request_size=10 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 0D 02 02 05 72 D4 4A F1 F5 [07:32:20]Write to MH i2c: E2 0D 00 8B 14 80 0D 02 02 05 00 72 D4 4A F1 F5 00 00 99 [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [07:32:20]RAPDU: 90 00 [07:32:20]wFMCommunicate OK [07:32:20]wFMCommunicate request_size=4 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 0D 03 02 [07:32:20]Write to MH i2c: E2 08 00 8C 14 80 0D 03 02 00 00 00 00 1B [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 0B 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 0B 00 8C 14 00 23 21 E1 3E 27 C6 8A 77 90 00 6D [07:32:20]RAPDU: 23 21 E1 3E 27 C6 8A 77 90 00 [07:32:20]wFMCommunicate OK [07:32:20]SAM_PROTO_SignData done [07:32:20]FM_MakeSignedData done [07:32:20]CreateOFDProtocolMessage [07:32:20]wFMCommunicate request_size=4 [07:32:20]MH_SAM_APDU [07:32:20]CAPDU: 80 11 00 00 [07:32:20]Write to MH i2c: E2 08 00 8D 14 80 11 00 00 00 00 00 00 1B [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:20]Read from MH i2c: E2 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 17 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: E2 17 00 8D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 6D [07:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:32:20]wFMCommunicate OK [07:32:20]CreateOFDProtocolMessage done [07:32:20]OFDSenderStorePacket 15216 [07:32:20]StoreOFDPacket docnum=15216 [07:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 81 19 07 01 0F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 3B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 70 3B 00 00 35 04 06 00 02 72 D4 4A F1 F5 23 21 E1 3E 27 C6 8A 77 [07:32:20]CheckFolder [07:32:20]dirname=/storage/ofd_packets [07:32:20]CheckFolder done [07:32:20]ProducePacketName [07:32:20]name=ofd_packets/00015216 [07:32:20]NVStorageSaveData ofd_packets/00015216 [07:32:20]File name is /storage/ofd_packets/00015216 [07:32:20]Write 301 bytes [07:32:20]NVStorageSaveData done [07:32:20]OFDSenderStorePacket done [07:32:20]KKMCreateOFDPacket done [07:32:20]NVStorageSaveData kkm_last_timestamp [07:32:20]File name is /storage/kkm_last_timestamp [07:32:20]Write 4 bytes [07:32:20]NVStorageSaveData done [07:32:20]ExternCall_PrintAddStr [07:32:20]wPrintStart [07:32:20]Write to MH i2c: 01 00 00 8E 14 A2 [07:32:20]Write i2c OK [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: 01 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: 01 07 00 [07:32:20]MH_I2C_Read... [07:32:20]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 FF 0F B7 [07:32:20]RasterBufferAndPrint [07:32:20]line Счет N : (1)2078050 [07:32:20]line ИНН: 02508201610067 [07:32:20]line Контрольно-Кассовый Чек [07:32:20]line ПРОДАЖА [07:32:20]line ТРК (МРК, ГНК) : 42 [07:32:20]line Товар: 2710124500 [07:32:20]line Аи-95-К-5 [07:32:20]line 6.740 * 74.20 [07:32:20]line = 500.11 [07:32:20]line НДС 12% НСП 1% [07:32:20]line > о реализуемом товаре [07:32:20]line ИТОГО: 500.11 [07:32:20]line НСП 1% : 4.43 [07:32:20]line НДС 12% : 53.11 [07:32:20]line Наличными: 0.00 [07:32:20]line Безнал.: 500.11 [07:32:20]line Место: АЗС № 135 "Партнер Нефть" [07:32:20]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [07:32:20]line СНО: Общий режим [07:32:20]line Чек 10 23.08.2024 07:32 [07:32:20]line Смена: 102 ФФД: 1.0 [07:32:20]line ЗНМ: 0300000144 [07:32:20]line РНМ: 0000000000162784 [07:32:20]line Версия ККМ: v1.0 [07:32:20]line Платежная система: O! деньги [07:32:20]line ФМ: 0000000002094529 [07:32:20]line ФД: 15216 [07:32:20]line ФПД: 2692211208693 [07:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T073222&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15216&fm=2692211208693&tin=02508201610067®Number=0000000000162784&sum=50011 [07:32:21]OFD Sender: Processing packet 15216 [packets to send 8, broken 7] [07:32:21]ProducePacketName [07:32:21]name=ofd_packets/00015216 [07:32:21]OFD Sender: To server: pG, [07:32:21]CommunicateWithHost lk.salyk.kg:30040 [07:32:21]ConnectInit lk.salyk.kg [07:32:21]written 0, free lines is 4095 [07:32:21]Connected sock=10 [07:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 81 19 07 01 0F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 3B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 70 3B 00 00 35 04 06 00 02 72 D4 4A F1 F5 23 21 E1 3E 27 C6 8A 77 [07:32:21]Write to MH i2c: 01 00 00 B8 14 CC [07:32:21]Write i2c OK [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: 01 [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: 01 07 00 [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 DF 0C BE [07:32:21]RasterBufferAndPrint [07:32:21]line [07:32:21]line [07:32:21]line [07:32:21]line [07:32:21]line [07:32:21]written 0, free lines is 3301 [07:32:21]MH_Cut [07:32:21]Write to MH i2c: D1 01 00 BF 14 01 A5 [07:32:21]Write i2c OK [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: D1 [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: D1 01 00 [07:32:21]MH_I2C_Read... [07:32:21]Read from MH i2c: D1 01 00 BF 14 00 A4 [07:32:21]Write to MH i2c: 01 00 00 C0 14 D4 [07:32:21]Write i2c OK [07:32:21]MH_I2C_Read... [07:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 0B 21 47 00 75 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 70 3B 00 00 F4 03 04 00 62 E5 C7 66 B6 04 01 00 00 8A CC DF F1 03 B0 C8 C3 [07:32:21]CommunicateWithHost err = 0 [07:32:21]CheckOFDResponse [07:32:21]1017 (14) - 77093643461234 [07:32:21]1041 (16) - 0000000002094529 [07:32:21]1040 (4) - 15216 [07:32:21]1012 (4) - 23.08.2024 01:26 [07:32:21]1206 (1) - 0 [07:32:21]OFD Sender: Remove packet 15216 [07:32:21]ProducePacketName [07:32:21]name=ofd_packets/00015216 [07:32:21]NVStorageDeleteData [07:32:22]OFD Sender: No OFD packet to send [07:32:22]*** Cut start [07:32:22]*** Partial cut [07:32:22]*** CUTSNS_PIN = 1 [07:32:22]*** CUTSNS_PIN = 0 [07:32:22]*** Brake cut motor [07:32:22]Read from MH i2c: 01 [07:32:22]MH_I2C_Read... [07:32:22]*** Stop cut motor [07:32:22]*** Cut end [07:32:22]Read from MH i2c: 01 07 00 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 FF 0F E9 [07:32:22]process_action close_receipt done [07:32:22]requested_data is exist [07:32:22]produce_requested_data [07:32:22]requested_item fm.sn is exist - process it [07:32:22]wFMCommunicate request_size=4 [07:32:22]MH_SAM_APDU [07:32:22]CAPDU: 80 11 00 00 [07:32:22]Write to MH i2c: E2 08 00 C1 14 80 11 00 00 00 00 00 00 4F [07:32:22]Write i2c OK [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: E2 [07:32:22]MH_I2C_Read... [07:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:22]Read from MH i2c: E2 17 00 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: E2 17 00 C1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A1 [07:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:32:22]wFMCommunicate OK [07:32:22]requested_item fd.num is exist - process it [07:32:22]SAM_PROTO_GetFieldsCounters [07:32:22]wFMCommunicate request_size=4 [07:32:22]MH_SAM_APDU [07:32:22]CAPDU: 80 13 00 00 [07:32:22]Write to MH i2c: E2 08 00 C2 14 80 13 00 00 00 00 00 00 52 [07:32:22]Write i2c OK [07:32:22]MH_I2C_Read... [07:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:23]Read from MH i2c: E2 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 62 00 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 62 00 C2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 70 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [07:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 70 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:23]wFMCommunicate OK [07:32:23]SAM_PROTO_GetFieldsCounters done [07:32:23]requested_item shift.num is exist - process it [07:32:23]requested_item shift.opened is exist - process it [07:32:23]req_shift_opened [07:32:23]FM_GetShiftState [07:32:23]SAM_PROTO_GetShiftState [07:32:23]wFMCommunicate request_size=4 [07:32:23]MH_SAM_APDU [07:32:23]CAPDU: 80 13 01 00 [07:32:23]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [07:32:23]Write i2c OK [07:32:23]MH_I2C_Read... [07:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:23]Read from MH i2c: E2 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 0E 00 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 18 [07:32:23]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:32:23]wFMCommunicate OK [07:32:23]SAM_PROTO_GetShiftState done [07:32:23]FM_GetShiftState done [07:32:23]req_shift_opened done [07:32:23]requested_item shift.open_date is exist - process it [07:32:23]req_shift_open_date [07:32:23]req_shift_open_date done [07:32:23]produce_requested_data done [07:32:23]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15216,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [07:32:23]process_action_free close_receipt [07:32:23]json_value_free [07:32:23]json_value_free done [07:32:23]process_json_proto returns [07:32:23]Send response to host [07:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15216,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [07:32:23]free response buf [07:32:23]execute_script done [07:32:23]execute_script returns [07:32:23]free content buf [07:32:23]Sock 8.Close socket [07:32:23]Sock 8.Thread stoped [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:19]accept exits with 9 [07:50:19]New connection [07:50:19]New thread 3066801508 created [07:50:19]Thread 3066944868 joined [07:50:19]Waiting for new connection... [07:50:19] Sock 9.Parse request [07:50:19]Sock 9.Check first char [07:50:19]Sock 9.First char is OK [07:50:19]request: POST /json_proto HTTP/1.0 [07:50:19]Method: POST [07:50:19]URL: /json_proto [07:50:19]Method is POST - this is cgi request [07:50:19]url: /json_proto [07:50:19]query_string will be loaded in cgi processing [07:50:19]execute_cgi json_proto POST (null) [07:50:19]execute_cgi path=json_proto method=POST [07:50:19]POST find Content-Length [07:50:19]Host: 172.17.44.4:8080 [07:50:19]Content-Length: 647 [07:50:19]Content-Type: application/json [07:50:19] [07:50:19]POST finish read [07:50:19]Found Content-Length = 647 [07:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151257", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:19]execute_script... [07:50: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)151257", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:19]POST & json_proto [07:50:19]process_json_proto [07:50:19]json parsed OK: [07:50:19]protocol is kg_v1.0 [07:50:19]action value=close_receipt [07:50:19]process_action close_receipt [07:50:19]cmd_close_receipt [07:50:19]MH_GetDate [07:50:19]Write to MH i2c: F0 00 00 C4 14 C7 [07:50:19]Write i2c OK [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 09 00 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 09 00 C4 14 00 3E 3F C8 66 0F 81 47 66 B8 [07:50:19]GetLastDocTimeStamp 1724398342 [07:50:19]current date 1724399422 [07:50:19]FM_GetShiftState [07:50:19]SAM_PROTO_GetShiftState [07:50:19]wFMCommunicate request_size=4 [07:50:19]MH_SAM_APDU [07:50:19]CAPDU: 80 13 01 00 [07:50:19]Write to MH i2c: E2 08 00 C5 14 80 13 01 00 00 00 00 00 56 [07:50:19]Write i2c OK [07:50:19]MH_I2C_Read... [07:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:19]Read from MH i2c: E2 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: E2 0E 00 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: E2 0E 00 C5 14 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1A [07:50:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:50:19]wFMCommunicate OK [07:50:19]SAM_PROTO_GetShiftState done [07:50:19]FM_GetShiftState done [07:50:19]opened in 1724372406 [07:50:19]opened+sec_in_day 1724458806 [07:50:19]quantity*price = 26500 [07:50:19]sum+1 = 26501 [07:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 11 23.08.2024 07:50 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15217 ФПД: 94830213148124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T075022&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15217&fm=94830213148124&tin=02508201610067®Number=0000000000162784&sum=26500 0 [07:50:20]StoreToDocumentArchive [07:50:20]shift 102 fd 15217 [07:50:20]save to /storage/0102/doc_00015217 [07:50:20]save last doc name /storage/0102/doc_00015217 to /storage/kkm_last_doc_name [07:50:20]save OK [07:50:20]Clear old archive folders... [07:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:50:20]tlvbuf is 0048B010 [07:50:20]SAM_PROTO_ClearQueue [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 09 00 00 [07:50:20]Write to MH i2c: E2 08 00 D2 14 80 09 00 00 00 00 00 00 58 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]SAM_PROTO_ClearQueue done [07:50:20]KKMCreateOFDPacket [07:50:20]OFDProtocolAddRootSTLVToBuf [07:50:20]FM_MakeSignedData [07:50:20]FM_MakeSignedData [07:50:20]SAM_PROTO_SignData [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 01 02 [07:50:20]Write to MH i2c: E2 08 00 D3 14 80 0D 01 02 00 00 00 00 60 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]wFMCommunicate request_size=255 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3E 3F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 [07:50:20]Write to MH i2c: E2 02 01 D4 14 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3E 3F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 00 00 EE [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]wFMCommunicate request_size=38 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 71 3B 00 00 35 04 06 00 56 3F 61 2B 2D DC [07:50:20]Write to MH i2c: E2 29 00 D5 14 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 71 3B 00 00 35 04 06 00 56 3F 61 2B 2D DC 00 00 C1 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:21]Read from MH i2c: E2 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 03 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [07:50:21]RAPDU: 90 00 [07:50:21]wFMCommunicate OK [07:50:21]wFMCommunicate request_size=4 [07:50:21]MH_SAM_APDU [07:50:21]CAPDU: 80 0D 03 02 [07:50:21]Write to MH i2c: E2 08 00 D6 14 80 0D 03 02 00 00 00 00 65 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:21]Read from MH i2c: E2 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 0B 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 0B 00 D6 14 00 BA AB 66 C5 C1 3E 7A 34 90 00 A3 [07:50:21]RAPDU: BA AB 66 C5 C1 3E 7A 34 90 00 [07:50:21]wFMCommunicate OK [07:50:21]SAM_PROTO_SignData done [07:50:21]FM_MakeSignedData done [07:50:21]CreateOFDProtocolMessage [07:50:21]wFMCommunicate request_size=4 [07:50:21]MH_SAM_APDU [07:50:21]CAPDU: 80 11 00 00 [07:50:21]Write to MH i2c: E2 08 00 D7 14 80 11 00 00 00 00 00 00 65 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:21]Read from MH i2c: E2 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 17 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 17 00 D7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B7 [07:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:50:21]wFMCommunicate OK [07:50:21]CreateOFDProtocolMessage done [07:50:21]OFDSenderStorePacket 15217 [07:50:21]StoreOFDPacket docnum=15217 [07:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2B 01 00 00 C4 E2 23 01 FF 3C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3E 3F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 71 3B 00 00 35 04 06 00 56 3F 61 2B 2D DC BA AB 66 C5 C1 3E 7A 34 [07:50:21]CheckFolder [07:50:21]dirname=/storage/ofd_packets [07:50:21]CheckFolder done [07:50:21]ProducePacketName [07:50:21]name=ofd_packets/00015217 [07:50:21]NVStorageSaveData ofd_packets/00015217 [07:50:21]File name is /storage/ofd_packets/00015217 [07:50:21]Write 329 bytes [07:50:21]NVStorageSaveData done [07:50:21]OFDSenderStorePacket done [07:50:21]KKMCreateOFDPacket done [07:50:21]NVStorageSaveData kkm_last_timestamp [07:50:21]File name is /storage/kkm_last_timestamp [07:50:21]Write 4 bytes [07:50:21]NVStorageSaveData done [07:50:21]ExternCall_PrintAddStr [07:50:21]wPrintStart [07:50:21]Write to MH i2c: 01 00 00 D8 14 EC [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 FF 0F 01 [07:50:21]RasterBufferAndPrint [07:50:21]line Счет N : (3)151257 [07:50:21]line ИНН: 02508201610067 [07:50:21]line Контрольно-Кассовый Чек [07:50:21]line ПРОДАЖА [07:50:21]line Товар: 90448300 [07:50:21]line Энерг напиток Red Bull 0,355л [07:50:21]line 1.000 * 265.00 [07:50:21]line = 265.00 [07:50:21]line НДС 12% НСП 1% [07:50:21]line > о реализуемом товаре [07:50:21]line ИТОГО: 265.00 [07:50:21]line НСП 1% : 2.34 [07:50:21]line НДС 12% : 28.14 [07:50:21]line Наличными: 265.00 [07:50:21]line Безнал.: 0.00 [07:50:21]line Место: АЗС № 135 "Партнер Нефть" [07:50:21]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [07:50:21]line СНО: Общий режим [07:50:21]line Чек 11 23.08.2024 07:50 [07:50:21]line Смена: 102 ФФД: 1.0 [07:50:21]line ЗНМ: 0300000144 [07:50:21]line РНМ: 0000000000162784 [07:50:21]line Версия ККМ: v1.0 [07:50:21]line ФМ: 0000000002094529 [07:50:21]line ФД: 15217 [07:50:21]line ФПД: 94830213148124 [07:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T075022&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15217&fm=94830213148124&tin=02508201610067®Number=0000000000162784&sum=26500 [07:50:21]line 0 [07:50:21]OFD Sender: Processing packet 15217 [packets to send 8, broken 7] [07:50:21]ProducePacketName [07:50:21]name=ofd_packets/00015217 [07:50:21]OFD Sender: To server: pG, [07:50:21]CommunicateWithHost lk.salyk.kg:30040 [07:50:21]ConnectInit lk.salyk.kg [07:50:21]written 0, free lines is 4095 [07:50:21]Connected sock=10 [07:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2B 01 00 00 C4 E2 23 01 FF 3C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3E 3F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 71 3B 00 00 35 04 06 00 56 3F 61 2B 2D DC BA AB 66 C5 C1 3E 7A 34 [07:50:21]Write to MH i2c: 01 00 00 00 15 15 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 00 15 00 00 00 00 00 00 0D 29 [07:50:21]RasterBufferAndPrint [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]written 0, free lines is 3334 [07:50:21]MH_Cut [07:50:21]Write to MH i2c: D1 01 00 07 15 01 EE [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: D1 [07:50:21]MH_I2C_Read... [07:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 3B 27 47 00 85 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 71 3B 00 00 F4 03 04 00 9A E9 C7 66 B6 04 01 00 00 5B 05 B8 69 86 07 12 48 [07:50:21]CommunicateWithHost err = 0 [07:50:21]CheckOFDResponse [07:50:21]1017 (14) - 77093643461234 [07:50:21]1041 (16) - 0000000002094529 [07:50:21]1040 (4) - 15217 [07:50:21]1012 (4) - 23.08.2024 01:44 [07:50:21]1206 (1) - 0 [07:50:21]OFD Sender: Remove packet 15217 [07:50:21]ProducePacketName [07:50:21]name=ofd_packets/00015217 [07:50:21]NVStorageDeleteData [07:50:21]Read from MH i2c: D1 01 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: D1 01 00 07 15 00 ED [07:50:21]Write to MH i2c: 01 00 00 08 15 1D [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:22]OFD Sender: No OFD packet to send [07:50:22]*** Cut start [07:50:22]*** Partial cut [07:50:22]*** CUTSNS_PIN = 1 [07:50:22]*** CUTSNS_PIN = 0 [07:50:22]*** Brake cut motor [07:50:23]Read from MH i2c: 01 [07:50:23]MH_I2C_Read... [07:50:23]*** Stop cut motor [07:50:23]*** Cut end [07:50:23]Read from MH i2c: 01 07 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FF 0F 32 [07:50:23]process_action close_receipt done [07:50:23]requested_data is exist [07:50:23]produce_requested_data [07:50:23]requested_item fm.sn is exist - process it [07:50:23]wFMCommunicate request_size=4 [07:50:23]MH_SAM_APDU [07:50:23]CAPDU: 80 11 00 00 [07:50:23]Write to MH i2c: E2 08 00 09 15 80 11 00 00 00 00 00 00 98 [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 17 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 17 00 09 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 EA [07:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [07:50:23]wFMCommunicate OK [07:50:23]requested_item fd.num is exist - process it [07:50:23]SAM_PROTO_GetFieldsCounters [07:50:23]wFMCommunicate request_size=4 [07:50:23]MH_SAM_APDU [07:50:23]CAPDU: 80 13 00 00 [07:50:23]Write to MH i2c: E2 08 00 0A 15 80 13 00 00 00 00 00 00 9B [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 62 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 62 00 0A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 71 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [07:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 71 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:23]wFMCommunicate OK [07:50:23]SAM_PROTO_GetFieldsCounters done [07:50:23]requested_item shift.num is exist - process it [07:50:23]requested_item shift.opened is exist - process it [07:50:23]req_shift_opened [07:50:23]FM_GetShiftState [07:50:23]SAM_PROTO_GetShiftState [07:50:23]wFMCommunicate request_size=4 [07:50:23]MH_SAM_APDU [07:50:23]CAPDU: 80 13 01 00 [07:50:23]Write to MH i2c: E2 08 00 0B 15 80 13 01 00 00 00 00 00 9D [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 0E 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 0E 00 0B 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 61 [07:50:23]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [07:50:23]wFMCommunicate OK [07:50:23]SAM_PROTO_GetShiftState done [07:50:23]FM_GetShiftState done [07:50:23]req_shift_opened done [07:50:23]requested_item shift.open_date is exist - process it [07:50:23]req_shift_open_date [07:50:23]req_shift_open_date done [07:50:23]produce_requested_data done [07:50:23]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15217,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [07:50:23]process_action_free close_receipt [07:50:23]json_value_free [07:50:23]json_value_free done [07:50:23]process_json_proto returns [07:50:23]Send response to host [07:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15217,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [07:50:23]free response buf [07:50:23]execute_script done [07:50:23]execute_script returns [07:50:23]free content buf [07:50:23]Sock 9.Close socket [07:50:23]Sock 9.Thread stoped [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:08]accept exits with 8 [08:02:08]New connection [08:02:08]New thread 3066944868 created [08:02:08]Thread 3066801508 joined [08:02:08]Waiting for new connection... [08:02:08] Sock 8.Parse request [08:02:08]Sock 8.Check first char [08:02:08]Sock 8.First char is OK [08:02:08]request: POST /json_proto HTTP/1.0 [08:02:08]Method: POST [08:02:08]URL: /json_proto [08:02:08]Method is POST - this is cgi request [08:02:08]url: /json_proto [08:02:08]query_string will be loaded in cgi processing [08:02:08]execute_cgi json_proto POST (null) [08:02:08]execute_cgi path=json_proto method=POST [08:02:08]POST find Content-Length [08:02:08]Host: 172.17.44.4:8080 [08:02:08]Content-Length: 891 [08:02:08]Content-Type: application/json [08:02:08] [08:02:08]POST finish read [08:02:08]Found Content-Length = 891 [08:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151258", "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 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 92.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:08]execute_script... [08: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)151258", "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 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 92.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:08]POST & json_proto [08:02:08]process_json_proto [08:02:08]json parsed OK: [08:02:08]protocol is kg_v1.0 [08:02:08]action value=close_receipt [08:02:08]process_action close_receipt [08:02:08]cmd_close_receipt [08:02:08]MH_GetDate [08:02:08]Write to MH i2c: F0 00 00 0C 15 10 [08:02:08]Write i2c OK [08:02:08]MH_I2C_Read... [08:02:08]Read from MH i2c: F0 [08:02:08]MH_I2C_Read... [08:02:08]Read from MH i2c: F0 09 00 [08:02:08]MH_I2C_Read... [08:02:08]Read from MH i2c: F0 09 00 0C 15 00 04 42 C8 66 0F 81 47 66 CA [08:02:08]GetLastDocTimeStamp 1724399422 [08:02:08]current date 1724400132 [08:02:08]FM_GetShiftState [08:02:08]SAM_PROTO_GetShiftState [08:02:08]wFMCommunicate request_size=4 [08:02:08]MH_SAM_APDU [08:02:08]CAPDU: 80 13 01 00 [08:02:08]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [08:02:08]Write i2c OK [08:02:08]MH_I2C_Read... [08:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:08]Read from MH i2c: E2 [08:02:08]MH_I2C_Read... [08:02:08]Read from MH i2c: E2 0E 00 [08:02:08]MH_I2C_Read... [08:02:08]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 63 [08:02:08]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:02:08]wFMCommunicate OK [08:02:08]SAM_PROTO_GetShiftState done [08:02:08]FM_GetShiftState done [08:02:08]opened in 1724372406 [08:02:08]opened+sec_in_day 1724458806 [08:02:08]quantity*price = 5000 [08:02:08]sum+1 = 5001 [08:02:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 92.00 НСП 1% : 0.81 НДС 12% : 9.77 Наличными: 92.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 12 23.08.2024 08:02 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15218 ФПД: 254439235811704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080212&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15218&fm=254439235811704&tin=02508201610067®Number=0000000000162784&sum=9200 0 [08:02:09]StoreToDocumentArchive [08:02:09]shift 102 fd 15218 [08:02:09]save to /storage/0102/doc_00015218 [08:02:09]save last doc name /storage/0102/doc_00015218 to /storage/kkm_last_doc_name [08:02:09]save OK [08:02:09]Clear old archive folders... [08:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=374 [08:02:09]tlvbuf is 0044E330 [08:02:09]SAM_PROTO_ClearQueue [08:02:09]wFMCommunicate request_size=4 [08:02:09]MH_SAM_APDU [08:02:09]CAPDU: 80 09 00 00 [08:02:09]Write to MH i2c: E2 08 00 1A 15 80 09 00 00 00 00 00 00 A1 [08:02:09]Write i2c OK [08:02:09]MH_I2C_Read... [08:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:09]Read from MH i2c: E2 [08:02:09]MH_I2C_Read... [08:02:09]Read from MH i2c: E2 03 00 [08:02:09]MH_I2C_Read... [08:02:09]Read from MH i2c: E2 03 00 1A 15 00 90 00 A3 [08:02:09]RAPDU: 90 00 [08:02:09]wFMCommunicate OK [08:02:09]SAM_PROTO_ClearQueue done [08:02:09]KKMCreateOFDPacket [08:02:09]OFDProtocolAddRootSTLVToBuf [08:02:09]FM_MakeSignedData [08:02:09]FM_MakeSignedData [08:02:09]SAM_PROTO_SignData [08:02:09]wFMCommunicate request_size=4 [08:02:09]MH_SAM_APDU [08:02:09]CAPDU: 80 0D 01 02 [08:02:09]Write to MH i2c: E2 08 00 1B 15 80 0D 01 02 00 00 00 00 A9 [08:02:09]Write i2c OK [08:02:09]MH_I2C_Read... [08:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:09]Read from MH i2c: E2 [08:02:09]MH_I2C_Read... [08:02:09]Read from MH i2c: E2 03 00 [08:02:09]MH_I2C_Read... [08:02:09]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [08:02:09]RAPDU: 90 00 [08:02:09]wFMCommunicate OK [08:02:09]wFMCommunicate request_size=255 [08:02:09]MH_SAM_APDU [08:02:09]CAPDU: 80 0D 02 02 FA 03 00 76 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 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 [08:02:09]Write to MH i2c: E2 02 01 1C 15 80 0D 02 02 FA 00 03 00 76 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 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 00 00 FF [08:02:09]Write i2c OK [08:02:09]MH_I2C_Read... [08:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:10]Read from MH i2c: E2 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 03 00 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [08:02:10]RAPDU: 90 00 [08:02:10]wFMCommunicate OK [08:02:10]wFMCommunicate request_size=133 [08:02:10]MH_SAM_APDU [08:02:10]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 D1 03 00 00 00 00 07 04 06 00 F0 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 04 42 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 72 3B 00 00 35 04 06 00 E7 69 40 44 79 78 [08:02:10]Write to MH i2c: E2 88 00 1D 15 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 D1 03 00 00 00 00 07 04 06 00 F0 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 04 42 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 72 3B 00 00 35 04 06 00 E7 69 40 44 79 78 00 00 1A [08:02:10]Write i2c OK [08:02:10]MH_I2C_Read... [08:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:10]Read from MH i2c: E2 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 03 00 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [08:02:10]RAPDU: 90 00 [08:02:10]wFMCommunicate OK [08:02:10]wFMCommunicate request_size=4 [08:02:10]MH_SAM_APDU [08:02:10]CAPDU: 80 0D 03 02 [08:02:10]Write to MH i2c: E2 08 00 1E 15 80 0D 03 02 00 00 00 00 AE [08:02:10]Write i2c OK [08:02:10]MH_I2C_Read... [08:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:10]Read from MH i2c: E2 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 0B 00 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 0B 00 1E 15 00 65 FE 40 D8 0E 2D 5A DD 90 00 9C [08:02:10]RAPDU: 65 FE 40 D8 0E 2D 5A DD 90 00 [08:02:10]wFMCommunicate OK [08:02:10]SAM_PROTO_SignData done [08:02:10]FM_MakeSignedData done [08:02:10]CreateOFDProtocolMessage [08:02:10]wFMCommunicate request_size=4 [08:02:10]MH_SAM_APDU [08:02:10]CAPDU: 80 11 00 00 [08:02:10]Write to MH i2c: E2 08 00 1F 15 80 11 00 00 00 00 00 00 AE [08:02:10]Write i2c OK [08:02:10]MH_I2C_Read... [08:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:10]Read from MH i2c: E2 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 17 00 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: E2 17 00 1F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 00 [08:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:02:10]wFMCommunicate OK [08:02:10]CreateOFDProtocolMessage done [08:02:10]OFDSenderStorePacket 15218 [08:02:10]StoreOFDPacket docnum=15218 [08:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 8A 01 00 00 53 F3 82 01 4C 99 5A 03 01 00 03 00 76 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 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 03 00 00 00 00 07 04 06 00 F0 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 04 42 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 72 3B 00 00 35 04 06 00 E7 69 40 44 79 78 65 FE 40 D8 0E 2D 5A DD [08:02:10]CheckFolder [08:02:10]dirname=/storage/ofd_packets [08:02:10]CheckFolder done [08:02:10]ProducePacketName [08:02:10]name=ofd_packets/00015218 [08:02:10]NVStorageSaveData ofd_packets/00015218 [08:02:10]File name is /storage/ofd_packets/00015218 [08:02:10]Write 424 bytes [08:02:10]NVStorageSaveData done [08:02:10]OFDSenderStorePacket done [08:02:10]KKMCreateOFDPacket done [08:02:10]NVStorageSaveData kkm_last_timestamp [08:02:10]File name is /storage/kkm_last_timestamp [08:02:10]Write 4 bytes [08:02:10]NVStorageSaveData done [08:02:10]ExternCall_PrintAddStr [08:02:10]wPrintStart [08:02:10]Write to MH i2c: 01 00 00 20 15 35 [08:02:10]Write i2c OK [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: 01 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: 01 07 00 [08:02:10]MH_I2C_Read... [08:02:10]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FF 0F 4A [08:02:10]RasterBufferAndPrint [08:02:10]line Счет N : (3)151258 [08:02:10]line ИНН: 02508201610067 [08:02:10]line Контрольно-Кассовый Чек [08:02:10]line ПРОДАЖА [08:02:10]line Товар: 4700000160358 [08:02:10]line Вода Легенда 1л [08:02:10]line 1.000 * 50.00 [08:02:10]line = 50.00 [08:02:10]line НДС 12% НСП 1% [08:02:10]line > о реализуемом товаре [08:02:10]line Товар: 5449000005489 [08:02:10]line Вода Бонаква 1л б/г [08:02:10]line 1.000 * 42.00 [08:02:10]line = 42.00 [08:02:10]line НДС 12% НСП 1% [08:02:10]line > о реализуемом товаре [08:02:10]line ИТОГО: 92.00 [08:02:10]line НСП 1% : 0.81 [08:02:10]line НДС 12% : 9.77 [08:02:10]line Наличными: 92.00 [08:02:10]line Безнал.: 0.00 [08:02:10]line Место: АЗС № 135 "Партнер Нефть" [08:02:10]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:02:10]line СНО: Общий режим [08:02:10]line Чек 12 23.08.2024 08:02 [08:02:10]line Смена: 102 ФФД: 1.0 [08:02:10]line ЗНМ: 0300000144 [08:02:10]line РНМ: 0000000000162784 [08:02:10]line Версия ККМ: v1.0 [08:02:10]line ФМ: 0000000002094529 [08:02:10]line ФД: 15218 [08:02:10]line ФПД: 254439235811704 [08:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080212&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15218&fm=254439235811704&tin=02508201610067®Number=0000000000162784&sum=9200 [08:02:10]OFD Sender: Processing packet 15218 [packets to send 8, broken 7] [08:02:10]ProducePacketName [08:02:10]name=ofd_packets/00015218 [08:02:10]OFD Sender: To server: pG, [08:02:10]CommunicateWithHost lk.salyk.kg:30040 [08:02:10]ConnectInit lk.salyk.kg [08:02:10]line 0 [08:02:10]written 0, free lines is 4095 [08:02:10]Connected sock=10 [08:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 8A 01 00 00 53 F3 82 01 4C 99 5A 03 01 00 03 00 76 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 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 03 00 00 00 00 07 04 06 00 F0 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 04 42 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 72 3B 00 00 35 04 06 00 E7 69 40 44 79 78 65 FE 40 D8 0E 2D 5A DD [08:02:11]Write to MH i2c: 01 00 00 4E 15 63 [08:02:11]Write i2c OK [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: 01 [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: 01 07 00 [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: 01 07 00 4E 15 00 00 00 00 00 97 0C 0D [08:02:11]RasterBufferAndPrint [08:02:11]line [08:02:11]line [08:02:11]line [08:02:11]line [08:02:11]line [08:02:11]written 0, free lines is 3229 [08:02:11]MH_Cut [08:02:11]Write to MH i2c: D1 01 00 55 15 01 3C [08:02:11]Write i2c OK [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: D1 [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: D1 01 00 [08:02:11]MH_I2C_Read... [08:02:11]Read from MH i2c: D1 01 00 55 15 00 3B [08:02:11]Write to MH i2c: 01 00 00 56 15 6B [08:02:11]Write i2c OK [08:02:11]MH_I2C_Read... [08:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 4B DA 47 00 5B 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 72 3B 00 00 F4 03 04 00 60 EC C7 66 B6 04 01 00 00 27 D9 FD DA 87 FE 02 26 [08:02:11]CommunicateWithHost err = 0 [08:02:11]CheckOFDResponse [08:02:11]1017 (14) - 77093643461234 [08:02:11]1041 (16) - 0000000002094529 [08:02:11]1040 (4) - 15218 [08:02:11]1012 (4) - 23.08.2024 01:56 [08:02:11]1206 (1) - 0 [08:02:11]OFD Sender: Remove packet 15218 [08:02:11]ProducePacketName [08:02:11]name=ofd_packets/00015218 [08:02:11]NVStorageDeleteData [08:02:11]OFD Sender: No OFD packet to send [08:02:11]*** Cut start [08:02:11]*** Partial cut [08:02:11]*** CUTSNS_PIN = 1 [08:02:11]*** CUTSNS_PIN = 0 [08:02:12]*** Brake cut motor [08:02:12]Read from MH i2c: 01 [08:02:12]MH_I2C_Read... [08:02:12]*** Stop cut motor [08:02:12]*** Cut end [08:02:12]Read from MH i2c: 01 07 00 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: 01 07 00 56 15 00 00 00 00 00 FF 0F 80 [08:02:12]process_action close_receipt done [08:02:12]requested_data is exist [08:02:12]produce_requested_data [08:02:12]requested_item fm.sn is exist - process it [08:02:12]wFMCommunicate request_size=4 [08:02:12]MH_SAM_APDU [08:02:12]CAPDU: 80 11 00 00 [08:02:12]Write to MH i2c: E2 08 00 57 15 80 11 00 00 00 00 00 00 E6 [08:02:12]Write i2c OK [08:02:12]MH_I2C_Read... [08:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:12]Read from MH i2c: E2 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 17 00 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 17 00 57 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 38 [08:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:02:12]wFMCommunicate OK [08:02:12]requested_item fd.num is exist - process it [08:02:12]SAM_PROTO_GetFieldsCounters [08:02:12]wFMCommunicate request_size=4 [08:02:12]MH_SAM_APDU [08:02:12]CAPDU: 80 13 00 00 [08:02:12]Write to MH i2c: E2 08 00 58 15 80 13 00 00 00 00 00 00 E9 [08:02:12]Write i2c OK [08:02:12]MH_I2C_Read... [08:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:12]Read from MH i2c: E2 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 62 00 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 62 00 58 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 72 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [08:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 72 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:12]wFMCommunicate OK [08:02:12]SAM_PROTO_GetFieldsCounters done [08:02:12]requested_item shift.num is exist - process it [08:02:12]requested_item shift.opened is exist - process it [08:02:12]req_shift_opened [08:02:12]FM_GetShiftState [08:02:12]SAM_PROTO_GetShiftState [08:02:12]wFMCommunicate request_size=4 [08:02:12]MH_SAM_APDU [08:02:12]CAPDU: 80 13 01 00 [08:02:12]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [08:02:12]Write i2c OK [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 [08:02:12]MH_I2C_Read... [08:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:12]Read from MH i2c: E2 0E 00 [08:02:12]MH_I2C_Read... [08:02:12]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AF [08:02:12]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:02:12]wFMCommunicate OK [08:02:12]SAM_PROTO_GetShiftState done [08:02:12]FM_GetShiftState done [08:02:12]req_shift_opened done [08:02:12]requested_item shift.open_date is exist - process it [08:02:12]req_shift_open_date [08:02:12]req_shift_open_date done [08:02:12]produce_requested_data done [08:02:12]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15218,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:02:12]process_action_free close_receipt [08:02:12]json_value_free [08:02:12]json_value_free done [08:02:12]process_json_proto returns [08:02:12]Send response to host [08:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15218,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:02:12]free response buf [08:02:12]execute_script done [08:02:12]execute_script returns [08:02:12]free content buf [08:02:12]Sock 8.Close socket [08:02:12]Sock 8.Thread stoped [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]accept exits with 9 [08:06:41]New connection [08:06:41]New thread 3066801508 created [08:06:41]Thread 3066944868 joined [08:06:41]Waiting for new connection... [08:06:41] Sock 9.Parse request [08:06:41]Sock 9.Check first char [08:06:41]Sock 9.First char is OK [08:06:41]request: POST /json_proto HTTP/1.0 [08:06:41]Method: POST [08:06:41]URL: /json_proto [08:06:41]Method is POST - this is cgi request [08:06:41]url: /json_proto [08:06:41]query_string will be loaded in cgi processing [08:06:41]execute_cgi json_proto POST (null) [08:06:41]execute_cgi path=json_proto method=POST [08:06:41]POST find Content-Length [08:06:41]Host: 172.17.44.4:8080 [08:06:41]Content-Length: 678 [08:06:41]Content-Type: application/json [08:06:41] [08:06:41]POST finish read [08:06:41]Found Content-Length = 678 [08:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:41]execute_script... [08:06:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:41]POST & json_proto [08:06:41]process_json_proto [08:06:41]json parsed OK: [08:06:41]protocol is kg_v1.0 [08:06:41]action value=close_receipt [08:06:41]process_action close_receipt [08:06:41]cmd_close_receipt [08:06:41]MH_GetDate [08:06:41]Write to MH i2c: F0 00 00 5A 15 5E [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 09 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: F0 09 00 5A 15 00 15 43 C8 66 0F 81 47 66 2A [08:06:41]GetLastDocTimeStamp 1724400132 [08:06:41]current date 1724400405 [08:06:41]FM_GetShiftState [08:06:41]SAM_PROTO_GetShiftState [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 13 01 00 [08:06:41]Write to MH i2c: E2 08 00 5B 15 80 13 01 00 00 00 00 00 ED [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0E 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0E 00 5B 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B1 [08:06:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:06:41]wFMCommunicate OK [08:06:41]SAM_PROTO_GetShiftState done [08:06:41]FM_GetShiftState done [08:06:41]opened in 1724372406 [08:06:41]opened+sec_in_day 1724458806 [08:06:41]quantity*price = 50010 [08:06:41]sum+1 = 50012 [08:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 13 23.08.2024 08:06 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15219 ФПД: 153609380683850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080645&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15219&fm=153609380683850&tin=02508201610067®Number=0000000000162784&sum=50000 [08:06:42]StoreToDocumentArchive [08:06:42]shift 102 fd 15219 [08:06:42]save to /storage/0102/doc_00015219 [08:06:42]save last doc name /storage/0102/doc_00015219 to /storage/kkm_last_doc_name [08:06:42]save OK [08:06:42]Clear old archive folders... [08:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:42]tlvbuf is B6EBF990 [08:06:42]SAM_PROTO_ClearQueue [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 09 00 00 [08:06:42]Write to MH i2c: E2 08 00 68 15 80 09 00 00 00 00 00 00 EF [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]SAM_PROTO_ClearQueue done [08:06:42]KKMCreateOFDPacket [08:06:42]OFDProtocolAddRootSTLVToBuf [08:06:42]FM_MakeSignedData [08:06:42]FM_MakeSignedData [08:06:42]SAM_PROTO_SignData [08:06:42]wFMCommunicate request_size=4 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 01 02 [08:06:42]Write to MH i2c: E2 08 00 69 15 80 0D 01 02 00 00 00 00 F7 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:42]Read from MH i2c: E2 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [08:06:42]RAPDU: 90 00 [08:06:42]wFMCommunicate OK [08:06:42]wFMCommunicate request_size=255 [08:06:42]MH_SAM_APDU [08:06:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 15 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 73 3B 00 00 35 04 06 00 8B [08:06:42]Write to MH i2c: E2 02 01 6A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 15 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 73 3B 00 00 35 04 06 00 8B 00 00 92 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 03 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 03 00 6A 15 00 90 00 F3 [08:06:43]RAPDU: 90 00 [08:06:43]wFMCommunicate OK [08:06:43]wFMCommunicate request_size=10 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 0D 02 02 05 B4 F8 91 E0 4A [08:06:43]Write to MH i2c: E2 0D 00 6B 15 80 0D 02 02 05 00 B4 F8 91 E0 4A 00 00 6B [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 03 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 03 00 6B 15 00 90 00 F4 [08:06:43]RAPDU: 90 00 [08:06:43]wFMCommunicate OK [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 0D 03 02 [08:06:43]Write to MH i2c: E2 08 00 6C 15 80 0D 03 02 00 00 00 00 FC [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 0B 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 0B 00 6C 15 00 CA 73 04 4D D6 C9 75 7F 90 00 1E [08:06:43]RAPDU: CA 73 04 4D D6 C9 75 7F 90 00 [08:06:43]wFMCommunicate OK [08:06:43]SAM_PROTO_SignData done [08:06:43]FM_MakeSignedData done [08:06:43]CreateOFDProtocolMessage [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 11 00 00 [08:06:43]Write to MH i2c: E2 08 00 6D 15 80 11 00 00 00 00 00 00 FC [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:43]Read from MH i2c: E2 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 17 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: E2 17 00 6D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 4E [08:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:06:43]wFMCommunicate OK [08:06:43]CreateOFDProtocolMessage done [08:06:43]OFDSenderStorePacket 15219 [08:06:43]StoreOFDPacket docnum=15219 [08:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 A8 33 07 01 C5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 15 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 73 3B 00 00 35 04 06 00 8B B4 F8 91 E0 4A CA 73 04 4D D6 C9 75 7F [08:06:43]CheckFolder [08:06:43]dirname=/storage/ofd_packets [08:06:43]CheckFolder done [08:06:43]ProducePacketName [08:06:43]name=ofd_packets/00015219 [08:06:43]NVStorageSaveData ofd_packets/00015219 [08:06:43]File name is /storage/ofd_packets/00015219 [08:06:43]Write 301 bytes [08:06:43]NVStorageSaveData done [08:06:43]OFDSenderStorePacket done [08:06:43]KKMCreateOFDPacket done [08:06:43]NVStorageSaveData kkm_last_timestamp [08:06:43]File name is /storage/kkm_last_timestamp [08:06:43]Write 4 bytes [08:06:43]NVStorageSaveData done [08:06:43]ExternCall_PrintAddStr [08:06:43]wPrintStart [08:06:43]Write to MH i2c: 01 00 00 6E 15 83 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 FF 0F 98 [08:06:43]RasterBufferAndPrint [08:06:43]line Счет N : (1)2078075 [08:06:43]line ИНН: 02508201610067 [08:06:43]line Контрольно-Кассовый Чек [08:06:43]line ПРОДАЖА [08:06:43]line ТРК (МРК, ГНК) : 52 [08:06:43]line Товар: 2710124500 [08:06:43]line Аи-95-К-5 [08:06:43]line 6.740 * 74.20 [08:06:43]line = 500.11 [08:06:43]line НДС 12% НСП 1% [08:06:43]line > о реализуемом товаре [08:06:43]line ОКРУГЛЕНИЕ: -0.11 [08:06:43]line ИТОГО: 500.00 [08:06:43]line Внесено: 500.00 [08:06:43]line СДАЧА: 0.00 [08:06:43]line НСП 1% : 4.43 [08:06:43]line НДС 12% : 53.11 [08:06:43]line Наличными: 500.00 [08:06:43]line Безнал.: 0.00 [08:06:43]line Место: АЗС № 135 "Партнер Нефть" [08:06:43]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:06:43]line СНО: Общий режим [08:06:43]line Чек 13 23.08.2024 08:06 [08:06:43]line Смена: 102 ФФД: 1.0 [08:06:43]line ЗНМ: 0300000144 [08:06:43]line РНМ: 0000000000162784 [08:06:43]line Версия ККМ: v1.0 [08:06:43]line ФМ: 0000000002094529 [08:06:43]line ФД: 15219 [08:06:43]line ФПД: 153609380683850 [08:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080645&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15219&fm=153609380683850&tin=02508201610067®Number=0000000000162784&sum=50000 [08:06:43]OFD Sender: Processing packet 15219 [packets to send 8, broken 7] [08:06:43]ProducePacketName [08:06:43]name=ofd_packets/00015219 [08:06:43]OFD Sender: To server: pG, [08:06:43]CommunicateWithHost lk.salyk.kg:30040 [08:06:43]ConnectInit lk.salyk.kg [08:06:43]written 0, free lines is 4095 [08:06:43]Connected sock=11 [08:06:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 A8 33 07 01 C5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 15 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 73 3B 00 00 35 04 06 00 8B B4 F8 91 E0 4A CA 73 04 4D D6 C9 75 7F [08:06:44]Write to MH i2c: 01 00 00 99 15 AE [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: 01 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: 01 07 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: 01 07 00 99 15 00 00 00 00 00 C8 0C 89 [08:06:44]RasterBufferAndPrint [08:06:44]line [08:06:44]line [08:06:44]line [08:06:44]line [08:06:44]line [08:06:44]written 0, free lines is 3276 [08:06:44]MH_Cut [08:06:44]Write to MH i2c: D1 01 00 A0 15 01 87 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: D1 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: D1 01 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: D1 01 00 A0 15 00 86 [08:06:44]Write to MH i2c: 01 00 00 A1 15 B6 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 A9 52 47 00 7C 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 73 3B 00 00 F4 03 04 00 71 ED C7 66 B6 04 01 00 00 EA 3C E9 29 2F 5C 87 8C [08:06:44]CommunicateWithHost err = 0 [08:06:44]CheckOFDResponse [08:06:44]1017 (14) - 77093643461234 [08:06:44]1041 (16) - 0000000002094529 [08:06:44]1040 (4) - 15219 [08:06:44]1012 (4) - 23.08.2024 02:01 [08:06:44]1206 (1) - 0 [08:06:44]OFD Sender: Remove packet 15219 [08:06:44]ProducePacketName [08:06:44]name=ofd_packets/00015219 [08:06:44]NVStorageDeleteData [08:06:44]OFD Sender: No OFD packet to send [08:06:44]*** Cut start [08:06:44]*** Partial cut [08:06:44]*** CUTSNS_PIN = 1 [08:06:45]*** CUTSNS_PIN = 0 [08:06:45]*** Brake cut motor [08:06:45]Read from MH i2c: 01 [08:06:45]MH_I2C_Read... [08:06:45]*** Stop cut motor [08:06:45]*** Cut end [08:06:45]Read from MH i2c: 01 07 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: 01 07 00 A1 15 00 00 00 00 00 FF 0F CB [08:06:45]process_action close_receipt done [08:06:45]requested_data is exist [08:06:45]produce_requested_data [08:06:45]requested_item fm.sn is exist - process it [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 11 00 00 [08:06:45]Write to MH i2c: E2 08 00 A2 15 80 11 00 00 00 00 00 00 31 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 17 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 17 00 A2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 83 [08:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:06:45]wFMCommunicate OK [08:06:45]requested_item fd.num is exist - process it [08:06:45]SAM_PROTO_GetFieldsCounters [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 13 00 00 [08:06:45]Write to MH i2c: E2 08 00 A3 15 80 13 00 00 00 00 00 00 34 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 62 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 62 00 A3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 73 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [08:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 73 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:45]wFMCommunicate OK [08:06:45]SAM_PROTO_GetFieldsCounters done [08:06:45]requested_item shift.num is exist - process it [08:06:45]requested_item shift.opened is exist - process it [08:06:45]req_shift_opened [08:06:45]FM_GetShiftState [08:06:45]SAM_PROTO_GetShiftState [08:06:45]wFMCommunicate request_size=4 [08:06:45]MH_SAM_APDU [08:06:45]CAPDU: 80 13 01 00 [08:06:45]Write to MH i2c: E2 08 00 A4 15 80 13 01 00 00 00 00 00 36 [08:06:45]Write i2c OK [08:06:45]MH_I2C_Read... [08:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:45]Read from MH i2c: E2 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 0E 00 [08:06:45]MH_I2C_Read... [08:06:45]Read from MH i2c: E2 0E 00 A4 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FA [08:06:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:06:45]wFMCommunicate OK [08:06:45]SAM_PROTO_GetShiftState done [08:06:45]FM_GetShiftState done [08:06:45]req_shift_opened done [08:06:45]requested_item shift.open_date is exist - process it [08:06:45]req_shift_open_date [08:06:45]req_shift_open_date done [08:06:45]produce_requested_data done [08:06:45]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15219,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:06:45]process_action_free close_receipt [08:06:45]json_value_free [08:06:45]json_value_free done [08:06:45]process_json_proto returns [08:06:45]Send response to host [08:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15219,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:06:45]free response buf [08:06:45]execute_script done [08:06:45]execute_script returns [08:06:45]free content buf [08:06:45]Sock 9.Close socket [08:06:45]Sock 9.Thread stoped [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:16]accept exits with 8 [08:07:16]New connection [08:07:16]New thread 3066944868 created [08:07:16]Thread 3066801508 joined [08:07:16]Waiting for new connection... [08:07:16] Sock 8.Parse request [08:07:16]Sock 8.Check first char [08:07:16]Sock 8.First char is OK [08:07:16]request: POST /json_proto HTTP/1.0 [08:07:16]Method: POST [08:07:16]URL: /json_proto [08:07:16]Method is POST - this is cgi request [08:07:16]url: /json_proto [08:07:16]query_string will be loaded in cgi processing [08:07:16]execute_cgi json_proto POST (null) [08:07:16]execute_cgi path=json_proto method=POST [08:07:16]POST find Content-Length [08:07:16]Host: 172.17.44.4:8080 [08:07:16]Content-Length: 820 [08:07:16]Content-Type: application/json [08:07:16] [08:07:16]POST finish read [08:07:16]Found Content-Length = 820 [08:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:16]execute_script... [08:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:16]POST & json_proto [08:07:16]process_json_proto [08:07:16]json parsed OK: [08:07:16]protocol is kg_v1.0 [08:07:16]action value=close_receipt [08:07:16]process_action close_receipt [08:07:16]cmd_close_receipt [08:07:16]MH_GetDate [08:07:16]Write to MH i2c: F0 00 00 A5 15 A9 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 09 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: F0 09 00 A5 15 00 37 43 C8 66 0F 81 47 66 97 [08:07:16]GetLastDocTimeStamp 1724400405 [08:07:16]current date 1724400439 [08:07:16]FM_GetShiftState [08:07:16]SAM_PROTO_GetShiftState [08:07:16]wFMCommunicate request_size=4 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 13 01 00 [08:07:16]Write to MH i2c: E2 08 00 A6 15 80 13 01 00 00 00 00 00 38 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:16]Read from MH i2c: E2 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 0E 00 [08:07:16]MH_I2C_Read... [08:07:16]Read from MH i2c: E2 0E 00 A6 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FC [08:07:16]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:07:16]wFMCommunicate OK [08:07:16]SAM_PROTO_GetShiftState done [08:07:16]FM_GetShiftState done [08:07:16]opened in 1724372406 [08:07:16]opened+sec_in_day 1724458806 [08:07:16]quantity*price = 200010 [08:07:16]sum+1 = 200011 [08:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 14 23.08.2024 08:07 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094529 ФД: 15220 ФПД: 171111285573498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080719&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15220&fm=171111285573498&tin=02508201610067®Number=0000000000162784&sum=200010 [08:07:17]StoreToDocumentArchive [08:07:17]shift 102 fd 15220 [08:07:17]save to /storage/0102/doc_00015220 [08:07:17]save last doc name /storage/0102/doc_00015220 to /storage/kkm_last_doc_name [08:07:17]save OK [08:07:17]Clear old archive folders... [08:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:17]tlvbuf is B6EBFA00 [08:07:17]SAM_PROTO_ClearQueue [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 09 00 00 [08:07:17]Write to MH i2c: E2 08 00 B3 15 80 09 00 00 00 00 00 00 3A [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_ClearQueue done [08:07:17]KKMCreateOFDPacket [08:07:17]OFDProtocolAddRootSTLVToBuf [08:07:17]FM_MakeSignedData [08:07:17]FM_MakeSignedData [08:07:17]SAM_PROTO_SignData [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 01 02 [08:07:17]Write to MH i2c: E2 08 00 B4 15 80 0D 01 02 00 00 00 00 42 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=255 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 37 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 74 3B 00 00 35 04 06 00 9B [08:07:17]Write to MH i2c: E2 02 01 B5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 37 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 74 3B 00 00 35 04 06 00 9B 00 00 40 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=10 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 02 02 05 9F F3 64 C7 7A [08:07:17]Write to MH i2c: E2 0D 00 B6 15 80 0D 02 02 05 00 9F F3 64 C7 7A 00 00 86 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 B6 15 00 90 00 3F [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 03 02 [08:07:17]Write to MH i2c: E2 08 00 B7 15 80 0D 03 02 00 00 00 00 47 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 B7 15 00 73 95 9A A5 EA 83 53 53 90 00 A2 [08:07:17]RAPDU: 73 95 9A A5 EA 83 53 53 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_SignData done [08:07:17]FM_MakeSignedData done [08:07:17]CreateOFDProtocolMessage [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 B8 15 80 11 00 00 00 00 00 00 47 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 17 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 17 00 B8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 99 [08:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:07:18]wFMCommunicate OK [08:07:18]CreateOFDProtocolMessage done [08:07:18]OFDSenderStorePacket 15220 [08:07:18]StoreOFDPacket docnum=15220 [08:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 4E 46 07 01 2F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 37 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 74 3B 00 00 35 04 06 00 9B 9F F3 64 C7 7A 73 95 9A A5 EA 83 53 53 [08:07:18]CheckFolder [08:07:18]dirname=/storage/ofd_packets [08:07:18]CheckFolder done [08:07:18]ProducePacketName [08:07:18]name=ofd_packets/00015220 [08:07:18]NVStorageSaveData ofd_packets/00015220 [08:07:18]File name is /storage/ofd_packets/00015220 [08:07:18]Write 301 bytes [08:07:18]NVStorageSaveData done [08:07:18]OFDSenderStorePacket done [08:07:18]KKMCreateOFDPacket done [08:07:18]NVStorageSaveData kkm_last_timestamp [08:07:18]File name is /storage/kkm_last_timestamp [08:07:18]Write 4 bytes [08:07:18]NVStorageSaveData done [08:07:18]ExternCall_PrintAddStr [08:07:18]wPrintStart [08:07:18]Write to MH i2c: 01 00 00 B9 15 CE [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 FF 0F E3 [08:07:18]RasterBufferAndPrint [08:07:18]line Счет N : (1)2078074 [08:07:18]line ИНН: 02508201610067 [08:07:18]line Контрольно-Кассовый Чек [08:07:18]line ПРОДАЖА [08:07:18]line ТРК (МРК, ГНК) : 43 [08:07:18]line Товар: 2710124130 [08:07:18]line Аи-92-К-4 [08:07:18]line 29.500 * 67.80 [08:07:18]line = 2000.10 [08:07:18]line НДС 12% НСП 1% [08:07:18]line > о реализуемом товаре [08:07:18]line ИТОГО: 2000.10 [08:07:18]line НСП 1% : 17.70 [08:07:18]line НДС 12% : 212.40 [08:07:18]line Наличными: 0.00 [08:07:18]line Безнал.: 2000.10 [08:07:18]line Место: АЗС № 135 "Партнер Нефть" [08:07:18]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:07:18]line СНО: Общий режим [08:07:18]line Чек 14 23.08.2024 08:07 [08:07:18]line Смена: 102 ФФД: 1.0 [08:07:18]line ЗНМ: 0300000144 [08:07:18]line РНМ: 0000000000162784 [08:07:18]line Версия ККМ: v1.0 [08:07:18]line Платежная система: Бакай Банк [08:07:18]line ФМ: 0000000002094529 [08:07:18]line ФД: 15220 [08:07:18]line ФПД: 171111285573498 [08:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T080719&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15220&fm=171111285573498&tin=02508201610067®Number=0000000000162784&sum=200010 [08:07:18]OFD Sender: Processing packet 15220 [packets to send 8, broken 7] [08:07:18]ProducePacketName [08:07:18]name=ofd_packets/00015220 [08:07:18]OFD Sender: To server: pG, [08:07:18]CommunicateWithHost lk.salyk.kg:30040 [08:07:18]ConnectInit lk.salyk.kg [08:07:18]written 0, free lines is 4095 [08:07:18]Connected sock=9 [08:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 4E 46 07 01 2F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 37 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 74 3B 00 00 35 04 06 00 9B 9F F3 64 C7 7A 73 95 9A A5 EA 83 53 53 [08:07:18]Write to MH i2c: 01 00 00 E3 15 F8 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 E4 0C EF [08:07:18]RasterBufferAndPrint [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]written 0, free lines is 3305 [08:07:18]MH_Cut [08:07:18]Write to MH i2c: D1 01 00 EA 15 01 D1 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 EA 15 00 D0 [08:07:18]Write to MH i2c: 01 00 00 EB 15 00 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 16 33 47 00 96 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 74 3B 00 00 F4 03 04 00 93 ED C7 66 B6 04 01 00 00 8C AD CC F5 13 C1 BE 07 [08:07:18]CommunicateWithHost err = 0 [08:07:18]CheckOFDResponse [08:07:18]1017 (14) - 77093643461234 [08:07:18]1041 (16) - 0000000002094529 [08:07:18]1040 (4) - 15220 [08:07:18]1012 (4) - 23.08.2024 02:01 [08:07:18]1206 (1) - 0 [08:07:18]OFD Sender: Remove packet 15220 [08:07:18]ProducePacketName [08:07:18]name=ofd_packets/00015220 [08:07:18]NVStorageDeleteData [08:07:19]OFD Sender: No OFD packet to send [08:07:19]*** Cut start [08:07:19]*** Partial cut [08:07:19]*** CUTSNS_PIN = 1 [08:07:19]*** CUTSNS_PIN = 0 [08:07:19]*** Brake cut motor [08:07:20]Read from MH i2c: 01 [08:07:20]MH_I2C_Read... [08:07:20]*** Stop cut motor [08:07:20]*** Cut end [08:07:20]Read from MH i2c: 01 07 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: 01 07 00 EB 15 00 00 00 00 00 FF 0F 15 [08:07:20]process_action close_receipt done [08:07:20]requested_data is exist [08:07:20]produce_requested_data [08:07:20]requested_item fm.sn is exist - process it [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 11 00 00 [08:07:20]Write to MH i2c: E2 08 00 EC 15 80 11 00 00 00 00 00 00 7B [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 17 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 17 00 EC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CD [08:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:07:20]wFMCommunicate OK [08:07:20]requested_item fd.num is exist - process it [08:07:20]SAM_PROTO_GetFieldsCounters [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 13 00 00 [08:07:20]Write to MH i2c: E2 08 00 ED 15 80 13 00 00 00 00 00 00 7E [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 62 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 62 00 ED 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 74 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [08:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 74 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:20]wFMCommunicate OK [08:07:20]SAM_PROTO_GetFieldsCounters done [08:07:20]requested_item shift.num is exist - process it [08:07:20]requested_item shift.opened is exist - process it [08:07:20]req_shift_opened [08:07:20]FM_GetShiftState [08:07:20]SAM_PROTO_GetShiftState [08:07:20]wFMCommunicate request_size=4 [08:07:20]MH_SAM_APDU [08:07:20]CAPDU: 80 13 01 00 [08:07:20]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [08:07:20]Write i2c OK [08:07:20]MH_I2C_Read... [08:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:20]Read from MH i2c: E2 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 0E 00 [08:07:20]MH_I2C_Read... [08:07:20]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 44 [08:07:20]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:07:20]wFMCommunicate OK [08:07:20]SAM_PROTO_GetShiftState done [08:07:20]FM_GetShiftState done [08:07:20]req_shift_opened done [08:07:20]requested_item shift.open_date is exist - process it [08:07:20]req_shift_open_date [08:07:20]req_shift_open_date done [08:07:20]produce_requested_data done [08:07:20]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15220,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:07:20]process_action_free close_receipt [08:07:20]json_value_free [08:07:20]json_value_free done [08:07:20]process_json_proto returns [08:07:20]Send response to host [08:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15220,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:07:20]free response buf [08:07:20]execute_script done [08:07:20]execute_script returns [08:07:20]free content buf [08:07:20]Sock 8.Close socket [08:07:20]Sock 8.Thread stoped [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]accept exits with 10 [08:10:19]New connection [08:10:19]New thread 3066801508 created [08:10:19]Thread 3066944868 joined [08:10:19]Waiting for new connection... [08:10:19] Sock 10.Parse request [08:10:19]Sock 10.Check first char [08:10:19]Sock 10.First char is OK [08:10:19]request: POST /json_proto HTTP/1.0 [08:10:19]Method: POST [08:10:19]URL: /json_proto [08:10:19]Method is POST - this is cgi request [08:10:19]url: /json_proto [08:10:19]query_string will be loaded in cgi processing [08:10:19]execute_cgi json_proto POST (null) [08:10:19]execute_cgi path=json_proto method=POST [08:10:19]POST find Content-Length [08:10:19]Host: 172.17.44.4:8080 [08:10:19]Content-Length: 623 [08:10:19]Content-Type: application/json [08:10:19] [08:10:19]POST finish read [08:10:19]Found Content-Length = 623 [08:10:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151259", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:19]execute_script... [08:10: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)151259", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:19]POST & json_proto [08:10:19]process_json_proto [08:10:19]json parsed OK: [08:10:19]protocol is kg_v1.0 [08:10:19]action value=close_receipt [08:10:19]process_action close_receipt [08:10:19]cmd_close_receipt [08:10:19]MH_GetDate [08:10:19]Write to MH i2c: F0 00 00 EF 15 F3 [08:10:19]Write i2c OK [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: F0 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: F0 09 00 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: F0 09 00 EF 15 00 EE 43 C8 66 0F 81 47 66 98 [08:10:19]GetLastDocTimeStamp 1724400439 [08:10:19]current date 1724400622 [08:10:19]FM_GetShiftState [08:10:19]SAM_PROTO_GetShiftState [08:10:19]wFMCommunicate request_size=4 [08:10:19]MH_SAM_APDU [08:10:19]CAPDU: 80 13 01 00 [08:10:19]Write to MH i2c: E2 08 00 F0 15 80 13 01 00 00 00 00 00 82 [08:10:19]Write i2c OK [08:10:19]MH_I2C_Read... [08:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:19]Read from MH i2c: E2 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: E2 0E 00 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: E2 0E 00 F0 15 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 46 [08:10:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:10:19]wFMCommunicate OK [08:10:19]SAM_PROTO_GetShiftState done [08:10:19]FM_GetShiftState done [08:10:19]opened in 1724372406 [08:10:19]opened+sec_in_day 1724458806 [08:10:19]quantity*price = 14000 [08:10:19]sum+1 = 14001 [08:10:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 15 23.08.2024 08:10 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15221 ФПД: 266907100588319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081022&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15221&fm=266907100588319&tin=02508201610067®Number=0000000000162784&sum=14000 0 [08:10:20]StoreToDocumentArchive [08:10:20]shift 102 fd 15221 [08:10:20]save to /storage/0102/doc_00015221 [08:10:20]save last doc name /storage/0102/doc_00015221 to /storage/kkm_last_doc_name [08:10:20]save OK [08:10:20]Clear old archive folders... [08:10:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:10:20]tlvbuf is B6EBF140 [08:10:20]SAM_PROTO_ClearQueue [08:10:20]wFMCommunicate request_size=4 [08:10:20]MH_SAM_APDU [08:10:20]CAPDU: 80 09 00 00 [08:10:20]Write to MH i2c: E2 08 00 FD 15 80 09 00 00 00 00 00 00 84 [08:10:20]Write i2c OK [08:10:20]MH_I2C_Read... [08:10:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:20]Read from MH i2c: E2 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [08:10:20]RAPDU: 90 00 [08:10:20]wFMCommunicate OK [08:10:20]SAM_PROTO_ClearQueue done [08:10:20]KKMCreateOFDPacket [08:10:20]OFDProtocolAddRootSTLVToBuf [08:10:20]FM_MakeSignedData [08:10:20]FM_MakeSignedData [08:10:20]SAM_PROTO_SignData [08:10:20]wFMCommunicate request_size=4 [08:10:20]MH_SAM_APDU [08:10:20]CAPDU: 80 0D 01 02 [08:10:20]Write to MH i2c: E2 08 00 FE 15 80 0D 01 02 00 00 00 00 8C [08:10:20]Write i2c OK [08:10:20]MH_I2C_Read... [08:10:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:20]Read from MH i2c: E2 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [08:10:20]RAPDU: 90 00 [08:10:20]wFMCommunicate OK [08:10:20]wFMCommunicate request_size=255 [08:10:20]MH_SAM_APDU [08:10:20]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 EE 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 [08:10:20]Write to MH i2c: E2 02 01 FF 15 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 EE 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 00 00 F3 [08:10:20]Write i2c OK [08:10:20]MH_I2C_Read... [08:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:20]Read from MH i2c: E2 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [08:10:20]RAPDU: 90 00 [08:10:20]wFMCommunicate OK [08:10:20]wFMCommunicate request_size=34 [08:10:20]MH_SAM_APDU [08:10:20]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 75 3B 00 00 35 04 06 00 F2 C0 26 EB 29 1F [08:10:20]Write to MH i2c: E2 25 00 00 16 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 75 3B 00 00 35 04 06 00 F2 C0 26 EB 29 1F 00 00 0B [08:10:20]Write i2c OK [08:10:20]MH_I2C_Read... [08:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:20]Read from MH i2c: E2 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 [08:10:20]MH_I2C_Read... [08:10:20]Read from MH i2c: E2 03 00 00 16 00 90 00 8A [08:10:20]RAPDU: 90 00 [08:10:20]wFMCommunicate OK [08:10:20]wFMCommunicate request_size=4 [08:10:20]MH_SAM_APDU [08:10:20]CAPDU: 80 0D 03 02 [08:10:20]Write to MH i2c: E2 08 00 01 16 80 0D 03 02 00 00 00 00 92 [08:10:20]Write i2c OK [08:10:20]MH_I2C_Read... [08:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:20]Read from MH i2c: E2 [08:10:20]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0B 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0B 00 01 16 00 55 FA E0 2D 2E 5E A1 07 90 00 23 [08:10:21]RAPDU: 55 FA E0 2D 2E 5E A1 07 90 00 [08:10:21]wFMCommunicate OK [08:10:21]SAM_PROTO_SignData done [08:10:21]FM_MakeSignedData done [08:10:21]CreateOFDProtocolMessage [08:10:21]wFMCommunicate request_size=4 [08:10:21]MH_SAM_APDU [08:10:21]CAPDU: 80 11 00 00 [08:10:21]Write to MH i2c: E2 08 00 02 16 80 11 00 00 00 00 00 00 92 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:21]Read from MH i2c: E2 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 17 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 17 00 02 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E4 [08:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:10:21]wFMCommunicate OK [08:10:21]CreateOFDProtocolMessage done [08:10:21]OFDSenderStorePacket 15221 [08:10:21]StoreOFDPacket docnum=15221 [08:10:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 27 01 00 00 81 8F 1F 01 E2 AB 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 EE 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 75 3B 00 00 35 04 06 00 F2 C0 26 EB 29 1F 55 FA E0 2D 2E 5E A1 07 [08:10:21]CheckFolder [08:10:21]dirname=/storage/ofd_packets [08:10:21]CheckFolder done [08:10:21]ProducePacketName [08:10:21]name=ofd_packets/00015221 [08:10:21]NVStorageSaveData ofd_packets/00015221 [08:10:21]File name is /storage/ofd_packets/00015221 [08:10:21]Write 325 bytes [08:10:21]NVStorageSaveData done [08:10:21]OFDSenderStorePacket done [08:10:21]KKMCreateOFDPacket done [08:10:21]NVStorageSaveData kkm_last_timestamp [08:10:21]File name is /storage/kkm_last_timestamp [08:10:21]Write 4 bytes [08:10:21]NVStorageSaveData done [08:10:21]ExternCall_PrintAddStr [08:10:21]wPrintStart [08:10:21]Write to MH i2c: 01 00 00 03 16 19 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 07 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [08:10:21]RasterBufferAndPrint [08:10:21]line Счет N : (3)151259 [08:10:21]line ИНН: 02508201610067 [08:10:21]line Контрольно-Кассовый Чек [08:10:21]line ПРОДАЖА [08:10:21]line Товар: 48743587 [08:10:21]line Сигареты Winston XStyle Silver [08:10:21]line 1.000 * 140.00 [08:10:21]line = 140.00 [08:10:21]line НДС 12% НСП 1% [08:10:21]line > о реализуемом товаре [08:10:21]line ИТОГО: 140.00 [08:10:21]line НСП 1% : 1.24 [08:10:21]line НДС 12% : 14.87 [08:10:21]line Наличными: 140.00 [08:10:21]line Безнал.: 0.00 [08:10:21]line Место: АЗС № 135 "Партнер Нефть" [08:10:21]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:10:21]line СНО: Общий режим [08:10:21]line Чек 15 23.08.2024 08:10 [08:10:21]line Смена: 102 ФФД: 1.0 [08:10:21]line ЗНМ: 0300000144 [08:10:21]line РНМ: 0000000000162784 [08:10:21]line Версия ККМ: v1.0 [08:10:21]line ФМ: 0000000002094529 [08:10:21]line ФД: 15221 [08:10:21]line ФПД: 266907100588319 [08:10:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081022&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15221&fm=266907100588319&tin=02508201610067®Number=0000000000162784&sum=14000 [08:10:21]line 0 [08:10:21]OFD Sender: Processing packet 15221 [packets to send 8, broken 7] [08:10:21]ProducePacketName [08:10:21]name=ofd_packets/00015221 [08:10:21]OFD Sender: To server: pG, [08:10:21]CommunicateWithHost lk.salyk.kg:30040 [08:10:21]ConnectInit lk.salyk.kg [08:10:21]written 0, free lines is 4095 [08:10:21]Connected sock=11 [08:10:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 27 01 00 00 81 8F 1F 01 E2 AB 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 EE 43 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 75 3B 00 00 35 04 06 00 F2 C0 26 EB 29 1F 55 FA E0 2D 2E 5E A1 07 [08:10:21]Write to MH i2c: 01 00 00 2C 16 42 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 07 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 EA 0C 3F [08:10:21]RasterBufferAndPrint [08:10:21]line [08:10:21]line [08:10:21]line [08:10:21]line [08:10:21]line [08:10:21]written 0, free lines is 3312 [08:10:21]MH_Cut [08:10:21]Write to MH i2c: D1 01 00 33 16 01 1B [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: D1 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: D1 01 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: D1 01 00 33 16 00 1A [08:10:21]Write to MH i2c: 01 00 00 34 16 4A [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 65 8A 47 00 75 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 32 30 39 34 35 32 39 10 04 04 00 75 3B 00 00 F4 03 04 00 4A EE C7 66 B6 04 01 00 00 E2 08 6B FC 9C 03 5A 01 [08:10:21]CommunicateWithHost err = 0 [08:10:21]CheckOFDResponse [08:10:21]1017 (14) - 77093643461234 [08:10:21]1041 (16) - 0000000002094529 [08:10:21]1040 (4) - 15221 [08:10:21]1012 (4) - 23.08.2024 02:04 [08:10:21]1206 (1) - 0 [08:10:21]OFD Sender: Remove packet 15221 [08:10:21]ProducePacketName [08:10:21]name=ofd_packets/00015221 [08:10:21]NVStorageDeleteData [08:10:22]OFD Sender: No OFD packet to send [08:10:22]*** Cut start [08:10:22]*** Partial cut [08:10:22]*** CUTSNS_PIN = 1 [08:10:22]*** CUTSNS_PIN = 0 [08:10:22]*** Brake cut motor [08:10:23]Read from MH i2c: 01 [08:10:23]MH_I2C_Read... [08:10:23]*** Stop cut motor [08:10:23]*** Cut end [08:10:23]Read from MH i2c: 01 07 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 FF 0F 5F [08:10:23]process_action close_receipt done [08:10:23]requested_data is exist [08:10:23]produce_requested_data [08:10:23]requested_item fm.sn is exist - process it [08:10:23]wFMCommunicate request_size=4 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 11 00 00 [08:10:23]Write to MH i2c: E2 08 00 35 16 80 11 00 00 00 00 00 00 C5 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:23]Read from MH i2c: E2 17 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 17 00 35 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 17 [08:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:10:23]wFMCommunicate OK [08:10:23]requested_item fd.num is exist - process it [08:10:23]SAM_PROTO_GetFieldsCounters [08:10:23]wFMCommunicate request_size=4 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 13 00 00 [08:10:23]Write to MH i2c: E2 08 00 36 16 80 13 00 00 00 00 00 00 C8 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 62 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 62 00 36 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 75 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [08:10:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 75 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:23]wFMCommunicate OK [08:10:23]SAM_PROTO_GetFieldsCounters done [08:10:23]requested_item shift.num is exist - process it [08:10:23]requested_item shift.opened is exist - process it [08:10:23]req_shift_opened [08:10:23]FM_GetShiftState [08:10:23]SAM_PROTO_GetShiftState [08:10:23]wFMCommunicate request_size=4 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 13 01 00 [08:10:23]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 0E 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 8E [08:10:23]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:10:23]wFMCommunicate OK [08:10:23]SAM_PROTO_GetShiftState done [08:10:23]FM_GetShiftState done [08:10:23]req_shift_opened done [08:10:23]requested_item shift.open_date is exist - process it [08:10:23]req_shift_open_date [08:10:23]req_shift_open_date done [08:10:23]produce_requested_data done [08:10:23]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15221,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:10:23]process_action_free close_receipt [08:10:23]json_value_free [08:10:23]json_value_free done [08:10:23]process_json_proto returns [08:10:23]Send response to host [08:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15221,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:10:23]free response buf [08:10:23]execute_script done [08:10:23]execute_script returns [08:10:23]free content buf [08:10:23]Sock 10.Close socket [08:10:23]Sock 10.Thread stoped [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15: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:51]accept exits with 8 [08:17:51]New connection [08:17:51]New thread 3066944868 created [08:17:51]Thread 3066801508 joined [08:17:51]Waiting for new connection... [08:17:51] Sock 8.Parse request [08:17:51]Sock 8.Check first char [08:17:51]Sock 8.First char is OK [08:17:51]request: POST /json_proto HTTP/1.0 [08:17:51]Method: POST [08:17:51]URL: /json_proto [08:17:51]Method is POST - this is cgi request [08:17:51]url: /json_proto [08:17:51]query_string will be loaded in cgi processing [08:17:51]execute_cgi json_proto POST (null) [08:17:51]execute_cgi path=json_proto method=POST [08:17:51]POST find Content-Length [08:17:51]Host: 172.17.44.4:8080 [08:17:51]Content-Length: 1072 [08:17:51]Content-Type: application/json [08:17:51] [08:17:51]POST finish read [08:17:51]Found Content-Length = 1072 [08:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151260", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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 }]} ], "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:51]execute_script... [08:17:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151260", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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 }]} ], "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:51]POST & json_proto [08:17:51]process_json_proto [08:17:51]json parsed OK: [08:17:51]protocol is kg_v1.0 [08:17:51]action value=close_receipt [08:17:51]process_action close_receipt [08:17:51]cmd_close_receipt [08:17:51]MH_GetDate [08:17:51]Write to MH i2c: F0 00 00 38 16 3D [08:17:51]Write i2c OK [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 09 00 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 09 00 38 16 00 B3 45 C8 66 0F 81 47 66 A9 [08:17:51]GetLastDocTimeStamp 1724400622 [08:17:51]current date 1724401075 [08:17:51]FM_GetShiftState [08:17:51]SAM_PROTO_GetShiftState [08:17:51]wFMCommunicate request_size=4 [08:17:51]MH_SAM_APDU [08:17:51]CAPDU: 80 13 01 00 [08:17:51]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [08:17:51]Write i2c OK [08:17:51]MH_I2C_Read... [08:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:51]Read from MH i2c: E2 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: E2 0E 00 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 90 [08:17:51]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:17:51]wFMCommunicate OK [08:17:51]SAM_PROTO_GetShiftState done [08:17:51]FM_GetShiftState done [08:17:51]opened in 1724372406 [08:17:51]opened+sec_in_day 1724458806 [08:17:51]quantity*price = 4000 [08:17:51]sum+1 = 4001 [08:17:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 16 23.08.2024 08:17 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094529 ФД: 15222 ФПД: 157779748642217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081755&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15222&fm=157779748642217&tin=02508201610067®Number=0000000000162784&sum=17000 0 [08:17:52]StoreToDocumentArchive [08:17:52]shift 102 fd 15222 [08:17:52]save to /storage/0102/doc_00015222 [08:17:52]save last doc name /storage/0102/doc_00015222 to /storage/kkm_last_doc_name [08:17:52]save OK [08:17:52]Clear old archive folders... [08:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=383 [08:17:52]tlvbuf is 00484740 [08:17:52]SAM_PROTO_ClearQueue [08:17:52]wFMCommunicate request_size=4 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 09 00 00 [08:17:52]Write to MH i2c: E2 08 00 46 16 80 09 00 00 00 00 00 00 CE [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:52]OFD Sender: No OFD packet to send [08:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:52]Read from MH i2c: E2 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 03 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [08:17:52]RAPDU: 90 00 [08:17:52]wFMCommunicate OK [08:17:52]SAM_PROTO_ClearQueue done [08:17:52]KKMCreateOFDPacket [08:17:52]OFDProtocolAddRootSTLVToBuf [08:17:52]FM_MakeSignedData [08:17:52]FM_MakeSignedData [08:17:52]SAM_PROTO_SignData [08:17:52]wFMCommunicate request_size=4 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 0D 01 02 [08:17:52]Write to MH i2c: E2 08 00 47 16 80 0D 01 02 00 00 00 00 D6 [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:52]Read from MH i2c: E2 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 03 00 [08:17:52]MH_I2C_Read... [08:17:52]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [08:17:52]RAPDU: 90 00 [08:17:52]wFMCommunicate OK [08:17:52]wFMCommunicate request_size=255 [08:17:52]MH_SAM_APDU [08:17:52]CAPDU: 80 0D 02 02 FA 03 00 7F 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 [08:17:52]Write to MH i2c: E2 02 01 48 16 80 0D 02 02 FA 00 03 00 7F 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 25 [08:17:52]Write i2c OK [08:17:52]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]wFMCommunicate request_size=142 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 0D 02 02 89 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B3 45 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 76 3B 00 00 35 04 06 00 8F 7F F5 DE DD A9 [08:17:53]Write to MH i2c: E2 91 00 49 16 80 0D 02 02 89 00 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B3 45 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 76 3B 00 00 35 04 06 00 8F 7F F5 DE DD A9 00 00 8C [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 0D 03 02 [08:17:53]Write to MH i2c: E2 08 00 4A 16 80 0D 03 02 00 00 00 00 DB [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 0B 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 0B 00 4A 16 00 54 DB 31 0A 21 BF 90 F3 90 00 A9 [08:17:53]RAPDU: 54 DB 31 0A 21 BF 90 F3 90 00 [08:17:53]wFMCommunicate OK [08:17:53]SAM_PROTO_SignData done [08:17:53]FM_MakeSignedData done [08:17:53]CreateOFDProtocolMessage [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 11 00 00 [08:17:53]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 17 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 2D [08:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:17:53]wFMCommunicate OK [08:17:53]CreateOFDProtocolMessage done [08:17:53]OFDSenderStorePacket 15222 [08:17:53]StoreOFDPacket docnum=15222 [08:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 93 01 00 00 45 50 8B 01 E6 14 5A 03 01 00 03 00 7F 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B3 45 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 76 3B 00 00 35 04 06 00 8F 7F F5 DE DD A9 54 DB 31 0A 21 BF 90 F3 [08:17:53]CheckFolder [08:17:53]dirname=/storage/ofd_packets [08:17:53]CheckFolder done [08:17:53]ProducePacketName [08:17:53]name=ofd_packets/00015222 [08:17:53]NVStorageSaveData ofd_packets/00015222 [08:17:53]File name is /storage/ofd_packets/00015222 [08:17:53]Write 433 bytes [08:17:53]NVStorageSaveData done [08:17:53]OFDSenderStorePacket done [08:17:53]KKMCreateOFDPacket done [08:17:53]NVStorageSaveData kkm_last_timestamp [08:17:53]File name is /storage/kkm_last_timestamp [08:17:53]Write 4 bytes [08:17:53]NVStorageSaveData done [08:17:53]ExternCall_PrintAddStr [08:17:53]wPrintStart [08:17:53]Write to MH i2c: 01 00 00 4C 16 62 [08:17:53]OFD Sender: Processing packet 15222 [packets to send 8, broken 7] [08:17:53]ProducePacketName [08:17:53]name=ofd_packets/00015222 [08:17:53]OFD Sender: To server: pG, [08:17:53]CommunicateWithHost lk.salyk.kg:30040 [08:17:53]ConnectInit lk.salyk.kg [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 07 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 FF 0F 77 [08:17:53]RasterBufferAndPrint [08:17:53]line Счет N : (3)151260 [08:17:53]line ИНН: 02508201610067 [08:17:53]line Контрольно-Кассовый Чек [08:17:53]line ПРОДАЖА [08:17:53]line Товар: 4700000160211 [08:17:53]line Вода Легенда 0,5л [08:17:53]line 1.000 * 40.00 [08:17:53]line = 40.00 [08:17:53]line НДС 12% НСП 1% [08:17:53]line > о реализуемом товаре [08:17:53]line Товар: 2000036220012 [08:17:53]line Кофе Капучино XL(GABB TRADE) [08:17:53]line 1.000 * 130.00 [08:17:53]line = 130.00 [08:17:53]line НДС 12% НСП 1% [08:17:53]line > о реализуемом товаре [08:17:53]line ИТОГО: 170.00 [08:17:53]line НСП 1% : 1.50 [08:17:53]line НДС 12% : 18.05 [08:17:53]line Наличными: 0.00 [08:17:53]line Безнал.: 170.00 [08:17:53]line Место: АЗС № 135 "Партнер Нефть" [08:17:53]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:17:53]line СНО: Общий режим [08:17:53]line Чек 16 23.08.2024 08:17 [08:17:53]line Смена: 102 ФФД: 1.0 [08:17:53]line ЗНМ: 0300000144 [08:17:53]line РНМ: 0000000000162784 [08:17:53]line Версия ККМ: v1.0 [08:17:53]line Платежная система: Бакай Банк [08:17:53]line ФМ: 0000000002094529 [08:17:53]line ФД: 15222 [08:17:53]line ФПД: 157779748642217 [08:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081755&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15222&fm=157779748642217&tin=02508201610067®Number=0000000000162784&sum=17000 [08:17:53]line 0 [08:17:53]written 0, free lines is 4095 [08:17:53]Connected sock=10 [08:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 93 01 00 00 45 50 8B 01 E6 14 5A 03 01 00 03 00 7F 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B3 45 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 76 3B 00 00 35 04 06 00 8F 7F F5 DE DD A9 54 DB 31 0A 21 BF 90 F3 [08:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 62 9A 47 00 1F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 76 3B 00 00 F4 03 04 00 0F F0 C7 66 B6 04 01 00 00 A0 0B 16 0A A4 98 C9 87 [08:17:54]CommunicateWithHost err = 0 [08:17:54]CheckOFDResponse [08:17:54]1017 (14) - 77093643461234 [08:17:54]1041 (16) - 0000000002094529 [08:17:54]1040 (4) - 15222 [08:17:54]1012 (4) - 23.08.2024 02:12 [08:17:54]1206 (1) - 0 [08:17:54]OFD Sender: Remove packet 15222 [08:17:54]ProducePacketName [08:17:54]name=ofd_packets/00015222 [08:17:54]NVStorageDeleteData [08:17:54]Write to MH i2c: 01 00 00 7D 16 93 [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 07 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 07 00 7D 16 00 00 00 00 00 70 0C 16 [08:17:54]RasterBufferAndPrint [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]written 0, free lines is 3188 [08:17:54]MH_Cut [08:17:54]Write to MH i2c: D1 01 00 84 16 01 6C [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 01 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 01 00 84 16 00 6B [08:17:54]Write to MH i2c: 01 00 00 85 16 9B [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]OFD Sender: No OFD packet to send [08:17:55]*** Cut start [08:17:55]*** Partial cut [08:17:55]*** CUTSNS_PIN = 1 [08:17:55]*** CUTSNS_PIN = 0 [08:17:55]*** Brake cut motor [08:17:55]Read from MH i2c: 01 [08:17:55]MH_I2C_Read... [08:17:55]*** Stop cut motor [08:17:55]*** Cut end [08:17:55]Read from MH i2c: 01 07 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [08:17:55]process_action close_receipt done [08:17:55]requested_data is exist [08:17:55]produce_requested_data [08:17:55]requested_item fm.sn is exist - process it [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 11 00 00 [08:17:55]Write to MH i2c: E2 08 00 86 16 80 11 00 00 00 00 00 00 16 [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 17 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 17 00 86 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 68 [08:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:17:55]wFMCommunicate OK [08:17:55]requested_item fd.num is exist - process it [08:17:55]SAM_PROTO_GetFieldsCounters [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 13 00 00 [08:17:55]Write to MH i2c: E2 08 00 87 16 80 13 00 00 00 00 00 00 19 [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 62 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 62 00 87 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 76 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [08:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 76 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:55]wFMCommunicate OK [08:17:55]SAM_PROTO_GetFieldsCounters done [08:17:55]requested_item shift.num is exist - process it [08:17:55]requested_item shift.opened is exist - process it [08:17:55]req_shift_opened [08:17:55]FM_GetShiftState [08:17:55]SAM_PROTO_GetShiftState [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 13 01 00 [08:17:55]Write to MH i2c: E2 08 00 88 16 80 13 01 00 00 00 00 00 1B [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 [08:17:56]MH_I2C_Read... [08:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:56]Read from MH i2c: E2 0E 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 0E 00 88 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 DF [08:17:56]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:17:56]wFMCommunicate OK [08:17:56]SAM_PROTO_GetShiftState done [08:17:56]FM_GetShiftState done [08:17:56]req_shift_opened done [08:17:56]requested_item shift.open_date is exist - process it [08:17:56]req_shift_open_date [08:17:56]req_shift_open_date done [08:17:56]produce_requested_data done [08:17:56]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15222,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:17:56]process_action_free close_receipt [08:17:56]json_value_free [08:17:56]json_value_free done [08:17:56]process_json_proto returns [08:17:56]Send response to host [08:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15222,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:17:56]free response buf [08:17:56]execute_script done [08:17:56]execute_script returns [08:17:56]free content buf [08:17:56]Sock 8.Close socket [08:17:56]Sock 8.Thread stoped [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:42]accept exits with 9 [08:22:42]New connection [08:22:42]New thread 3066801508 created [08:22:42]Thread 3066944868 joined [08:22:42]Waiting for new connection... [08:22:42] Sock 9.Parse request [08:22:42]Sock 9.Check first char [08:22:42]Sock 9.First char is OK [08:22:42]request: POST /json_proto HTTP/1.0 [08:22:42]Method: POST [08:22:42]URL: /json_proto [08:22:42]Method is POST - this is cgi request [08:22:42]url: /json_proto [08:22:42]query_string will be loaded in cgi processing [08:22:42]execute_cgi json_proto POST (null) [08:22:42]execute_cgi path=json_proto method=POST [08:22:42]POST find Content-Length [08:22:42]Host: 172.17.44.4:8080 [08:22:42]Content-Length: 1171 [08:22:42]Content-Type: application/json [08:22:42] [08:22:42]POST finish read [08:22:42]Found Content-Length = 1171 [08:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151261", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.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" : 10.000, "sum" : 1300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 6.000, "sum" : 750.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:42]execute_script... [08:22: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)151261", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 3.000, "sum" : 360.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" : 10.000, "sum" : 1300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 6.000, "sum" : 750.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:42]POST & json_proto [08:22:42]process_json_proto [08:22:42]json parsed OK: [08:22:42]protocol is kg_v1.0 [08:22:42]action value=close_receipt [08:22:42]process_action close_receipt [08:22:42]cmd_close_receipt [08:22:42]MH_GetDate [08:22:42]Write to MH i2c: F0 00 00 89 16 8E [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: F0 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: F0 09 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: F0 09 00 89 16 00 D6 46 C8 66 0F 81 47 66 1E [08:22:42]GetLastDocTimeStamp 1724401075 [08:22:42]current date 1724401366 [08:22:42]FM_GetShiftState [08:22:42]SAM_PROTO_GetShiftState [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 13 01 00 [08:22:42]Write to MH i2c: E2 08 00 8A 16 80 13 01 00 00 00 00 00 1D [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0E 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0E 00 8A 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E1 [08:22:42]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:22:42]wFMCommunicate OK [08:22:42]SAM_PROTO_GetShiftState done [08:22:42]FM_GetShiftState done [08:22:42]opened in 1724372406 [08:22:42]opened+sec_in_day 1724458806 [08:22:42]quantity*price = 36000 [08:22:42]sum+1 = 36001 [08:22:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 10.000 * 130.00 = 1300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 6.000 * 125.00 = 750.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 2410.00 НСП 1% : 21.33 НДС 12% : 255.93 Наличными: 2410.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 17 23.08.2024 08:22 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15223 ФПД: 92376505013328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T082246&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15223&fm=92376505013328&tin=02508201610067®Number=0000000000162784&sum=241000 0 [08:22:43]StoreToDocumentArchive [08:22:43]shift 102 fd 15223 [08:22:43]save to /storage/0102/doc_00015223 [08:22:43]save last doc name /storage/0102/doc_00015223 to /storage/kkm_last_doc_name [08:22:43]save OK [08:22:43]Clear old archive folders... [08:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=504 [08:22:43]tlvbuf is 0048B180 [08:22:43]SAM_PROTO_ClearQueue [08:22:43]wFMCommunicate request_size=4 [08:22:43]MH_SAM_APDU [08:22:43]CAPDU: 80 09 00 00 [08:22:43]Write to MH i2c: E2 08 00 97 16 80 09 00 00 00 00 00 00 1F [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]SAM_PROTO_ClearQueue done [08:22:44]KKMCreateOFDPacket [08:22:44]OFDProtocolAddRootSTLVToBuf [08:22:44]FM_MakeSignedData [08:22:44]FM_MakeSignedData [08:22:44]SAM_PROTO_SignData [08:22:44]wFMCommunicate request_size=4 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 01 02 [08:22:44]Write to MH i2c: E2 08 00 98 16 80 0D 01 02 00 00 00 00 27 [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]wFMCommunicate request_size=255 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 02 02 FA 03 00 F8 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 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 10 27 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 [08:22:44]Write to MH i2c: E2 02 01 99 16 80 0D 02 02 FA 00 03 00 F8 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 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 10 27 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 00 00 0F [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]wFMCommunicate request_size=255 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 02 02 FA 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 70 17 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 F8 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 AD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 63 00 00 00 00 07 04 06 00 68 AD 03 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 D6 46 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 77 3B 00 00 35 04 [08:22:44]Write to MH i2c: E2 02 01 9A 16 80 0D 02 02 FA 00 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 70 17 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 F8 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 AD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 63 00 00 00 00 07 04 06 00 68 AD 03 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 D6 46 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 77 3B 00 00 35 04 00 00 C6 [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]wFMCommunicate request_size=13 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 02 02 08 06 00 54 04 14 C4 54 50 [08:22:44]Write to MH i2c: E2 10 00 9B 16 80 0D 02 02 08 00 06 00 54 04 14 C4 54 50 00 00 15 [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]wFMCommunicate request_size=4 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 03 02 [08:22:44]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 0B 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 0B 00 9C 16 00 6A 4A 9F 8B 30 96 EA 81 90 00 3D [08:22:45]RAPDU: 6A 4A 9F 8B 30 96 EA 81 90 00 [08:22:45]wFMCommunicate OK [08:22:45]SAM_PROTO_SignData done [08:22:45]FM_MakeSignedData done [08:22:45]CreateOFDProtocolMessage [08:22:45]wFMCommunicate request_size=4 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 11 00 00 [08:22:45]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]OFD Sender: No OFD packet to send [08:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 17 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 7F [08:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:22:45]wFMCommunicate OK [08:22:45]CreateOFDProtocolMessage done [08:22:45]OFDSenderStorePacket 15223 [08:22:45]StoreOFDPacket docnum=15223 [08:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 02 00 00 AB 5A 04 02 1F 9C 5A 03 01 00 03 00 F8 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 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 10 27 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 F8 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 AD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 63 00 00 00 00 07 04 06 00 68 AD 03 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 D6 46 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 77 3B 00 00 35 04 06 00 54 04 14 C4 54 50 6A 4A 9F 8B 30 96 EA 81 [08:22:45]CheckFolder [08:22:45]dirname=/storage/ofd_packets [08:22:45]CheckFolder done [08:22:45]ProducePacketName [08:22:45]name=ofd_packets/00015223 [08:22:45]NVStorageSaveData ofd_packets/00015223 [08:22:45]File name is /storage/ofd_packets/00015223 [08:22:45]Write 554 bytes [08:22:45]NVStorageSaveData done [08:22:45]OFDSenderStorePacket done [08:22:45]KKMCreateOFDPacket done [08:22:45]NVStorageSaveData kkm_last_timestamp [08:22:45]File name is /storage/kkm_last_timestamp [08:22:45]Write 4 bytes [08:22:45]NVStorageSaveData done [08:22:45]ExternCall_PrintAddStr [08:22:45]wPrintStart [08:22:45]Write to MH i2c: 01 00 00 9E 16 B4 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [08:22:45]RasterBufferAndPrint [08:22:45]line Счет N : (3)151261 [08:22:45]line ИНН: 02508201610067 [08:22:45]line Контрольно-Кассовый Чек [08:22:45]line ПРОДАЖА [08:22:45]line Товар: 2000034250011 [08:22:45]line Горячий шоколад (GABB trade) [08:22:45]line 3.000 * 120.00 [08:22:45]line = 360.00 [08:22:45]line НДС 12% НСП 1% [08:22:45]line > о реализуемом товаре [08:22:45]line Товар: 2000036230011 [08:22:45]line Кофе Латте XL(GABB TRADE) [08:22:45]line 10.000 * 130.00 [08:22:45]line = 1300.00 [08:22:45]line НДС 12% НСП 1% [08:22:45]line > о реализуемом товаре [08:22:45]line Товар: 2000036190018 [08:22:45]line Кофе Американо XL(GABB TRADE) [08:22:45]line 6.000 * 125.00 [08:22:45]line = 750.00 [08:22:45]line НДС 12% НСП 1% [08:22:45]line > о реализуемом товаре [08:22:45]line ИТОГО: 2410.00 [08:22:45]line НСП 1% : 21.33 [08:22:45]line НДС 12% : 255.93 [08:22:45]line Наличными: 2410.00 [08:22:45]line Безнал.: 0.00 [08:22:45]line Место: АЗС № 135 "Партнер Нефть" [08:22:45]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:22:45]line СНО: Общий режим [08:22:45]line Чек 17 23.08.2024 08:22 [08:22:45]line Смена: 102 ФФД: 1.0 [08:22:45]line ЗНМ: 0300000144 [08:22:45]line РНМ: 0000000000162784 [08:22:45]line Версия ККМ: v1.0 [08:22:45]line ФМ: 0000000002094529 [08:22:45]line ФД: 15223 [08:22:45]line ФПД: 92376505013328 [08:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T082246&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15223&fm=92376505013328&tin=02508201610067®Number=0000000000162784&sum=241000 [08:22:45]line 0 [08:22:45]written 0, free lines is 4095 [08:22:45]OFD Sender: Processing packet 15223 [packets to send 8, broken 7] [08:22:45]ProducePacketName [08:22:45]name=ofd_packets/00015223 [08:22:45]OFD Sender: To server: pG, [08:22:45]CommunicateWithHost lk.salyk.kg:30040 [08:22:45]ConnectInit lk.salyk.kg [08:22:45]Connected sock=10 [08:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 02 00 00 AB 5A 04 02 1F 9C 5A 03 01 00 03 00 F8 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 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 10 27 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 D0 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 F8 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 AD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 63 00 00 00 00 07 04 06 00 68 AD 03 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 D6 46 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 77 3B 00 00 35 04 06 00 54 04 14 C4 54 50 6A 4A 9F 8B 30 96 EA 81 [08:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 29 BD 47 00 42 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 77 3B 00 00 F4 03 04 00 32 F1 C7 66 B6 04 01 00 00 2C 03 3B 02 F4 36 AF 84 [08:22:45]CommunicateWithHost err = 0 [08:22:45]CheckOFDResponse [08:22:45]1017 (14) - 77093643461234 [08:22:45]1041 (16) - 0000000002094529 [08:22:45]1040 (4) - 15223 [08:22:45]1012 (4) - 23.08.2024 02:17 [08:22:45]1206 (1) - 0 [08:22:45]OFD Sender: Remove packet 15223 [08:22:45]ProducePacketName [08:22:45]name=ofd_packets/00015223 [08:22:45]NVStorageDeleteData [08:22:45]Write to MH i2c: 01 00 00 D4 16 EA [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 1F 0C 1C [08:22:45]RasterBufferAndPrint [08:22:45]line [08:22:45]line [08:22:45]line [08:22:45]line [08:22:45]line [08:22:45]written 0, free lines is 3110 [08:22:45]MH_Cut [08:22:45]Write to MH i2c: D1 01 00 DB 16 01 C3 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: D1 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: D1 01 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: D1 01 00 DB 16 00 C2 [08:22:45]Write to MH i2c: 01 00 00 DC 16 F2 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:46]OFD Sender: No OFD packet to send [08:22:46]*** Cut start [08:22:46]*** Partial cut [08:22:46]*** CUTSNS_PIN = 1 [08:22:46]*** CUTSNS_PIN = 0 [08:22:46]*** Brake cut motor [08:22:47]Read from MH i2c: 01 [08:22:47]MH_I2C_Read... [08:22:47]*** Stop cut motor [08:22:47]*** Cut end [08:22:47]Read from MH i2c: 01 07 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 FF 0F 07 [08:22:47]process_action close_receipt done [08:22:47]requested_data is exist [08:22:47]produce_requested_data [08:22:47]requested_item fm.sn is exist - process it [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 11 00 00 [08:22:47]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 17 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BF [08:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:22:47]wFMCommunicate OK [08:22:47]requested_item fd.num is exist - process it [08:22:47]SAM_PROTO_GetFieldsCounters [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 13 00 00 [08:22:47]Write to MH i2c: E2 08 00 DE 16 80 13 00 00 00 00 00 00 70 [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 62 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 62 00 DE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 77 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [08:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 77 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:47]wFMCommunicate OK [08:22:47]SAM_PROTO_GetFieldsCounters done [08:22:47]requested_item shift.num is exist - process it [08:22:47]requested_item shift.opened is exist - process it [08:22:47]req_shift_opened [08:22:47]FM_GetShiftState [08:22:47]SAM_PROTO_GetShiftState [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 13 01 00 [08:22:47]Write to MH i2c: E2 08 00 DF 16 80 13 01 00 00 00 00 00 72 [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 0E 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 0E 00 DF 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 36 [08:22:47]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:22:47]wFMCommunicate OK [08:22:47]SAM_PROTO_GetShiftState done [08:22:47]FM_GetShiftState done [08:22:47]req_shift_opened done [08:22:47]requested_item shift.open_date is exist - process it [08:22:47]req_shift_open_date [08:22:47]req_shift_open_date done [08:22:47]produce_requested_data done [08:22:47]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15223,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:22:47]process_action_free close_receipt [08:22:47]json_value_free [08:22:47]json_value_free done [08:22:47]process_json_proto returns [08:22:47]Send response to host [08:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15223,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:22:47]free response buf [08:22:47]execute_script done [08:22:47]execute_script returns [08:22:47]free content buf [08:22:47]Sock 9.Close socket [08:22:47]Sock 9.Thread stoped [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [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:12]accept exits with 8 [08:29:12]New connection [08:29:12]New thread 3066944868 created [08:29:12]Thread 3066801508 joined [08:29:12]Waiting for new connection... [08:29:12] Sock 8.Parse request [08:29:12]Sock 8.Check first char [08:29:12]Sock 8.First char is OK [08:29:12]request: POST /json_proto HTTP/1.0 [08:29:12]Method: POST [08:29:12]URL: /json_proto [08:29:12]Method is POST - this is cgi request [08:29:12]url: /json_proto [08:29:12]query_string will be loaded in cgi processing [08:29:12]execute_cgi json_proto POST (null) [08:29:12]execute_cgi path=json_proto method=POST [08:29:12]POST find Content-Length [08:29:12]Host: 172.17.44.4:8080 [08:29:12]Content-Length: 646 [08:29:12]Content-Type: application/json [08:29:12] [08:29:12]POST finish read [08:29:12]Found Content-Length = 646 [08:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151262", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:12]execute_script... [08:29: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)151262", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:12]POST & json_proto [08:29:12]process_json_proto [08:29:12]json parsed OK: [08:29:12]protocol is kg_v1.0 [08:29:12]action value=close_receipt [08:29:12]process_action close_receipt [08:29:12]cmd_close_receipt [08:29:12]MH_GetDate [08:29:12]Write to MH i2c: F0 00 00 E0 16 E5 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: F0 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: F0 09 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: F0 09 00 E0 16 00 5B 48 C8 66 0F 81 47 66 FC [08:29:12]GetLastDocTimeStamp 1724401366 [08:29:12]current date 1724401755 [08:29:12]FM_GetShiftState [08:29:12]SAM_PROTO_GetShiftState [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 13 01 00 [08:29:12]Write to MH i2c: E2 08 00 E1 16 80 13 01 00 00 00 00 00 74 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0E 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0E 00 E1 16 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 38 [08:29:12]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_GetShiftState done [08:29:12]FM_GetShiftState done [08:29:12]opened in 1724372406 [08:29:12]opened+sec_in_day 1724458806 [08:29:12]quantity*price = 26000 [08:29:12]sum+1 = 26001 [08:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 18 23.08.2024 08:29 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15224 ФПД: 141431609764705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T082915&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15224&fm=141431609764705&tin=02508201610067®Number=0000000000162784&sum=26000 0 [08:29:13]StoreToDocumentArchive [08:29:13]shift 102 fd 15224 [08:29:13]save to /storage/0102/doc_00015224 [08:29:13]save last doc name /storage/0102/doc_00015224 to /storage/kkm_last_doc_name [08:29:13]save OK [08:29:13]Clear old archive folders... [08:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:29:13]tlvbuf is B6EBFA40 [08:29:13]SAM_PROTO_ClearQueue [08:29:13]wFMCommunicate request_size=4 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 09 00 00 [08:29:13]Write to MH i2c: E2 08 00 EE 16 80 09 00 00 00 00 00 00 76 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [08:29:13]RAPDU: 90 00 [08:29:13]wFMCommunicate OK [08:29:13]SAM_PROTO_ClearQueue done [08:29:13]KKMCreateOFDPacket [08:29:13]OFDProtocolAddRootSTLVToBuf [08:29:13]FM_MakeSignedData [08:29:13]FM_MakeSignedData [08:29:13]SAM_PROTO_SignData [08:29:13]wFMCommunicate request_size=4 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 0D 01 02 [08:29:13]Write to MH i2c: E2 08 00 EF 16 80 0D 01 02 00 00 00 00 7E [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [08:29:13]RAPDU: 90 00 [08:29:13]wFMCommunicate OK [08:29:13]wFMCommunicate request_size=255 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5B 48 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 [08:29:13]Write to MH i2c: E2 02 01 F0 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5B 48 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 00 00 93 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [08:29:13]RAPDU: 90 00 [08:29:13]wFMCommunicate OK [08:29:13]wFMCommunicate request_size=41 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 78 3B 00 00 35 04 06 00 80 A1 9C DC 2B 61 [08:29:13]Write to MH i2c: E2 2C 00 F1 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 78 3B 00 00 35 04 06 00 80 A1 9C DC 2B 61 00 00 27 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [08:29:13]RAPDU: 90 00 [08:29:13]wFMCommunicate OK [08:29:13]wFMCommunicate request_size=4 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 0D 03 02 [08:29:13]Write to MH i2c: E2 08 00 F2 16 80 0D 03 02 00 00 00 00 83 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0B 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0B 00 F2 16 00 64 75 F3 2E F1 B9 DD 76 90 00 7B [08:29:13]RAPDU: 64 75 F3 2E F1 B9 DD 76 90 00 [08:29:13]wFMCommunicate OK [08:29:13]SAM_PROTO_SignData done [08:29:13]FM_MakeSignedData done [08:29:13]CreateOFDProtocolMessage [08:29:13]wFMCommunicate request_size=4 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 11 00 00 [08:29:13]Write to MH i2c: E2 08 00 F3 16 80 11 00 00 00 00 00 00 83 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 17 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 17 00 F3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D5 [08:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:29:13]wFMCommunicate OK [08:29:13]CreateOFDProtocolMessage done [08:29:13]OFDSenderStorePacket 15224 [08:29:13]StoreOFDPacket docnum=15224 [08:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 94 42 26 01 34 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5B 48 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 78 3B 00 00 35 04 06 00 80 A1 9C DC 2B 61 64 75 F3 2E F1 B9 DD 76 [08:29:13]CheckFolder [08:29:13]dirname=/storage/ofd_packets [08:29:13]CheckFolder done [08:29:13]ProducePacketName [08:29:13]name=ofd_packets/00015224 [08:29:13]NVStorageSaveData ofd_packets/00015224 [08:29:13]File name is /storage/ofd_packets/00015224 [08:29:13]Write 332 bytes [08:29:13]NVStorageSaveData done [08:29:13]OFDSenderStorePacket done [08:29:13]KKMCreateOFDPacket done [08:29:13]NVStorageSaveData kkm_last_timestamp [08:29:13]File name is /storage/kkm_last_timestamp [08:29:13]Write 4 bytes [08:29:13]NVStorageSaveData done [08:29:13]ExternCall_PrintAddStr [08:29:13]wPrintStart [08:29:13]Write to MH i2c: 01 00 00 F4 16 0A [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 07 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 FF 0F 1F [08:29:13]RasterBufferAndPrint [08:29:13]line Счет N : (3)151262 [08:29:13]line ИНН: 02508201610067 [08:29:13]line Контрольно-Кассовый Чек [08:29:13]line ПРОДАЖА [08:29:13]line Товар: 2000036220012 [08:29:13]line Кофе Капучино XL(GABB TRADE) [08:29:13]line 2.000 * 130.00 [08:29:13]line = 260.00 [08:29:13]line НДС 12% НСП 1% [08:29:13]line > о реализуемом товаре [08:29:13]line ИТОГО: 260.00 [08:29:13]line НСП 1% : 2.30 [08:29:13]line НДС 12% : 27.61 [08:29:13]line Наличными: 260.00 [08:29:13]line Безнал.: 0.00 [08:29:13]line Место: АЗС № 135 "Партнер Нефть" [08:29:13]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:29:13]line СНО: Общий режим [08:29:13]line Чек 18 23.08.2024 08:29 [08:29:13]line Смена: 102 ФФД: 1.0 [08:29:13]line ЗНМ: 0300000144 [08:29:13]line РНМ: 0000000000162784 [08:29:13]line Версия ККМ: v1.0 [08:29:13]line ФМ: 0000000002094529 [08:29:13]line ФД: 15224 [08:29:13]line ФПД: 141431609764705 [08:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T082915&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15224&fm=141431609764705&tin=02508201610067®Number=0000000000162784&sum=26000 [08:29:14]line 0 [08:29:14]OFD Sender: Processing packet 15224 [packets to send 8, broken 7] [08:29:14]ProducePacketName [08:29:14]name=ofd_packets/00015224 [08:29:14]OFD Sender: To server: pG, [08:29:14]CommunicateWithHost lk.salyk.kg:30040 [08:29:14]ConnectInit lk.salyk.kg [08:29:14]written 0, free lines is 4095 [08:29:14]Connected sock=11 [08:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 94 42 26 01 34 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 5B 48 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 78 3B 00 00 35 04 06 00 80 A1 9C DC 2B 61 64 75 F3 2E F1 B9 DD 76 [08:29:14]Write to MH i2c: 01 00 00 1D 17 34 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 07 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 EE 0C 35 [08:29:14]RasterBufferAndPrint [08:29:14]line [08:29:14]line [08:29:14]line [08:29:14]line [08:29:14]line [08:29:14]written 0, free lines is 3316 [08:29:14]MH_Cut [08:29:14]Write to MH i2c: D1 01 00 24 17 01 0D [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: D1 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: D1 01 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: D1 01 00 24 17 00 0C [08:29:14]Write to MH i2c: 01 00 00 25 17 3C [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 D3 1E 47 00 64 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 78 3B 00 00 F4 03 04 00 B7 F2 C7 66 B6 04 01 00 00 F2 35 3B 8C B9 D3 81 59 [08:29:14]CommunicateWithHost err = 0 [08:29:14]CheckOFDResponse [08:29:14]1017 (14) - 77093643461234 [08:29:14]1041 (16) - 0000000002094529 [08:29:14]1040 (4) - 15224 [08:29:14]1012 (4) - 23.08.2024 02:23 [08:29:14]1206 (1) - 0 [08:29:14]OFD Sender: Remove packet 15224 [08:29:14]ProducePacketName [08:29:14]name=ofd_packets/00015224 [08:29:14]NVStorageDeleteData [08:29:15]OFD Sender: No OFD packet to send [08:29:15]*** Cut start [08:29:15]*** Partial cut [08:29:15]*** CUTSNS_PIN = 1 [08:29:15]*** CUTSNS_PIN = 0 [08:29:15]*** Brake cut motor [08:29:15]Read from MH i2c: 01 [08:29:15]MH_I2C_Read... [08:29:15]*** Stop cut motor [08:29:15]*** Cut end [08:29:15]Read from MH i2c: 01 07 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 07 00 25 17 00 00 00 00 00 FF 0F 51 [08:29:15]process_action close_receipt done [08:29:15]requested_data is exist [08:29:15]produce_requested_data [08:29:15]requested_item fm.sn is exist - process it [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 11 00 00 [08:29:15]Write to MH i2c: E2 08 00 26 17 80 11 00 00 00 00 00 00 B7 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 17 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 17 00 26 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 09 [08:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:29:15]wFMCommunicate OK [08:29:15]requested_item fd.num is exist - process it [08:29:15]SAM_PROTO_GetFieldsCounters [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 13 00 00 [08:29:15]Write to MH i2c: E2 08 00 27 17 80 13 00 00 00 00 00 00 BA [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:16]Read from MH i2c: E2 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: E2 62 00 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: E2 62 00 27 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 78 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [08:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 78 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:16]wFMCommunicate OK [08:29:16]SAM_PROTO_GetFieldsCounters done [08:29:16]requested_item shift.num is exist - process it [08:29:16]requested_item shift.opened is exist - process it [08:29:16]req_shift_opened [08:29:16]FM_GetShiftState [08:29:16]SAM_PROTO_GetShiftState [08:29:16]wFMCommunicate request_size=4 [08:29:16]MH_SAM_APDU [08:29:16]CAPDU: 80 13 01 00 [08:29:16]Write to MH i2c: E2 08 00 28 17 80 13 01 00 00 00 00 00 BC [08:29:16]Write i2c OK [08:29:16]MH_I2C_Read... [08:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:16]Read from MH i2c: E2 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: E2 0E 00 [08:29:16]MH_I2C_Read... [08:29:16]Read from MH i2c: E2 0E 00 28 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 80 [08:29:16]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:29:16]wFMCommunicate OK [08:29:16]SAM_PROTO_GetShiftState done [08:29:16]FM_GetShiftState done [08:29:16]req_shift_opened done [08:29:16]requested_item shift.open_date is exist - process it [08:29:16]req_shift_open_date [08:29:16]req_shift_open_date done [08:29:16]produce_requested_data done [08:29:16]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15224,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:29:16]process_action_free close_receipt [08:29:16]json_value_free [08:29:16]json_value_free done [08:29:16]process_json_proto returns [08:29:16]Send response to host [08:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15224,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:29:16]free response buf [08:29:16]execute_script done [08:29:16]execute_script returns [08:29:16]free content buf [08:29:16]Sock 8.Close socket [08:29:16]Sock 8.Thread stoped [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:34]accept exits with 9 [08:35:34]New connection [08:35:34]New thread 3066801508 created [08:35:34]Thread 3066944868 joined [08:35:34]Waiting for new connection... [08:35:34] Sock 9.Parse request [08:35:34]Sock 9.Check first char [08:35:34]Sock 9.First char is OK [08:35:34]request: POST /json_proto HTTP/1.0 [08:35:34]Method: POST [08:35:34]URL: /json_proto [08:35:34]Method is POST - this is cgi request [08:35:34]url: /json_proto [08:35:34]query_string will be loaded in cgi processing [08:35:34]execute_cgi json_proto POST (null) [08:35:34]execute_cgi path=json_proto method=POST [08:35:34]POST find Content-Length [08:35:34]Host: 172.17.44.4:8080 [08:35:34]Content-Length: 622 [08:35:34]Content-Type: application/json [08:35:34] [08:35:34]POST finish read [08:35:34]Found Content-Length = 622 [08:35:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151263", "tax_sys" : 0, "items" : [ { "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:34]execute_script... [08:35: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)151263", "tax_sys" : 0, "items" : [ { "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:34]POST & json_proto [08:35:34]process_json_proto [08:35:34]json parsed OK: [08:35:34]protocol is kg_v1.0 [08:35:34]action value=close_receipt [08:35:34]process_action close_receipt [08:35:34]cmd_close_receipt [08:35:34]MH_GetDate [08:35:34]Write to MH i2c: F0 00 00 29 17 2F [08:35:34]Write i2c OK [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: F0 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: F0 09 00 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: F0 09 00 29 17 00 DA 49 C8 66 0F 81 47 66 C6 [08:35:34]GetLastDocTimeStamp 1724401755 [08:35:34]current date 1724402138 [08:35:34]FM_GetShiftState [08:35:34]SAM_PROTO_GetShiftState [08:35:34]wFMCommunicate request_size=4 [08:35:34]MH_SAM_APDU [08:35:34]CAPDU: 80 13 01 00 [08:35:34]Write to MH i2c: E2 08 00 2A 17 80 13 01 00 00 00 00 00 BE [08:35:34]Write i2c OK [08:35:34]MH_I2C_Read... [08:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:34]Read from MH i2c: E2 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 0E 00 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 0E 00 2A 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 82 [08:35:34]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:35:34]wFMCommunicate OK [08:35:34]SAM_PROTO_GetShiftState done [08:35:34]FM_GetShiftState done [08:35:34]opened in 1724372406 [08:35:34]opened+sec_in_day 1724458806 [08:35:34]quantity*price = 15000 [08:35:34]sum+1 = 15001 [08:35:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 19 23.08.2024 08:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15225 ФПД: 219830996311809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T083538&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15225&fm=219830996311809&tin=02508201610067®Number=0000000000162784&sum=15000 0 [08:35:35]StoreToDocumentArchive [08:35:35]shift 102 fd 15225 [08:35:35]save to /storage/0102/doc_00015225 [08:35:35]save last doc name /storage/0102/doc_00015225 to /storage/kkm_last_doc_name [08:35:35]save OK [08:35:35]Clear old archive folders... [08:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:35:35]tlvbuf is B6F537B0 [08:35:35]SAM_PROTO_ClearQueue [08:35:35]wFMCommunicate request_size=4 [08:35:35]MH_SAM_APDU [08:35:35]CAPDU: 80 09 00 00 [08:35:35]Write to MH i2c: E2 08 00 37 17 80 09 00 00 00 00 00 00 C0 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:35]Read from MH i2c: E2 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 37 17 00 90 00 C2 [08:35:35]RAPDU: 90 00 [08:35:35]wFMCommunicate OK [08:35:35]SAM_PROTO_ClearQueue done [08:35:35]KKMCreateOFDPacket [08:35:35]OFDProtocolAddRootSTLVToBuf [08:35:35]FM_MakeSignedData [08:35:35]FM_MakeSignedData [08:35:35]SAM_PROTO_SignData [08:35:35]wFMCommunicate request_size=4 [08:35:35]MH_SAM_APDU [08:35:35]CAPDU: 80 0D 01 02 [08:35:35]Write to MH i2c: E2 08 00 38 17 80 0D 01 02 00 00 00 00 C8 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:35]Read from MH i2c: E2 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [08:35:35]RAPDU: 90 00 [08:35:35]wFMCommunicate OK [08:35:35]wFMCommunicate request_size=255 [08:35:35]MH_SAM_APDU [08:35:35]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 13 00 00 00 F4 03 04 00 DA 49 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 [08:35:35]Write to MH i2c: E2 02 01 39 17 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 13 00 00 00 F4 03 04 00 DA 49 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 00 00 32 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:35]Read from MH i2c: E2 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [08:35:35]RAPDU: 90 00 [08:35:35]wFMCommunicate OK [08:35:35]wFMCommunicate request_size=33 [08:35:35]MH_SAM_APDU [08:35:35]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 35 32 39 10 04 04 00 79 3B 00 00 35 04 06 00 C7 EF 64 72 1F 01 [08:35:35]Write to MH i2c: E2 24 00 3A 17 80 0D 02 02 1C 00 30 30 30 32 30 39 34 35 32 39 10 04 04 00 79 3B 00 00 35 04 06 00 C7 EF 64 72 1F 01 00 00 B9 [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:35]Read from MH i2c: E2 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 [08:35:35]MH_I2C_Read... [08:35:35]Read from MH i2c: E2 03 00 3A 17 00 90 00 C5 [08:35:35]RAPDU: 90 00 [08:35:35]wFMCommunicate OK [08:35:35]wFMCommunicate request_size=4 [08:35:35]MH_SAM_APDU [08:35:35]CAPDU: 80 0D 03 02 [08:35:35]Write to MH i2c: E2 08 00 3B 17 80 0D 03 02 00 00 00 00 CD [08:35:35]Write i2c OK [08:35:35]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0B 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0B 00 3B 17 00 F1 EB B0 57 70 F1 BB 3A 90 00 07 [08:35:36]RAPDU: F1 EB B0 57 70 F1 BB 3A 90 00 [08:35:36]wFMCommunicate OK [08:35:36]SAM_PROTO_SignData done [08:35:36]FM_MakeSignedData done [08:35:36]CreateOFDProtocolMessage [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 11 00 00 [08:35:36]Write to MH i2c: E2 08 00 3C 17 80 11 00 00 00 00 00 00 CD [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 3C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 1F [08:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:35:36]wFMCommunicate OK [08:35:36]CreateOFDProtocolMessage done [08:35:36]OFDSenderStorePacket 15225 [08:35:36]StoreOFDPacket docnum=15225 [08:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 26 01 00 00 38 3D 1E 01 CD 70 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 13 00 00 00 F4 03 04 00 DA 49 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 79 3B 00 00 35 04 06 00 C7 EF 64 72 1F 01 F1 EB B0 57 70 F1 BB 3A [08:35:36]CheckFolder [08:35:36]dirname=/storage/ofd_packets [08:35:36]CheckFolder done [08:35:36]ProducePacketName [08:35:36]name=ofd_packets/00015225 [08:35:36]NVStorageSaveData ofd_packets/00015225 [08:35:36]File name is /storage/ofd_packets/00015225 [08:35:36]Write 324 bytes [08:35:36]NVStorageSaveData done [08:35:36]OFDSenderStorePacket done [08:35:36]KKMCreateOFDPacket done [08:35:36]NVStorageSaveData kkm_last_timestamp [08:35:36]File name is /storage/kkm_last_timestamp [08:35:36]Write 4 bytes [08:35:36]NVStorageSaveData done [08:35:36]ExternCall_PrintAddStr [08:35:36]wPrintStart [08:35:36]Write to MH i2c: 01 00 00 3D 17 54 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 3D 17 00 00 00 00 00 FF 0F 69 [08:35:36]RasterBufferAndPrint [08:35:36]line Счет N : (3)151263 [08:35:36]line ИНН: 02508201610067 [08:35:36]line Контрольно-Кассовый Чек [08:35:36]line ПРОДАЖА [08:35:36]line Товар: 4640030091645 [08:35:36]line Сигареты ESSE Exchange M [08:35:36]line 1.000 * 150.00 [08:35:36]line = 150.00 [08:35:36]line НДС 12% НСП 1% [08:35:36]line > о реализуемом товаре [08:35:36]line ИТОГО: 150.00 [08:35:36]line НСП 1% : 1.33 [08:35:36]line НДС 12% : 15.93 [08:35:36]line Наличными: 150.00 [08:35:36]line Безнал.: 0.00 [08:35:36]line Место: АЗС № 135 "Партнер Нефть" [08:35:36]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:35:36]line СНО: Общий режим [08:35:36]line Чек 19 23.08.2024 08:35 [08:35:36]line Смена: 102 ФФД: 1.0 [08:35:36]line ЗНМ: 0300000144 [08:35:36]line РНМ: 0000000000162784 [08:35:36]line Версия ККМ: v1.0 [08:35:36]line ФМ: 0000000002094529 [08:35:36]line ФД: 15225 [08:35:36]line ФПД: 219830996311809 [08:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T083538&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15225&fm=219830996311809&tin=02508201610067®Number=0000000000162784&sum=15000 [08:35:36]line 0 [08:35:36]OFD Sender: Processing packet 15225 [packets to send 8, broken 7] [08:35:36]ProducePacketName [08:35:36]name=ofd_packets/00015225 [08:35:36]OFD Sender: To server: pG, [08:35:36]CommunicateWithHost lk.salyk.kg:30040 [08:35:36]ConnectInit lk.salyk.kg [08:35:36]written 0, free lines is 4095 [08:35:36]Connected sock=11 [08:35:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 26 01 00 00 38 3D 1E 01 CD 70 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 13 00 00 00 F4 03 04 00 DA 49 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 79 3B 00 00 35 04 06 00 C7 EF 64 72 1F 01 F1 EB B0 57 70 F1 BB 3A [08:35:36]Write to MH i2c: 01 00 00 65 17 7C [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 65 17 00 00 00 00 00 F0 0C 7F [08:35:36]RasterBufferAndPrint [08:35:36]line [08:35:36]line [08:35:36]line [08:35:36]line [08:35:36]line [08:35:36]written 0, free lines is 3316 [08:35:36]MH_Cut [08:35:36]Write to MH i2c: D1 01 00 6C 17 01 55 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: D1 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: D1 01 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: D1 01 00 6C 17 00 54 [08:35:36]Write to MH i2c: 01 00 00 6D 17 84 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 AC 13 47 00 36 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 79 3B 00 00 F4 03 04 00 35 F4 C7 66 B6 04 01 00 00 F7 93 8B 95 9A 54 D5 77 [08:35:36]CommunicateWithHost err = 0 [08:35:36]CheckOFDResponse [08:35:36]1017 (14) - 77093643461234 [08:35:36]1041 (16) - 0000000002094529 [08:35:36]1040 (4) - 15225 [08:35:36]1012 (4) - 23.08.2024 02:30 [08:35:36]1206 (1) - 0 [08:35:36]OFD Sender: Remove packet 15225 [08:35:36]ProducePacketName [08:35:36]name=ofd_packets/00015225 [08:35:36]NVStorageDeleteData [08:35:37]OFD Sender: No OFD packet to send [08:35:37]*** Cut start [08:35:37]*** Partial cut [08:35:37]*** CUTSNS_PIN = 1 [08:35:37]*** CUTSNS_PIN = 0 [08:35:37]*** Brake cut motor [08:35:38]Read from MH i2c: 01 [08:35:38]MH_I2C_Read... [08:35:38]*** Stop cut motor [08:35:38]*** Cut end [08:35:38]Read from MH i2c: 01 07 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: 01 07 00 6D 17 00 00 00 00 00 FF 0F 99 [08:35:38]process_action close_receipt done [08:35:38]requested_data is exist [08:35:38]produce_requested_data [08:35:38]requested_item fm.sn is exist - process it [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 11 00 00 [08:35:38]Write to MH i2c: E2 08 00 6E 17 80 11 00 00 00 00 00 00 FF [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 17 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 17 00 6E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 51 [08:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:35:38]wFMCommunicate OK [08:35:38]requested_item fd.num is exist - process it [08:35:38]SAM_PROTO_GetFieldsCounters [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 13 00 00 [08:35:38]Write to MH i2c: E2 08 00 6F 17 80 13 00 00 00 00 00 00 02 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 62 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 62 00 6F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 79 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [08:35:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 79 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:38]wFMCommunicate OK [08:35:38]SAM_PROTO_GetFieldsCounters done [08:35:38]requested_item shift.num is exist - process it [08:35:38]requested_item shift.opened is exist - process it [08:35:38]req_shift_opened [08:35:38]FM_GetShiftState [08:35:38]SAM_PROTO_GetShiftState [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 13 01 00 [08:35:38]Write to MH i2c: E2 08 00 70 17 80 13 01 00 00 00 00 00 04 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 0E 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 0E 00 70 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 C8 [08:35:38]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:35:38]wFMCommunicate OK [08:35:38]SAM_PROTO_GetShiftState done [08:35:38]FM_GetShiftState done [08:35:38]req_shift_opened done [08:35:38]requested_item shift.open_date is exist - process it [08:35:38]req_shift_open_date [08:35:38]req_shift_open_date done [08:35:38]produce_requested_data done [08:35:38]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15225,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:35:38]process_action_free close_receipt [08:35:38]json_value_free [08:35:38]json_value_free done [08:35:38]process_json_proto returns [08:35:38]Send response to host [08:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15225,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:35:38]free response buf [08:35:38]execute_script done [08:35:38]execute_script returns [08:35:38]free content buf [08:35:38]Sock 9.Close socket [08:35:38]Sock 9.Thread stoped [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:13]accept exits with 8 [08:37:13]New connection [08:37:13]New thread 3066944868 created [08:37:13]Thread 3066801508 joined [08:37:13]Waiting for new connection... [08:37:13] Sock 8.Parse request [08:37:13]Sock 8.Check first char [08:37:13]Sock 8.First char is OK [08:37:13]request: POST /json_proto HTTP/1.0 [08:37:13]Method: POST [08:37:13]URL: /json_proto [08:37:13]Method is POST - this is cgi request [08:37:13]url: /json_proto [08:37:13]query_string will be loaded in cgi processing [08:37:13]execute_cgi json_proto POST (null) [08:37:13]execute_cgi path=json_proto method=POST [08:37:13]POST find Content-Length [08:37:13]Host: 172.17.44.4:8080 [08:37:13]Content-Length: 652 [08:37:13]Content-Type: application/json [08:37:13] [08:37:13]POST finish read [08:37:13]Found Content-Length = 652 [08:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151264", "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" ] } } [08:37:13]execute_script... [08:37: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)151264", "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" ] } } [08:37:13]POST & json_proto [08:37:13]process_json_proto [08:37:13]json parsed OK: [08:37:13]protocol is kg_v1.0 [08:37:13]action value=close_receipt [08:37:13]process_action close_receipt [08:37:13]cmd_close_receipt [08:37:13]MH_GetDate [08:37:13]Write to MH i2c: F0 00 00 71 17 77 [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: F0 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: F0 09 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: F0 09 00 71 17 00 3C 4A C8 66 0F 81 47 66 71 [08:37:13]GetLastDocTimeStamp 1724402138 [08:37:13]current date 1724402236 [08:37:13]FM_GetShiftState [08:37:13]SAM_PROTO_GetShiftState [08:37:13]wFMCommunicate request_size=4 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 13 01 00 [08:37:13]Write to MH i2c: E2 08 00 72 17 80 13 01 00 00 00 00 00 06 [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 0E 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 0E 00 72 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CA [08:37:13]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:37:13]wFMCommunicate OK [08:37:13]SAM_PROTO_GetShiftState done [08:37:13]FM_GetShiftState done [08:37:13]opened in 1724372406 [08:37:13]opened+sec_in_day 1724458806 [08:37:13]quantity*price = 12500 [08:37:13]sum+1 = 12501 [08:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 20 23.08.2024 08:37 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15226 ФПД: 40787237386141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T083716&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15226&fm=40787237386141&tin=02508201610067®Number=0000000000162784&sum=12500 0 [08:37:14]StoreToDocumentArchive [08:37:14]shift 102 fd 15226 [08:37:14]save to /storage/0102/doc_00015226 [08:37:14]save last doc name /storage/0102/doc_00015226 to /storage/kkm_last_doc_name [08:37:14]save OK [08:37:14]Clear old archive folders... [08:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:37:14]tlvbuf is B6ED8930 [08:37:14]SAM_PROTO_ClearQueue [08:37:14]wFMCommunicate request_size=4 [08:37:14]MH_SAM_APDU [08:37:14]CAPDU: 80 09 00 00 [08:37:14]Write to MH i2c: E2 08 00 7F 17 80 09 00 00 00 00 00 00 08 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 7F 17 00 90 00 0A [08:37:14]RAPDU: 90 00 [08:37:14]wFMCommunicate OK [08:37:14]SAM_PROTO_ClearQueue done [08:37:14]KKMCreateOFDPacket [08:37:14]OFDProtocolAddRootSTLVToBuf [08:37:14]FM_MakeSignedData [08:37:14]FM_MakeSignedData [08:37:14]SAM_PROTO_SignData [08:37:14]wFMCommunicate request_size=4 [08:37:14]MH_SAM_APDU [08:37:14]CAPDU: 80 0D 01 02 [08:37:14]Write to MH i2c: E2 08 00 80 17 80 0D 01 02 00 00 00 00 10 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 80 17 00 90 00 0B [08:37:14]RAPDU: 90 00 [08:37:14]wFMCommunicate OK [08:37:14]wFMCommunicate request_size=255 [08:37:14]MH_SAM_APDU [08:37:14]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 14 00 00 00 F4 03 04 00 3C 4A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 [08:37:14]Write to MH i2c: E2 02 01 81 17 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 14 00 00 00 F4 03 04 00 3C 4A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 00 00 E3 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [08:37:14]RAPDU: 90 00 [08:37:14]wFMCommunicate OK [08:37:14]wFMCommunicate request_size=43 [08:37:14]MH_SAM_APDU [08:37:14]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7A 3B 00 00 35 04 06 00 25 18 84 CB B7 9D [08:37:14]Write to MH i2c: E2 2E 00 82 17 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7A 3B 00 00 35 04 06 00 25 18 84 CB B7 9D 00 00 8F [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [08:37:14]RAPDU: 90 00 [08:37:14]wFMCommunicate OK [08:37:14]wFMCommunicate request_size=4 [08:37:14]MH_SAM_APDU [08:37:14]CAPDU: 80 0D 03 02 [08:37:14]Write to MH i2c: E2 08 00 83 17 80 0D 03 02 00 00 00 00 15 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 0B 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 0B 00 83 17 00 CC 26 2F 6A 05 CB 8F C8 90 00 C8 [08:37:14]RAPDU: CC 26 2F 6A 05 CB 8F C8 90 00 [08:37:14]wFMCommunicate OK [08:37:14]SAM_PROTO_SignData done [08:37:14]FM_MakeSignedData done [08:37:14]CreateOFDProtocolMessage [08:37:14]wFMCommunicate request_size=4 [08:37:14]MH_SAM_APDU [08:37:14]CAPDU: 80 11 00 00 [08:37:14]Write to MH i2c: E2 08 00 84 17 80 11 00 00 00 00 00 00 15 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:14]Read from MH i2c: E2 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 17 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: E2 17 00 84 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 67 [08:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:37:14]wFMCommunicate OK [08:37:14]CreateOFDProtocolMessage done [08:37:14]OFDSenderStorePacket 15226 [08:37:14]StoreOFDPacket docnum=15226 [08:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 FF 91 28 01 00 B5 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 14 00 00 00 F4 03 04 00 3C 4A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7A 3B 00 00 35 04 06 00 25 18 84 CB B7 9D CC 26 2F 6A 05 CB 8F C8 [08:37:14]CheckFolder [08:37:14]dirname=/storage/ofd_packets [08:37:14]CheckFolder done [08:37:14]ProducePacketName [08:37:14]name=ofd_packets/00015226 [08:37:14]NVStorageSaveData ofd_packets/00015226 [08:37:14]File name is /storage/ofd_packets/00015226 [08:37:14]Write 334 bytes [08:37:14]NVStorageSaveData done [08:37:14]OFDSenderStorePacket done [08:37:14]KKMCreateOFDPacket done [08:37:14]NVStorageSaveData kkm_last_timestamp [08:37:14]File name is /storage/kkm_last_timestamp [08:37:14]Write 4 bytes [08:37:14]NVStorageSaveData done [08:37:14]ExternCall_PrintAddStr [08:37:14]wPrintStart [08:37:14]Write to MH i2c: 01 00 00 85 17 9C [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 07 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 07 00 85 17 00 00 00 00 00 FF 0F B1 [08:37:14]RasterBufferAndPrint [08:37:14]line Счет N : (3)151264 [08:37:14]line ИНН: 02508201610067 [08:37:14]line Контрольно-Кассовый Чек [08:37:14]line ПРОДАЖА [08:37:14]line Товар: 2000036190018 [08:37:14]line Кофе Американо XL(GABB TRADE) [08:37:14]line 1.000 * 125.00 [08:37:14]line = 125.00 [08:37:14]line НДС 12% НСП 1% [08:37:14]line > о реализуемом товаре [08:37:14]line ИТОГО: 125.00 [08:37:14]line НСП 1% : 1.11 [08:37:14]line НДС 12% : 13.27 [08:37:14]line Наличными: 125.00 [08:37:14]line Безнал.: 0.00 [08:37:14]line Место: АЗС № 135 "Партнер Нефть" [08:37:14]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:37:15]line СНО: Общий режим [08:37:15]line Чек 20 23.08.2024 08:37 [08:37:15]line Смена: 102 ФФД: 1.0 [08:37:15]line ЗНМ: 0300000144 [08:37:15]line РНМ: 0000000000162784 [08:37:15]line Версия ККМ: v1.0 [08:37:15]line ФМ: 0000000002094529 [08:37:15]line ФД: 15226 [08:37:15]line ФПД: 40787237386141 [08:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T083716&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15226&fm=40787237386141&tin=02508201610067®Number=0000000000162784&sum=12500 [08:37:15]line 0 [08:37:15]OFD Sender: Processing packet 15226 [packets to send 8, broken 7] [08:37:15]ProducePacketName [08:37:15]name=ofd_packets/00015226 [08:37:15]OFD Sender: To server: pG, [08:37:15]CommunicateWithHost lk.salyk.kg:30040 [08:37:15]ConnectInit lk.salyk.kg [08:37:15]written 0, free lines is 4095 [08:37:15]Connected sock=10 [08:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 FF 91 28 01 00 B5 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 14 00 00 00 F4 03 04 00 3C 4A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7A 3B 00 00 35 04 06 00 25 18 84 CB B7 9D CC 26 2F 6A 05 CB 8F C8 [08:37:15]Write to MH i2c: 01 00 00 AE 17 C5 [08:37:15]Write i2c OK [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: 01 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: 01 07 00 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: 01 07 00 AE 17 00 00 00 00 00 E3 0C BB [08:37:15]RasterBufferAndPrint [08:37:15]line [08:37:15]line [08:37:15]line [08:37:15]line [08:37:15]line [08:37:15]written 0, free lines is 3305 [08:37:15]MH_Cut [08:37:15]Write to MH i2c: D1 01 00 B5 17 01 9E [08:37:15]Write i2c OK [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: D1 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: D1 01 00 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: D1 01 00 B5 17 00 9D [08:37:15]Write to MH i2c: 01 00 00 B6 17 CD [08:37:15]Write i2c OK [08:37:15]MH_I2C_Read... [08:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 6D F3 47 00 F5 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7A 3B 00 00 F4 03 04 00 98 F4 C7 66 B6 04 01 00 00 B7 E6 93 3D CB 84 6F 38 [08:37:15]CommunicateWithHost err = 0 [08:37:15]CheckOFDResponse [08:37:15]1017 (14) - 77093643461234 [08:37:15]1041 (16) - 0000000002094529 [08:37:15]1040 (4) - 15226 [08:37:15]1012 (4) - 23.08.2024 02:31 [08:37:15]1206 (1) - 0 [08:37:15]OFD Sender: Remove packet 15226 [08:37:15]ProducePacketName [08:37:15]name=ofd_packets/00015226 [08:37:15]NVStorageDeleteData [08:37:16]OFD Sender: No OFD packet to send [08:37:16]*** Cut start [08:37:16]*** Partial cut [08:37:16]*** CUTSNS_PIN = 1 [08:37:16]*** CUTSNS_PIN = 0 [08:37:16]*** Brake cut motor [08:37:17]Read from MH i2c: 01 [08:37:17]MH_I2C_Read... [08:37:17]*** Stop cut motor [08:37:17]*** Cut end [08:37:17]Read from MH i2c: 01 07 00 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: 01 07 00 B6 17 00 00 00 00 00 FF 0F E2 [08:37:17]process_action close_receipt done [08:37:17]requested_data is exist [08:37:17]produce_requested_data [08:37:17]requested_item fm.sn is exist - process it [08:37:17]wFMCommunicate request_size=4 [08:37:17]MH_SAM_APDU [08:37:17]CAPDU: 80 11 00 00 [08:37:17]Write to MH i2c: E2 08 00 B7 17 80 11 00 00 00 00 00 00 48 [08:37:17]Write i2c OK [08:37:17]MH_I2C_Read... [08:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:17]Read from MH i2c: E2 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 17 00 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 17 00 B7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 9A [08:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:37:17]wFMCommunicate OK [08:37:17]requested_item fd.num is exist - process it [08:37:17]SAM_PROTO_GetFieldsCounters [08:37:17]wFMCommunicate request_size=4 [08:37:17]MH_SAM_APDU [08:37:17]CAPDU: 80 13 00 00 [08:37:17]Write to MH i2c: E2 08 00 B8 17 80 13 00 00 00 00 00 00 4B [08:37:17]Write i2c OK [08:37:17]MH_I2C_Read... [08:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:17]Read from MH i2c: E2 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 62 00 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 62 00 B8 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:17]wFMCommunicate OK [08:37:17]SAM_PROTO_GetFieldsCounters done [08:37:17]requested_item shift.num is exist - process it [08:37:17]requested_item shift.opened is exist - process it [08:37:17]req_shift_opened [08:37:17]FM_GetShiftState [08:37:17]SAM_PROTO_GetShiftState [08:37:17]wFMCommunicate request_size=4 [08:37:17]MH_SAM_APDU [08:37:17]CAPDU: 80 13 01 00 [08:37:17]Write to MH i2c: E2 08 00 B9 17 80 13 01 00 00 00 00 00 4D [08:37:17]Write i2c OK [08:37:17]MH_I2C_Read... [08:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:17]Read from MH i2c: E2 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 0E 00 [08:37:17]MH_I2C_Read... [08:37:17]Read from MH i2c: E2 0E 00 B9 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 11 [08:37:17]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:37:17]wFMCommunicate OK [08:37:17]SAM_PROTO_GetShiftState done [08:37:17]FM_GetShiftState done [08:37:17]req_shift_opened done [08:37:17]requested_item shift.open_date is exist - process it [08:37:17]req_shift_open_date [08:37:17]req_shift_open_date done [08:37:17]produce_requested_data done [08:37:17]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15226,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:37:17]process_action_free close_receipt [08:37:17]json_value_free [08:37:17]json_value_free done [08:37:17]process_json_proto returns [08:37:17]Send response to host [08:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15226,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:37:17]free response buf [08:37:17]execute_script done [08:37:17]execute_script returns [08:37:17]free content buf [08:37:17]Sock 8.Close socket [08:37:17]Sock 8.Thread stoped [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:48]accept exits with 9 [08:40:48]New connection [08:40:48]New thread 3066801508 created [08:40:48]Thread 3066944868 joined [08:40:48]Waiting for new connection... [08:40:48] Sock 9.Parse request [08:40:48]Sock 9.Check first char [08:40:48]Sock 9.First char is OK [08:40:48]request: POST /json_proto HTTP/1.0 [08:40:48]Method: POST [08:40:48]URL: /json_proto [08:40:48]Method is POST - this is cgi request [08:40:48]url: /json_proto [08:40:48]query_string will be loaded in cgi processing [08:40:48]execute_cgi json_proto POST (null) [08:40:48]execute_cgi path=json_proto method=POST [08:40:48]POST find Content-Length [08:40:48]Host: 172.17.44.4:8080 [08:40:48]Content-Length: 862 [08:40:48]Content-Type: application/json [08:40:48] [08:40:48]POST finish read [08:40:48]Found Content-Length = 862 [08:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151265", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 3.000, "sum" : 468.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" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 768.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:48]execute_script... [08:40: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)151265", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 3.000, "sum" : 468.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" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 768.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:48]POST & json_proto [08:40:48]process_json_proto [08:40:48]json parsed OK: [08:40:48]protocol is kg_v1.0 [08:40:48]action value=close_receipt [08:40:48]process_action close_receipt [08:40:48]cmd_close_receipt [08:40:48]MH_GetDate [08:40:48]Write to MH i2c: F0 00 00 BA 17 C0 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 09 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 09 00 BA 17 00 13 4B C8 66 0F 81 47 66 92 [08:40:48]GetLastDocTimeStamp 1724402236 [08:40:48]current date 1724402451 [08:40:48]FM_GetShiftState [08:40:48]SAM_PROTO_GetShiftState [08:40:48]wFMCommunicate request_size=4 [08:40:48]MH_SAM_APDU [08:40:48]CAPDU: 80 13 01 00 [08:40:48]Write to MH i2c: E2 08 00 BB 17 80 13 01 00 00 00 00 00 4F [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:48]Read from MH i2c: E2 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 0E 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 0E 00 BB 17 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 13 [08:40:48]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:40:48]wFMCommunicate OK [08:40:48]SAM_PROTO_GetShiftState done [08:40:48]FM_GetShiftState done [08:40:48]opened in 1724372406 [08:40:48]opened+sec_in_day 1724458806 [08:40:48]quantity*price = 46800 [08:40:48]sum+1 = 46801 [08:40:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 768.00 НСП 1% : 6.79 НДС 12% : 81.56 Наличными: 768.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 21 23.08.2024 08:40 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15227 ФПД: 275809824381627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084051&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15227&fm=275809824381627&tin=02508201610067®Number=0000000000162784&sum=76800 0 [08:40:49]StoreToDocumentArchive [08:40:49]shift 102 fd 15227 [08:40:49]save to /storage/0102/doc_00015227 [08:40:49]save last doc name /storage/0102/doc_00015227 to /storage/kkm_last_doc_name [08:40:49]save OK [08:40:49]Clear old archive folders... [08:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=380 [08:40:49]tlvbuf is B6EBF810 [08:40:49]SAM_PROTO_ClearQueue [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 09 00 00 [08:40:49]Write to MH i2c: E2 08 00 C8 17 80 09 00 00 00 00 00 00 51 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 C8 17 00 90 00 53 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_ClearQueue done [08:40:49]KKMCreateOFDPacket [08:40:49]OFDProtocolAddRootSTLVToBuf [08:40:49]FM_MakeSignedData [08:40:49]FM_MakeSignedData [08:40:49]SAM_PROTO_SignData [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 01 02 [08:40:49]Write to MH i2c: E2 08 00 C9 17 80 0D 01 02 00 00 00 00 59 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 C9 17 00 90 00 54 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]wFMCommunicate request_size=255 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 D0 B6 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 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 00 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 [08:40:49]Write to MH i2c: E2 02 01 CA 17 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 D0 B6 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 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 00 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 2E [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 CA 17 00 90 00 55 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]wFMCommunicate request_size=139 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 1F 00 00 00 00 07 04 06 00 00 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7B 3B 00 00 35 04 06 00 FA D8 FA 9B 9A BB [08:40:49]Write to MH i2c: E2 8E 00 CB 17 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 1F 00 00 00 00 07 04 06 00 00 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7B 3B 00 00 35 04 06 00 FA D8 FA 9B 9A BB 00 00 38 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 CB 17 00 90 00 56 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 03 02 [08:40:49]Write to MH i2c: E2 08 00 CC 17 80 0D 03 02 00 00 00 00 5E [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0B 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0B 00 CC 17 00 B8 32 4F 5B AE 44 E6 9A 90 00 65 [08:40:49]RAPDU: B8 32 4F 5B AE 44 E6 9A 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_SignData done [08:40:49]FM_MakeSignedData done [08:40:49]CreateOFDProtocolMessage [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 11 00 00 [08:40:49]Write to MH i2c: E2 08 00 CD 17 80 11 00 00 00 00 00 00 5E [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 CD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B0 [08:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:40:49]wFMCommunicate OK [08:40:49]CreateOFDProtocolMessage done [08:40:49]OFDSenderStorePacket 15227 [08:40:49]StoreOFDPacket docnum=15227 [08:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 01 00 00 49 30 88 01 2E 6E 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 D0 B6 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 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 00 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 1F 00 00 00 00 07 04 06 00 00 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7B 3B 00 00 35 04 06 00 FA D8 FA 9B 9A BB B8 32 4F 5B AE 44 E6 9A [08:40:49]CheckFolder [08:40:49]dirname=/storage/ofd_packets [08:40:49]CheckFolder done [08:40:49]ProducePacketName [08:40:49]name=ofd_packets/00015227 [08:40:49]NVStorageSaveData ofd_packets/00015227 [08:40:49]File name is /storage/ofd_packets/00015227 [08:40:49]Write 430 bytes [08:40:49]NVStorageSaveData done [08:40:49]OFDSenderStorePacket done [08:40:49]KKMCreateOFDPacket done [08:40:49]NVStorageSaveData kkm_last_timestamp [08:40:49]File name is /storage/kkm_last_timestamp [08:40:49]Write 4 bytes [08:40:49]NVStorageSaveData done [08:40:49]ExternCall_PrintAddStr [08:40:49]wPrintStart [08:40:49]Write to MH i2c: 01 00 00 CE 17 E5 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: 01 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: 01 07 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: 01 07 00 CE 17 00 00 00 00 00 FF 0F FA [08:40:49]RasterBufferAndPrint [08:40:50]line Счет N : (3)151265 [08:40:50]line ИНН: 02508201610067 [08:40:50]line Контрольно-Кассовый Чек [08:40:50]line ПРОДАЖА [08:40:50]line Товар: 48742245 [08:40:50]line Сигареты Parliament Silver Blue [08:40:50]line 3.000 * 156.00 [08:40:50]line = 468.00 [08:40:50]line НДС 12% НСП 1% [08:40:50]line > о реализуемом товаре [08:40:50]line Товар: 4640030091645 [08:40:50]line Сигареты ESSE Exchange M [08:40:50]line 2.000 * 150.00 [08:40:50]line = 300.00 [08:40:50]line НДС 12% НСП 1% [08:40:50]line > о реализуемом товаре [08:40:50]line ИТОГО: 768.00 [08:40:50]line НСП 1% : 6.79 [08:40:50]line НДС 12% : 81.56 [08:40:50]line Наличными: 768.00 [08:40:50]line Безнал.: 0.00 [08:40:50]line Место: АЗС № 135 "Партнер Нефть" [08:40:50]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:40:50]line СНО: Общий режим [08:40:50]line Чек 21 23.08.2024 08:40 [08:40:50]line Смена: 102 ФФД: 1.0 [08:40:50]line ЗНМ: 0300000144 [08:40:50]line РНМ: 0000000000162784 [08:40:50]line Версия ККМ: v1.0 [08:40:50]line ФМ: 0000000002094529 [08:40:50]line ФД: 15227 [08:40:50]line ФПД: 275809824381627 [08:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084051&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15227&fm=275809824381627&tin=02508201610067®Number=0000000000162784&sum=76800 [08:40:50]line 0 [08:40:50]OFD Sender: Processing packet 15227 [packets to send 8, broken 7] [08:40:50]ProducePacketName [08:40:50]name=ofd_packets/00015227 [08:40:50]OFD Sender: To server: pG, [08:40:50]CommunicateWithHost lk.salyk.kg:30040 [08:40:50]ConnectInit lk.salyk.kg [08:40:50]written 0, free lines is 4095 [08:40:50]Connected sock=10 [08:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 01 00 00 49 30 88 01 2E 6E 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 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 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 D0 B6 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 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 00 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 1F 00 00 00 00 07 04 06 00 00 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7B 3B 00 00 35 04 06 00 FA D8 FA 9B 9A BB B8 32 4F 5B AE 44 E6 9A [08:40:50]Write to MH i2c: 01 00 00 FD 17 14 [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 FD 17 00 00 00 00 00 82 0C A9 [08:40:50]RasterBufferAndPrint [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]written 0, free lines is 3209 [08:40:50]MH_Cut [08:40:50]Write to MH i2c: D1 01 00 04 18 01 EE [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 01 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 01 00 04 18 00 ED [08:40:50]Write to MH i2c: 01 00 00 05 18 1D [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 16 E2 47 00 17 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7B 3B 00 00 F4 03 04 00 6F F5 C7 66 B6 04 01 00 00 95 67 73 60 8A 2D EF 74 [08:40:50]CommunicateWithHost err = 0 [08:40:50]CheckOFDResponse [08:40:50]1017 (14) - 77093643461234 [08:40:50]1041 (16) - 0000000002094529 [08:40:50]1040 (4) - 15227 [08:40:50]1012 (4) - 23.08.2024 02:35 [08:40:50]1206 (1) - 0 [08:40:50]OFD Sender: Remove packet 15227 [08:40:50]ProducePacketName [08:40:50]name=ofd_packets/00015227 [08:40:50]NVStorageDeleteData [08:40:51]OFD Sender: No OFD packet to send [08:40:51]*** Cut start [08:40:51]*** Partial cut [08:40:51]*** CUTSNS_PIN = 1 [08:40:51]*** CUTSNS_PIN = 0 [08:40:51]*** Brake cut motor [08:40:52]Read from MH i2c: 01 [08:40:52]MH_I2C_Read... [08:40:52]*** Stop cut motor [08:40:52]*** Cut end [08:40:52]Read from MH i2c: 01 07 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: 01 07 00 05 18 00 00 00 00 00 FF 0F 32 [08:40:52]process_action close_receipt done [08:40:52]requested_data is exist [08:40:52]produce_requested_data [08:40:52]requested_item fm.sn is exist - process it [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 11 00 00 [08:40:52]Write to MH i2c: E2 08 00 06 18 80 11 00 00 00 00 00 00 98 [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 17 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 17 00 06 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 EA [08:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:40:52]wFMCommunicate OK [08:40:52]requested_item fd.num is exist - process it [08:40:52]SAM_PROTO_GetFieldsCounters [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 13 00 00 [08:40:52]Write to MH i2c: E2 08 00 07 18 80 13 00 00 00 00 00 00 9B [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 62 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 62 00 07 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [08:40:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:52]wFMCommunicate OK [08:40:52]SAM_PROTO_GetFieldsCounters done [08:40:52]requested_item shift.num is exist - process it [08:40:52]requested_item shift.opened is exist - process it [08:40:52]req_shift_opened [08:40:52]FM_GetShiftState [08:40:52]SAM_PROTO_GetShiftState [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 13 01 00 [08:40:52]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 0E 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 61 [08:40:52]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:40:52]wFMCommunicate OK [08:40:52]SAM_PROTO_GetShiftState done [08:40:52]FM_GetShiftState done [08:40:52]req_shift_opened done [08:40:52]requested_item shift.open_date is exist - process it [08:40:52]req_shift_open_date [08:40:52]req_shift_open_date done [08:40:52]produce_requested_data done [08:40:52]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15227,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:40:52]process_action_free close_receipt [08:40:52]json_value_free [08:40:52]json_value_free done [08:40:52]process_json_proto returns [08:40:52]Send response to host [08:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15227,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:40:52]free response buf [08:40:52]execute_script done [08:40:52]execute_script returns [08:40:52]free content buf [08:40:52]Sock 9.Close socket [08:40:52]Sock 9.Thread stoped [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:17]accept exits with 8 [08:41:17]New connection [08:41:17]New thread 3066944868 created [08:41:17]Thread 3066801508 joined [08:41:17]Waiting for new connection... [08:41:17] Sock 8.Parse request [08:41:17]Sock 8.Check first char [08:41:17]Sock 8.First char is OK [08:41:17]request: POST /json_proto HTTP/1.0 [08:41:17]Method: POST [08:41:17]URL: /json_proto [08:41:17]Method is POST - this is cgi request [08:41:17]url: /json_proto [08:41:17]query_string will be loaded in cgi processing [08:41:17]execute_cgi json_proto POST (null) [08:41:17]execute_cgi path=json_proto method=POST [08:41:17]POST find Content-Length [08:41:17]Host: 172.17.44.4:8080 [08:41:17]Content-Length: 646 [08:41:17]Content-Type: application/json [08:41:17] [08:41:17]POST finish read [08:41:17]Found Content-Length = 646 [08:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151266", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:17]execute_script... [08:41: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)151266", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:17]POST & json_proto [08:41:17]process_json_proto [08:41:17]json parsed OK: [08:41:17]protocol is kg_v1.0 [08:41:17]action value=close_receipt [08:41:17]process_action close_receipt [08:41:17]cmd_close_receipt [08:41:17]MH_GetDate [08:41:17]Write to MH i2c: F0 00 00 09 18 10 [08:41:17]Write i2c OK [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: F0 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: F0 09 00 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: F0 09 00 09 18 00 30 4B C8 66 0F 81 47 66 FF [08:41:17]GetLastDocTimeStamp 1724402451 [08:41:17]current date 1724402480 [08:41:17]FM_GetShiftState [08:41:17]SAM_PROTO_GetShiftState [08:41:17]wFMCommunicate request_size=4 [08:41:17]MH_SAM_APDU [08:41:17]CAPDU: 80 13 01 00 [08:41:17]Write to MH i2c: E2 08 00 0A 18 80 13 01 00 00 00 00 00 9F [08:41:17]Write i2c OK [08:41:17]MH_I2C_Read... [08:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:17]Read from MH i2c: E2 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: E2 0E 00 [08:41:17]MH_I2C_Read... [08:41:17]Read from MH i2c: E2 0E 00 0A 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 63 [08:41:17]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:41:17]wFMCommunicate OK [08:41:17]SAM_PROTO_GetShiftState done [08:41:17]FM_GetShiftState done [08:41:17]opened in 1724372406 [08:41:17]opened+sec_in_day 1724458806 [08:41:17]quantity*price = 13000 [08:41:17]sum+1 = 13001 [08:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 22 23.08.2024 08:41 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15228 ФПД: 242372438457585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084121&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15228&fm=242372438457585&tin=02508201610067®Number=0000000000162784&sum=13000 0 [08:41:18]StoreToDocumentArchive [08:41:18]shift 102 fd 15228 [08:41:18]save to /storage/0102/doc_00015228 [08:41:18]save last doc name /storage/0102/doc_00015228 to /storage/kkm_last_doc_name [08:41:18]save OK [08:41:18]Clear old archive folders... [08:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:41:18]tlvbuf is B6DA62E0 [08:41:18]SAM_PROTO_ClearQueue [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 09 00 00 [08:41:18]Write to MH i2c: E2 08 00 17 18 80 09 00 00 00 00 00 00 A1 [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [08:41:18]RAPDU: 90 00 [08:41:18]wFMCommunicate OK [08:41:18]SAM_PROTO_ClearQueue done [08:41:18]KKMCreateOFDPacket [08:41:18]OFDProtocolAddRootSTLVToBuf [08:41:18]FM_MakeSignedData [08:41:18]FM_MakeSignedData [08:41:18]SAM_PROTO_SignData [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 0D 01 02 [08:41:18]Write to MH i2c: E2 08 00 18 18 80 0D 01 02 00 00 00 00 A9 [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [08:41:18]RAPDU: 90 00 [08:41:18]wFMCommunicate OK [08:41:18]wFMCommunicate request_size=255 [08:41:18]MH_SAM_APDU [08:41:18]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 16 00 00 00 F4 03 04 00 31 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 [08:41:18]Write to MH i2c: E2 02 01 19 18 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 16 00 00 00 F4 03 04 00 31 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 00 00 E1 [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [08:41:18]RAPDU: 90 00 [08:41:18]wFMCommunicate OK [08:41:18]wFMCommunicate request_size=41 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7C 3B 00 00 35 04 06 00 DC 6F BB 18 FC F1 [08:41:18]Write to MH i2c: E2 2C 00 1A 18 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7C 3B 00 00 35 04 06 00 DC 6F BB 18 FC F1 00 00 3C [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [08:41:18]RAPDU: 90 00 [08:41:18]wFMCommunicate OK [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 0D 03 02 [08:41:18]Write to MH i2c: E2 08 00 1B 18 80 0D 03 02 00 00 00 00 AE [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0B 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0B 00 1B 18 00 DC 6D FA 5A EC 13 6A 87 90 00 3C [08:41:18]RAPDU: DC 6D FA 5A EC 13 6A 87 90 00 [08:41:18]wFMCommunicate OK [08:41:18]SAM_PROTO_SignData done [08:41:18]FM_MakeSignedData done [08:41:18]CreateOFDProtocolMessage [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 11 00 00 [08:41:18]Write to MH i2c: E2 08 00 1C 18 80 11 00 00 00 00 00 00 AE [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 17 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 17 00 1C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 00 [08:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:41:19]wFMCommunicate OK [08:41:19]CreateOFDProtocolMessage done [08:41:19]OFDSenderStorePacket 15228 [08:41:19]StoreOFDPacket docnum=15228 [08:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 3C 49 26 01 1E A4 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 16 00 00 00 F4 03 04 00 31 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7C 3B 00 00 35 04 06 00 DC 6F BB 18 FC F1 DC 6D FA 5A EC 13 6A 87 [08:41:19]CheckFolder [08:41:19]dirname=/storage/ofd_packets [08:41:19]CheckFolder done [08:41:19]ProducePacketName [08:41:19]name=ofd_packets/00015228 [08:41:19]NVStorageSaveData ofd_packets/00015228 [08:41:19]File name is /storage/ofd_packets/00015228 [08:41:19]Write 332 bytes [08:41:19]NVStorageSaveData done [08:41:19]OFDSenderStorePacket done [08:41:19]KKMCreateOFDPacket done [08:41:19]NVStorageSaveData kkm_last_timestamp [08:41:19]File name is /storage/kkm_last_timestamp [08:41:19]Write 4 bytes [08:41:19]NVStorageSaveData done [08:41:19]ExternCall_PrintAddStr [08:41:19]wPrintStart [08:41:19]Write to MH i2c: 01 00 00 1D 18 35 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 FF 0F 4A [08:41:19]RasterBufferAndPrint [08:41:19]line Счет N : (3)151266 [08:41:19]line ИНН: 02508201610067 [08:41:19]line Контрольно-Кассовый Чек [08:41:19]line ПРОДАЖА [08:41:19]line Товар: 2000036220012 [08:41:19]line Кофе Капучино XL(GABB TRADE) [08:41:19]line 1.000 * 130.00 [08:41:19]line = 130.00 [08:41:19]line НДС 12% НСП 1% [08:41:19]line > о реализуемом товаре [08:41:19]line ИТОГО: 130.00 [08:41:19]line НСП 1% : 1.15 [08:41:19]line НДС 12% : 13.80 [08:41:19]line Наличными: 130.00 [08:41:19]line Безнал.: 0.00 [08:41:19]line Место: АЗС № 135 "Партнер Нефть" [08:41:19]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:41:19]line СНО: Общий режим [08:41:19]line Чек 22 23.08.2024 08:41 [08:41:19]line Смена: 102 ФФД: 1.0 [08:41:19]line ЗНМ: 0300000144 [08:41:19]line РНМ: 0000000000162784 [08:41:19]line Версия ККМ: v1.0 [08:41:19]line ФМ: 0000000002094529 [08:41:19]line ФД: 15228 [08:41:19]line ФПД: 242372438457585 [08:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084121&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15228&fm=242372438457585&tin=02508201610067®Number=0000000000162784&sum=13000 [08:41:19]line 0 [08:41:19]OFD Sender: Processing packet 15228 [packets to send 8, broken 7] [08:41:19]ProducePacketName [08:41:19]name=ofd_packets/00015228 [08:41:19]OFD Sender: To server: pG, [08:41:19]CommunicateWithHost lk.salyk.kg:30040 [08:41:19]ConnectInit lk.salyk.kg [08:41:19]written 0, free lines is 4095 [08:41:19]Connected sock=10 [08:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 3C 49 26 01 1E A4 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 16 00 00 00 F4 03 04 00 31 4B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7C 3B 00 00 35 04 06 00 DC 6F BB 18 FC F1 DC 6D FA 5A EC 13 6A 87 [08:41:19]Write to MH i2c: 01 00 00 46 18 5E [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 EC 0C 5D [08:41:19]RasterBufferAndPrint [08:41:19]line [08:41:19]line [08:41:19]line [08:41:19]line [08:41:19]line [08:41:19]written 0, free lines is 3317 [08:41:19]MH_Cut [08:41:19]Write to MH i2c: D1 01 00 4D 18 01 37 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: D1 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: D1 01 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: D1 01 00 4D 18 00 36 [08:41:19]Write to MH i2c: 01 00 00 4E 18 66 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 BB D3 47 00 79 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7C 3B 00 00 F4 03 04 00 8C F5 C7 66 B6 04 01 00 00 EB 6D 72 65 35 AC C1 66 [08:41:19]CommunicateWithHost err = 0 [08:41:19]CheckOFDResponse [08:41:19]1017 (14) - 77093643461234 [08:41:19]1041 (16) - 0000000002094529 [08:41:19]1040 (4) - 15228 [08:41:19]1012 (4) - 23.08.2024 02:35 [08:41:19]1206 (1) - 0 [08:41:19]OFD Sender: Remove packet 15228 [08:41:19]ProducePacketName [08:41:19]name=ofd_packets/00015228 [08:41:19]NVStorageDeleteData [08:41:20]OFD Sender: No OFD packet to send [08:41:20]*** Cut start [08:41:20]*** Partial cut [08:41:20]*** CUTSNS_PIN = 1 [08:41:20]*** CUTSNS_PIN = 0 [08:41:20]*** Brake cut motor [08:41:21]Read from MH i2c: 01 [08:41:21]MH_I2C_Read... [08:41:21]*** Stop cut motor [08:41:21]*** Cut end [08:41:21]Read from MH i2c: 01 07 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [08:41:21]process_action close_receipt done [08:41:21]requested_data is exist [08:41:21]produce_requested_data [08:41:21]requested_item fm.sn is exist - process it [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 11 00 00 [08:41:21]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:21]Read from MH i2c: E2 17 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 33 [08:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:41:21]wFMCommunicate OK [08:41:21]requested_item fd.num is exist - process it [08:41:21]SAM_PROTO_GetFieldsCounters [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 13 00 00 [08:41:21]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 62 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 62 00 50 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [08:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_GetFieldsCounters done [08:41:21]requested_item shift.num is exist - process it [08:41:21]requested_item shift.opened is exist - process it [08:41:21]req_shift_opened [08:41:21]FM_GetShiftState [08:41:21]SAM_PROTO_GetShiftState [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 13 01 00 [08:41:21]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AA [08:41:21]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_GetShiftState done [08:41:21]FM_GetShiftState done [08:41:21]req_shift_opened done [08:41:21]requested_item shift.open_date is exist - process it [08:41:21]req_shift_open_date [08:41:21]req_shift_open_date done [08:41:21]produce_requested_data done [08:41:21]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15228,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:41:21]process_action_free close_receipt [08:41:21]json_value_free [08:41:21]json_value_free done [08:41:21]process_json_proto returns [08:41:21]Send response to host [08:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15228,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:41:21]free response buf [08:41:21]execute_script done [08:41:21]execute_script returns [08:41:21]free content buf [08:41:21]Sock 8.Close socket [08:41:21]Sock 8.Thread stoped [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]accept exits with 9 [08:49:20]New connection [08:49:20]New thread 3066801508 created [08:49:20]Thread 3066944868 joined [08:49:20]Waiting for new connection... [08:49:20] Sock 9.Parse request [08:49:20]Sock 9.Check first char [08:49:20]Sock 9.First char is OK [08:49:20]request: POST /json_proto HTTP/1.0 [08:49:20]Method: POST [08:49:20]URL: /json_proto [08:49:20]Method is POST - this is cgi request [08:49:20]url: /json_proto [08:49:20]query_string will be loaded in cgi processing [08:49:20]execute_cgi json_proto POST (null) [08:49:20]execute_cgi path=json_proto method=POST [08:49:20]POST find Content-Length [08:49:20]Host: 172.17.44.4:8080 [08:49:20]Content-Length: 646 [08:49:20]Content-Type: application/json [08:49:20] [08:49:20]POST finish read [08:49:20]Found Content-Length = 646 [08:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151267", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:20]execute_script... [08:49: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)151267", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:20]POST & json_proto [08:49:20]process_json_proto [08:49:20]json parsed OK: [08:49:20]protocol is kg_v1.0 [08:49:20]action value=close_receipt [08:49:20]process_action close_receipt [08:49:20]cmd_close_receipt [08:49:20]MH_GetDate [08:49:20]Write to MH i2c: F0 00 00 52 18 59 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: F0 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: F0 09 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: F0 09 00 52 18 00 13 4D C8 66 0F 81 47 66 2D [08:49:20]GetLastDocTimeStamp 1724402481 [08:49:20]current date 1724402963 [08:49:20]FM_GetShiftState [08:49:20]SAM_PROTO_GetShiftState [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 13 01 00 [08:49:20]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0E 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AC [08:49:20]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:49:20]wFMCommunicate OK [08:49:20]SAM_PROTO_GetShiftState done [08:49:20]FM_GetShiftState done [08:49:20]opened in 1724372406 [08:49:20]opened+sec_in_day 1724458806 [08:49:20]quantity*price = 26000 [08:49:20]sum+1 = 26001 [08:49:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 23 23.08.2024 08:49 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15229 ФПД: 171251206049141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084924&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15229&fm=171251206049141&tin=02508201610067®Number=0000000000162784&sum=26000 0 [08:49:21]StoreToDocumentArchive [08:49:21]shift 102 fd 15229 [08:49:21]save to /storage/0102/doc_00015229 [08:49:21]save last doc name /storage/0102/doc_00015229 to /storage/kkm_last_doc_name [08:49:21]save OK [08:49:21]Clear old archive folders... [08:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:49:21]tlvbuf is 004B5A70 [08:49:21]SAM_PROTO_ClearQueue [08:49:21]wFMCommunicate request_size=4 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 09 00 00 [08:49:21]Write to MH i2c: E2 08 00 60 18 80 09 00 00 00 00 00 00 EA [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [08:49:21]RAPDU: 90 00 [08:49:21]wFMCommunicate OK [08:49:21]SAM_PROTO_ClearQueue done [08:49:21]KKMCreateOFDPacket [08:49:21]OFDProtocolAddRootSTLVToBuf [08:49:21]FM_MakeSignedData [08:49:21]FM_MakeSignedData [08:49:21]SAM_PROTO_SignData [08:49:21]wFMCommunicate request_size=4 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 0D 01 02 [08:49:21]Write to MH i2c: E2 08 00 61 18 80 0D 01 02 00 00 00 00 F2 [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [08:49:21]RAPDU: 90 00 [08:49:21]wFMCommunicate OK [08:49:21]wFMCommunicate request_size=255 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 [08:49:21]Write to MH i2c: E2 02 01 62 18 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 00 00 CA [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [08:49:21]RAPDU: 90 00 [08:49:21]wFMCommunicate OK [08:49:21]wFMCommunicate request_size=41 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7D 3B 00 00 35 04 06 00 9B C0 87 4D CD 75 [08:49:21]Write to MH i2c: E2 2C 00 63 18 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7D 3B 00 00 35 04 06 00 9B C0 87 4D CD 75 00 00 EC [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [08:49:21]RAPDU: 90 00 [08:49:21]wFMCommunicate OK [08:49:21]wFMCommunicate request_size=4 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 0D 03 02 [08:49:21]Write to MH i2c: E2 08 00 64 18 80 0D 03 02 00 00 00 00 F7 [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 0B 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 0B 00 64 18 00 C1 61 37 61 27 12 00 8C 90 00 77 [08:49:21]RAPDU: C1 61 37 61 27 12 00 8C 90 00 [08:49:21]wFMCommunicate OK [08:49:21]SAM_PROTO_SignData done [08:49:21]FM_MakeSignedData done [08:49:21]CreateOFDProtocolMessage [08:49:21]wFMCommunicate request_size=4 [08:49:21]MH_SAM_APDU [08:49:21]CAPDU: 80 11 00 00 [08:49:21]Write to MH i2c: E2 08 00 65 18 80 11 00 00 00 00 00 00 F7 [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:21]Read from MH i2c: E2 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 17 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: E2 17 00 65 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 49 [08:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:49:21]wFMCommunicate OK [08:49:21]CreateOFDProtocolMessage done [08:49:21]OFDSenderStorePacket 15229 [08:49:21]StoreOFDPacket docnum=15229 [08:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 2C FF 26 01 1A AA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7D 3B 00 00 35 04 06 00 9B C0 87 4D CD 75 C1 61 37 61 27 12 00 8C [08:49:21]CheckFolder [08:49:21]dirname=/storage/ofd_packets [08:49:21]CheckFolder done [08:49:21]ProducePacketName [08:49:21]name=ofd_packets/00015229 [08:49:21]NVStorageSaveData ofd_packets/00015229 [08:49:21]File name is /storage/ofd_packets/00015229 [08:49:21]Write 332 bytes [08:49:21]NVStorageSaveData done [08:49:21]OFDSenderStorePacket done [08:49:21]KKMCreateOFDPacket done [08:49:21]NVStorageSaveData kkm_last_timestamp [08:49:21]File name is /storage/kkm_last_timestamp [08:49:21]Write 4 bytes [08:49:21]NVStorageSaveData done [08:49:21]ExternCall_PrintAddStr [08:49:21]wPrintStart [08:49:21]Write to MH i2c: 01 00 00 66 18 7E [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 07 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 FF 0F 93 [08:49:21]RasterBufferAndPrint [08:49:21]line Счет N : (3)151267 [08:49:21]line ИНН: 02508201610067 [08:49:21]line Контрольно-Кассовый Чек [08:49:21]line ПРОДАЖА [08:49:21]line Товар: 2000036220012 [08:49:21]line Кофе Капучино XL(GABB TRADE) [08:49:21]line 2.000 * 130.00 [08:49:21]line = 260.00 [08:49:21]line НДС 12% НСП 1% [08:49:21]line > о реализуемом товаре [08:49:21]line ИТОГО: 260.00 [08:49:21]line НСП 1% : 2.30 [08:49:21]line НДС 12% : 27.61 [08:49:21]line Наличными: 260.00 [08:49:21]line Безнал.: 0.00 [08:49:21]line Место: АЗС № 135 "Партнер Нефть" [08:49:21]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:49:21]line СНО: Общий режим [08:49:21]line Чек 23 23.08.2024 08:49 [08:49:21]line Смена: 102 ФФД: 1.0 [08:49:21]line ЗНМ: 0300000144 [08:49:21]line РНМ: 0000000000162784 [08:49:21]line Версия ККМ: v1.0 [08:49:22]line ФМ: 0000000002094529 [08:49:22]line ФД: 15229 [08:49:22]line ФПД: 171251206049141 [08:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T084924&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15229&fm=171251206049141&tin=02508201610067®Number=0000000000162784&sum=26000 [08:49:22]line 0 [08:49:22]OFD Sender: Processing packet 15229 [packets to send 8, broken 7] [08:49:22]ProducePacketName [08:49:22]name=ofd_packets/00015229 [08:49:22]OFD Sender: To server: pG, [08:49:22]CommunicateWithHost lk.salyk.kg:30040 [08:49:22]ConnectInit lk.salyk.kg [08:49:22]written 0, free lines is 4095 [08:49:22]Connected sock=10 [08:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 2C FF 26 01 1A AA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7D 3B 00 00 35 04 06 00 9B C0 87 4D CD 75 C1 61 37 61 27 12 00 8C [08:49:22]Write to MH i2c: 01 00 00 8F 18 A7 [08:49:22]Write i2c OK [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: 01 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: 01 07 00 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: 01 07 00 8F 18 00 00 00 00 00 E4 0C 9E [08:49:22]RasterBufferAndPrint [08:49:22]line [08:49:22]line [08:49:22]line [08:49:22]line [08:49:22]line [08:49:22]written 0, free lines is 3306 [08:49:22]MH_Cut [08:49:22]Write to MH i2c: D1 01 00 96 18 01 80 [08:49:22]Write i2c OK [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: D1 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: D1 01 00 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: D1 01 00 96 18 00 7F [08:49:22]Write to MH i2c: 01 00 00 97 18 AF [08:49:22]Write i2c OK [08:49:22]MH_I2C_Read... [08:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 96 F7 47 00 63 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7D 3B 00 00 F4 03 04 00 6F F7 C7 66 B6 04 01 00 00 B3 D7 C3 E9 3A 04 1F E9 [08:49:22]CommunicateWithHost err = 0 [08:49:22]CheckOFDResponse [08:49:22]1017 (14) - 77093643461234 [08:49:22]1041 (16) - 0000000002094529 [08:49:22]1040 (4) - 15229 [08:49:22]1012 (4) - 23.08.2024 02:43 [08:49:22]1206 (1) - 0 [08:49:22]OFD Sender: Remove packet 15229 [08:49:22]ProducePacketName [08:49:22]name=ofd_packets/00015229 [08:49:22]NVStorageDeleteData [08:49:23]OFD Sender: No OFD packet to send [08:49:23]*** Cut start [08:49:23]*** Partial cut [08:49:23]*** CUTSNS_PIN = 1 [08:49:23]*** CUTSNS_PIN = 0 [08:49:23]*** Brake cut motor [08:49:24]Read from MH i2c: 01 [08:49:24]MH_I2C_Read... [08:49:24]*** Stop cut motor [08:49:24]*** Cut end [08:49:24]Read from MH i2c: 01 07 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 07 00 97 18 00 00 00 00 00 FF 0F C4 [08:49:24]process_action close_receipt done [08:49:24]requested_data is exist [08:49:24]produce_requested_data [08:49:24]requested_item fm.sn is exist - process it [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 11 00 00 [08:49:24]Write to MH i2c: E2 08 00 98 18 80 11 00 00 00 00 00 00 2A [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 17 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 17 00 98 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 7C [08:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:49:24]wFMCommunicate OK [08:49:24]requested_item fd.num is exist - process it [08:49:24]SAM_PROTO_GetFieldsCounters [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 13 00 00 [08:49:24]Write to MH i2c: E2 08 00 99 18 80 13 00 00 00 00 00 00 2D [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 62 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 62 00 99 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [08:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:24]wFMCommunicate OK [08:49:24]SAM_PROTO_GetFieldsCounters done [08:49:24]requested_item shift.num is exist - process it [08:49:24]requested_item shift.opened is exist - process it [08:49:24]req_shift_opened [08:49:24]FM_GetShiftState [08:49:24]SAM_PROTO_GetShiftState [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 13 01 00 [08:49:24]Write to MH i2c: E2 08 00 9A 18 80 13 01 00 00 00 00 00 2F [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0E 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0E 00 9A 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F3 [08:49:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:49:24]wFMCommunicate OK [08:49:24]SAM_PROTO_GetShiftState done [08:49:24]FM_GetShiftState done [08:49:24]req_shift_opened done [08:49:24]requested_item shift.open_date is exist - process it [08:49:24]req_shift_open_date [08:49:24]req_shift_open_date done [08:49:24]produce_requested_data done [08:49:24]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15229,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:49:24]process_action_free close_receipt [08:49:24]json_value_free [08:49:24]json_value_free done [08:49:24]process_json_proto returns [08:49:24]Send response to host [08:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15229,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:49:24]free response buf [08:49:24]execute_script done [08:49:24]execute_script returns [08:49:24]free content buf [08:49:24]Sock 9.Close socket [08:49:24]Sock 9.Thread stoped [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:41]accept exits with 8 [08:50:41]New connection [08:50:41]New thread 3066944868 created [08:50:41]Thread 3066801508 joined [08:50:41]Waiting for new connection... [08:50:41] Sock 8.Parse request [08:50:41]Sock 8.Check first char [08:50:41]Sock 8.First char is OK [08:50:41]request: POST /json_proto HTTP/1.0 [08:50:41]Method: POST [08:50:41]URL: /json_proto [08:50:41]Method is POST - this is cgi request [08:50:41]url: /json_proto [08:50:41]query_string will be loaded in cgi processing [08:50:41]execute_cgi json_proto POST (null) [08:50:41]execute_cgi path=json_proto method=POST [08:50:41]POST find Content-Length [08:50:41]Host: 172.17.44.4:8080 [08:50:41]Content-Length: 678 [08:50:41]Content-Type: application/json [08:50:41] [08:50:41]POST finish read [08:50:41]Found Content-Length = 678 [08:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:41]execute_script... [08:50:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:41]POST & json_proto [08:50:41]process_json_proto [08:50:41]json parsed OK: [08:50:41]protocol is kg_v1.0 [08:50:41]action value=close_receipt [08:50:41]process_action close_receipt [08:50:41]cmd_close_receipt [08:50:41]MH_GetDate [08:50:41]Write to MH i2c: F0 00 00 9B 18 A2 [08:50:41]Write i2c OK [08:50:41]MH_I2C_Read... [08:50:41]Read from MH i2c: F0 [08:50:41]MH_I2C_Read... [08:50:41]Read from MH i2c: F0 09 00 [08:50:41]MH_I2C_Read... [08:50:41]Read from MH i2c: F0 09 00 9B 18 00 65 4D C8 66 0F 81 47 66 C8 [08:50:41]GetLastDocTimeStamp 1724402964 [08:50:41]current date 1724403045 [08:50:41]FM_GetShiftState [08:50:41]SAM_PROTO_GetShiftState [08:50:41]wFMCommunicate request_size=4 [08:50:41]MH_SAM_APDU [08:50:41]CAPDU: 80 13 01 00 [08:50:41]Write to MH i2c: E2 08 00 9C 18 80 13 01 00 00 00 00 00 31 [08:50:41]Write i2c OK [08:50:41]MH_I2C_Read... [08:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:41]Read from MH i2c: E2 [08:50:41]MH_I2C_Read... [08:50:41]Read from MH i2c: E2 0E 00 [08:50:41]MH_I2C_Read... [08:50:41]Read from MH i2c: E2 0E 00 9C 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F5 [08:50:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:50:41]wFMCommunicate OK [08:50:41]SAM_PROTO_GetShiftState done [08:50:41]FM_GetShiftState done [08:50:41]opened in 1724372406 [08:50:41]opened+sec_in_day 1724458806 [08:50:41]quantity*price = 50010 [08:50:41]sum+1 = 50012 [08:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 24 23.08.2024 08:50 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15230 ФПД: 202981182342504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T085045&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15230&fm=202981182342504&tin=02508201610067®Number=0000000000162784&sum=50000 [08:50:42]StoreToDocumentArchive [08:50:42]shift 102 fd 15230 [08:50:42]save to /storage/0102/doc_00015230 [08:50:42]save last doc name /storage/0102/doc_00015230 to /storage/kkm_last_doc_name [08:50:42]save OK [08:50:42]Clear old archive folders... [08:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:42]tlvbuf is 0045E790 [08:50:42]SAM_PROTO_ClearQueue [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 09 00 00 [08:50:42]Write to MH i2c: E2 08 00 A9 18 80 09 00 00 00 00 00 00 33 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 A9 18 00 90 00 35 [08:50:42]RAPDU: 90 00 [08:50:42]wFMCommunicate OK [08:50:42]SAM_PROTO_ClearQueue done [08:50:42]KKMCreateOFDPacket [08:50:42]OFDProtocolAddRootSTLVToBuf [08:50:42]FM_MakeSignedData [08:50:42]FM_MakeSignedData [08:50:42]SAM_PROTO_SignData [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 0D 01 02 [08:50:42]Write to MH i2c: E2 08 00 AA 18 80 0D 01 02 00 00 00 00 3B [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=255 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7E 3B 00 00 35 04 06 00 B8 [08:50:43]Write to MH i2c: E2 02 01 AB 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7E 3B 00 00 35 04 06 00 B8 00 00 73 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=10 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 02 02 05 9C 3D 45 05 68 [08:50:43]Write to MH i2c: E2 0D 00 AC 18 80 0D 02 02 05 00 9C 3D 45 05 68 00 00 D3 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 03 02 [08:50:43]Write to MH i2c: E2 08 00 AD 18 80 0D 03 02 00 00 00 00 40 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0B 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0B 00 AD 18 00 A3 C3 97 BE D0 A2 E1 99 90 00 E8 [08:50:43]RAPDU: A3 C3 97 BE D0 A2 E1 99 90 00 [08:50:43]wFMCommunicate OK [08:50:43]SAM_PROTO_SignData done [08:50:43]FM_MakeSignedData done [08:50:43]CreateOFDProtocolMessage [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 11 00 00 [08:50:43]Write to MH i2c: E2 08 00 AE 18 80 11 00 00 00 00 00 00 40 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]OFD Sender: No OFD packet to send [08:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 17 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 17 00 AE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 92 [08:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:50:43]wFMCommunicate OK [08:50:43]CreateOFDProtocolMessage done [08:50:43]OFDSenderStorePacket 15230 [08:50:43]StoreOFDPacket docnum=15230 [08:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 3A 34 07 01 85 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7E 3B 00 00 35 04 06 00 B8 9C 3D 45 05 68 A3 C3 97 BE D0 A2 E1 99 [08:50:43]CheckFolder [08:50:43]dirname=/storage/ofd_packets [08:50:43]CheckFolder done [08:50:43]ProducePacketName [08:50:43]name=ofd_packets/00015230 [08:50:43]NVStorageSaveData ofd_packets/00015230 [08:50:43]File name is /storage/ofd_packets/00015230 [08:50:43]Write 301 bytes [08:50:43]NVStorageSaveData done [08:50:43]OFDSenderStorePacket done [08:50:43]KKMCreateOFDPacket done [08:50:43]NVStorageSaveData kkm_last_timestamp [08:50:43]File name is /storage/kkm_last_timestamp [08:50:43]Write 4 bytes [08:50:43]NVStorageSaveData done [08:50:43]ExternCall_PrintAddStr [08:50:43]wPrintStart [08:50:43]Write to MH i2c: 01 00 00 AF 18 C7 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 AF 18 00 00 00 00 00 FF 0F DC [08:50:43]RasterBufferAndPrint [08:50:43]line Счет N : (1)2078109 [08:50:43]line ИНН: 02508201610067 [08:50:43]line Контрольно-Кассовый Чек [08:50:43]line ПРОДАЖА [08:50:43]line ТРК (МРК, ГНК) : 62 [08:50:43]line Товар: 2710124500 [08:50:43]line Аи-95-К-5 [08:50:43]line 6.740 * 74.20 [08:50:43]line = 500.11 [08:50:43]line НДС 12% НСП 1% [08:50:43]line > о реализуемом товаре [08:50:43]line ОКРУГЛЕНИЕ: -0.11 [08:50:43]line ИТОГО: 500.00 [08:50:43]line Внесено: 500.00 [08:50:43]line СДАЧА: 0.00 [08:50:43]line НСП 1% : 4.43 [08:50:43]line НДС 12% : 53.11 [08:50:43]line Наличными: 500.00 [08:50:43]line Безнал.: 0.00 [08:50:43]line Место: АЗС № 135 "Партнер Нефть" [08:50:43]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:50:43]line СНО: Общий режим [08:50:43]line Чек 24 23.08.2024 08:50 [08:50:43]line Смена: 102 ФФД: 1.0 [08:50:43]line ЗНМ: 0300000144 [08:50:43]line РНМ: 0000000000162784 [08:50:43]line Версия ККМ: v1.0 [08:50:43]line ФМ: 0000000002094529 [08:50:43]line ФД: 15230 [08:50:43]line ФПД: 202981182342504 [08:50:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T085045&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15230&fm=202981182342504&tin=02508201610067®Number=0000000000162784&sum=50000 [08:50:43]OFD Sender: Processing packet 15230 [packets to send 8, broken 7] [08:50:43]ProducePacketName [08:50:43]name=ofd_packets/00015230 [08:50:43]OFD Sender: To server: pG, [08:50:43]CommunicateWithHost lk.salyk.kg:30040 [08:50:43]ConnectInit lk.salyk.kg [08:50:43]written 0, free lines is 4095 [08:50:43]Connected sock=10 [08:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 3A 34 07 01 85 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 4D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7E 3B 00 00 35 04 06 00 B8 9C 3D 45 05 68 A3 C3 97 BE D0 A2 E1 99 [08:50:44]Write to MH i2c: 01 00 00 DA 18 F2 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 07 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 C9 0C CE [08:50:44]RasterBufferAndPrint [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]written 0, free lines is 3277 [08:50:44]MH_Cut [08:50:44]Write to MH i2c: D1 01 00 E1 18 01 CB [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 01 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 01 00 E1 18 00 CA [08:50:44]Write to MH i2c: 01 00 00 E2 18 FA [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 3F DA 47 00 FB 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 32 30 39 34 35 32 39 10 04 04 00 7E 3B 00 00 F4 03 04 00 C1 F7 C7 66 B6 04 01 00 00 AE F8 76 F8 55 85 A6 5A [08:50:44]CommunicateWithHost err = 0 [08:50:44]CheckOFDResponse [08:50:44]1017 (14) - 77093643461234 [08:50:44]1041 (16) - 0000000002094529 [08:50:44]1040 (4) - 15230 [08:50:44]1012 (4) - 23.08.2024 02:45 [08:50:44]1206 (1) - 0 [08:50:44]OFD Sender: Remove packet 15230 [08:50:44]ProducePacketName [08:50:44]name=ofd_packets/00015230 [08:50:44]NVStorageDeleteData [08:50:44]OFD Sender: No OFD packet to send [08:50:44]*** Cut start [08:50:44]*** Partial cut [08:50:44]*** CUTSNS_PIN = 1 [08:50:45]*** CUTSNS_PIN = 0 [08:50:45]*** Brake cut motor [08:50:45]Read from MH i2c: 01 [08:50:45]MH_I2C_Read... [08:50:45]*** Stop cut motor [08:50:45]*** Cut end [08:50:45]Read from MH i2c: 01 07 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 FF 0F 0F [08:50:45]process_action close_receipt done [08:50:45]requested_data is exist [08:50:45]produce_requested_data [08:50:45]requested_item fm.sn is exist - process it [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 11 00 00 [08:50:45]Write to MH i2c: E2 08 00 E3 18 80 11 00 00 00 00 00 00 75 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 E3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C7 [08:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [08:50:45]wFMCommunicate OK [08:50:45]requested_item fd.num is exist - process it [08:50:45]SAM_PROTO_GetFieldsCounters [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 13 00 00 [08:50:45]Write to MH i2c: E2 08 00 E4 18 80 13 00 00 00 00 00 00 78 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 E4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetFieldsCounters done [08:50:45]requested_item shift.num is exist - process it [08:50:45]requested_item shift.opened is exist - process it [08:50:45]req_shift_opened [08:50:45]FM_GetShiftState [08:50:45]SAM_PROTO_GetShiftState [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 13 01 00 [08:50:45]Write to MH i2c: E2 08 00 E5 18 80 13 01 00 00 00 00 00 7A [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 E5 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 3E [08:50:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetShiftState done [08:50:45]FM_GetShiftState done [08:50:45]req_shift_opened done [08:50:45]requested_item shift.open_date is exist - process it [08:50:45]req_shift_open_date [08:50:45]req_shift_open_date done [08:50:45]produce_requested_data done [08:50:45]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15230,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [08:50:45]process_action_free close_receipt [08:50:45]json_value_free [08:50:45]json_value_free done [08:50:45]process_json_proto returns [08:50:45]Send response to host [08:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15230,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [08:50:45]free response buf [08:50:45]execute_script done [08:50:45]execute_script returns [08:50:45]free content buf [08:50:45]Sock 8.Close socket [08:50:45]Sock 8.Thread stoped [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:03]recv_with_timeout no data received [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:14]accept exits with 9 [09:12:14]New connection [09:12:14]New thread 3066801508 created [09:12:14]Thread 3066944868 joined [09:12:14]Waiting for new connection... [09:12:14] Sock 9.Parse request [09:12:14]Sock 9.Check first char [09:12:14]Sock 9.First char is OK [09:12:14]request: POST /json_proto HTTP/1.0 [09:12:14]Method: POST [09:12:14]URL: /json_proto [09:12:14]Method is POST - this is cgi request [09:12:14]url: /json_proto [09:12:14]query_string will be loaded in cgi processing [09:12:14]execute_cgi json_proto POST (null) [09:12:14]execute_cgi path=json_proto method=POST [09:12:14]POST find Content-Length [09:12:14]Host: 172.17.44.4:8080 [09:12:14]Content-Length: 620 [09:12:14]Content-Type: application/json [09:12:14] [09:12:14]POST finish read [09:12:14]Found Content-Length = 620 [09:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151268", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:14]execute_script... [09:12: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)151268", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:14]POST & json_proto [09:12:14]process_json_proto [09:12:14]json parsed OK: [09:12:14]protocol is kg_v1.0 [09:12:14]action value=close_receipt [09:12:14]process_action close_receipt [09:12:14]cmd_close_receipt [09:12:14]MH_GetDate [09:12:14]Write to MH i2c: F0 00 00 E6 18 ED [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: F0 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: F0 09 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: F0 09 00 E6 18 00 71 52 C8 66 0F 81 47 66 24 [09:12:14]GetLastDocTimeStamp 1724403045 [09:12:14]current date 1724404337 [09:12:14]FM_GetShiftState [09:12:14]SAM_PROTO_GetShiftState [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 13 01 00 [09:12:14]Write to MH i2c: E2 08 00 E7 18 80 13 01 00 00 00 00 00 7C [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 0E 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 0E 00 E7 18 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 40 [09:12:14]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:12:14]wFMCommunicate OK [09:12:14]SAM_PROTO_GetShiftState done [09:12:14]FM_GetShiftState done [09:12:14]opened in 1724372406 [09:12:14]opened+sec_in_day 1724458806 [09:12:14]quantity*price = 13500 [09:12:14]sum+1 = 13501 [09:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 25 23.08.2024 09:12 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15231 ФПД: 178216583965777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T091217&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15231&fm=178216583965777&tin=02508201610067®Number=0000000000162784&sum=13500 0 [09:12:15]StoreToDocumentArchive [09:12:15]shift 102 fd 15231 [09:12:15]save to /storage/0102/doc_00015231 [09:12:15]save last doc name /storage/0102/doc_00015231 to /storage/kkm_last_doc_name [09:12:15]save OK [09:12:15]Clear old archive folders... [09:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=272 [09:12:15]tlvbuf is 00455B80 [09:12:15]SAM_PROTO_ClearQueue [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 09 00 00 [09:12:15]Write to MH i2c: E2 08 00 F4 18 80 09 00 00 00 00 00 00 7E [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 F4 18 00 90 00 80 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]SAM_PROTO_ClearQueue done [09:12:15]KKMCreateOFDPacket [09:12:15]OFDProtocolAddRootSTLVToBuf [09:12:15]FM_MakeSignedData [09:12:15]FM_MakeSignedData [09:12:15]SAM_PROTO_SignData [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 01 02 [09:12:15]Write to MH i2c: E2 08 00 F5 18 80 0D 01 02 00 00 00 00 86 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]wFMCommunicate request_size=255 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 71 52 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 [09:12:15]Write to MH i2c: E2 02 01 F6 18 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 71 52 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B4 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]wFMCommunicate request_size=31 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 35 32 39 10 04 04 00 7F 3B 00 00 35 04 06 00 A2 16 48 2E 2C 51 [09:12:15]Write to MH i2c: E2 22 00 F7 18 80 0D 02 02 1A 00 30 32 30 39 34 35 32 39 10 04 04 00 7F 3B 00 00 35 04 06 00 A2 16 48 2E 2C 51 00 00 18 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 03 02 [09:12:15]Write to MH i2c: E2 08 00 F8 18 80 0D 03 02 00 00 00 00 8B [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]OFD Sender: No OFD packet to send [09:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 0B 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 0B 00 F8 18 00 EC C0 54 9C AD 30 96 FF 90 00 9A [09:12:15]RAPDU: EC C0 54 9C AD 30 96 FF 90 00 [09:12:15]wFMCommunicate OK [09:12:15]SAM_PROTO_SignData done [09:12:15]FM_MakeSignedData done [09:12:15]CreateOFDProtocolMessage [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 11 00 00 [09:12:15]Write to MH i2c: E2 08 00 F9 18 80 11 00 00 00 00 00 00 8B [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 F9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 DD [09:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:12:15]wFMCommunicate OK [09:12:15]CreateOFDProtocolMessage done [09:12:15]OFDSenderStorePacket 15231 [09:12:15]StoreOFDPacket docnum=15231 [09:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 24 01 00 00 A9 8C 1C 01 E8 84 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 71 52 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7F 3B 00 00 35 04 06 00 A2 16 48 2E 2C 51 EC C0 54 9C AD 30 96 FF [09:12:15]CheckFolder [09:12:15]dirname=/storage/ofd_packets [09:12:15]CheckFolder done [09:12:15]ProducePacketName [09:12:15]name=ofd_packets/00015231 [09:12:15]NVStorageSaveData ofd_packets/00015231 [09:12:15]File name is /storage/ofd_packets/00015231 [09:12:15]Write 322 bytes [09:12:15]NVStorageSaveData done [09:12:15]OFDSenderStorePacket done [09:12:15]KKMCreateOFDPacket done [09:12:15]NVStorageSaveData kkm_last_timestamp [09:12:15]File name is /storage/kkm_last_timestamp [09:12:15]Write 4 bytes [09:12:15]NVStorageSaveData done [09:12:15]ExternCall_PrintAddStr [09:12:15]wPrintStart [09:12:15]Write to MH i2c: 01 00 00 FA 18 12 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 FA 18 00 00 00 00 00 FF 0F 27 [09:12:15]RasterBufferAndPrint [09:12:15]line Счет N : (3)151268 [09:12:15]line ИНН: 02508201610067 [09:12:15]line Контрольно-Кассовый Чек [09:12:15]line ПРОДАЖА [09:12:15]line Товар: 48745000 [09:12:15]line Сигареты Winston Purple Mix [09:12:15]line 1.000 * 135.00 [09:12:15]line = 135.00 [09:12:15]line НДС 12% НСП 1% [09:12:15]line > о реализуемом товаре [09:12:15]line ИТОГО: 135.00 [09:12:15]line НСП 1% : 1.19 [09:12:15]line НДС 12% : 14.34 [09:12:15]line Наличными: 135.00 [09:12:15]line Безнал.: 0.00 [09:12:15]line Место: АЗС № 135 "Партнер Нефть" [09:12:15]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:12:15]line СНО: Общий режим [09:12:15]line Чек 25 23.08.2024 09:12 [09:12:15]line Смена: 102 ФФД: 1.0 [09:12:15]line ЗНМ: 0300000144 [09:12:15]line РНМ: 0000000000162784 [09:12:15]line Версия ККМ: v1.0 [09:12:15]line ФМ: 0000000002094529 [09:12:15]line ФД: 15231 [09:12:15]line ФПД: 178216583965777 [09:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T091217&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15231&fm=178216583965777&tin=02508201610067®Number=0000000000162784&sum=13500 [09:12:16]line 0 [09:12:16]OFD Sender: Processing packet 15231 [packets to send 8, broken 7] [09:12:16]ProducePacketName [09:12:16]name=ofd_packets/00015231 [09:12:16]OFD Sender: To server: pG, [09:12:16]CommunicateWithHost lk.salyk.kg:30040 [09:12:16]ConnectInit lk.salyk.kg [09:12:16]written 0, free lines is 4095 [09:12:16]Write to MH i2c: 01 00 00 22 19 3B [09:12:16]Write i2c OK [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: 01 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: 01 07 00 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: 01 07 00 22 19 00 00 00 00 00 E2 0C 30 [09:12:16]RasterBufferAndPrint [09:12:16]line [09:12:16]line [09:12:16]line [09:12:16]line [09:12:16]line [09:12:16]written 0, free lines is 3304 [09:12:16]MH_Cut [09:12:16]Write to MH i2c: D1 01 00 29 19 01 14 [09:12:16]Write i2c OK [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: D1 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: D1 01 00 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: D1 01 00 29 19 00 13 [09:12:16]Write to MH i2c: 01 00 00 2A 19 43 [09:12:16]Write i2c OK [09:12:16]MH_I2C_Read... [09:12:17]*** Cut start [09:12:17]*** Partial cut [09:12:17]*** CUTSNS_PIN = 1 [09:12:17]*** CUTSNS_PIN = 0 [09:12:17]*** Brake cut motor [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]*** Stop cut motor [09:12:17]*** Cut end [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [09:12:17]process_action close_receipt done [09:12:17]requested_data is exist [09:12:17]produce_requested_data [09:12:17]requested_item fm.sn is exist - process it [09:12:17]wFMCommunicate request_size=4 [09:12:17]MH_SAM_APDU [09:12:17]CAPDU: 80 11 00 00 [09:12:17]Write to MH i2c: E2 08 00 2B 19 80 11 00 00 00 00 00 00 BE [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:18]Read from MH i2c: E2 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 17 00 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 17 00 2B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 10 [09:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:12:18]wFMCommunicate OK [09:12:18]requested_item fd.num is exist - process it [09:12:18]SAM_PROTO_GetFieldsCounters [09:12:18]wFMCommunicate request_size=4 [09:12:18]MH_SAM_APDU [09:12:18]CAPDU: 80 13 00 00 [09:12:18]Write to MH i2c: E2 08 00 2C 19 80 13 00 00 00 00 00 00 C1 [09:12:18]Write i2c OK [09:12:18]MH_I2C_Read... [09:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:18]Read from MH i2c: E2 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 62 00 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 62 00 2C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [09:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 7F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:18]wFMCommunicate OK [09:12:18]SAM_PROTO_GetFieldsCounters done [09:12:18]requested_item shift.num is exist - process it [09:12:18]requested_item shift.opened is exist - process it [09:12:18]req_shift_opened [09:12:18]FM_GetShiftState [09:12:18]SAM_PROTO_GetShiftState [09:12:18]wFMCommunicate request_size=4 [09:12:18]MH_SAM_APDU [09:12:18]CAPDU: 80 13 01 00 [09:12:18]Write to MH i2c: E2 08 00 2D 19 80 13 01 00 00 00 00 00 C3 [09:12:18]Write i2c OK [09:12:18]MH_I2C_Read... [09:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:18]Read from MH i2c: E2 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 0E 00 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: E2 0E 00 2D 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 87 [09:12:18]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:12:18]wFMCommunicate OK [09:12:18]SAM_PROTO_GetShiftState done [09:12:18]FM_GetShiftState done [09:12:18]req_shift_opened done [09:12:18]requested_item shift.open_date is exist - process it [09:12:18]req_shift_open_date [09:12:18]req_shift_open_date done [09:12:18]produce_requested_data done [09:12:18]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15231,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:12:18]process_action_free close_receipt [09:12:18]json_value_free [09:12:18]json_value_free done [09:12:18]process_json_proto returns [09:12:18]Send response to host [09:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15231,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:12:18]free response buf [09:12:18]execute_script done [09:12:18]execute_script returns [09:12:18]free content buf [09:12:18]Sock 9.Close socket [09:12:18]Sock 9.Thread stoped [09:12:18]Connected sock=11 [09:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 24 01 00 00 A9 8C 1C 01 E8 84 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 71 52 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 7F 3B 00 00 35 04 06 00 A2 16 48 2E 2C 51 EC C0 54 9C AD 30 96 FF [09:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 3E F0 47 00 00 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 32 30 39 34 35 32 39 10 04 04 00 7F 3B 00 00 F4 03 04 00 D0 FC C7 66 B6 04 01 00 00 A8 BF 57 A6 52 E7 26 BF [09:12:19]CommunicateWithHost err = 0 [09:12:19]CheckOFDResponse [09:12:19]1017 (14) - 77093643461234 [09:12:19]1041 (16) - 0000000002094529 [09:12:19]1040 (4) - 15231 [09:12:19]1012 (4) - 23.08.2024 03:06 [09:12:19]1206 (1) - 0 [09:12:19]OFD Sender: Remove packet 15231 [09:12:19]ProducePacketName [09:12:19]name=ofd_packets/00015231 [09:12:19]NVStorageDeleteData [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: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:21]recv_with_timeout no data received [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:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]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:02]accept exits with 10 [09:28:02]New connection [09:28:02]New thread 3066944868 created [09:28:02]Thread 3066801508 joined [09:28:02]Waiting for new connection... [09:28:02] Sock 10.Parse request [09:28:02]Sock 10.Check first char [09:28:02]Sock 10.First char is OK [09:28:02]request: POST /json_proto HTTP/1.0 [09:28:02]Method: POST [09:28:02]URL: /json_proto [09:28:02]Method is POST - this is cgi request [09:28:02]url: /json_proto [09:28:02]query_string will be loaded in cgi processing [09:28:02]execute_cgi json_proto POST (null) [09:28:02]execute_cgi path=json_proto method=POST [09:28:02]POST find Content-Length [09:28:02]Host: 172.17.44.4:8080 [09:28:02]Content-Length: 793 [09:28:02]Content-Type: application/json [09:28:02] [09:28:02]POST finish read [09:28:02]Found Content-Length = 793 [09:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:02]execute_script... [09:28:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:02]POST & json_proto [09:28:02]process_json_proto [09:28:02]json parsed OK: [09:28:02]protocol is kg_v1.0 [09:28:02]action value=close_receipt [09:28:02]process_action close_receipt [09:28:02]cmd_close_receipt [09:28:02]MH_GetDate [09:28:02]Write to MH i2c: F0 00 00 2E 19 36 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: F0 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: F0 09 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: F0 09 00 2E 19 00 26 56 C8 66 0F 81 47 66 26 [09:28:02]GetLastDocTimeStamp 1724404337 [09:28:02]current date 1724405286 [09:28:02]FM_GetShiftState [09:28:02]SAM_PROTO_GetShiftState [09:28:02]wFMCommunicate request_size=4 [09:28:02]MH_SAM_APDU [09:28:02]CAPDU: 80 13 01 00 [09:28:02]Write to MH i2c: E2 08 00 2F 19 80 13 01 00 00 00 00 00 C5 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:02]Read from MH i2c: E2 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 0E 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: E2 0E 00 2F 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 89 [09:28:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:28:02]wFMCommunicate OK [09:28:02]SAM_PROTO_GetShiftState done [09:28:02]FM_GetShiftState done [09:28:02]opened in 1724372406 [09:28:02]opened+sec_in_day 1724458806 [09:28:02]quantity*price = 0 [09:28:02]sum+1 = 1 [09:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 26 23.08.2024 09:28 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15232 ФПД: 141274892591605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092806&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15232&fm=141274892591605&tin=02508201610067®Number=0000000000162784&sum=0 [09:28:03]StoreToDocumentArchive [09:28:03]shift 102 fd 15232 [09:28:03]save to /storage/0102/doc_00015232 [09:28:03]save last doc name /storage/0102/doc_00015232 to /storage/kkm_last_doc_name [09:28:03]save OK [09:28:03]Clear old archive folders... [09:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:03]tlvbuf is B6EA6250 [09:28:03]SAM_PROTO_ClearQueue [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 09 00 00 [09:28:03]Write to MH i2c: E2 08 00 3C 19 80 09 00 00 00 00 00 00 C7 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 3C 19 00 90 00 C9 [09:28:03]RAPDU: 90 00 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_ClearQueue done [09:28:03]KKMCreateOFDPacket [09:28:03]OFDProtocolAddRootSTLVToBuf [09:28:03]FM_MakeSignedData [09:28:03]FM_MakeSignedData [09:28:03]SAM_PROTO_SignData [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 0D 01 02 [09:28:03]Write to MH i2c: E2 08 00 3D 19 80 0D 01 02 00 00 00 00 CF [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 3D 19 00 90 00 CA [09:28:03]RAPDU: 90 00 [09:28:03]wFMCommunicate OK [09:28:03]wFMCommunicate request_size=255 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 26 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 80 3B 00 00 35 04 06 00 80 [09:28:03]Write to MH i2c: E2 02 01 3E 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 26 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 80 3B 00 00 35 04 06 00 80 00 00 AD [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 3E 19 00 90 00 CB [09:28:03]RAPDU: 90 00 [09:28:03]wFMCommunicate OK [09:28:03]wFMCommunicate request_size=10 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 0D 02 02 05 7D 1F C9 E1 F5 [09:28:03]Write to MH i2c: E2 0D 00 3F 19 80 0D 02 02 05 00 7D 1F C9 E1 F5 00 00 17 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 03 00 3F 19 00 90 00 CC [09:28:03]RAPDU: 90 00 [09:28:03]wFMCommunicate OK [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 0D 03 02 [09:28:03]Write to MH i2c: E2 08 00 40 19 80 0D 03 02 00 00 00 00 D4 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0B 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0B 00 40 19 00 58 E9 12 17 0B A4 10 57 90 00 55 [09:28:03]RAPDU: 58 E9 12 17 0B A4 10 57 90 00 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_SignData done [09:28:03]FM_MakeSignedData done [09:28:03]CreateOFDProtocolMessage [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 11 00 00 [09:28:03]Write to MH i2c: E2 08 00 41 19 80 11 00 00 00 00 00 00 D4 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 17 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 17 00 41 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 26 [09:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:28:03]wFMCommunicate OK [09:28:03]CreateOFDProtocolMessage done [09:28:03]OFDSenderStorePacket 15232 [09:28:03]StoreOFDPacket docnum=15232 [09:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 55 1F 07 01 EA A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 26 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 80 3B 00 00 35 04 06 00 80 7D 1F C9 E1 F5 58 E9 12 17 0B A4 10 57 [09:28:03]CheckFolder [09:28:03]dirname=/storage/ofd_packets [09:28:03]CheckFolder done [09:28:03]ProducePacketName [09:28:03]name=ofd_packets/00015232 [09:28:03]NVStorageSaveData ofd_packets/00015232 [09:28:03]File name is /storage/ofd_packets/00015232 [09:28:03]Write 301 bytes [09:28:03]NVStorageSaveData done [09:28:03]OFDSenderStorePacket done [09:28:03]KKMCreateOFDPacket done [09:28:03]NVStorageSaveData kkm_last_timestamp [09:28:03]File name is /storage/kkm_last_timestamp [09:28:03]Write 4 bytes [09:28:03]NVStorageSaveData done [09:28:03]ExternCall_PrintAddStr [09:28:03]wPrintStart [09:28:03]Write to MH i2c: 01 00 00 42 19 5B [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 07 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: 01 07 00 42 19 00 00 00 00 00 FF 0F 70 [09:28:03]RasterBufferAndPrint [09:28:03]line Счет N : (1)2078147 [09:28:03]line ИНН: 02508201610067 [09:28:03]line Контрольно-Кассовый Чек [09:28:03]line ПРОДАЖА [09:28:03]line ТРК (МРК, ГНК) : 33 [09:28:03]line Товар: 2710124130 [09:28:03]line Аи-92-К-4 [09:28:03]line 20.000 * 0.00 [09:28:03]line = 0.00 [09:28:03]line НДС 12% НСП 1% [09:28:03]line > о реализуемом товаре [09:28:03]line ИТОГО: 0.00 [09:28:03]line НСП 1% : 0.00 [09:28:03]line НДС 12% : 0.00 [09:28:03]line Наличными: 0.00 [09:28:03]line Безнал.: 0.00 [09:28:03]line Место: АЗС № 135 "Партнер Нефть" [09:28:03]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:28:03]line СНО: Общий режим [09:28:03]line Чек 26 23.08.2024 09:28 [09:28:03]line Смена: 102 ФФД: 1.0 [09:28:03]line ЗНМ: 0300000144 [09:28:03]line РНМ: 0000000000162784 [09:28:03]line Версия ККМ: v1.0 [09:28:03]line Талоны: Топливная Карта [09:28:03]line 92875 [09:28:03]line ФМ: 0000000002094529 [09:28:03]line ФД: 15232 [09:28:03]line ФПД: 141274892591605 [09:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092806&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15232&fm=141274892591605&tin=02508201610067®Number=0000000000162784&sum=0 [09:28:04]OFD Sender: Processing packet 15232 [packets to send 8, broken 7] [09:28:04]ProducePacketName [09:28:04]name=ofd_packets/00015232 [09:28:04]OFD Sender: To server: pG, [09:28:04]CommunicateWithHost lk.salyk.kg:30040 [09:28:04]ConnectInit lk.salyk.kg [09:28:04]written 0, free lines is 4095 [09:28:04]Connected sock=9 [09:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 55 1F 07 01 EA A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 26 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 80 3B 00 00 35 04 06 00 80 7D 1F C9 E1 F5 58 E9 12 17 0B A4 10 57 [09:28:04]Write to MH i2c: 01 00 00 6C 19 85 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: 01 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: 01 07 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: 01 07 00 6C 19 00 00 00 00 00 ED 0C 85 [09:28:04]RasterBufferAndPrint [09:28:04]line [09:28:04]line [09:28:04]line [09:28:04]line [09:28:04]line [09:28:04]written 0, free lines is 3315 [09:28:04]MH_Cut [09:28:04]Write to MH i2c: D1 01 00 73 19 01 5E [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: D1 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: D1 01 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: D1 01 00 73 19 00 5D [09:28:04]Write to MH i2c: 01 00 00 74 19 8D [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 EB D3 47 00 FF 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 80 3B 00 00 F4 03 04 00 81 00 C8 66 B6 04 01 00 00 A4 94 CD F6 64 1A 11 17 [09:28:04]CommunicateWithHost err = 0 [09:28:04]CheckOFDResponse [09:28:04]1017 (14) - 77093643461234 [09:28:04]1041 (16) - 0000000002094529 [09:28:04]1040 (4) - 15232 [09:28:04]1012 (4) - 23.08.2024 03:22 [09:28:04]1206 (1) - 0 [09:28:04]OFD Sender: Remove packet 15232 [09:28:04]ProducePacketName [09:28:04]name=ofd_packets/00015232 [09:28:04]NVStorageDeleteData [09:28:05]OFD Sender: No OFD packet to send [09:28:05]*** Cut start [09:28:05]*** Partial cut [09:28:05]*** CUTSNS_PIN = 1 [09:28:05]*** CUTSNS_PIN = 0 [09:28:05]*** Brake cut motor [09:28:06]Read from MH i2c: 01 [09:28:06]MH_I2C_Read... [09:28:06]*** Stop cut motor [09:28:06]*** Cut end [09:28:06]Read from MH i2c: 01 07 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 74 19 00 00 00 00 00 FF 0F A2 [09:28:06]process_action close_receipt done [09:28:06]requested_data is exist [09:28:06]produce_requested_data [09:28:06]requested_item fm.sn is exist - process it [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 11 00 00 [09:28:06]Write to MH i2c: E2 08 00 75 19 80 11 00 00 00 00 00 00 08 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 75 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5A [09:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:28:06]wFMCommunicate OK [09:28:06]requested_item fd.num is exist - process it [09:28:06]SAM_PROTO_GetFieldsCounters [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 00 00 [09:28:06]Write to MH i2c: E2 08 00 76 19 80 13 00 00 00 00 00 00 0B [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 62 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 62 00 76 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 80 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [09:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 80 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_GetFieldsCounters done [09:28:06]requested_item shift.num is exist - process it [09:28:06]requested_item shift.opened is exist - process it [09:28:06]req_shift_opened [09:28:06]FM_GetShiftState [09:28:06]SAM_PROTO_GetShiftState [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 01 00 [09:28:06]Write to MH i2c: E2 08 00 77 19 80 13 01 00 00 00 00 00 0D [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 0E 00 77 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D1 [09:28:06]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:28:06]wFMCommunicate OK [09:28:06]SAM_PROTO_GetShiftState done [09:28:06]FM_GetShiftState done [09:28:06]req_shift_opened done [09:28:06]requested_item shift.open_date is exist - process it [09:28:06]req_shift_open_date [09:28:06]req_shift_open_date done [09:28:06]produce_requested_data done [09:28:06]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15232,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:28:06]process_action_free close_receipt [09:28:06]json_value_free [09:28:06]json_value_free done [09:28:06]process_json_proto returns [09:28:06]Send response to host [09:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15232,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:28:06]free response buf [09:28:06]execute_script done [09:28:06]execute_script returns [09:28:06]free content buf [09:28:06]Sock 10.Close socket [09:28:06]Sock 10.Thread stoped [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:49]accept exits with 8 [09:28:49]New connection [09:28:49]New thread 3066801508 created [09:28:49]Thread 3066944868 joined [09:28:49]Waiting for new connection... [09:28:49] Sock 8.Parse request [09:28:49]Sock 8.Check first char [09:28:49]Sock 8.First char is OK [09:28:49]request: POST /json_proto HTTP/1.0 [09:28:49]Method: POST [09:28:49]URL: /json_proto [09:28:49]Method is POST - this is cgi request [09:28:49]url: /json_proto [09:28:49]query_string will be loaded in cgi processing [09:28:49]execute_cgi json_proto POST (null) [09:28:49]execute_cgi path=json_proto method=POST [09:28:49]POST find Content-Length [09:28:49]Host: 172.17.44.4:8080 [09:28:49]Content-Length: 678 [09:28:49]Content-Type: application/json [09:28:49] [09:28:49]POST finish read [09:28:49]Found Content-Length = 678 [09:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]execute_script... [09: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 : (1)2078149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]POST & json_proto [09:28:49]process_json_proto [09:28:49]json parsed OK: [09:28:49]protocol is kg_v1.0 [09:28:49]action value=close_receipt [09:28:49]process_action close_receipt [09:28:49]cmd_close_receipt [09:28:49]MH_GetDate [09:28:49]Write to MH i2c: F0 00 00 78 19 80 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 78 19 00 55 56 C8 66 0F 81 47 66 9F [09:28:49]GetLastDocTimeStamp 1724405286 [09:28:49]current date 1724405333 [09:28:49]FM_GetShiftState [09:28:49]SAM_PROTO_GetShiftState [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 13 01 00 [09:28:49]Write to MH i2c: E2 08 00 79 19 80 13 01 00 00 00 00 00 0F [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 79 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D3 [09:28:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_GetShiftState done [09:28:49]FM_GetShiftState done [09:28:49]opened in 1724372406 [09:28:49]opened+sec_in_day 1724458806 [09:28:49]quantity*price = 50036 [09:28:49]sum+1 = 50037 [09:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 27 23.08.2024 09:28 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15233 ФПД: 32592784203674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092853&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15233&fm=32592784203674&tin=02508201610067®Number=0000000000162784&sum=50000 [09:28:50]StoreToDocumentArchive [09:28:50]shift 102 fd 15233 [09:28:50]save to /storage/0102/doc_00015233 [09:28:50]save last doc name /storage/0102/doc_00015233 to /storage/kkm_last_doc_name [09:28:50]save OK [09:28:50]Clear old archive folders... [09:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:50]tlvbuf is 00455F40 [09:28:50]SAM_PROTO_ClearQueue [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 09 00 00 [09:28:50]Write to MH i2c: E2 08 00 86 19 80 09 00 00 00 00 00 00 11 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 86 19 00 90 00 13 [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]SAM_PROTO_ClearQueue done [09:28:50]KKMCreateOFDPacket [09:28:50]OFDProtocolAddRootSTLVToBuf [09:28:50]FM_MakeSignedData [09:28:50]FM_MakeSignedData [09:28:50]SAM_PROTO_SignData [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 01 02 [09:28:50]Write to MH i2c: E2 08 00 87 19 80 0D 01 02 00 00 00 00 19 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]wFMCommunicate request_size=255 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 55 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 81 3B 00 00 35 04 06 00 1D [09:28:50]Write to MH i2c: E2 02 01 88 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 55 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 81 3B 00 00 35 04 06 00 1D 00 00 CC [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 88 19 00 90 00 15 [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=10 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 02 02 05 A4 99 53 1F 9A [09:28:51]Write to MH i2c: E2 0D 00 89 19 80 0D 02 02 05 00 A4 99 53 1F 9A 00 00 6F [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 89 19 00 90 00 16 [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 03 02 [09:28:51]Write to MH i2c: E2 08 00 8A 19 80 0D 03 02 00 00 00 00 1E [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 8A 19 00 89 90 7B EF 9F 19 B8 70 90 00 82 [09:28:51]RAPDU: 89 90 7B EF 9F 19 B8 70 90 00 [09:28:51]wFMCommunicate OK [09:28:51]SAM_PROTO_SignData done [09:28:51]FM_MakeSignedData done [09:28:51]CreateOFDProtocolMessage [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 11 00 00 [09:28:51]Write to MH i2c: E2 08 00 8B 19 80 11 00 00 00 00 00 00 1E [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 8B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 70 [09:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:28:51]wFMCommunicate OK [09:28:51]CreateOFDProtocolMessage done [09:28:51]OFDSenderStorePacket 15233 [09:28:51]StoreOFDPacket docnum=15233 [09:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 81 15 07 01 DC 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 55 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 81 3B 00 00 35 04 06 00 1D A4 99 53 1F 9A 89 90 7B EF 9F 19 B8 70 [09:28:51]CheckFolder [09:28:51]dirname=/storage/ofd_packets [09:28:51]CheckFolder done [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00015233 [09:28:51]NVStorageSaveData ofd_packets/00015233 [09:28:51]File name is /storage/ofd_packets/00015233 [09:28:51]Write 301 bytes [09:28:51]NVStorageSaveData done [09:28:51]OFDSenderStorePacket done [09:28:51]KKMCreateOFDPacket done [09:28:51]NVStorageSaveData kkm_last_timestamp [09:28:51]File name is /storage/kkm_last_timestamp [09:28:51]Write 4 bytes [09:28:51]NVStorageSaveData done [09:28:51]ExternCall_PrintAddStr [09:28:51]wPrintStart [09:28:51]Write to MH i2c: 01 00 00 8C 19 A5 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 8C 19 00 00 00 00 00 FF 0F BA [09:28:51]RasterBufferAndPrint [09:28:51]line Счет N : (1)2078149 [09:28:51]line ИНН: 02508201610067 [09:28:51]line Контрольно-Кассовый Чек [09:28:51]line ПРОДАЖА [09:28:51]line ТРК (МРК, ГНК) : 63 [09:28:51]line Товар: 2710124130 [09:28:51]line Аи-92-К-4 [09:28:51]line 7.380 * 67.80 [09:28:51]line = 500.36 [09:28:51]line НДС 12% НСП 1% [09:28:51]line > о реализуемом товаре [09:28:51]line ОКРУГЛЕНИЕ: -0.36 [09:28:51]line ИТОГО: 500.00 [09:28:51]line Внесено: 500.00 [09:28:51]line СДАЧА: 0.00 [09:28:51]line НСП 1% : 4.43 [09:28:51]line НДС 12% : 53.14 [09:28:51]line Наличными: 500.00 [09:28:51]line Безнал.: 0.00 [09:28:51]line Место: АЗС № 135 "Партнер Нефть" [09:28:51]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:28:51]line СНО: Общий режим [09:28:51]line Чек 27 23.08.2024 09:28 [09:28:51]line Смена: 102 ФФД: 1.0 [09:28:51]line ЗНМ: 0300000144 [09:28:51]line РНМ: 0000000000162784 [09:28:51]line Версия ККМ: v1.0 [09:28:51]line ФМ: 0000000002094529 [09:28:51]line ФД: 15233 [09:28:51]line ФПД: 32592784203674 [09:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092853&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15233&fm=32592784203674&tin=02508201610067®Number=0000000000162784&sum=50000 [09:28:51]OFD Sender: Processing packet 15233 [packets to send 8, broken 7] [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00015233 [09:28:51]OFD Sender: To server: pG, [09:28:51]CommunicateWithHost lk.salyk.kg:30040 [09:28:51]ConnectInit lk.salyk.kg [09:28:51]written 0, free lines is 4095 [09:28:51]Connected sock=9 [09:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 81 15 07 01 DC 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 55 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 81 3B 00 00 35 04 06 00 1D A4 99 53 1F 9A 89 90 7B EF 9F 19 B8 70 [09:28:52]Write to MH i2c: 01 00 00 B7 19 D0 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 B7 19 00 00 00 00 00 C9 0C AC [09:28:52]RasterBufferAndPrint [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]written 0, free lines is 3278 [09:28:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 DD 1A 47 00 7D 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 32 30 39 34 35 32 39 10 04 04 00 81 3B 00 00 F4 03 04 00 B1 00 C8 66 B6 04 01 00 00 1F C6 65 7C 38 A1 3C 48 [09:28:52]CommunicateWithHost err = 0 [09:28:52]CheckOFDResponse [09:28:52]1017 (14) - 77093643461234 [09:28:52]1041 (16) - 0000000002094529 [09:28:52]1040 (4) - 15233 [09:28:52]1012 (4) - 23.08.2024 03:23 [09:28:52]1206 (1) - 0 [09:28:52]OFD Sender: Remove packet 15233 [09:28:52]ProducePacketName [09:28:52]name=ofd_packets/00015233 [09:28:52]NVStorageDeleteData [09:28:52]MH_Cut [09:28:52]Write to MH i2c: D1 01 00 BE 19 01 A9 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 01 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: D1 01 00 BE 19 00 A8 [09:28:52]Write to MH i2c: 01 00 00 BF 19 D8 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]OFD Sender: No OFD packet to send [09:28:52]*** Cut start [09:28:52]*** Partial cut [09:28:52]*** CUTSNS_PIN = 1 [09:28:52]*** CUTSNS_PIN = 0 [09:28:53]*** Brake cut motor [09:28:53]Read from MH i2c: 01 [09:28:53]MH_I2C_Read... [09:28:53]*** Stop cut motor [09:28:53]*** Cut end [09:28:53]Read from MH i2c: 01 07 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: 01 07 00 BF 19 00 00 00 00 00 FF 0F ED [09:28:53]process_action close_receipt done [09:28:53]requested_data is exist [09:28:53]produce_requested_data [09:28:53]requested_item fm.sn is exist - process it [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 11 00 00 [09:28:53]Write to MH i2c: E2 08 00 C0 19 80 11 00 00 00 00 00 00 53 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 C0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A5 [09:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:28:53]wFMCommunicate OK [09:28:53]requested_item fd.num is exist - process it [09:28:53]SAM_PROTO_GetFieldsCounters [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 13 00 00 [09:28:53]Write to MH i2c: E2 08 00 C1 19 80 13 00 00 00 00 00 00 56 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 62 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 62 00 C1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 81 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [09:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 81 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_GetFieldsCounters done [09:28:53]requested_item shift.num is exist - process it [09:28:53]requested_item shift.opened is exist - process it [09:28:53]req_shift_opened [09:28:53]FM_GetShiftState [09:28:53]SAM_PROTO_GetShiftState [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 13 01 00 [09:28:53]Write to MH i2c: E2 08 00 C2 19 80 13 01 00 00 00 00 00 58 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 C2 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1C [09:28:53]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_GetShiftState done [09:28:53]FM_GetShiftState done [09:28:53]req_shift_opened done [09:28:53]requested_item shift.open_date is exist - process it [09:28:53]req_shift_open_date [09:28:53]req_shift_open_date done [09:28:53]produce_requested_data done [09:28:53]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15233,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:28:53]process_action_free close_receipt [09:28:53]json_value_free [09:28:53]json_value_free done [09:28:53]process_json_proto returns [09:28:53]Send response to host [09:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15233,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:28:53]free response buf [09:28:53]execute_script done [09:28:53]execute_script returns [09:28:53]free content buf [09:28:53]Sock 8.Close socket [09:28:53]Sock 8.Thread stoped [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:30:58]accept exits with 10 [09:30:58]New connection [09:30:58]New thread 3066944868 created [09:30:58]Thread 3066801508 joined [09:30:58]Waiting for new connection... [09:30:58] Sock 10.Parse request [09:30:58]Sock 10.Check first char [09:30:58]Sock 10.First char is OK [09:30:58]request: POST /json_proto HTTP/1.0 [09:30:58]Method: POST [09:30:58]URL: /json_proto [09:30:58]Method is POST - this is cgi request [09:30:58]url: /json_proto [09:30:58]query_string will be loaded in cgi processing [09:30:58]execute_cgi json_proto POST (null) [09:30:58]execute_cgi path=json_proto method=POST [09:30:58]POST find Content-Length [09:30:58]Host: 172.17.44.4:8080 [09:30:58]Content-Length: 801 [09:30:58]Content-Type: application/json [09:30:58] [09:30:58]POST finish read [09:30:58]Found Content-Length = 801 [09:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:58]execute_script... [09:30:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:58]POST & json_proto [09:30:58]process_json_proto [09:30:58]json parsed OK: [09:30:58]protocol is kg_v1.0 [09:30:58]action value=close_receipt [09:30:58]process_action close_receipt [09:30:58]cmd_close_receipt [09:30:58]MH_GetDate [09:30:58]Write to MH i2c: F0 00 00 C3 19 CB [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: F0 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: F0 09 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: F0 09 00 C3 19 00 D6 56 C8 66 0F 81 47 66 6B [09:30:58]GetLastDocTimeStamp 1724405333 [09:30:58]current date 1724405462 [09:30:58]FM_GetShiftState [09:30:58]SAM_PROTO_GetShiftState [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 13 01 00 [09:30:58]Write to MH i2c: E2 08 00 C4 19 80 13 01 00 00 00 00 00 5A [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0E 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0E 00 C4 19 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1E [09:30:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_GetShiftState done [09:30:58]FM_GetShiftState done [09:30:58]opened in 1724372406 [09:30:58]opened+sec_in_day 1724458806 [09:30:58]quantity*price = 100050 [09:30:58]sum+1 = 100052 [09:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 28 23.08.2024 09:31 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15234 ФПД: 205037115108135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093102&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15234&fm=205037115108135&tin=02508201610067®Number=0000000000162784&sum=100051 [09:30:59]StoreToDocumentArchive [09:30:59]shift 102 fd 15234 [09:30:59]save to /storage/0102/doc_00015234 [09:30:59]save last doc name /storage/0102/doc_00015234 to /storage/kkm_last_doc_name [09:30:59]save OK [09:30:59]Clear old archive folders... [09:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:59]tlvbuf is 004A99A0 [09:30:59]SAM_PROTO_ClearQueue [09:30:59]wFMCommunicate request_size=4 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 09 00 00 [09:30:59]Write to MH i2c: E2 08 00 D1 19 80 09 00 00 00 00 00 00 5C [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 D1 19 00 90 00 5E [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]SAM_PROTO_ClearQueue done [09:30:59]KKMCreateOFDPacket [09:30:59]OFDProtocolAddRootSTLVToBuf [09:30:59]FM_MakeSignedData [09:30:59]FM_MakeSignedData [09:30:59]SAM_PROTO_SignData [09:30:59]wFMCommunicate request_size=4 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 01 02 [09:30:59]Write to MH i2c: E2 08 00 D2 19 80 0D 01 02 00 00 00 00 64 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 D2 19 00 90 00 5F [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=255 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D6 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 82 3B 00 00 35 04 06 00 BA 7A EC 69 [09:30:59]Write to MH i2c: E2 02 01 D3 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D6 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 82 3B 00 00 35 04 06 00 BA 7A EC 69 00 00 73 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 D3 19 00 90 00 60 [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=7 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 02 02 02 6B 27 [09:30:59]Write to MH i2c: E2 0A 00 D4 19 80 0D 02 02 02 00 6B 27 00 00 FD [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 D4 19 00 90 00 61 [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=4 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 03 02 [09:30:59]Write to MH i2c: E2 08 00 D5 19 80 0D 03 02 00 00 00 00 69 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 0B 00 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: E2 0B 00 D5 19 00 A5 34 CF 56 C7 63 F9 24 90 00 AF [09:31:00]RAPDU: A5 34 CF 56 C7 63 F9 24 90 00 [09:31:00]wFMCommunicate OK [09:31:00]SAM_PROTO_SignData done [09:31:00]FM_MakeSignedData done [09:31:00]CreateOFDProtocolMessage [09:31:00]wFMCommunicate request_size=4 [09:31:00]MH_SAM_APDU [09:31:00]CAPDU: 80 11 00 00 [09:31:00]Write to MH i2c: E2 08 00 D6 19 80 11 00 00 00 00 00 00 69 [09:31:00]Write i2c OK [09:31:00]MH_I2C_Read... [09:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:00]Read from MH i2c: E2 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: E2 17 00 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: E2 17 00 D6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BB [09:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:31:00]wFMCommunicate OK [09:31:00]CreateOFDProtocolMessage done [09:31:00]OFDSenderStorePacket 15234 [09:31:00]StoreOFDPacket docnum=15234 [09:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 49 B2 04 01 81 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D6 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 82 3B 00 00 35 04 06 00 BA 7A EC 69 6B 27 A5 34 CF 56 C7 63 F9 24 [09:31:00]CheckFolder [09:31:00]dirname=/storage/ofd_packets [09:31:00]CheckFolder done [09:31:00]ProducePacketName [09:31:00]name=ofd_packets/00015234 [09:31:00]NVStorageSaveData ofd_packets/00015234 [09:31:00]File name is /storage/ofd_packets/00015234 [09:31:00]Write 298 bytes [09:31:00]NVStorageSaveData done [09:31:00]OFDSenderStorePacket done [09:31:00]KKMCreateOFDPacket done [09:31:00]NVStorageSaveData kkm_last_timestamp [09:31:00]File name is /storage/kkm_last_timestamp [09:31:00]Write 4 bytes [09:31:00]NVStorageSaveData done [09:31:00]ExternCall_PrintAddStr [09:31:00]wPrintStart [09:31:00]Write to MH i2c: 01 00 00 D7 19 F0 [09:31:00]Write i2c OK [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 07 00 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 07 00 D7 19 00 00 00 00 00 FF 0F 05 [09:31:00]RasterBufferAndPrint [09:31:00]line Счет N : (1)2078152 [09:31:00]line ИНН: 02508201610067 [09:31:00]line Контрольно-Кассовый Чек [09:31:00]line ПРОДАЖА [09:31:00]line ТРК (МРК, ГНК) : 21 [09:31:00]line Товар: 2710194210 [09:31:00]line ДТ-К-5 [09:31:00]line 13.130 * 76.20 [09:31:00]line = 1000.51 [09:31:00]line НДС 12% НСП 1% [09:31:00]line > о реализуемом товаре [09:31:00]line ИТОГО: 1000.51 [09:31:00]line НСП 1% : 8.85 [09:31:00]line НДС 12% : 106.25 [09:31:00]line Наличными: 0.00 [09:31:00]line Безнал.: 1000.51 [09:31:00]line Место: АЗС № 135 "Партнер Нефть" [09:31:00]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:31:00]line СНО: Общий режим [09:31:00]line Чек 28 23.08.2024 09:31 [09:31:00]line Смена: 102 ФФД: 1.0 [09:31:00]line ЗНМ: 0300000144 [09:31:00]line РНМ: 0000000000162784 [09:31:00]line Версия ККМ: v1.0 [09:31:00]line Платежная система: O! деньги [09:31:00]line ФМ: 0000000002094529 [09:31:00]line ФД: 15234 [09:31:00]line ФПД: 205037115108135 [09:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093102&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15234&fm=205037115108135&tin=02508201610067®Number=0000000000162784&sum=100051 [09:31:00]OFD Sender: Processing packet 15234 [packets to send 8, broken 7] [09:31:00]ProducePacketName [09:31:00]name=ofd_packets/00015234 [09:31:00]OFD Sender: To server: pG, [09:31:00]CommunicateWithHost lk.salyk.kg:30040 [09:31:00]ConnectInit lk.salyk.kg [09:31:00]written 0, free lines is 4095 [09:31:00]Connected sock=8 [09:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 49 B2 04 01 81 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D6 56 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 82 3B 00 00 35 04 06 00 BA 7A EC 69 6B 27 A5 34 CF 56 C7 63 F9 24 [09:31:00]Write to MH i2c: 01 00 00 01 1A 1B [09:31:00]Write i2c OK [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 07 00 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: 01 07 00 01 1A 00 00 00 00 00 E3 0C 11 [09:31:00]RasterBufferAndPrint [09:31:00]line [09:31:00]line [09:31:00]line [09:31:00]line [09:31:00]line [09:31:00]written 0, free lines is 3305 [09:31:00]MH_Cut [09:31:00]Write to MH i2c: D1 01 00 08 1A 01 F4 [09:31:00]Write i2c OK [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: D1 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: D1 01 00 [09:31:00]MH_I2C_Read... [09:31:00]Read from MH i2c: D1 01 00 08 1A 00 F3 [09:31:00]Write to MH i2c: 01 00 00 09 1A 23 [09:31:00]Write i2c OK [09:31:00]MH_I2C_Read... [09:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 32 F5 47 00 8D F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 82 3B 00 00 F4 03 04 00 32 01 C8 66 B6 04 01 00 00 47 F5 D2 9D 8E B1 72 65 [09:31:00]CommunicateWithHost err = 0 [09:31:00]CheckOFDResponse [09:31:00]1017 (14) - 77093643461234 [09:31:00]1041 (16) - 0000000002094529 [09:31:00]1040 (4) - 15234 [09:31:00]1012 (4) - 23.08.2024 03:25 [09:31:00]1206 (1) - 0 [09:31:00]OFD Sender: Remove packet 15234 [09:31:00]ProducePacketName [09:31:00]name=ofd_packets/00015234 [09:31:00]NVStorageDeleteData [09:31:01]OFD Sender: No OFD packet to send [09:31:01]*** Cut start [09:31:01]*** Partial cut [09:31:01]*** CUTSNS_PIN = 1 [09:31:01]*** CUTSNS_PIN = 0 [09:31:01]*** Brake cut motor [09:31:02]Read from MH i2c: 01 [09:31:02]MH_I2C_Read... [09:31:02]*** Stop cut motor [09:31:02]*** Cut end [09:31:02]Read from MH i2c: 01 07 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 09 1A 00 00 00 00 00 FF 0F 38 [09:31:02]process_action close_receipt done [09:31:02]requested_data is exist [09:31:02]produce_requested_data [09:31:02]requested_item fm.sn is exist - process it [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 11 00 00 [09:31:02]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 17 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F0 [09:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:31:02]wFMCommunicate OK [09:31:02]requested_item fd.num is exist - process it [09:31:02]SAM_PROTO_GetFieldsCounters [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 00 00 [09:31:02]Write to MH i2c: E2 08 00 0B 1A 80 13 00 00 00 00 00 00 A1 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 0B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 82 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [09:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 82 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetFieldsCounters done [09:31:02]requested_item shift.num is exist - process it [09:31:02]requested_item shift.opened is exist - process it [09:31:02]req_shift_opened [09:31:02]FM_GetShiftState [09:31:02]SAM_PROTO_GetShiftState [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 01 00 [09:31:02]Write to MH i2c: E2 08 00 0C 1A 80 13 01 00 00 00 00 00 A3 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 0C 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 67 [09:31:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetShiftState done [09:31:02]FM_GetShiftState done [09:31:02]req_shift_opened done [09:31:02]requested_item shift.open_date is exist - process it [09:31:02]req_shift_open_date [09:31:02]req_shift_open_date done [09:31:02]produce_requested_data done [09:31:02]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15234,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:31:02]process_action_free close_receipt [09:31:02]json_value_free [09:31:02]json_value_free done [09:31:02]process_json_proto returns [09:31:02]Send response to host [09:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15234,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:31:02]free response buf [09:31:02]execute_script done [09:31:02]execute_script returns [09:31:02]free content buf [09:31:02]Sock 10.Close socket [09:31:02]Sock 10.Thread stoped [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:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:52]accept exits with 9 [09:31:52]New connection [09:31:52]New thread 3066801508 created [09:31:52]Thread 3066944868 joined [09:31:52]Waiting for new connection... [09:31:52] Sock 9.Parse request [09:31:52]Sock 9.Check first char [09:31:52]Sock 9.First char is OK [09:31:52]request: POST /json_proto HTTP/1.0 [09:31:52]Method: POST [09:31:52]URL: /json_proto [09:31:52]Method is POST - this is cgi request [09:31:52]url: /json_proto [09:31:52]query_string will be loaded in cgi processing [09:31:52]execute_cgi json_proto POST (null) [09:31:52]execute_cgi path=json_proto method=POST [09:31:52]POST find Content-Length [09:31:52]Host: 172.17.44.4:8080 [09:31:52]Content-Length: 804 [09:31:52]Content-Type: application/json [09:31:52] [09:31:52]POST finish read [09:31:52]Found Content-Length = 804 [09:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:52]execute_script... [09:31:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:52]POST & json_proto [09:31:52]process_json_proto [09:31:52]json parsed OK: [09:31:52]protocol is kg_v1.0 [09:31:52]action value=close_receipt [09:31:52]process_action close_receipt [09:31:52]cmd_close_receipt [09:31:52]MH_GetDate [09:31:52]Write to MH i2c: F0 00 00 0D 1A 16 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 09 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: F0 09 00 0D 1A 00 0C 57 C8 66 0F 81 47 66 ED [09:31:52]GetLastDocTimeStamp 1724405462 [09:31:52]current date 1724405516 [09:31:52]FM_GetShiftState [09:31:52]SAM_PROTO_GetShiftState [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 13 01 00 [09:31:52]Write to MH i2c: E2 08 00 0E 1A 80 13 01 00 00 00 00 00 A5 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 0E 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 0E 00 0E 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 69 [09:31:52]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:31:52]wFMCommunicate OK [09:31:52]SAM_PROTO_GetShiftState done [09:31:52]FM_GetShiftState done [09:31:52]opened in 1724372406 [09:31:52]opened+sec_in_day 1724458806 [09:31:52]quantity*price = 150041 [09:31:52]sum+1 = 150042 [09:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 29 23.08.2024 09:31 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15235 ФПД: 242634291713280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093156&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15235&fm=242634291713280&tin=02508201610067®Number=0000000000162784&sum=150041 [09:31:53]StoreToDocumentArchive [09:31:53]shift 102 fd 15235 [09:31:53]save to /storage/0102/doc_00015235 [09:31:53]save last doc name /storage/0102/doc_00015235 to /storage/kkm_last_doc_name [09:31:53]save OK [09:31:53]Clear old archive folders... [09:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:53]tlvbuf is 004BC2F0 [09:31:53]SAM_PROTO_ClearQueue [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 09 00 00 [09:31:53]Write to MH i2c: E2 08 00 1B 1A 80 09 00 00 00 00 00 00 A7 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 03 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [09:31:53]RAPDU: 90 00 [09:31:53]wFMCommunicate OK [09:31:53]SAM_PROTO_ClearQueue done [09:31:53]KKMCreateOFDPacket [09:31:53]OFDProtocolAddRootSTLVToBuf [09:31:53]FM_MakeSignedData [09:31:53]FM_MakeSignedData [09:31:53]SAM_PROTO_SignData [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 0D 01 02 [09:31:53]Write to MH i2c: E2 08 00 1C 1A 80 0D 01 02 00 00 00 00 AF [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=255 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 0C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 83 3B 00 00 35 04 06 00 DC [09:31:54]Write to MH i2c: E2 02 01 1D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 0C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 83 3B 00 00 35 04 06 00 DC 00 00 A6 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=10 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 02 02 05 AC B2 C4 95 00 [09:31:54]Write to MH i2c: E2 0D 00 1E 1A 80 0D 02 02 05 00 AC B2 C4 95 00 00 00 73 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 03 00 1E 1A 00 90 00 AC [09:31:54]RAPDU: 90 00 [09:31:54]wFMCommunicate OK [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 0D 03 02 [09:31:54]Write to MH i2c: E2 08 00 1F 1A 80 0D 03 02 00 00 00 00 B4 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0B 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0B 00 1F 1A 00 80 71 4A 0E C1 09 F6 0B 90 00 C9 [09:31:54]RAPDU: 80 71 4A 0E C1 09 F6 0B 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_SignData done [09:31:54]FM_MakeSignedData done [09:31:54]CreateOFDProtocolMessage [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 11 00 00 [09:31:54]Write to MH i2c: E2 08 00 20 1A 80 11 00 00 00 00 00 00 B4 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 17 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 17 00 20 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 06 [09:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:31:54]wFMCommunicate OK [09:31:54]CreateOFDProtocolMessage done [09:31:54]OFDSenderStorePacket 15235 [09:31:54]StoreOFDPacket docnum=15235 [09:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 00 C2 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 0C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 83 3B 00 00 35 04 06 00 DC AC B2 C4 95 00 80 71 4A 0E C1 09 F6 0B [09:31:54]CheckFolder [09:31:54]dirname=/storage/ofd_packets [09:31:54]CheckFolder done [09:31:54]ProducePacketName [09:31:54]name=ofd_packets/00015235 [09:31:54]NVStorageSaveData ofd_packets/00015235 [09:31:54]File name is /storage/ofd_packets/00015235 [09:31:54]Write 301 bytes [09:31:54]NVStorageSaveData done [09:31:54]OFDSenderStorePacket done [09:31:54]KKMCreateOFDPacket done [09:31:54]NVStorageSaveData kkm_last_timestamp [09:31:54]File name is /storage/kkm_last_timestamp [09:31:54]Write 4 bytes [09:31:54]NVStorageSaveData done [09:31:54]ExternCall_PrintAddStr [09:31:54]wPrintStart [09:31:54]Write to MH i2c: 01 00 00 21 1A 3B [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: 01 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: 01 07 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: 01 07 00 21 1A 00 00 00 00 00 FF 0F 50 [09:31:54]RasterBufferAndPrint [09:31:54]line Счет N : (1)2078154 [09:31:54]line ИНН: 02508201610067 [09:31:54]line Контрольно-Кассовый Чек [09:31:54]line ПРОДАЖА [09:31:54]line ТРК (МРК, ГНК) : 53 [09:31:54]line Товар: 2710124130 [09:31:54]line Аи-92-К-4 [09:31:54]line 22.130 * 67.80 [09:31:54]line = 1500.41 [09:31:54]line НДС 12% НСП 1% [09:31:54]line > о реализуемом товаре [09:31:54]line ИТОГО: 1500.41 [09:31:54]line НСП 1% : 13.28 [09:31:54]line НДС 12% : 159.34 [09:31:54]line Наличными: 0.00 [09:31:54]line Безнал.: 1500.41 [09:31:54]line Место: АЗС № 135 "Партнер Нефть" [09:31:54]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:31:54]line СНО: Общий режим [09:31:54]line Чек 29 23.08.2024 09:31 [09:31:54]line Смена: 102 ФФД: 1.0 [09:31:54]line ЗНМ: 0300000144 [09:31:54]line РНМ: 0000000000162784 [09:31:54]line Версия ККМ: v1.0 [09:31:54]line Платежная система: O! деньги [09:31:54]line ФМ: 0000000002094529 [09:31:54]line ФД: 15235 [09:31:54]line ФПД: 242634291713280 [09:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093156&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15235&fm=242634291713280&tin=02508201610067®Number=0000000000162784&sum=150041 [09:31:54]OFD Sender: Processing packet 15235 [packets to send 8, broken 7] [09:31:54]ProducePacketName [09:31:54]name=ofd_packets/00015235 [09:31:54]OFD Sender: To server: pG, [09:31:54]CommunicateWithHost lk.salyk.kg:30040 [09:31:54]ConnectInit lk.salyk.kg [09:31:54]written 0, free lines is 4095 [09:31:55]Connected sock=10 [09:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 00 C2 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 0C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 83 3B 00 00 35 04 06 00 DC AC B2 C4 95 00 80 71 4A 0E C1 09 F6 0B [09:31:55]Write to MH i2c: 01 00 00 4B 1A 65 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 4B 1A 00 00 00 00 00 E6 0C 5E [09:31:55]RasterBufferAndPrint [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]line [09:31:55]written 0, free lines is 3307 [09:31:55]MH_Cut [09:31:55]Write to MH i2c: D1 01 00 52 1A 01 3E [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 01 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: D1 01 00 52 1A 00 3D [09:31:55]Write to MH i2c: 01 00 00 53 1A 6D [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 AF 9E 47 00 9F 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 32 30 39 34 35 32 39 10 04 04 00 83 3B 00 00 F4 03 04 00 68 01 C8 66 B6 04 01 00 00 B3 14 BF D4 BE EA D7 8C [09:31:55]CommunicateWithHost err = 0 [09:31:55]CheckOFDResponse [09:31:55]1017 (14) - 77093643461234 [09:31:55]1041 (16) - 0000000002094529 [09:31:55]1040 (4) - 15235 [09:31:55]1012 (4) - 23.08.2024 03:26 [09:31:55]1206 (1) - 0 [09:31:55]OFD Sender: Remove packet 15235 [09:31:55]ProducePacketName [09:31:55]name=ofd_packets/00015235 [09:31:55]NVStorageDeleteData [09:31:55]OFD Sender: No OFD packet to send [09:31:56]*** Cut start [09:31:56]*** Partial cut [09:31:56]*** CUTSNS_PIN = 1 [09:31:56]*** CUTSNS_PIN = 0 [09:31:56]*** Brake cut motor [09:31:56]Read from MH i2c: 01 [09:31:56]MH_I2C_Read... [09:31:56]*** Stop cut motor [09:31:56]*** Cut end [09:31:56]Read from MH i2c: 01 07 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FF 0F 82 [09:31:56]process_action close_receipt done [09:31:56]requested_data is exist [09:31:56]produce_requested_data [09:31:56]requested_item fm.sn is exist - process it [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 11 00 00 [09:31:56]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 3A [09:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:31:56]wFMCommunicate OK [09:31:56]requested_item fd.num is exist - process it [09:31:56]SAM_PROTO_GetFieldsCounters [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 13 00 00 [09:31:56]Write to MH i2c: E2 08 00 55 1A 80 13 00 00 00 00 00 00 EB [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 62 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 62 00 55 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 83 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 83 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_GetFieldsCounters done [09:31:56]requested_item shift.num is exist - process it [09:31:56]requested_item shift.opened is exist - process it [09:31:56]req_shift_opened [09:31:56]FM_GetShiftState [09:31:56]SAM_PROTO_GetShiftState [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 13 01 00 [09:31:56]Write to MH i2c: E2 08 00 56 1A 80 13 01 00 00 00 00 00 ED [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0E 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0E 00 56 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B1 [09:31:56]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_GetShiftState done [09:31:56]FM_GetShiftState done [09:31:56]req_shift_opened done [09:31:56]requested_item shift.open_date is exist - process it [09:31:56]req_shift_open_date [09:31:56]req_shift_open_date done [09:31:56]produce_requested_data done [09:31:56]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15235,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:31:56]process_action_free close_receipt [09:31:56]json_value_free [09:31:56]json_value_free done [09:31:56]process_json_proto returns [09:31:56]Send response to host [09:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15235,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:31:56]free response buf [09:31:56]execute_script done [09:31:56]execute_script returns [09:31:56]free content buf [09:31:56]Sock 9.Close socket [09:31:56]Sock 9.Thread stoped [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:24]accept exits with 8 [09:32:24]New connection [09:32:24]New thread 3066944868 created [09:32:24]Thread 3066801508 joined [09:32:24]Waiting for new connection... [09:32:24] Sock 8.Parse request [09:32:24]Sock 8.Check first char [09:32:24]Sock 8.First char is OK [09:32:24]request: POST /json_proto HTTP/1.0 [09:32:24]Method: POST [09:32:24]URL: /json_proto [09:32:24]Method is POST - this is cgi request [09:32:24]url: /json_proto [09:32:24]query_string will be loaded in cgi processing [09:32:24]execute_cgi json_proto POST (null) [09:32:24]execute_cgi path=json_proto method=POST [09:32:24]POST find Content-Length [09:32:24]Host: 172.17.44.4:8080 [09:32:24]Content-Length: 790 [09:32:24]Content-Type: application/json [09:32:24] [09:32:24]POST finish read [09:32:24]Found Content-Length = 790 [09:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:24]execute_script... [09:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:24]POST & json_proto [09:32:24]process_json_proto [09:32:24]json parsed OK: [09:32:24]protocol is kg_v1.0 [09:32:24]action value=close_receipt [09:32:24]process_action close_receipt [09:32:24]cmd_close_receipt [09:32:24]MH_GetDate [09:32:24]Write to MH i2c: F0 00 00 57 1A 60 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: F0 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: F0 09 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: F0 09 00 57 1A 00 2C 57 C8 66 0F 81 47 66 57 [09:32:24]GetLastDocTimeStamp 1724405516 [09:32:24]current date 1724405548 [09:32:24]FM_GetShiftState [09:32:24]SAM_PROTO_GetShiftState [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 13 01 00 [09:32:24]Write to MH i2c: E2 08 00 58 1A 80 13 01 00 00 00 00 00 EF [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0E 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0E 00 58 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B3 [09:32:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:32:24]wFMCommunicate OK [09:32:24]SAM_PROTO_GetShiftState done [09:32:24]FM_GetShiftState done [09:32:24]opened in 1724372406 [09:32:24]opened+sec_in_day 1724458806 [09:32:24]quantity*price = 0 [09:32:24]sum+1 = 1 [09:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 30 23.08.2024 09:32 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15236 ФПД: 197508997524519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093228&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15236&fm=197508997524519&tin=02508201610067®Number=0000000000162784&sum=0 [09:32:25]StoreToDocumentArchive [09:32:25]shift 102 fd 15236 [09:32:25]save to /storage/0102/doc_00015236 [09:32:25]save last doc name /storage/0102/doc_00015236 to /storage/kkm_last_doc_name [09:32:25]save OK [09:32:25]Clear old archive folders... [09:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:25]tlvbuf is B6F53450 [09:32:25]SAM_PROTO_ClearQueue [09:32:25]wFMCommunicate request_size=4 [09:32:25]MH_SAM_APDU [09:32:25]CAPDU: 80 09 00 00 [09:32:25]Write to MH i2c: E2 08 00 65 1A 80 09 00 00 00 00 00 00 F1 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:25]Read from MH i2c: E2 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [09:32:25]RAPDU: 90 00 [09:32:25]wFMCommunicate OK [09:32:25]SAM_PROTO_ClearQueue done [09:32:25]KKMCreateOFDPacket [09:32:25]OFDProtocolAddRootSTLVToBuf [09:32:25]FM_MakeSignedData [09:32:25]FM_MakeSignedData [09:32:25]SAM_PROTO_SignData [09:32:25]wFMCommunicate request_size=4 [09:32:25]MH_SAM_APDU [09:32:25]CAPDU: 80 0D 01 02 [09:32:25]Write to MH i2c: E2 08 00 66 1A 80 0D 01 02 00 00 00 00 F9 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:25]Read from MH i2c: E2 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [09:32:25]RAPDU: 90 00 [09:32:25]wFMCommunicate OK [09:32:25]wFMCommunicate request_size=255 [09:32:25]MH_SAM_APDU [09:32:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 84 3B 00 00 35 04 06 00 B3 A2 25 A3 [09:32:25]Write to MH i2c: E2 02 01 67 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 84 3B 00 00 35 04 06 00 B3 A2 25 A3 00 00 A0 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]OFD Sender: No OFD packet to send [09:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:25]Read from MH i2c: E2 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [09:32:25]RAPDU: 90 00 [09:32:25]wFMCommunicate OK [09:32:25]wFMCommunicate request_size=7 [09:32:25]MH_SAM_APDU [09:32:25]CAPDU: 80 0D 02 02 02 2C 27 [09:32:25]Write to MH i2c: E2 0A 00 68 1A 80 0D 02 02 02 00 2C 27 00 00 53 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:26]Read from MH i2c: E2 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 03 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [09:32:26]RAPDU: 90 00 [09:32:26]wFMCommunicate OK [09:32:26]wFMCommunicate request_size=4 [09:32:26]MH_SAM_APDU [09:32:26]CAPDU: 80 0D 03 02 [09:32:26]Write to MH i2c: E2 08 00 69 1A 80 0D 03 02 00 00 00 00 FE [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:26]Read from MH i2c: E2 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 0B 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 0B 00 69 1A 00 5B 5E 02 AC F5 E3 C8 0C 90 00 12 [09:32:26]RAPDU: 5B 5E 02 AC F5 E3 C8 0C 90 00 [09:32:26]wFMCommunicate OK [09:32:26]SAM_PROTO_SignData done [09:32:26]FM_MakeSignedData done [09:32:26]CreateOFDProtocolMessage [09:32:26]wFMCommunicate request_size=4 [09:32:26]MH_SAM_APDU [09:32:26]CAPDU: 80 11 00 00 [09:32:26]Write to MH i2c: E2 08 00 6A 1A 80 11 00 00 00 00 00 00 FE [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:26]Read from MH i2c: E2 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 17 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 17 00 6A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 50 [09:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:32:26]wFMCommunicate OK [09:32:26]CreateOFDProtocolMessage done [09:32:26]OFDSenderStorePacket 15236 [09:32:26]StoreOFDPacket docnum=15236 [09:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 61 8B 04 01 51 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 84 3B 00 00 35 04 06 00 B3 A2 25 A3 2C 27 5B 5E 02 AC F5 E3 C8 0C [09:32:26]CheckFolder [09:32:26]dirname=/storage/ofd_packets [09:32:26]CheckFolder done [09:32:26]ProducePacketName [09:32:26]name=ofd_packets/00015236 [09:32:26]NVStorageSaveData ofd_packets/00015236 [09:32:26]File name is /storage/ofd_packets/00015236 [09:32:26]Write 298 bytes [09:32:26]NVStorageSaveData done [09:32:26]OFDSenderStorePacket done [09:32:26]KKMCreateOFDPacket done [09:32:26]NVStorageSaveData kkm_last_timestamp [09:32:26]File name is /storage/kkm_last_timestamp [09:32:26]Write 4 bytes [09:32:26]NVStorageSaveData done [09:32:26]ExternCall_PrintAddStr [09:32:26]wPrintStart [09:32:26]Write to MH i2c: 01 00 00 6B 1A 85 [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 07 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 FF 0F 9A [09:32:26]RasterBufferAndPrint [09:32:26]line Счет N : (1)2078156 [09:32:26]line ИНН: 02508201610067 [09:32:26]line Контрольно-Кассовый Чек [09:32:26]line ПРОДАЖА [09:32:26]line ТРК (МРК, ГНК) : 21 [09:32:26]line Товар: 2710194210 [09:32:26]line ДТ-К-5 [09:32:26]line 10.000 * 0.00 [09:32:26]line = 0.00 [09:32:26]line НДС 12% НСП 1% [09:32:26]line > о реализуемом товаре [09:32:26]line ИТОГО: 0.00 [09:32:26]line НСП 1% : 0.00 [09:32:26]line НДС 12% : 0.00 [09:32:26]line Наличными: 0.00 [09:32:26]line Безнал.: 0.00 [09:32:26]line Место: АЗС № 135 "Партнер Нефть" [09:32:26]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:32:26]line СНО: Общий режим [09:32:26]line Чек 30 23.08.2024 09:32 [09:32:26]line Смена: 102 ФФД: 1.0 [09:32:26]line ЗНМ: 0300000144 [09:32:26]line РНМ: 0000000000162784 [09:32:26]line Версия ККМ: v1.0 [09:32:26]line Талоны: Топливная Карта [09:32:26]line 92875 [09:32:26]line ФМ: 0000000002094529 [09:32:26]line ФД: 15236 [09:32:26]line ФПД: 197508997524519 [09:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093228&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15236&fm=197508997524519&tin=02508201610067®Number=0000000000162784&sum=0 [09:32:26]OFD Sender: Processing packet 15236 [packets to send 8, broken 7] [09:32:26]ProducePacketName [09:32:26]name=ofd_packets/00015236 [09:32:26]OFD Sender: To server: pG, [09:32:26]CommunicateWithHost lk.salyk.kg:30040 [09:32:26]ConnectInit lk.salyk.kg [09:32:26]written 0, free lines is 4095 [09:32:26]Connected sock=10 [09:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 61 8B 04 01 51 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2C 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 84 3B 00 00 35 04 06 00 B3 A2 25 A3 2C 27 5B 5E 02 AC F5 E3 C8 0C [09:32:26]Write to MH i2c: 01 00 00 95 1A AF [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 07 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 DC 0C 9E [09:32:26]RasterBufferAndPrint [09:32:26]line [09:32:26]line [09:32:26]line [09:32:26]line [09:32:26]line [09:32:26]written 0, free lines is 3298 [09:32:26]MH_Cut [09:32:26]Write to MH i2c: D1 01 00 9C 1A 01 88 [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: D1 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: D1 01 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: D1 01 00 9C 1A 00 87 [09:32:26]Write to MH i2c: 01 00 00 9D 1A B7 [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 E2 46 47 00 FF 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 84 3B 00 00 F4 03 04 00 88 01 C8 66 B6 04 01 00 00 95 34 53 CC D3 DD 76 99 [09:32:26]CommunicateWithHost err = 0 [09:32:26]CheckOFDResponse [09:32:26]1017 (14) - 77093643461234 [09:32:26]1041 (16) - 0000000002094529 [09:32:26]1040 (4) - 15236 [09:32:26]1012 (4) - 23.08.2024 03:27 [09:32:26]1206 (1) - 0 [09:32:26]OFD Sender: Remove packet 15236 [09:32:26]ProducePacketName [09:32:26]name=ofd_packets/00015236 [09:32:26]NVStorageDeleteData [09:32:27]OFD Sender: No OFD packet to send [09:32:27]*** Cut start [09:32:27]*** Partial cut [09:32:27]*** CUTSNS_PIN = 1 [09:32:27]*** CUTSNS_PIN = 0 [09:32:27]*** Brake cut motor [09:32:28]Read from MH i2c: 01 [09:32:28]MH_I2C_Read... [09:32:28]*** Stop cut motor [09:32:28]*** Cut end [09:32:28]Read from MH i2c: 01 07 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [09:32:28]process_action close_receipt done [09:32:28]requested_data is exist [09:32:28]produce_requested_data [09:32:28]requested_item fm.sn is exist - process it [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 11 00 00 [09:32:28]Write to MH i2c: E2 08 00 9E 1A 80 11 00 00 00 00 00 00 32 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 17 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 17 00 9E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 84 [09:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:32:28]wFMCommunicate OK [09:32:28]requested_item fd.num is exist - process it [09:32:28]SAM_PROTO_GetFieldsCounters [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 13 00 00 [09:32:28]Write to MH i2c: E2 08 00 9F 1A 80 13 00 00 00 00 00 00 35 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 62 00 [09:32:28]MH_I2C_Read... [09:32:28]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 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 84 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:32:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 84 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:28]wFMCommunicate OK [09:32:28]SAM_PROTO_GetFieldsCounters done [09:32:28]requested_item shift.num is exist - process it [09:32:28]requested_item shift.opened is exist - process it [09:32:28]req_shift_opened [09:32:28]FM_GetShiftState [09:32:28]SAM_PROTO_GetShiftState [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 13 01 00 [09:32:28]Write to MH i2c: E2 08 00 A0 1A 80 13 01 00 00 00 00 00 37 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 0E 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 0E 00 A0 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FB [09:32:28]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:32:28]wFMCommunicate OK [09:32:28]SAM_PROTO_GetShiftState done [09:32:28]FM_GetShiftState done [09:32:28]req_shift_opened done [09:32:28]requested_item shift.open_date is exist - process it [09:32:28]req_shift_open_date [09:32:28]req_shift_open_date done [09:32:28]produce_requested_data done [09:32:28]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15236,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:32:28]process_action_free close_receipt [09:32:28]json_value_free [09:32:28]json_value_free done [09:32:28]process_json_proto returns [09:32:28]Send response to host [09:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15236,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:32:28]free response buf [09:32:28]execute_script done [09:32:28]execute_script returns [09:32:28]free content buf [09:32:28]Sock 8.Close socket [09:32:28]Sock 8.Thread stoped [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:43]accept exits with 9 [09:33:43]New connection [09:33:43]New thread 3066801508 created [09:33:43]Thread 3066944868 joined [09:33:43]Waiting for new connection... [09:33:43] Sock 9.Parse request [09:33:43]Sock 9.Check first char [09:33:43]Sock 9.First char is OK [09:33:43]request: POST /json_proto HTTP/1.0 [09:33:43]Method: POST [09:33:43]URL: /json_proto [09:33:43]Method is POST - this is cgi request [09:33:43]url: /json_proto [09:33:43]query_string will be loaded in cgi processing [09:33:43]execute_cgi json_proto POST (null) [09:33:43]execute_cgi path=json_proto method=POST [09:33:43]POST find Content-Length [09:33:43]Host: 172.17.44.4:8080 [09:33:43]Content-Length: 790 [09:33:43]Content-Type: application/json [09:33:43] [09:33:43]POST finish read [09:33:43]Found Content-Length = 790 [09:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:43]execute_script... [09:33:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:43]POST & json_proto [09:33:43]process_json_proto [09:33:43]json parsed OK: [09:33:43]protocol is kg_v1.0 [09:33:43]action value=close_receipt [09:33:43]process_action close_receipt [09:33:43]cmd_close_receipt [09:33:43]MH_GetDate [09:33:43]Write to MH i2c: F0 00 00 A1 1A AA [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: F0 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: F0 09 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: F0 09 00 A1 1A 00 7B 57 C8 66 0F 81 47 66 F0 [09:33:43]GetLastDocTimeStamp 1724405548 [09:33:43]current date 1724405627 [09:33:43]FM_GetShiftState [09:33:43]SAM_PROTO_GetShiftState [09:33:43]wFMCommunicate request_size=4 [09:33:43]MH_SAM_APDU [09:33:43]CAPDU: 80 13 01 00 [09:33:43]Write to MH i2c: E2 08 00 A2 1A 80 13 01 00 00 00 00 00 39 [09:33:43]Write i2c OK [09:33:43]MH_I2C_Read... [09:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:43]Read from MH i2c: E2 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 0E 00 [09:33:43]MH_I2C_Read... [09:33:43]Read from MH i2c: E2 0E 00 A2 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FD [09:33:43]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:33:43]wFMCommunicate OK [09:33:43]SAM_PROTO_GetShiftState done [09:33:43]FM_GetShiftState done [09:33:43]opened in 1724372406 [09:33:43]opened+sec_in_day 1724458806 [09:33:43]quantity*price = 0 [09:33:43]sum+1 = 1 [09:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 31 23.08.2024 09:33 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15237 ФПД: 224126207852485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093347&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15237&fm=224126207852485&tin=02508201610067®Number=0000000000162784&sum=0 [09:33:44]StoreToDocumentArchive [09:33:44]shift 102 fd 15237 [09:33:44]save to /storage/0102/doc_00015237 [09:33:44]save last doc name /storage/0102/doc_00015237 to /storage/kkm_last_doc_name [09:33:44]save OK [09:33:44]Clear old archive folders... [09:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:44]tlvbuf is B6DA6190 [09:33:44]SAM_PROTO_ClearQueue [09:33:44]wFMCommunicate request_size=4 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 09 00 00 [09:33:44]Write to MH i2c: E2 08 00 AF 1A 80 09 00 00 00 00 00 00 3B [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [09:33:44]RAPDU: 90 00 [09:33:44]wFMCommunicate OK [09:33:44]SAM_PROTO_ClearQueue done [09:33:44]KKMCreateOFDPacket [09:33:44]OFDProtocolAddRootSTLVToBuf [09:33:44]FM_MakeSignedData [09:33:44]FM_MakeSignedData [09:33:44]SAM_PROTO_SignData [09:33:44]wFMCommunicate request_size=4 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 0D 01 02 [09:33:44]Write to MH i2c: E2 08 00 B0 1A 80 0D 01 02 00 00 00 00 43 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [09:33:44]RAPDU: 90 00 [09:33:44]wFMCommunicate OK [09:33:44]wFMCommunicate request_size=255 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 85 3B 00 00 35 04 06 00 CB D7 73 00 [09:33:44]Write to MH i2c: E2 02 01 B1 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 85 3B 00 00 35 04 06 00 CB D7 73 00 00 00 33 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [09:33:44]RAPDU: 90 00 [09:33:44]wFMCommunicate OK [09:33:44]wFMCommunicate request_size=7 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 0D 02 02 02 FF C5 [09:33:44]Write to MH i2c: E2 0A 00 B2 1A 80 0D 02 02 02 00 FF C5 00 00 0E [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [09:33:44]RAPDU: 90 00 [09:33:44]wFMCommunicate OK [09:33:44]wFMCommunicate request_size=4 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 0D 03 02 [09:33:44]Write to MH i2c: E2 08 00 B3 1A 80 0D 03 02 00 00 00 00 48 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 0B 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 0B 00 B3 1A 00 68 CE 2A 0F E1 7F 98 53 90 00 03 [09:33:44]RAPDU: 68 CE 2A 0F E1 7F 98 53 90 00 [09:33:44]wFMCommunicate OK [09:33:44]SAM_PROTO_SignData done [09:33:44]FM_MakeSignedData done [09:33:44]CreateOFDProtocolMessage [09:33:44]wFMCommunicate request_size=4 [09:33:44]MH_SAM_APDU [09:33:44]CAPDU: 80 11 00 00 [09:33:44]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:44]Read from MH i2c: E2 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 17 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 9A [09:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:33:44]wFMCommunicate OK [09:33:44]CreateOFDProtocolMessage done [09:33:44]OFDSenderStorePacket 15237 [09:33:44]StoreOFDPacket docnum=15237 [09:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 36 1A 04 01 35 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 85 3B 00 00 35 04 06 00 CB D7 73 00 FF C5 68 CE 2A 0F E1 7F 98 53 [09:33:44]CheckFolder [09:33:44]dirname=/storage/ofd_packets [09:33:44]CheckFolder done [09:33:44]ProducePacketName [09:33:44]name=ofd_packets/00015237 [09:33:44]NVStorageSaveData ofd_packets/00015237 [09:33:44]File name is /storage/ofd_packets/00015237 [09:33:44]Write 298 bytes [09:33:44]NVStorageSaveData done [09:33:44]OFDSenderStorePacket done [09:33:44]KKMCreateOFDPacket done [09:33:44]NVStorageSaveData kkm_last_timestamp [09:33:44]File name is /storage/kkm_last_timestamp [09:33:44]Write 4 bytes [09:33:44]NVStorageSaveData done [09:33:44]ExternCall_PrintAddStr [09:33:44]wPrintStart [09:33:44]Write to MH i2c: 01 00 00 B5 1A CF [09:33:44]Write i2c OK [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 07 00 [09:33:44]MH_I2C_Read... [09:33:44]Read from MH i2c: 01 07 00 B5 1A 00 00 00 00 00 FF 0F E4 [09:33:44]RasterBufferAndPrint [09:33:44]line Счет N : (1)2078158 [09:33:44]line ИНН: 02508201610067 [09:33:44]line Контрольно-Кассовый Чек [09:33:44]line ПРОДАЖА [09:33:44]line ТРК (МРК, ГНК) : 21 [09:33:44]line Товар: 2710194210 [09:33:44]line ДТ-К-5 [09:33:44]line 10.000 * 0.00 [09:33:44]line = 0.00 [09:33:44]line НДС 12% НСП 1% [09:33:44]line > о реализуемом товаре [09:33:44]line ИТОГО: 0.00 [09:33:44]line НСП 1% : 0.00 [09:33:44]line НДС 12% : 0.00 [09:33:44]line Наличными: 0.00 [09:33:44]line Безнал.: 0.00 [09:33:44]line Место: АЗС № 135 "Партнер Нефть" [09:33:44]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:33:44]line СНО: Общий режим [09:33:44]line Чек 31 23.08.2024 09:33 [09:33:44]line Смена: 102 ФФД: 1.0 [09:33:44]line ЗНМ: 0300000144 [09:33:44]line РНМ: 0000000000162784 [09:33:44]line Версия ККМ: v1.0 [09:33:44]line Талоны: Топливная Карта [09:33:44]line 92875 [09:33:44]line ФМ: 0000000002094529 [09:33:44]line ФД: 15237 [09:33:44]line ФПД: 224126207852485 [09:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093347&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15237&fm=224126207852485&tin=02508201610067®Number=0000000000162784&sum=0 [09:33:45]OFD Sender: Processing packet 15237 [packets to send 8, broken 7] [09:33:45]ProducePacketName [09:33:45]name=ofd_packets/00015237 [09:33:45]OFD Sender: To server: pG, [09:33:45]CommunicateWithHost lk.salyk.kg:30040 [09:33:45]ConnectInit lk.salyk.kg [09:33:45]written 0, free lines is 4095 [09:33:45]Connected sock=10 [09:33:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 36 1A 04 01 35 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 85 3B 00 00 35 04 06 00 CB D7 73 00 FF C5 68 CE 2A 0F E1 7F 98 53 [09:33:45]Write to MH i2c: 01 00 00 DF 1A F9 [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: 01 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: 01 07 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 D8 0C E4 [09:33:45]RasterBufferAndPrint [09:33:45]line [09:33:45]line [09:33:45]line [09:33:45]line [09:33:45]line [09:33:45]written 0, free lines is 3294 [09:33:45]MH_Cut [09:33:45]Write to MH i2c: D1 01 00 E6 1A 01 D2 [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: D1 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: D1 01 00 [09:33:45]MH_I2C_Read... [09:33:45]Read from MH i2c: D1 01 00 E6 1A 00 D1 [09:33:45]Write to MH i2c: 01 00 00 E7 1A 01 [09:33:45]Write i2c OK [09:33:45]MH_I2C_Read... [09:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 62 44 47 00 52 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 85 3B 00 00 F4 03 04 00 D6 01 C8 66 B6 04 01 00 00 55 C1 A7 2F 2B 7A 06 60 [09:33:45]CommunicateWithHost err = 0 [09:33:45]CheckOFDResponse [09:33:45]1017 (14) - 77093643461234 [09:33:45]1041 (16) - 0000000002094529 [09:33:45]1040 (4) - 15237 [09:33:45]1012 (4) - 23.08.2024 03:28 [09:33:45]1206 (1) - 0 [09:33:45]OFD Sender: Remove packet 15237 [09:33:45]ProducePacketName [09:33:45]name=ofd_packets/00015237 [09:33:45]NVStorageDeleteData [09:33:46]OFD Sender: No OFD packet to send [09:33:46]*** Cut start [09:33:46]*** Partial cut [09:33:46]*** CUTSNS_PIN = 1 [09:33:46]*** CUTSNS_PIN = 0 [09:33:46]*** Brake cut motor [09:33:47]Read from MH i2c: 01 [09:33:47]MH_I2C_Read... [09:33:47]*** Stop cut motor [09:33:47]*** Cut end [09:33:47]Read from MH i2c: 01 07 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 FF 0F 16 [09:33:47]process_action close_receipt done [09:33:47]requested_data is exist [09:33:47]produce_requested_data [09:33:47]requested_item fm.sn is exist - process it [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 11 00 00 [09:33:47]Write to MH i2c: E2 08 00 E8 1A 80 11 00 00 00 00 00 00 7C [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 17 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 17 00 E8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CE [09:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:33:47]wFMCommunicate OK [09:33:47]requested_item fd.num is exist - process it [09:33:47]SAM_PROTO_GetFieldsCounters [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 13 00 00 [09:33:47]Write to MH i2c: E2 08 00 E9 1A 80 13 00 00 00 00 00 00 7F [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 62 00 [09:33:47]MH_I2C_Read... [09:33:47]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 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 85 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 85 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:47]wFMCommunicate OK [09:33:47]SAM_PROTO_GetFieldsCounters done [09:33:47]requested_item shift.num is exist - process it [09:33:47]requested_item shift.opened is exist - process it [09:33:47]req_shift_opened [09:33:47]FM_GetShiftState [09:33:47]SAM_PROTO_GetShiftState [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 13 01 00 [09:33:47]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 0E 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 45 [09:33:47]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:33:47]wFMCommunicate OK [09:33:47]SAM_PROTO_GetShiftState done [09:33:47]FM_GetShiftState done [09:33:47]req_shift_opened done [09:33:47]requested_item shift.open_date is exist - process it [09:33:47]req_shift_open_date [09:33:47]req_shift_open_date done [09:33:47]produce_requested_data done [09:33:47]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15237,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:33:47]process_action_free close_receipt [09:33:47]json_value_free [09:33:47]json_value_free done [09:33:47]process_json_proto returns [09:33:47]Send response to host [09:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15237,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:33:47]free response buf [09:33:47]execute_script done [09:33:47]execute_script returns [09:33:47]free content buf [09:33:47]Sock 9.Close socket [09:33:47]Sock 9.Thread stoped [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:36]accept exits with 8 [09:35:36]New connection [09:35:36]New thread 3066944868 created [09:35:36]Thread 3066801508 joined [09:35:36]Waiting for new connection... [09:35:36] Sock 8.Parse request [09:35:36]Sock 8.Check first char [09:35:36]Sock 8.First char is OK [09:35:36]request: POST /json_proto HTTP/1.0 [09:35:36]Method: POST [09:35:36]URL: /json_proto [09:35:36]Method is POST - this is cgi request [09:35:36]url: /json_proto [09:35:36]query_string will be loaded in cgi processing [09:35:36]execute_cgi json_proto POST (null) [09:35:36]execute_cgi path=json_proto method=POST [09:35:36]POST find Content-Length [09:35:36]Host: 172.17.44.4:8080 [09:35:36]Content-Length: 790 [09:35:36]Content-Type: application/json [09:35:36] [09:35:36]POST finish read [09:35:36]Found Content-Length = 790 [09:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]execute_script... [09:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]POST & json_proto [09:35:36]process_json_proto [09:35:36]json parsed OK: [09:35:36]protocol is kg_v1.0 [09:35:36]action value=close_receipt [09:35:36]process_action close_receipt [09:35:36]cmd_close_receipt [09:35:36]MH_GetDate [09:35:36]Write to MH i2c: F0 00 00 EB 1A F4 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 EB 1A 00 EC 57 C8 66 0F 81 47 66 AB [09:35:36]GetLastDocTimeStamp 1724405627 [09:35:36]current date 1724405740 [09:35:36]FM_GetShiftState [09:35:36]SAM_PROTO_GetShiftState [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 13 01 00 [09:35:36]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 47 [09:35:36]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_GetShiftState done [09:35:36]FM_GetShiftState done [09:35:36]opened in 1724372406 [09:35:36]opened+sec_in_day 1724458806 [09:35:36]quantity*price = 0 [09:35:36]sum+1 = 1 [09:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 32 23.08.2024 09:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15238 ФПД: 54051725586081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093540&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15238&fm=54051725586081&tin=02508201610067®Number=0000000000162784&sum=0 [09:35:37]StoreToDocumentArchive [09:35:37]shift 102 fd 15238 [09:35:37]save to /storage/0102/doc_00015238 [09:35:37]save last doc name /storage/0102/doc_00015238 to /storage/kkm_last_doc_name [09:35:37]save OK [09:35:37]Clear old archive folders... [09:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:37]tlvbuf is 004D4F80 [09:35:37]SAM_PROTO_ClearQueue [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 09 00 00 [09:35:37]Write to MH i2c: E2 08 00 F9 1A 80 09 00 00 00 00 00 00 85 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_ClearQueue done [09:35:37]KKMCreateOFDPacket [09:35:37]OFDProtocolAddRootSTLVToBuf [09:35:37]FM_MakeSignedData [09:35:37]FM_MakeSignedData [09:35:37]SAM_PROTO_SignData [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 01 02 [09:35:37]Write to MH i2c: E2 08 00 FA 1A 80 0D 01 02 00 00 00 00 8D [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=255 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EC 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 86 3B 00 00 35 04 06 00 31 28 E5 E7 [09:35:37]Write to MH i2c: E2 02 01 FB 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EC 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 86 3B 00 00 35 04 06 00 31 28 E5 E7 00 00 37 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=7 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 02 02 02 2E A1 [09:35:37]Write to MH i2c: E2 0A 00 FC 1A 80 0D 02 02 02 00 2E A1 00 00 63 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 03 02 [09:35:37]Write to MH i2c: E2 08 00 FD 1A 80 0D 03 02 00 00 00 00 92 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 0B 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 0B 00 FD 1A 00 35 C9 84 87 0B 5C 36 83 90 00 BC [09:35:37]RAPDU: 35 C9 84 87 0B 5C 36 83 90 00 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_SignData done [09:35:37]FM_MakeSignedData done [09:35:37]CreateOFDProtocolMessage [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 11 00 00 [09:35:37]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E4 [09:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:35:38]wFMCommunicate OK [09:35:38]CreateOFDProtocolMessage done [09:35:38]OFDSenderStorePacket 15238 [09:35:38]StoreOFDPacket docnum=15238 [09:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A4 ED 04 01 D4 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EC 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 86 3B 00 00 35 04 06 00 31 28 E5 E7 2E A1 35 C9 84 87 0B 5C 36 83 [09:35:38]CheckFolder [09:35:38]dirname=/storage/ofd_packets [09:35:38]CheckFolder done [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00015238 [09:35:38]NVStorageSaveData ofd_packets/00015238 [09:35:38]File name is /storage/ofd_packets/00015238 [09:35:38]Write 298 bytes [09:35:38]NVStorageSaveData done [09:35:38]OFDSenderStorePacket done [09:35:38]KKMCreateOFDPacket done [09:35:38]NVStorageSaveData kkm_last_timestamp [09:35:38]File name is /storage/kkm_last_timestamp [09:35:38]Write 4 bytes [09:35:38]NVStorageSaveData done [09:35:38]ExternCall_PrintAddStr [09:35:38]wPrintStart [09:35:38]Write to MH i2c: 01 00 00 FF 1A 19 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 FF 1A 00 00 00 00 00 FF 0F 2E [09:35:38]RasterBufferAndPrint [09:35:38]line Счет N : (1)2078160 [09:35:38]line ИНН: 02508201610067 [09:35:38]line Контрольно-Кассовый Чек [09:35:38]line ПРОДАЖА [09:35:38]line ТРК (МРК, ГНК) : 21 [09:35:38]line Товар: 2710194210 [09:35:38]line ДТ-К-5 [09:35:38]line 20.000 * 0.00 [09:35:38]line = 0.00 [09:35:38]line НДС 12% НСП 1% [09:35:38]line > о реализуемом товаре [09:35:38]line ИТОГО: 0.00 [09:35:38]line НСП 1% : 0.00 [09:35:38]line НДС 12% : 0.00 [09:35:38]line Наличными: 0.00 [09:35:38]line Безнал.: 0.00 [09:35:38]line Место: АЗС № 135 "Партнер Нефть" [09:35:38]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:35:38]line СНО: Общий режим [09:35:38]line Чек 32 23.08.2024 09:35 [09:35:38]line Смена: 102 ФФД: 1.0 [09:35:38]line ЗНМ: 0300000144 [09:35:38]line РНМ: 0000000000162784 [09:35:38]line Версия ККМ: v1.0 [09:35:38]line Талоны: Топливная Карта [09:35:38]line 92875 [09:35:38]line ФМ: 0000000002094529 [09:35:38]line ФД: 15238 [09:35:38]line ФПД: 54051725586081 [09:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093540&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15238&fm=54051725586081&tin=02508201610067®Number=0000000000162784&sum=0 [09:35:38]OFD Sender: Processing packet 15238 [packets to send 8, broken 7] [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00015238 [09:35:38]OFD Sender: To server: pG, [09:35:38]CommunicateWithHost lk.salyk.kg:30040 [09:35:38]ConnectInit lk.salyk.kg [09:35:38]written 0, free lines is 4095 [09:35:38]Connected sock=10 [09:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A4 ED 04 01 D4 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EC 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 86 3B 00 00 35 04 06 00 31 28 E5 E7 2E A1 35 C9 84 87 0B 5C 36 83 [09:35:38]Write to MH i2c: 01 00 00 29 1B 44 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 29 1B 00 00 00 00 00 DA 0C 31 [09:35:38]RasterBufferAndPrint [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]line [09:35:38]written 0, free lines is 3296 [09:35:38]MH_Cut [09:35:38]Write to MH i2c: D1 01 00 30 1B 01 1D [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 01 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: D1 01 00 30 1B 00 1C [09:35:38]Write to MH i2c: 01 00 00 31 1B 4C [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 65 E9 47 00 1F 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 86 3B 00 00 F4 03 04 00 47 02 C8 66 B6 04 01 00 00 12 6F 71 49 55 5C CB FC [09:35:38]CommunicateWithHost err = 0 [09:35:38]CheckOFDResponse [09:35:38]1017 (14) - 77093643461234 [09:35:38]1041 (16) - 0000000002094529 [09:35:38]1040 (4) - 15238 [09:35:38]1012 (4) - 23.08.2024 03:30 [09:35:38]1206 (1) - 0 [09:35:38]OFD Sender: Remove packet 15238 [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00015238 [09:35:38]NVStorageDeleteData [09:35:39]OFD Sender: No OFD packet to send [09:35:39]*** Cut start [09:35:39]*** Partial cut [09:35:39]*** CUTSNS_PIN = 1 [09:35:39]*** CUTSNS_PIN = 0 [09:35:39]*** Brake cut motor [09:35:40]Read from MH i2c: 01 [09:35:40]MH_I2C_Read... [09:35:40]*** Stop cut motor [09:35:40]*** Cut end [09:35:40]Read from MH i2c: 01 07 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: 01 07 00 31 1B 00 00 00 00 00 FF 0F 61 [09:35:40]process_action close_receipt done [09:35:40]requested_data is exist [09:35:40]produce_requested_data [09:35:40]requested_item fm.sn is exist - process it [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 11 00 00 [09:35:40]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 19 [09:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:35:40]wFMCommunicate OK [09:35:40]requested_item fd.num is exist - process it [09:35:40]SAM_PROTO_GetFieldsCounters [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 00 00 [09:35:40]Write to MH i2c: E2 08 00 33 1B 80 13 00 00 00 00 00 00 CA [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 62 00 33 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 86 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [09:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 86 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetFieldsCounters done [09:35:40]requested_item shift.num is exist - process it [09:35:40]requested_item shift.opened is exist - process it [09:35:40]req_shift_opened [09:35:40]FM_GetShiftState [09:35:40]SAM_PROTO_GetShiftState [09:35:40]wFMCommunicate request_size=4 [09:35:40]MH_SAM_APDU [09:35:40]CAPDU: 80 13 01 00 [09:35:40]Write to MH i2c: E2 08 00 34 1B 80 13 01 00 00 00 00 00 CC [09:35:40]Write i2c OK [09:35:40]MH_I2C_Read... [09:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:40]Read from MH i2c: E2 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 [09:35:40]MH_I2C_Read... [09:35:40]Read from MH i2c: E2 0E 00 34 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 90 [09:35:40]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:35:40]wFMCommunicate OK [09:35:40]SAM_PROTO_GetShiftState done [09:35:40]FM_GetShiftState done [09:35:40]req_shift_opened done [09:35:40]requested_item shift.open_date is exist - process it [09:35:40]req_shift_open_date [09:35:40]req_shift_open_date done [09:35:40]produce_requested_data done [09:35:40]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15238,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:35:40]process_action_free close_receipt [09:35:40]json_value_free [09:35:40]json_value_free done [09:35:40]process_json_proto returns [09:35:40]Send response to host [09:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15238,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:35:40]free response buf [09:35:40]execute_script done [09:35:40]execute_script returns [09:35:40]free content buf [09:35:40]Sock 8.Close socket [09:35:40]Sock 8.Thread stoped [09:35:44]OFD Sender: No OFD packet to send [09:35:45]accept exits with 9 [09:35:45]New connection [09:35:45]New thread 3066801508 created [09:35:45]Thread 3066944868 joined [09:35:45]Waiting for new connection... [09:35:45] Sock 9.Parse request [09:35:45]Sock 9.Check first char [09:35:45]Sock 9.First char is OK [09:35:45]request: POST /json_proto HTTP/1.0 [09:35:45]Method: POST [09:35:45]URL: /json_proto [09:35:45]Method is POST - this is cgi request [09:35:45]url: /json_proto [09:35:45]query_string will be loaded in cgi processing [09:35:45]execute_cgi json_proto POST (null) [09:35:45]execute_cgi path=json_proto method=POST [09:35:45]POST find Content-Length [09:35:45]Host: 172.17.44.4:8080 [09:35:45]Content-Length: 785 [09:35:45]Content-Type: application/json [09:35:45] [09:35:45]POST finish read [09:35:45]Found Content-Length = 785 [09:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:45]execute_script... [09:35:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:45]POST & json_proto [09:35:45]process_json_proto [09:35:45]json parsed OK: [09:35:45]protocol is kg_v1.0 [09:35:45]action value=close_receipt [09:35:45]process_action close_receipt [09:35:45]cmd_close_receipt [09:35:45]MH_GetDate [09:35:45]Write to MH i2c: F0 00 00 35 1B 3F [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: F0 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: F0 09 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: F0 09 00 35 1B 00 F5 57 C8 66 0F 81 47 66 FF [09:35:45]GetLastDocTimeStamp 1724405740 [09:35:45]current date 1724405749 [09:35:45]FM_GetShiftState [09:35:45]SAM_PROTO_GetShiftState [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 13 01 00 [09:35:45]Write to MH i2c: E2 08 00 36 1B 80 13 01 00 00 00 00 00 CE [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0E 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0E 00 36 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 92 [09:35:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:35:45]wFMCommunicate OK [09:35:45]SAM_PROTO_GetShiftState done [09:35:45]FM_GetShiftState done [09:35:45]opened in 1724372406 [09:35:45]opened+sec_in_day 1724458806 [09:35:45]quantity*price = 100035 [09:35:45]sum+1 = 100036 [09:35:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.35 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.35 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 33 23.08.2024 09:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15239 ФПД: 261405972118687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093549&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15239&fm=261405972118687&tin=02508201610067®Number=0000000000162784&sum=100035 [09:35:46]StoreToDocumentArchive [09:35:46]shift 102 fd 15239 [09:35:46]save to /storage/0102/doc_00015239 [09:35:46]save last doc name /storage/0102/doc_00015239 to /storage/kkm_last_doc_name [09:35:46]save OK [09:35:46]Clear old archive folders... [09:35:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:35:46]tlvbuf is 004D48F0 [09:35:46]SAM_PROTO_ClearQueue [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 09 00 00 [09:35:46]Write to MH i2c: E2 08 00 43 1B 80 09 00 00 00 00 00 00 D0 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_ClearQueue done [09:35:46]KKMCreateOFDPacket [09:35:46]OFDProtocolAddRootSTLVToBuf [09:35:46]FM_MakeSignedData [09:35:46]FM_MakeSignedData [09:35:46]SAM_PROTO_SignData [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 0D 01 02 [09:35:46]Write to MH i2c: E2 08 00 44 1B 80 0D 01 02 00 00 00 00 D8 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [09:35:46]RAPDU: 90 00 [09:35:46]wFMCommunicate OK [09:35:46]wFMCommunicate request_size=253 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F5 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 87 3B 00 00 35 04 06 00 ED BF 52 1C 3C 9F [09:35:46]Write to MH i2c: E2 00 01 45 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F5 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 87 3B 00 00 35 04 06 00 ED BF 52 1C 3C 9F 00 00 46 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 03 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [09:35:47]RAPDU: 90 00 [09:35:47]wFMCommunicate OK [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 0D 03 02 [09:35:47]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0B 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 0B 00 46 1B 00 96 97 9A A2 2A DE E4 0A 90 00 3C [09:35:47]RAPDU: 96 97 9A A2 2A DE E4 0A 90 00 [09:35:47]wFMCommunicate OK [09:35:47]SAM_PROTO_SignData done [09:35:47]FM_MakeSignedData done [09:35:47]CreateOFDProtocolMessage [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 11 00 00 [09:35:47]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 17 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 2E [09:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:35:47]wFMCommunicate OK [09:35:47]CreateOFDProtocolMessage done [09:35:47]OFDSenderStorePacket 15239 [09:35:47]StoreOFDPacket docnum=15239 [09:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 A1 7C 00 01 BC 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F5 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 87 3B 00 00 35 04 06 00 ED BF 52 1C 3C 9F 96 97 9A A2 2A DE E4 0A [09:35:47]CheckFolder [09:35:47]dirname=/storage/ofd_packets [09:35:47]CheckFolder done [09:35:47]ProducePacketName [09:35:47]name=ofd_packets/00015239 [09:35:47]NVStorageSaveData ofd_packets/00015239 [09:35:47]File name is /storage/ofd_packets/00015239 [09:35:47]Write 294 bytes [09:35:47]NVStorageSaveData done [09:35:47]OFDSenderStorePacket done [09:35:47]KKMCreateOFDPacket done [09:35:47]NVStorageSaveData kkm_last_timestamp [09:35:47]File name is /storage/kkm_last_timestamp [09:35:47]Write 4 bytes [09:35:47]NVStorageSaveData done [09:35:47]ExternCall_PrintAddStr [09:35:47]wPrintStart [09:35:47]Write to MH i2c: 01 00 00 48 1B 63 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [09:35:47]RasterBufferAndPrint [09:35:47]line Счет N : (1)2078161 [09:35:47]line ИНН: 02508201610067 [09:35:47]line Контрольно-Кассовый Чек [09:35:47]line ПРОДАЖА [09:35:47]line ТРК (МРК, ГНК) : 54 [09:35:47]line Товар: 2710124130 [09:35:47]line SU-92 [09:35:47]line 14.540 * 68.80 [09:35:47]line = 1000.35 [09:35:47]line НДС 12% НСП 1% [09:35:47]line > о реализуемом товаре [09:35:47]line ИТОГО: 1000.35 [09:35:47]line НСП 1% : 8.85 [09:35:47]line НДС 12% : 106.23 [09:35:47]line Наличными: 0.00 [09:35:47]line Безнал.: 1000.35 [09:35:47]line Место: АЗС № 135 "Партнер Нефть" [09:35:47]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:35:47]line СНО: Общий режим [09:35:47]line Чек 33 23.08.2024 09:35 [09:35:47]line Смена: 102 ФФД: 1.0 [09:35:47]line ЗНМ: 0300000144 [09:35:47]line РНМ: 0000000000162784 [09:35:47]line Версия ККМ: v1.0 [09:35:47]line Платежная система: O! деньги [09:35:47]line ФМ: 0000000002094529 [09:35:47]line ФД: 15239 [09:35:47]line ФПД: 261405972118687 [09:35:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093549&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15239&fm=261405972118687&tin=02508201610067®Number=0000000000162784&sum=100035 [09:35:47]written 0, free lines is 4095 [09:35:47]OFD Sender: Processing packet 15239 [packets to send 8, broken 7] [09:35:47]ProducePacketName [09:35:47]name=ofd_packets/00015239 [09:35:47]OFD Sender: To server: pG, [09:35:47]CommunicateWithHost lk.salyk.kg:30040 [09:35:47]ConnectInit lk.salyk.kg [09:35:47]Connected sock=10 [09:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 A1 7C 00 01 BC 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F5 57 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 87 3B 00 00 35 04 06 00 ED BF 52 1C 3C 9F 96 97 9A A2 2A DE E4 0A [09:35:47]Write to MH i2c: 01 00 00 72 1B 8D [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 EF 0C 8F [09:35:47]RasterBufferAndPrint [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]line [09:35:47]written 0, free lines is 3319 [09:35:47]MH_Cut [09:35:47]Write to MH i2c: D1 01 00 79 1B 01 66 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 01 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: D1 01 00 79 1B 00 65 [09:35:47]Write to MH i2c: 01 00 00 7A 1B 95 [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 BF 7E 47 00 D6 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 87 3B 00 00 F4 03 04 00 50 02 C8 66 B6 04 01 00 00 14 EA 60 26 B2 06 56 E4 [09:35:47]CommunicateWithHost err = 0 [09:35:47]CheckOFDResponse [09:35:47]1017 (14) - 77093643461234 [09:35:47]1041 (16) - 0000000002094529 [09:35:47]1040 (4) - 15239 [09:35:47]1012 (4) - 23.08.2024 03:30 [09:35:47]1206 (1) - 0 [09:35:47]OFD Sender: Remove packet 15239 [09:35:47]ProducePacketName [09:35:47]name=ofd_packets/00015239 [09:35:47]NVStorageDeleteData [09:35:48]OFD Sender: No OFD packet to send [09:35:48]*** Cut start [09:35:48]*** Partial cut [09:35:48]*** CUTSNS_PIN = 1 [09:35:48]*** CUTSNS_PIN = 0 [09:35:48]*** Brake cut motor [09:35:49]Read from MH i2c: 01 [09:35:49]MH_I2C_Read... [09:35:49]*** Stop cut motor [09:35:49]*** Cut end [09:35:49]Read from MH i2c: 01 07 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [09:35:49]process_action close_receipt done [09:35:49]requested_data is exist [09:35:49]produce_requested_data [09:35:49]requested_item fm.sn is exist - process it [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 11 00 00 [09:35:49]Write to MH i2c: E2 08 00 7B 1B 80 11 00 00 00 00 00 00 10 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:49]Read from MH i2c: E2 17 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 17 00 7B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 62 [09:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:35:49]wFMCommunicate OK [09:35:49]requested_item fd.num is exist - process it [09:35:49]SAM_PROTO_GetFieldsCounters [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 13 00 00 [09:35:49]Write to MH i2c: E2 08 00 7C 1B 80 13 00 00 00 00 00 00 13 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 62 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 62 00 7C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 87 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [09:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 87 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_GetFieldsCounters done [09:35:49]requested_item shift.num is exist - process it [09:35:49]requested_item shift.opened is exist - process it [09:35:49]req_shift_opened [09:35:49]FM_GetShiftState [09:35:49]SAM_PROTO_GetShiftState [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 13 01 00 [09:35:49]Write to MH i2c: E2 08 00 7D 1B 80 13 01 00 00 00 00 00 15 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0E 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0E 00 7D 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D9 [09:35:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_GetShiftState done [09:35:49]FM_GetShiftState done [09:35:49]req_shift_opened done [09:35:49]requested_item shift.open_date is exist - process it [09:35:49]req_shift_open_date [09:35:49]req_shift_open_date done [09:35:49]produce_requested_data done [09:35:49]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15239,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:35:49]process_action_free close_receipt [09:35:49]json_value_free [09:35:49]json_value_free done [09:35:49]process_json_proto returns [09:35:49]Send response to host [09:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15239,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:35:49]free response buf [09:35:49]execute_script done [09:35:49]execute_script returns [09:35:49]free content buf [09:35:49]Sock 9.Close socket [09:35:49]Sock 9.Thread stoped [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:01]accept exits with 8 [09:37:01]New connection [09:37:01]New thread 3066944868 created [09:37:01]Thread 3066801508 joined [09:37:01]Waiting for new connection... [09:37:01] Sock 8.Parse request [09:37:01]Sock 8.Check first char [09:37:01]Sock 8.First char is OK [09:37:01]request: POST /json_proto HTTP/1.0 [09:37:01]Method: POST [09:37:01]URL: /json_proto [09:37:01]Method is POST - this is cgi request [09:37:01]url: /json_proto [09:37:01]query_string will be loaded in cgi processing [09:37:01]execute_cgi json_proto POST (null) [09:37:01]execute_cgi path=json_proto method=POST [09:37:01]POST find Content-Length [09:37:01]Host: 172.17.44.4:8080 [09:37:01]Content-Length: 798 [09:37:01]Content-Type: application/json [09:37:01] [09:37:01]POST finish read [09:37:01]Found Content-Length = 798 [09:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:01]execute_script... [09:37:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:01]POST & json_proto [09:37:01]process_json_proto [09:37:01]json parsed OK: [09:37:01]protocol is kg_v1.0 [09:37:01]action value=close_receipt [09:37:01]process_action close_receipt [09:37:01]cmd_close_receipt [09:37:01]MH_GetDate [09:37:01]Write to MH i2c: F0 00 00 7E 1B 88 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: F0 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: F0 09 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: F0 09 00 7E 1B 00 41 58 C8 66 0F 81 47 66 95 [09:37:01]GetLastDocTimeStamp 1724405749 [09:37:01]current date 1724405825 [09:37:01]FM_GetShiftState [09:37:01]SAM_PROTO_GetShiftState [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 13 01 00 [09:37:01]Write to MH i2c: E2 08 00 7F 1B 80 13 01 00 00 00 00 00 17 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 0E 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 0E 00 7F 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 DB [09:37:01]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:37:01]wFMCommunicate OK [09:37:01]SAM_PROTO_GetShiftState done [09:37:01]FM_GetShiftState done [09:37:01]opened in 1724372406 [09:37:01]opened+sec_in_day 1724458806 [09:37:01]quantity*price = 60045 [09:37:01]sum+1 = 60047 [09:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.46 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.46 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 34 23.08.2024 09:37 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15240 ФПД: 62411478661318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093705&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15240&fm=62411478661318&tin=02508201610067®Number=0000000000162784&sum=60046 [09:37:02]StoreToDocumentArchive [09:37:02]shift 102 fd 15240 [09:37:02]save to /storage/0102/doc_00015240 [09:37:02]save last doc name /storage/0102/doc_00015240 to /storage/kkm_last_doc_name [09:37:02]save OK [09:37:02]Clear old archive folders... [09:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:02]tlvbuf is 004B5C30 [09:37:02]SAM_PROTO_ClearQueue [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 09 00 00 [09:37:02]Write to MH i2c: E2 08 00 8C 1B 80 09 00 00 00 00 00 00 19 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [09:37:02]RAPDU: 90 00 [09:37:02]wFMCommunicate OK [09:37:02]SAM_PROTO_ClearQueue done [09:37:02]KKMCreateOFDPacket [09:37:02]OFDProtocolAddRootSTLVToBuf [09:37:02]FM_MakeSignedData [09:37:02]FM_MakeSignedData [09:37:02]SAM_PROTO_SignData [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 0D 01 02 [09:37:02]Write to MH i2c: E2 08 00 8D 1B 80 0D 01 02 00 00 00 00 21 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [09:37:02]RAPDU: 90 00 [09:37:02]wFMCommunicate OK [09:37:02]wFMCommunicate request_size=255 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 41 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 88 3B 00 00 35 04 06 00 38 C3 4E 03 [09:37:02]Write to MH i2c: E2 02 01 8E 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 41 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 88 3B 00 00 35 04 06 00 38 C3 4E 03 00 00 23 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [09:37:02]RAPDU: 90 00 [09:37:02]wFMCommunicate OK [09:37:02]wFMCommunicate request_size=7 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 0D 02 02 02 F8 C6 [09:37:02]Write to MH i2c: E2 0A 00 8F 1B 80 0D 02 02 02 00 F8 C6 00 00 E6 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [09:37:02]RAPDU: 90 00 [09:37:02]wFMCommunicate OK [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 0D 03 02 [09:37:02]Write to MH i2c: E2 08 00 90 1B 80 0D 03 02 00 00 00 00 26 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 0B 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 0B 00 90 1B 00 18 02 BF 1E 47 53 94 6A 90 00 B6 [09:37:02]RAPDU: 18 02 BF 1E 47 53 94 6A 90 00 [09:37:02]wFMCommunicate OK [09:37:02]SAM_PROTO_SignData done [09:37:02]FM_MakeSignedData done [09:37:02]CreateOFDProtocolMessage [09:37:02]wFMCommunicate request_size=4 [09:37:02]MH_SAM_APDU [09:37:02]CAPDU: 80 11 00 00 [09:37:02]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:02]Read from MH i2c: E2 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 17 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: E2 17 00 91 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 78 [09:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:37:02]wFMCommunicate OK [09:37:02]CreateOFDProtocolMessage done [09:37:02]OFDSenderStorePacket 15240 [09:37:02]StoreOFDPacket docnum=15240 [09:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 B0 E4 04 01 65 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 41 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 88 3B 00 00 35 04 06 00 38 C3 4E 03 F8 C6 18 02 BF 1E 47 53 94 6A [09:37:02]CheckFolder [09:37:02]dirname=/storage/ofd_packets [09:37:02]CheckFolder done [09:37:02]ProducePacketName [09:37:02]name=ofd_packets/00015240 [09:37:02]NVStorageSaveData ofd_packets/00015240 [09:37:02]File name is /storage/ofd_packets/00015240 [09:37:02]Write 298 bytes [09:37:02]NVStorageSaveData done [09:37:02]OFDSenderStorePacket done [09:37:02]KKMCreateOFDPacket done [09:37:02]NVStorageSaveData kkm_last_timestamp [09:37:02]File name is /storage/kkm_last_timestamp [09:37:02]Write 4 bytes [09:37:02]NVStorageSaveData done [09:37:02]ExternCall_PrintAddStr [09:37:02]wPrintStart [09:37:02]Write to MH i2c: 01 00 00 92 1B AD [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [09:37:02]RasterBufferAndPrint [09:37:02]line Счет N : (1)2078163 [09:37:02]line ИНН: 02508201610067 [09:37:02]line Контрольно-Кассовый Чек [09:37:02]line ПРОДАЖА [09:37:02]line ТРК (МРК, ГНК) : 21 [09:37:02]line Товар: 2710194210 [09:37:02]line ДТ-К-5 [09:37:02]line 7.880 * 76.20 [09:37:02]line = 600.46 [09:37:02]line НДС 12% НСП 1% [09:37:02]line > о реализуемом товаре [09:37:02]line ИТОГО: 600.46 [09:37:02]line НСП 1% : 5.31 [09:37:02]line НДС 12% : 63.77 [09:37:02]line Наличными: 0.00 [09:37:02]line Безнал.: 600.46 [09:37:02]line Место: АЗС № 135 "Партнер Нефть" [09:37:02]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:37:02]line СНО: Общий режим [09:37:02]line Чек 34 23.08.2024 09:37 [09:37:02]line Смена: 102 ФФД: 1.0 [09:37:02]line ЗНМ: 0300000144 [09:37:02]line РНМ: 0000000000162784 [09:37:02]line Версия ККМ: v1.0 [09:37:02]line Платежная система: O! деньги [09:37:02]line ФМ: 0000000002094529 [09:37:02]line ФД: 15240 [09:37:02]line ФПД: 62411478661318 [09:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093705&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15240&fm=62411478661318&tin=02508201610067®Number=0000000000162784&sum=60046 [09:37:03]OFD Sender: Processing packet 15240 [packets to send 8, broken 7] [09:37:03]ProducePacketName [09:37:03]name=ofd_packets/00015240 [09:37:03]OFD Sender: To server: pG, [09:37:03]CommunicateWithHost lk.salyk.kg:30040 [09:37:03]ConnectInit lk.salyk.kg [09:37:03]written 0, free lines is 4095 [09:37:03]Connected sock=10 [09:37:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 B0 E4 04 01 65 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 41 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 88 3B 00 00 35 04 06 00 38 C3 4E 03 F8 C6 18 02 BF 1E 47 53 94 6A [09:37:03]Write to MH i2c: 01 00 00 BC 1B D7 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 BC 1B 00 00 00 00 00 D9 0C C3 [09:37:03]RasterBufferAndPrint [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]written 0, free lines is 3295 [09:37:03]MH_Cut [09:37:03]Write to MH i2c: D1 01 00 C3 1B 01 B0 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 01 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 01 00 C3 1B 00 AF [09:37:03]Write to MH i2c: 01 00 00 C4 1B DF [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 4B 23 47 00 C6 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 88 3B 00 00 F4 03 04 00 9C 02 C8 66 B6 04 01 00 00 FC 17 87 91 C3 59 65 92 [09:37:03]CommunicateWithHost err = 0 [09:37:03]CheckOFDResponse [09:37:03]1017 (14) - 77093643461234 [09:37:03]1041 (16) - 0000000002094529 [09:37:03]1040 (4) - 15240 [09:37:03]1012 (4) - 23.08.2024 03:31 [09:37:03]1206 (1) - 0 [09:37:03]OFD Sender: Remove packet 15240 [09:37:03]ProducePacketName [09:37:03]name=ofd_packets/00015240 [09:37:03]NVStorageDeleteData [09:37:04]OFD Sender: No OFD packet to send [09:37:04]*** Cut start [09:37:04]*** Partial cut [09:37:04]*** CUTSNS_PIN = 1 [09:37:04]*** CUTSNS_PIN = 0 [09:37:04]*** Brake cut motor [09:37:05]Read from MH i2c: 01 [09:37:05]MH_I2C_Read... [09:37:05]*** Stop cut motor [09:37:05]*** Cut end [09:37:05]Read from MH i2c: 01 07 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 FF 0F F4 [09:37:05]process_action close_receipt done [09:37:05]requested_data is exist [09:37:05]produce_requested_data [09:37:05]requested_item fm.sn is exist - process it [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 11 00 00 [09:37:05]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 17 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 AC [09:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:37:05]wFMCommunicate OK [09:37:05]requested_item fd.num is exist - process it [09:37:05]SAM_PROTO_GetFieldsCounters [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 13 00 00 [09:37:05]Write to MH i2c: E2 08 00 C6 1B 80 13 00 00 00 00 00 00 5D [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 62 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 62 00 C6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 88 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [09:37:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 88 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_GetFieldsCounters done [09:37:05]requested_item shift.num is exist - process it [09:37:05]requested_item shift.opened is exist - process it [09:37:05]req_shift_opened [09:37:05]FM_GetShiftState [09:37:05]SAM_PROTO_GetShiftState [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 13 01 00 [09:37:05]Write to MH i2c: E2 08 00 C7 1B 80 13 01 00 00 00 00 00 5F [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 C7 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 23 [09:37:05]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_GetShiftState done [09:37:05]FM_GetShiftState done [09:37:05]req_shift_opened done [09:37:05]requested_item shift.open_date is exist - process it [09:37:05]req_shift_open_date [09:37:05]req_shift_open_date done [09:37:05]produce_requested_data done [09:37:05]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15240,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:37:05]process_action_free close_receipt [09:37:05]json_value_free [09:37:05]json_value_free done [09:37:05]process_json_proto returns [09:37:05]Send response to host [09:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15240,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:37:05]free response buf [09:37:05]execute_script done [09:37:05]execute_script returns [09:37:05]free content buf [09:37:05]Sock 8.Close socket [09:37:05]Sock 8.Thread stoped [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:50]accept exits with 9 [09:37:50]New connection [09:37:50]New thread 3066801508 created [09:37:50]Thread 3066944868 joined [09:37:50]Waiting for new connection... [09:37:50] Sock 9.Parse request [09:37:50]Sock 9.Check first char [09:37:50]Sock 9.First char is OK [09:37:50]request: POST /json_proto HTTP/1.0 [09:37:50]Method: POST [09:37:50]URL: /json_proto [09:37:50]Method is POST - this is cgi request [09:37:50]url: /json_proto [09:37:50]query_string will be loaded in cgi processing [09:37:50]execute_cgi json_proto POST (null) [09:37:50]execute_cgi path=json_proto method=POST [09:37:50]POST find Content-Length [09:37:50]Host: 172.17.44.4:8080 [09:37:50]Content-Length: 820 [09:37:50]Content-Type: application/json [09:37:50] [09:37:50]POST finish read [09:37:50]Found Content-Length = 820 [09:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:50]execute_script... [09:37:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:50]POST & json_proto [09:37:50]process_json_proto [09:37:50]json parsed OK: [09:37:50]protocol is kg_v1.0 [09:37:50]action value=close_receipt [09:37:50]process_action close_receipt [09:37:50]cmd_close_receipt [09:37:50]MH_GetDate [09:37:50]Write to MH i2c: F0 00 00 C8 1B D2 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: F0 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: F0 09 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: F0 09 00 C8 1B 00 72 58 C8 66 0F 81 47 66 10 [09:37:50]GetLastDocTimeStamp 1724405825 [09:37:50]current date 1724405874 [09:37:50]FM_GetShiftState [09:37:50]SAM_PROTO_GetShiftState [09:37:50]wFMCommunicate request_size=4 [09:37:50]MH_SAM_APDU [09:37:50]CAPDU: 80 13 01 00 [09:37:50]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [09:37:50]Write i2c OK [09:37:50]MH_I2C_Read... [09:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:50]Read from MH i2c: E2 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0E 00 [09:37:50]MH_I2C_Read... [09:37:50]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 25 [09:37:50]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:37:50]wFMCommunicate OK [09:37:50]SAM_PROTO_GetShiftState done [09:37:50]FM_GetShiftState done [09:37:50]opened in 1724372406 [09:37:50]opened+sec_in_day 1724458806 [09:37:50]quantity*price = 100021 [09:37:50]sum+1 = 100023 [09:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 35 23.08.2024 09:37 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094529 ФД: 15241 ФПД: 202520190459651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093754&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15241&fm=202520190459651&tin=02508201610067®Number=0000000000162784&sum=100022 [09:37:51]StoreToDocumentArchive [09:37:51]shift 102 fd 15241 [09:37:51]save to /storage/0102/doc_00015241 [09:37:51]save last doc name /storage/0102/doc_00015241 to /storage/kkm_last_doc_name [09:37:51]save OK [09:37:51]Clear old archive folders... [09:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:51]tlvbuf is 004D5200 [09:37:51]SAM_PROTO_ClearQueue [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 09 00 00 [09:37:51]Write to MH i2c: E2 08 00 D6 1B 80 09 00 00 00 00 00 00 63 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [09:37:51]RAPDU: 90 00 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_ClearQueue done [09:37:51]KKMCreateOFDPacket [09:37:51]OFDProtocolAddRootSTLVToBuf [09:37:51]FM_MakeSignedData [09:37:51]FM_MakeSignedData [09:37:51]SAM_PROTO_SignData [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 0D 01 02 [09:37:51]Write to MH i2c: E2 08 00 D7 1B 80 0D 01 02 00 00 00 00 6B [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [09:37:51]RAPDU: 90 00 [09:37:51]wFMCommunicate OK [09:37:51]wFMCommunicate request_size=255 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 89 3B 00 00 35 04 06 00 B8 [09:37:51]Write to MH i2c: E2 02 01 D8 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 89 3B 00 00 35 04 06 00 B8 00 00 42 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [09:37:51]RAPDU: 90 00 [09:37:51]wFMCommunicate OK [09:37:51]wFMCommunicate request_size=10 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 0D 02 02 05 30 E8 03 1F 03 [09:37:51]Write to MH i2c: E2 0D 00 D9 1B 80 0D 02 02 05 00 30 E8 03 1F 03 00 00 B5 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [09:37:51]RAPDU: 90 00 [09:37:51]wFMCommunicate OK [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 0D 03 02 [09:37:51]Write to MH i2c: E2 08 00 DA 1B 80 0D 03 02 00 00 00 00 70 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0B 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0B 00 DA 1B 00 ED 66 4E 67 23 5A EA 07 90 00 E7 [09:37:51]RAPDU: ED 66 4E 67 23 5A EA 07 90 00 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_SignData done [09:37:51]FM_MakeSignedData done [09:37:51]CreateOFDProtocolMessage [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 11 00 00 [09:37:51]Write to MH i2c: E2 08 00 DB 1B 80 11 00 00 00 00 00 00 70 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 17 00 DB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C2 [09:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:37:52]wFMCommunicate OK [09:37:52]CreateOFDProtocolMessage done [09:37:52]OFDSenderStorePacket 15241 [09:37:52]StoreOFDPacket docnum=15241 [09:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 96 B3 07 01 EA 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 89 3B 00 00 35 04 06 00 B8 30 E8 03 1F 03 ED 66 4E 67 23 5A EA 07 [09:37:52]CheckFolder [09:37:52]dirname=/storage/ofd_packets [09:37:52]CheckFolder done [09:37:52]ProducePacketName [09:37:52]name=ofd_packets/00015241 [09:37:52]NVStorageSaveData ofd_packets/00015241 [09:37:52]File name is /storage/ofd_packets/00015241 [09:37:52]Write 301 bytes [09:37:52]NVStorageSaveData done [09:37:52]OFDSenderStorePacket done [09:37:52]KKMCreateOFDPacket done [09:37:52]NVStorageSaveData kkm_last_timestamp [09:37:52]File name is /storage/kkm_last_timestamp [09:37:52]Write 4 bytes [09:37:52]NVStorageSaveData done [09:37:52]ExternCall_PrintAddStr [09:37:52]wPrintStart [09:37:52]Write to MH i2c: 01 00 00 DC 1B F7 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 DC 1B 00 00 00 00 00 FF 0F 0C [09:37:52]RasterBufferAndPrint [09:37:52]line Счет N : (1)2078164 [09:37:52]line ИНН: 02508201610067 [09:37:52]line Контрольно-Кассовый Чек [09:37:52]line ПРОДАЖА [09:37:52]line ТРК (МРК, ГНК) : 62 [09:37:52]line Товар: 2710124500 [09:37:52]line Аи-95-К-5 [09:37:52]line 13.480 * 74.20 [09:37:52]line = 1000.22 [09:37:52]line НДС 12% НСП 1% [09:37:52]line > о реализуемом товаре [09:37:52]line ИТОГО: 1000.22 [09:37:52]line НСП 1% : 8.85 [09:37:52]line НДС 12% : 106.22 [09:37:52]line Наличными: 0.00 [09:37:52]line Безнал.: 1000.22 [09:37:52]line Место: АЗС № 135 "Партнер Нефть" [09:37:52]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:37:52]line СНО: Общий режим [09:37:52]line Чек 35 23.08.2024 09:37 [09:37:52]line Смена: 102 ФФД: 1.0 [09:37:52]line ЗНМ: 0300000144 [09:37:52]line РНМ: 0000000000162784 [09:37:52]line Версия ККМ: v1.0 [09:37:52]line Платежная система: Бакай Банк [09:37:52]line ФМ: 0000000002094529 [09:37:52]line ФД: 15241 [09:37:52]line ФПД: 202520190459651 [09:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093754&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15241&fm=202520190459651&tin=02508201610067®Number=0000000000162784&sum=100022 [09:37:52]OFD Sender: Processing packet 15241 [packets to send 8, broken 7] [09:37:52]ProducePacketName [09:37:52]name=ofd_packets/00015241 [09:37:52]OFD Sender: To server: pG, [09:37:52]CommunicateWithHost lk.salyk.kg:30040 [09:37:52]ConnectInit lk.salyk.kg [09:37:52]written 0, free lines is 4095 [09:37:52]Connected sock=10 [09:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 96 B3 07 01 EA 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 89 3B 00 00 35 04 06 00 B8 30 E8 03 1F 03 ED 66 4E 67 23 5A EA 07 [09:37:52]Write to MH i2c: 01 00 00 06 1C 22 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 E2 0C 17 [09:37:52]RasterBufferAndPrint [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]written 0, free lines is 3303 [09:37:52]MH_Cut [09:37:52]Write to MH i2c: D1 01 00 0D 1C 01 FB [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 01 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 01 00 0D 1C 00 FA [09:37:52]Write to MH i2c: 01 00 00 0E 1C 2A [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 CA 91 47 00 67 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 89 3B 00 00 F4 03 04 00 CD 02 C8 66 B6 04 01 00 00 BB E3 06 E8 DD 11 EA FD [09:37:52]CommunicateWithHost err = 0 [09:37:52]CheckOFDResponse [09:37:52]1017 (14) - 77093643461234 [09:37:52]1041 (16) - 0000000002094529 [09:37:52]1040 (4) - 15241 [09:37:52]1012 (4) - 23.08.2024 03:32 [09:37:52]1206 (1) - 0 [09:37:52]OFD Sender: Remove packet 15241 [09:37:52]ProducePacketName [09:37:52]name=ofd_packets/00015241 [09:37:52]NVStorageDeleteData [09:37:53]OFD Sender: No OFD packet to send [09:37:53]*** Cut start [09:37:53]*** Partial cut [09:37:53]*** CUTSNS_PIN = 1 [09:37:53]*** CUTSNS_PIN = 0 [09:37:53]*** Brake cut motor [09:37:54]Read from MH i2c: 01 [09:37:54]MH_I2C_Read... [09:37:54]*** Stop cut motor [09:37:54]*** Cut end [09:37:54]Read from MH i2c: 01 07 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: 01 07 00 0E 1C 00 00 00 00 00 FF 0F 3F [09:37:54]process_action close_receipt done [09:37:54]requested_data is exist [09:37:54]produce_requested_data [09:37:54]requested_item fm.sn is exist - process it [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 11 00 00 [09:37:54]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 17 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 17 00 0F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F7 [09:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:37:54]wFMCommunicate OK [09:37:54]requested_item fd.num is exist - process it [09:37:54]SAM_PROTO_GetFieldsCounters [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 13 00 00 [09:37:54]Write to MH i2c: E2 08 00 10 1C 80 13 00 00 00 00 00 00 A8 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 62 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 62 00 10 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 89 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [09:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 89 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:54]wFMCommunicate OK [09:37:54]SAM_PROTO_GetFieldsCounters done [09:37:54]requested_item shift.num is exist - process it [09:37:54]requested_item shift.opened is exist - process it [09:37:54]req_shift_opened [09:37:54]FM_GetShiftState [09:37:54]SAM_PROTO_GetShiftState [09:37:54]wFMCommunicate request_size=4 [09:37:54]MH_SAM_APDU [09:37:54]CAPDU: 80 13 01 00 [09:37:54]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:54]Read from MH i2c: E2 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 0E 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 6E [09:37:54]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:37:54]wFMCommunicate OK [09:37:54]SAM_PROTO_GetShiftState done [09:37:54]FM_GetShiftState done [09:37:54]req_shift_opened done [09:37:54]requested_item shift.open_date is exist - process it [09:37:54]req_shift_open_date [09:37:54]req_shift_open_date done [09:37:54]produce_requested_data done [09:37:54]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15241,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:37:54]process_action_free close_receipt [09:37:54]json_value_free [09:37:54]json_value_free done [09:37:54]process_json_proto returns [09:37:54]Send response to host [09:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15241,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:37:54]free response buf [09:37:54]execute_script done [09:37:54]execute_script returns [09:37:54]free content buf [09:37:54]Sock 9.Close socket [09:37:54]Sock 9.Thread stoped [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:25]accept exits with 8 [09:39:25]New connection [09:39:25]New thread 3066944868 created [09:39:25]Thread 3066801508 joined [09:39:25]Waiting for new connection... [09:39:25] Sock 8.Parse request [09:39:25]Sock 8.Check first char [09:39:25]Sock 8.First char is OK [09:39:25]request: POST /json_proto HTTP/1.0 [09:39:25]Method: POST [09:39:25]URL: /json_proto [09:39:25]Method is POST - this is cgi request [09:39:25]url: /json_proto [09:39:25]query_string will be loaded in cgi processing [09:39:25]execute_cgi json_proto POST (null) [09:39:25]execute_cgi path=json_proto method=POST [09:39:25]POST find Content-Length [09:39:25]Host: 172.17.44.4:8080 [09:39:25]Content-Length: 801 [09:39:25]Content-Type: application/json [09:39:25] [09:39:25]POST finish read [09:39:25]Found Content-Length = 801 [09:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:25]execute_script... [09:39:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:25]POST & json_proto [09:39:25]process_json_proto [09:39:25]json parsed OK: [09:39:25]protocol is kg_v1.0 [09:39:25]action value=close_receipt [09:39:25]process_action close_receipt [09:39:25]cmd_close_receipt [09:39:25]MH_GetDate [09:39:25]Write to MH i2c: F0 00 00 12 1C 1D [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 09 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: F0 09 00 12 1C 00 D1 58 C8 66 0F 81 47 66 BA [09:39:25]GetLastDocTimeStamp 1724405874 [09:39:25]current date 1724405969 [09:39:25]FM_GetShiftState [09:39:25]SAM_PROTO_GetShiftState [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 13 01 00 [09:39:25]Write to MH i2c: E2 08 00 13 1C 80 13 01 00 00 00 00 00 AC [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 13 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 70 [09:39:25]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_GetShiftState done [09:39:25]FM_GetShiftState done [09:39:25]opened in 1724372406 [09:39:25]opened+sec_in_day 1724458806 [09:39:25]quantity*price = 50036 [09:39:25]sum+1 = 50037 [09:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 36 23.08.2024 09:39 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15242 ФПД: 91399737594307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093929&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15242&fm=91399737594307&tin=02508201610067®Number=0000000000162784&sum=50036 [09:39:26]StoreToDocumentArchive [09:39:26]shift 102 fd 15242 [09:39:26]save to /storage/0102/doc_00015242 [09:39:26]save last doc name /storage/0102/doc_00015242 to /storage/kkm_last_doc_name [09:39:26]save OK [09:39:26]Clear old archive folders... [09:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:26]tlvbuf is B6EA64D0 [09:39:26]SAM_PROTO_ClearQueue [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 09 00 00 [09:39:26]Write to MH i2c: E2 08 00 20 1C 80 09 00 00 00 00 00 00 AE [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [09:39:26]RAPDU: 90 00 [09:39:26]wFMCommunicate OK [09:39:26]SAM_PROTO_ClearQueue done [09:39:26]KKMCreateOFDPacket [09:39:26]OFDProtocolAddRootSTLVToBuf [09:39:26]FM_MakeSignedData [09:39:26]FM_MakeSignedData [09:39:26]SAM_PROTO_SignData [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 0D 01 02 [09:39:26]Write to MH i2c: E2 08 00 21 1C 80 0D 01 02 00 00 00 00 B6 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [09:39:26]RAPDU: 90 00 [09:39:26]wFMCommunicate OK [09:39:26]wFMCommunicate request_size=255 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 D1 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8A 3B 00 00 35 04 06 00 53 [09:39:26]Write to MH i2c: E2 02 01 22 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 D1 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8A 3B 00 00 35 04 06 00 53 00 00 77 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [09:39:26]RAPDU: 90 00 [09:39:26]wFMCommunicate OK [09:39:26]wFMCommunicate request_size=10 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 0D 02 02 05 20 A8 E4 51 C3 [09:39:26]Write to MH i2c: E2 0D 00 23 1C 80 0D 02 02 05 00 20 A8 E4 51 C3 00 00 83 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [09:39:26]RAPDU: 90 00 [09:39:26]wFMCommunicate OK [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 0D 03 02 [09:39:26]Write to MH i2c: E2 08 00 24 1C 80 0D 03 02 00 00 00 00 BB [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 0B 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 0B 00 24 1C 00 1E 69 83 F5 76 EC 63 2D 90 00 AD [09:39:26]RAPDU: 1E 69 83 F5 76 EC 63 2D 90 00 [09:39:26]wFMCommunicate OK [09:39:26]SAM_PROTO_SignData done [09:39:26]FM_MakeSignedData done [09:39:26]CreateOFDProtocolMessage [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 11 00 00 [09:39:26]Write to MH i2c: E2 08 00 25 1C 80 11 00 00 00 00 00 00 BB [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 17 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 17 00 25 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 0D [09:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:39:26]wFMCommunicate OK [09:39:26]CreateOFDProtocolMessage done [09:39:26]OFDSenderStorePacket 15242 [09:39:26]StoreOFDPacket docnum=15242 [09:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 ED DA 07 01 74 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 D1 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8A 3B 00 00 35 04 06 00 53 20 A8 E4 51 C3 1E 69 83 F5 76 EC 63 2D [09:39:26]CheckFolder [09:39:26]dirname=/storage/ofd_packets [09:39:26]CheckFolder done [09:39:26]ProducePacketName [09:39:26]name=ofd_packets/00015242 [09:39:26]NVStorageSaveData ofd_packets/00015242 [09:39:26]File name is /storage/ofd_packets/00015242 [09:39:26]Write 301 bytes [09:39:26]NVStorageSaveData done [09:39:26]OFDSenderStorePacket done [09:39:26]KKMCreateOFDPacket done [09:39:26]NVStorageSaveData kkm_last_timestamp [09:39:26]File name is /storage/kkm_last_timestamp [09:39:26]Write 4 bytes [09:39:26]NVStorageSaveData done [09:39:26]ExternCall_PrintAddStr [09:39:26]wPrintStart [09:39:26]Write to MH i2c: 01 00 00 26 1C 42 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 07 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: 01 07 00 26 1C 00 00 00 00 00 FF 0F 57 [09:39:26]RasterBufferAndPrint [09:39:26]line Счет N : (1)2078167 [09:39:26]line ИНН: 02508201610067 [09:39:26]line Контрольно-Кассовый Чек [09:39:26]line ПРОДАЖА [09:39:26]line ТРК (МРК, ГНК) : 43 [09:39:26]line Товар: 2710124130 [09:39:26]line Аи-92-К-4 [09:39:26]line 7.380 * 67.80 [09:39:26]line = 500.36 [09:39:26]line НДС 12% НСП 1% [09:39:26]line > о реализуемом товаре [09:39:26]line ИТОГО: 500.36 [09:39:26]line НСП 1% : 4.43 [09:39:26]line НДС 12% : 53.14 [09:39:26]line Наличными: 0.00 [09:39:26]line Безнал.: 500.36 [09:39:26]line Место: АЗС № 135 "Партнер Нефть" [09:39:26]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:39:26]line СНО: Общий режим [09:39:26]line Чек 36 23.08.2024 09:39 [09:39:26]line Смена: 102 ФФД: 1.0 [09:39:26]line ЗНМ: 0300000144 [09:39:26]line РНМ: 0000000000162784 [09:39:26]line Версия ККМ: v1.0 [09:39:26]line Платежная система: O! деньги [09:39:26]line ФМ: 0000000002094529 [09:39:26]line ФД: 15242 [09:39:26]line ФПД: 91399737594307 [09:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093929&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15242&fm=91399737594307&tin=02508201610067®Number=0000000000162784&sum=50036 [09:39:27]OFD Sender: Processing packet 15242 [packets to send 8, broken 7] [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00015242 [09:39:27]OFD Sender: To server: pG, [09:39:27]CommunicateWithHost lk.salyk.kg:30040 [09:39:27]ConnectInit lk.salyk.kg [09:39:27]written 0, free lines is 4095 [09:39:27]Connected sock=10 [09:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 ED DA 07 01 74 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 D1 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8A 3B 00 00 35 04 06 00 53 20 A8 E4 51 C3 1E 69 83 F5 76 EC 63 2D [09:39:27]Write to MH i2c: 01 00 00 50 1C 6C [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 07 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: 01 07 00 50 1C 00 00 00 00 00 E2 0C 61 [09:39:27]RasterBufferAndPrint [09:39:27]line [09:39:27]line [09:39:27]line [09:39:27]line [09:39:27]line [09:39:27]written 0, free lines is 3302 [09:39:27]MH_Cut [09:39:27]Write to MH i2c: D1 01 00 57 1C 01 45 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: D1 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: D1 01 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: D1 01 00 57 1C 00 44 [09:39:27]Write to MH i2c: 01 00 00 58 1C 74 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 EE 7C 47 00 D2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8A 3B 00 00 F4 03 04 00 2C 03 C8 66 B6 04 01 00 00 CD 70 D3 EC 39 3C 37 99 [09:39:27]CommunicateWithHost err = 0 [09:39:27]CheckOFDResponse [09:39:27]1017 (14) - 77093643461234 [09:39:27]1041 (16) - 0000000002094529 [09:39:27]1040 (4) - 15242 [09:39:27]1012 (4) - 23.08.2024 03:34 [09:39:27]1206 (1) - 0 [09:39:27]OFD Sender: Remove packet 15242 [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00015242 [09:39:27]NVStorageDeleteData [09:39:28]OFD Sender: No OFD packet to send [09:39:28]*** Cut start [09:39:28]*** Partial cut [09:39:28]*** CUTSNS_PIN = 1 [09:39:28]*** CUTSNS_PIN = 0 [09:39:28]*** Brake cut motor [09:39:29]Read from MH i2c: 01 [09:39:29]MH_I2C_Read... [09:39:29]*** Stop cut motor [09:39:29]*** Cut end [09:39:29]Read from MH i2c: 01 07 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 58 1C 00 00 00 00 00 FF 0F 89 [09:39:29]process_action close_receipt done [09:39:29]requested_data is exist [09:39:29]produce_requested_data [09:39:29]requested_item fm.sn is exist - process it [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 11 00 00 [09:39:29]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 41 [09:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:39:29]wFMCommunicate OK [09:39:29]requested_item fd.num is exist - process it [09:39:29]SAM_PROTO_GetFieldsCounters [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 13 00 00 [09:39:29]Write to MH i2c: E2 08 00 5A 1C 80 13 00 00 00 00 00 00 F2 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 62 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 62 00 5A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [09:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:29]wFMCommunicate OK [09:39:29]SAM_PROTO_GetFieldsCounters done [09:39:29]requested_item shift.num is exist - process it [09:39:29]requested_item shift.opened is exist - process it [09:39:29]req_shift_opened [09:39:29]FM_GetShiftState [09:39:29]SAM_PROTO_GetShiftState [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 13 01 00 [09:39:29]Write to MH i2c: E2 08 00 5B 1C 80 13 01 00 00 00 00 00 F4 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0E 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0E 00 5B 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B8 [09:39:29]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:39:29]wFMCommunicate OK [09:39:29]SAM_PROTO_GetShiftState done [09:39:29]FM_GetShiftState done [09:39:29]req_shift_opened done [09:39:29]requested_item shift.open_date is exist - process it [09:39:29]req_shift_open_date [09:39:29]req_shift_open_date done [09:39:29]produce_requested_data done [09:39:29]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15242,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:39:29]process_action_free close_receipt [09:39:29]json_value_free [09:39:29]json_value_free done [09:39:29]process_json_proto returns [09:39:29]Send response to host [09:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15242,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:39:29]free response buf [09:39:29]execute_script done [09:39:29]execute_script returns [09:39:29]free content buf [09:39:29]Sock 8.Close socket [09:39:29]Sock 8.Thread stoped [09:39:32]accept exits with 9 [09:39:32]New connection [09:39:32]New thread 3066801508 created [09:39:32]Thread 3066944868 joined [09:39:32]Waiting for new connection... [09:39:32] Sock 9.Parse request [09:39:32]Sock 9.Check first char [09:39:32]Sock 9.First char is OK [09:39:32]request: POST /json_proto HTTP/1.0 [09:39:32]Method: POST [09:39:32]URL: /json_proto [09:39:32]Method is POST - this is cgi request [09:39:32]url: /json_proto [09:39:32]query_string will be loaded in cgi processing [09:39:32]execute_cgi json_proto POST (null) [09:39:32]execute_cgi path=json_proto method=POST [09:39:32]POST find Content-Length [09:39:32]Host: 172.17.44.4:8080 [09:39:32]Content-Length: 790 [09:39:32]Content-Type: application/json [09:39:32] [09:39:32]POST finish read [09:39:32]Found Content-Length = 790 [09:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:32]execute_script... [09:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:32]POST & json_proto [09:39:32]process_json_proto [09:39:32]json parsed OK: [09:39:32]protocol is kg_v1.0 [09:39:32]action value=close_receipt [09:39:32]process_action close_receipt [09:39:32]cmd_close_receipt [09:39:32]MH_GetDate [09:39:32]Write to MH i2c: F0 00 00 5C 1C 67 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: F0 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: F0 09 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: F0 09 00 5C 1C 00 D8 58 C8 66 0F 81 47 66 0B [09:39:32]GetLastDocTimeStamp 1724405969 [09:39:32]current date 1724405976 [09:39:32]FM_GetShiftState [09:39:32]SAM_PROTO_GetShiftState [09:39:32]wFMCommunicate request_size=4 [09:39:32]MH_SAM_APDU [09:39:32]CAPDU: 80 13 01 00 [09:39:32]Write to MH i2c: E2 08 00 5D 1C 80 13 01 00 00 00 00 00 F6 [09:39:32]Write i2c OK [09:39:32]MH_I2C_Read... [09:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:32]Read from MH i2c: E2 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 0E 00 [09:39:32]MH_I2C_Read... [09:39:32]Read from MH i2c: E2 0E 00 5D 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 BA [09:39:32]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:39:32]wFMCommunicate OK [09:39:32]SAM_PROTO_GetShiftState done [09:39:32]FM_GetShiftState done [09:39:32]opened in 1724372406 [09:39:32]opened+sec_in_day 1724458806 [09:39:32]quantity*price = 0 [09:39:32]sum+1 = 1 [09:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 37 23.08.2024 09:39 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15243 ФПД: 48630769893801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093936&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15243&fm=48630769893801&tin=02508201610067®Number=0000000000162784&sum=0 [09:39:33]StoreToDocumentArchive [09:39:33]shift 102 fd 15243 [09:39:33]save to /storage/0102/doc_00015243 [09:39:33]save last doc name /storage/0102/doc_00015243 to /storage/kkm_last_doc_name [09:39:33]save OK [09:39:33]Clear old archive folders... [09:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:33]tlvbuf is 0047EB20 [09:39:33]SAM_PROTO_ClearQueue [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 09 00 00 [09:39:33]Write to MH i2c: E2 08 00 6A 1C 80 09 00 00 00 00 00 00 F8 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_ClearQueue done [09:39:33]KKMCreateOFDPacket [09:39:33]OFDProtocolAddRootSTLVToBuf [09:39:33]FM_MakeSignedData [09:39:33]FM_MakeSignedData [09:39:33]SAM_PROTO_SignData [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 01 02 [09:39:33]Write to MH i2c: E2 08 00 6B 1C 80 0D 01 02 00 00 00 00 00 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]wFMCommunicate request_size=255 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D8 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8B 3B 00 00 35 04 06 00 2C 3A BB C3 [09:39:33]Write to MH i2c: E2 02 01 6C 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D8 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8B 3B 00 00 35 04 06 00 2C 3A BB C3 00 00 29 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]wFMCommunicate request_size=7 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 02 02 02 C1 A9 [09:39:33]Write to MH i2c: E2 0A 00 6D 1C 80 0D 02 02 02 00 C1 A9 00 00 71 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [09:39:34]RAPDU: 90 00 [09:39:34]wFMCommunicate OK [09:39:34]wFMCommunicate request_size=4 [09:39:34]MH_SAM_APDU [09:39:34]CAPDU: 80 0D 03 02 [09:39:34]Write to MH i2c: E2 08 00 6E 1C 80 0D 03 02 00 00 00 00 05 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:34]Read from MH i2c: E2 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: E2 0B 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: E2 0B 00 6E 1C 00 51 C4 50 19 77 62 78 D7 90 00 AC [09:39:34]RAPDU: 51 C4 50 19 77 62 78 D7 90 00 [09:39:34]wFMCommunicate OK [09:39:34]SAM_PROTO_SignData done [09:39:34]FM_MakeSignedData done [09:39:34]CreateOFDProtocolMessage [09:39:34]wFMCommunicate request_size=4 [09:39:34]MH_SAM_APDU [09:39:34]CAPDU: 80 11 00 00 [09:39:34]Write to MH i2c: E2 08 00 6F 1C 80 11 00 00 00 00 00 00 05 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:34]Read from MH i2c: E2 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: E2 17 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: E2 17 00 6F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 57 [09:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:39:34]wFMCommunicate OK [09:39:34]CreateOFDProtocolMessage done [09:39:34]OFDSenderStorePacket 15243 [09:39:34]StoreOFDPacket docnum=15243 [09:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 21 9D 04 01 0D D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D8 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8B 3B 00 00 35 04 06 00 2C 3A BB C3 C1 A9 51 C4 50 19 77 62 78 D7 [09:39:34]CheckFolder [09:39:34]dirname=/storage/ofd_packets [09:39:34]CheckFolder done [09:39:34]ProducePacketName [09:39:34]name=ofd_packets/00015243 [09:39:34]NVStorageSaveData ofd_packets/00015243 [09:39:34]File name is /storage/ofd_packets/00015243 [09:39:34]Write 298 bytes [09:39:34]NVStorageSaveData done [09:39:34]OFDSenderStorePacket done [09:39:34]KKMCreateOFDPacket done [09:39:34]NVStorageSaveData kkm_last_timestamp [09:39:34]File name is /storage/kkm_last_timestamp [09:39:34]Write 4 bytes [09:39:34]NVStorageSaveData done [09:39:34]ExternCall_PrintAddStr [09:39:34]wPrintStart [09:39:34]Write to MH i2c: 01 00 00 70 1C 8C [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 70 1C 00 00 00 00 00 FF 0F A1 [09:39:34]RasterBufferAndPrint [09:39:34]line Счет N : (1)2078166 [09:39:34]line ИНН: 02508201610067 [09:39:34]line Контрольно-Кассовый Чек [09:39:34]line ПРОДАЖА [09:39:34]line ТРК (МРК, ГНК) : 21 [09:39:34]line Товар: 2710194210 [09:39:34]line ДТ-К-5 [09:39:34]line 10.000 * 0.00 [09:39:34]line = 0.00 [09:39:34]line НДС 12% НСП 1% [09:39:34]line > о реализуемом товаре [09:39:34]line ИТОГО: 0.00 [09:39:34]line НСП 1% : 0.00 [09:39:34]line НДС 12% : 0.00 [09:39:34]line Наличными: 0.00 [09:39:34]line Безнал.: 0.00 [09:39:34]line Место: АЗС № 135 "Партнер Нефть" [09:39:34]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:39:34]line СНО: Общий режим [09:39:34]line Чек 37 23.08.2024 09:39 [09:39:34]line Смена: 102 ФФД: 1.0 [09:39:34]line ЗНМ: 0300000144 [09:39:34]line РНМ: 0000000000162784 [09:39:34]line Версия ККМ: v1.0 [09:39:34]line Талоны: Топливная Карта [09:39:34]line 92875 [09:39:34]line ФМ: 0000000002094529 [09:39:34]line ФД: 15243 [09:39:34]line ФПД: 48630769893801 [09:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093936&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15243&fm=48630769893801&tin=02508201610067®Number=0000000000162784&sum=0 [09:39:34]written 0, free lines is 4095 [09:39:34]OFD Sender: Processing packet 15243 [packets to send 8, broken 7] [09:39:34]ProducePacketName [09:39:34]name=ofd_packets/00015243 [09:39:34]OFD Sender: To server: pG, [09:39:34]CommunicateWithHost lk.salyk.kg:30040 [09:39:34]ConnectInit lk.salyk.kg [09:39:34]Connected sock=10 [09:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 21 9D 04 01 0D D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D8 58 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8B 3B 00 00 35 04 06 00 2C 3A BB C3 C1 A9 51 C4 50 19 77 62 78 D7 [09:39:34]Write to MH i2c: 01 00 00 9A 1C B6 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 DC 0C A5 [09:39:34]RasterBufferAndPrint [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]written 0, free lines is 3304 [09:39:34]MH_Cut [09:39:34]Write to MH i2c: D1 01 00 A1 1C 01 8F [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 01 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 01 00 A1 1C 00 8E [09:39:34]Write to MH i2c: 01 00 00 A2 1C BE [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 FD 90 47 00 41 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8B 3B 00 00 F4 03 04 00 33 03 C8 66 B6 04 01 00 00 DE 6F 03 B1 D7 72 8D D0 [09:39:34]CommunicateWithHost err = 0 [09:39:34]CheckOFDResponse [09:39:34]1017 (14) - 77093643461234 [09:39:34]1041 (16) - 0000000002094529 [09:39:34]1040 (4) - 15243 [09:39:34]1012 (4) - 23.08.2024 03:34 [09:39:34]1206 (1) - 0 [09:39:34]OFD Sender: Remove packet 15243 [09:39:34]ProducePacketName [09:39:34]name=ofd_packets/00015243 [09:39:34]NVStorageDeleteData [09:39:35]OFD Sender: No OFD packet to send [09:39:35]*** Cut start [09:39:35]*** Partial cut [09:39:35]*** CUTSNS_PIN = 1 [09:39:35]*** CUTSNS_PIN = 0 [09:39:35]*** Brake cut motor [09:39:35]Read from MH i2c: 01 [09:39:35]MH_I2C_Read... [09:39:35]*** Stop cut motor [09:39:35]*** Cut end [09:39:35]Read from MH i2c: 01 07 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: 01 07 00 A2 1C 00 00 00 00 00 FF 0F D3 [09:39:35]process_action close_receipt done [09:39:35]requested_data is exist [09:39:35]produce_requested_data [09:39:35]requested_item fm.sn is exist - process it [09:39:35]wFMCommunicate request_size=4 [09:39:35]MH_SAM_APDU [09:39:35]CAPDU: 80 11 00 00 [09:39:35]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [09:39:35]Write i2c OK [09:39:35]MH_I2C_Read... [09:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:35]Read from MH i2c: E2 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 17 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 8B [09:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:39:35]wFMCommunicate OK [09:39:35]requested_item fd.num is exist - process it [09:39:35]SAM_PROTO_GetFieldsCounters [09:39:35]wFMCommunicate request_size=4 [09:39:35]MH_SAM_APDU [09:39:35]CAPDU: 80 13 00 00 [09:39:35]Write to MH i2c: E2 08 00 A4 1C 80 13 00 00 00 00 00 00 3C [09:39:35]Write i2c OK [09:39:35]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 62 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 62 00 A4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [09:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetFieldsCounters done [09:39:36]requested_item shift.num is exist - process it [09:39:36]requested_item shift.opened is exist - process it [09:39:36]req_shift_opened [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 A5 1C 80 13 01 00 00 00 00 00 3E [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 A5 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 02 [09:39:36]RAPDU: 09 00 01 B6 D5 C7 66 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]req_shift_opened done [09:39:36]requested_item shift.open_date is exist - process it [09:39:36]req_shift_open_date [09:39:36]req_shift_open_date done [09:39:36]produce_requested_data done [09:39:36]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15243,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:39:36]process_action_free close_receipt [09:39:36]json_value_free [09:39:36]json_value_free done [09:39:36]process_json_proto returns [09:39:36]Send response to host [09:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15243,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:39:36]free response buf [09:39:36]execute_script done [09:39:36]execute_script returns [09:39:36]free content buf [09:39:36]Sock 9.Close socket [09:39:36]Sock 9.Thread stoped [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:38]accept exits with 8 [09:40:38]New connection [09:40:38]New thread 3066944868 created [09:40:38]Thread 3066801508 joined [09:40:38]Waiting for new connection... [09:40:38] Sock 8.Parse request [09:40:38]Sock 8.Check first char [09:40:38]Sock 8.First char is OK [09:40:38]request: POST /json_proto HTTP/1.0 [09:40:38]Method: POST [09:40:38]URL: /json_proto [09:40:38]Method is POST - this is cgi request [09:40:38]url: /json_proto [09:40:38]query_string will be loaded in cgi processing [09:40:38]execute_cgi json_proto POST (null) [09:40:38]execute_cgi path=json_proto method=POST [09:40:38]POST find Content-Length [09:40:38]Host: 172.17.44.4:8080 [09:40:38]Content-Length: 801 [09:40:38]Content-Type: application/json [09:40:38] [09:40:38]POST finish read [09:40:38]Found Content-Length = 801 [09:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:38]execute_script... [09:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:38]POST & json_proto [09:40:38]process_json_proto [09:40:38]json parsed OK: [09:40:38]protocol is kg_v1.0 [09:40:38]action value=close_receipt [09:40:38]process_action close_receipt [09:40:38]cmd_close_receipt [09:40:38]MH_GetDate [09:40:38]Write to MH i2c: F0 00 00 A6 1C B1 [09:40:38]Write i2c OK [09:40:38]MH_I2C_Read... [09:40:38]Read from MH i2c: F0 [09:40:38]MH_I2C_Read... [09:40:38]Read from MH i2c: F0 09 00 [09:40:38]MH_I2C_Read... [09:40:38]Read from MH i2c: F0 09 00 A6 1C 00 1A 59 C8 66 0F 81 47 66 98 [09:40:38]GetLastDocTimeStamp 1724405976 [09:40:38]current date 1724406042 [09:40:38]FM_GetShiftState [09:40:38]SAM_PROTO_GetShiftState [09:40:38]wFMCommunicate request_size=4 [09:40:38]MH_SAM_APDU [09:40:38]CAPDU: 80 13 01 00 [09:40:38]Write to MH i2c: E2 08 00 A7 1C 80 13 01 00 00 00 00 00 40 [09:40:38]Write i2c OK [09:40:38]MH_I2C_Read... [09:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:38]Read from MH i2c: E2 [09:40:38]MH_I2C_Read... [09:40:38]Read from MH i2c: E2 0E 00 [09:40:38]MH_I2C_Read... [09:40:38]Read from MH i2c: E2 0E 00 A7 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 04 [09:40:38]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:40:38]wFMCommunicate OK [09:40:38]SAM_PROTO_GetShiftState done [09:40:38]FM_GetShiftState done [09:40:38]opened in 1724372406 [09:40:38]opened+sec_in_day 1724458806 [09:40:38]quantity*price = 60003 [09:40:38]sum+1 = 60004 [09:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 38 23.08.2024 09:40 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15244 ФПД: 230210386628064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094042&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15244&fm=230210386628064&tin=02508201610067®Number=0000000000162784&sum=60003 [09:40:39]StoreToDocumentArchive [09:40:39]shift 102 fd 15244 [09:40:39]save to /storage/0102/doc_00015244 [09:40:39]save last doc name /storage/0102/doc_00015244 to /storage/kkm_last_doc_name [09:40:39]save OK [09:40:39]Clear old archive folders... [09:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:39]tlvbuf is 00448870 [09:40:39]SAM_PROTO_ClearQueue [09:40:39]wFMCommunicate request_size=4 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 09 00 00 [09:40:39]Write to MH i2c: E2 08 00 B4 1C 80 09 00 00 00 00 00 00 42 [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [09:40:39]RAPDU: 90 00 [09:40:39]wFMCommunicate OK [09:40:39]SAM_PROTO_ClearQueue done [09:40:39]KKMCreateOFDPacket [09:40:39]OFDProtocolAddRootSTLVToBuf [09:40:39]FM_MakeSignedData [09:40:39]FM_MakeSignedData [09:40:39]SAM_PROTO_SignData [09:40:39]wFMCommunicate request_size=4 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 0D 01 02 [09:40:39]Write to MH i2c: E2 08 00 B5 1C 80 0D 01 02 00 00 00 00 4A [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [09:40:39]RAPDU: 90 00 [09:40:39]wFMCommunicate OK [09:40:39]wFMCommunicate request_size=255 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1A 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8C 3B 00 00 35 04 06 00 D1 [09:40:39]Write to MH i2c: E2 02 01 B6 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1A 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8C 3B 00 00 35 04 06 00 D1 00 00 5C [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [09:40:39]RAPDU: 90 00 [09:40:39]wFMCommunicate OK [09:40:39]wFMCommunicate request_size=10 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 0D 02 02 05 60 08 51 8D E0 [09:40:39]Write to MH i2c: E2 0D 00 B7 1C 80 0D 02 02 05 00 60 08 51 8D E0 00 00 7D [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [09:40:39]RAPDU: 90 00 [09:40:39]wFMCommunicate OK [09:40:39]wFMCommunicate request_size=4 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 0D 03 02 [09:40:39]Write to MH i2c: E2 08 00 B8 1C 80 0D 03 02 00 00 00 00 4F [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 0B 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 0B 00 B8 1C 00 B0 A8 24 65 47 9D 1D 34 90 00 66 [09:40:39]RAPDU: B0 A8 24 65 47 9D 1D 34 90 00 [09:40:39]wFMCommunicate OK [09:40:39]SAM_PROTO_SignData done [09:40:39]FM_MakeSignedData done [09:40:39]CreateOFDProtocolMessage [09:40:39]wFMCommunicate request_size=4 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 11 00 00 [09:40:39]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 17 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A1 [09:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:40:40]wFMCommunicate OK [09:40:40]CreateOFDProtocolMessage done [09:40:40]OFDSenderStorePacket 15244 [09:40:40]StoreOFDPacket docnum=15244 [09:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 43 99 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1A 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8C 3B 00 00 35 04 06 00 D1 60 08 51 8D E0 B0 A8 24 65 47 9D 1D 34 [09:40:40]CheckFolder [09:40:40]dirname=/storage/ofd_packets [09:40:40]CheckFolder done [09:40:40]ProducePacketName [09:40:40]name=ofd_packets/00015244 [09:40:40]NVStorageSaveData ofd_packets/00015244 [09:40:40]File name is /storage/ofd_packets/00015244 [09:40:40]Write 301 bytes [09:40:40]NVStorageSaveData done [09:40:40]OFDSenderStorePacket done [09:40:40]KKMCreateOFDPacket done [09:40:40]NVStorageSaveData kkm_last_timestamp [09:40:40]File name is /storage/kkm_last_timestamp [09:40:40]Write 4 bytes [09:40:40]NVStorageSaveData done [09:40:40]ExternCall_PrintAddStr [09:40:40]wPrintStart [09:40:40]Write to MH i2c: 01 00 00 BA 1C D6 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 FF 0F EB [09:40:40]RasterBufferAndPrint [09:40:40]line Счет N : (1)2078168 [09:40:40]line ИНН: 02508201610067 [09:40:40]line Контрольно-Кассовый Чек [09:40:40]line ПРОДАЖА [09:40:40]line ТРК (МРК, ГНК) : 33 [09:40:40]line Товар: 2710124130 [09:40:40]line Аи-92-К-4 [09:40:40]line 8.850 * 67.80 [09:40:40]line = 600.03 [09:40:40]line НДС 12% НСП 1% [09:40:40]line > о реализуемом товаре [09:40:40]line ИТОГО: 600.03 [09:40:40]line НСП 1% : 5.31 [09:40:40]line НДС 12% : 63.72 [09:40:40]line Наличными: 0.00 [09:40:40]line Безнал.: 600.03 [09:40:40]line Место: АЗС № 135 "Партнер Нефть" [09:40:40]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:40:40]line СНО: Общий режим [09:40:40]line Чек 38 23.08.2024 09:40 [09:40:40]line Смена: 102 ФФД: 1.0 [09:40:40]line ЗНМ: 0300000144 [09:40:40]line РНМ: 0000000000162784 [09:40:40]line Версия ККМ: v1.0 [09:40:40]line Платежная система: O! деньги [09:40:40]line ФМ: 0000000002094529 [09:40:40]line ФД: 15244 [09:40:40]line ФПД: 230210386628064 [09:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094042&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15244&fm=230210386628064&tin=02508201610067®Number=0000000000162784&sum=60003 [09:40:40]OFD Sender: Processing packet 15244 [packets to send 8, broken 7] [09:40:40]ProducePacketName [09:40:40]name=ofd_packets/00015244 [09:40:40]OFD Sender: To server: pG, [09:40:40]CommunicateWithHost lk.salyk.kg:30040 [09:40:40]ConnectInit lk.salyk.kg [09:40:40]written 0, free lines is 4095 [09:40:40]Connected sock=10 [09:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 43 99 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1A 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8C 3B 00 00 35 04 06 00 D1 60 08 51 8D E0 B0 A8 24 65 47 9D 1D 34 [09:40:40]Write to MH i2c: 01 00 00 E4 1C 00 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 E4 1C 00 00 00 00 00 F0 0C 03 [09:40:40]RasterBufferAndPrint [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]written 0, free lines is 3318 [09:40:40]MH_Cut [09:40:40]Write to MH i2c: D1 01 00 EB 1C 01 D9 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 01 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 01 00 EB 1C 00 D8 [09:40:40]Write to MH i2c: 01 00 00 EC 1C 08 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 BB 51 47 00 DD 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 32 30 39 34 35 32 39 10 04 04 00 8C 3B 00 00 F4 03 04 00 75 03 C8 66 B6 04 01 00 00 FE 11 83 E7 B7 34 14 F1 [09:40:40]CommunicateWithHost err = 0 [09:40:40]CheckOFDResponse [09:40:40]1017 (14) - 77093643461234 [09:40:40]1041 (16) - 0000000002094529 [09:40:40]1040 (4) - 15244 [09:40:40]1012 (4) - 23.08.2024 03:35 [09:40:40]1206 (1) - 0 [09:40:40]OFD Sender: Remove packet 15244 [09:40:40]ProducePacketName [09:40:40]name=ofd_packets/00015244 [09:40:40]NVStorageDeleteData [09:40:41]OFD Sender: No OFD packet to send [09:40:41]*** Cut start [09:40:41]*** Partial cut [09:40:41]*** CUTSNS_PIN = 1 [09:40:41]*** CUTSNS_PIN = 0 [09:40:41]*** Brake cut motor [09:40:42]Read from MH i2c: 01 [09:40:42]MH_I2C_Read... [09:40:42]*** Stop cut motor [09:40:42]*** Cut end [09:40:42]Read from MH i2c: 01 07 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 FF 0F 1D [09:40:42]process_action close_receipt done [09:40:42]requested_data is exist [09:40:42]produce_requested_data [09:40:42]requested_item fm.sn is exist - process it [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 11 00 00 [09:40:42]Write to MH i2c: E2 08 00 ED 1C 80 11 00 00 00 00 00 00 83 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 ED 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D5 [09:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:40:42]wFMCommunicate OK [09:40:42]requested_item fd.num is exist - process it [09:40:42]SAM_PROTO_GetFieldsCounters [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 13 00 00 [09:40:42]Write to MH i2c: E2 08 00 EE 1C 80 13 00 00 00 00 00 00 86 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 62 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 62 00 EE 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [09:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_GetFieldsCounters done [09:40:42]requested_item shift.num is exist - process it [09:40:42]requested_item shift.opened is exist - process it [09:40:42]req_shift_opened [09:40:42]FM_GetShiftState [09:40:42]SAM_PROTO_GetShiftState [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 13 01 00 [09:40:42]Write to MH i2c: E2 08 00 EF 1C 80 13 01 00 00 00 00 00 88 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0E 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0E 00 EF 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 4C [09:40:42]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_GetShiftState done [09:40:42]FM_GetShiftState done [09:40:42]req_shift_opened done [09:40:42]requested_item shift.open_date is exist - process it [09:40:42]req_shift_open_date [09:40:42]req_shift_open_date done [09:40:42]produce_requested_data done [09:40:42]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15244,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:40:42]process_action_free close_receipt [09:40:42]json_value_free [09:40:42]json_value_free done [09:40:42]process_json_proto returns [09:40:42]Send response to host [09:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15244,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:40:42]free response buf [09:40:42]execute_script done [09:40:42]execute_script returns [09:40:42]free content buf [09:40:42]Sock 8.Close socket [09:40:42]Sock 8.Thread stoped [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:33]accept exits with 9 [09:41:33]New connection [09:41:33]New thread 3066801508 created [09:41:33]Thread 3066944868 joined [09:41:33]Waiting for new connection... [09:41:33] Sock 9.Parse request [09:41:33]Sock 9.Check first char [09:41:33]Sock 9.First char is OK [09:41:33]request: POST /json_proto HTTP/1.0 [09:41:33]Method: POST [09:41:33]URL: /json_proto [09:41:33]Method is POST - this is cgi request [09:41:33]url: /json_proto [09:41:33]query_string will be loaded in cgi processing [09:41:33]execute_cgi json_proto POST (null) [09:41:33]execute_cgi path=json_proto method=POST [09:41:33]POST find Content-Length [09:41:33]Host: 172.17.44.4:8080 [09:41:33]Content-Length: 802 [09:41:33]Content-Type: application/json [09:41:33] [09:41:33]POST finish read [09:41:33]Found Content-Length = 802 [09:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:33]execute_script... [09:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:33]POST & json_proto [09:41:33]process_json_proto [09:41:33]json parsed OK: [09:41:33]protocol is kg_v1.0 [09:41:33]action value=close_receipt [09:41:33]process_action close_receipt [09:41:33]cmd_close_receipt [09:41:33]MH_GetDate [09:41:33]Write to MH i2c: F0 00 00 F0 1C FB [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: F0 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: F0 09 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: F0 09 00 F0 1C 00 51 59 C8 66 0F 81 47 66 19 [09:41:33]GetLastDocTimeStamp 1724406042 [09:41:33]current date 1724406097 [09:41:33]FM_GetShiftState [09:41:33]SAM_PROTO_GetShiftState [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 13 01 00 [09:41:33]Write to MH i2c: E2 08 00 F1 1C 80 13 01 00 00 00 00 00 8A [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 F1 1C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 4E [09:41:33]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:41:33]wFMCommunicate OK [09:41:33]SAM_PROTO_GetShiftState done [09:41:33]FM_GetShiftState done [09:41:33]opened in 1724372406 [09:41:33]opened+sec_in_day 1724458806 [09:41:33]quantity*price = 80004 [09:41:33]sum+1 = 80005 [09:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 39 23.08.2024 09:41 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15245 ФПД: 167117523994681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094137&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15245&fm=167117523994681&tin=02508201610067®Number=0000000000162784&sum=80004 [09:41:34]StoreToDocumentArchive [09:41:34]shift 102 fd 15245 [09:41:34]save to /storage/0102/doc_00015245 [09:41:34]save last doc name /storage/0102/doc_00015245 to /storage/kkm_last_doc_name [09:41:34]save OK [09:41:34]Clear old archive folders... [09:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:34]tlvbuf is 0047EBE0 [09:41:34]SAM_PROTO_ClearQueue [09:41:34]wFMCommunicate request_size=4 [09:41:34]MH_SAM_APDU [09:41:34]CAPDU: 80 09 00 00 [09:41:34]Write to MH i2c: E2 08 00 FE 1C 80 09 00 00 00 00 00 00 8C [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:34]Read from MH i2c: E2 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 03 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [09:41:34]RAPDU: 90 00 [09:41:34]wFMCommunicate OK [09:41:34]SAM_PROTO_ClearQueue done [09:41:34]KKMCreateOFDPacket [09:41:34]OFDProtocolAddRootSTLVToBuf [09:41:34]FM_MakeSignedData [09:41:34]FM_MakeSignedData [09:41:34]SAM_PROTO_SignData [09:41:34]wFMCommunicate request_size=4 [09:41:34]MH_SAM_APDU [09:41:34]CAPDU: 80 0D 01 02 [09:41:34]Write to MH i2c: E2 08 00 FF 1C 80 0D 01 02 00 00 00 00 94 [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=255 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 51 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8D 3B 00 00 35 04 06 00 97 [09:41:35]Write to MH i2c: E2 02 01 00 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 51 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8D 3B 00 00 35 04 06 00 97 00 00 8E [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=10 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 02 02 05 FE 14 A7 48 39 [09:41:35]Write to MH i2c: E2 0D 00 01 1D 80 0D 02 02 05 00 FE 14 A7 48 39 00 00 DC [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 03 02 [09:41:35]Write to MH i2c: E2 08 00 02 1D 80 0D 03 02 00 00 00 00 9A [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 0B 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 0B 00 02 1D 00 8D A5 9A E5 92 8F D8 BC 90 00 01 [09:41:35]RAPDU: 8D A5 9A E5 92 8F D8 BC 90 00 [09:41:35]wFMCommunicate OK [09:41:35]SAM_PROTO_SignData done [09:41:35]FM_MakeSignedData done [09:41:35]CreateOFDProtocolMessage [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 11 00 00 [09:41:35]Write to MH i2c: E2 08 00 03 1D 80 11 00 00 00 00 00 00 9A [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 17 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 17 00 03 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 EC [09:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:41:35]wFMCommunicate OK [09:41:35]CreateOFDProtocolMessage done [09:41:35]OFDSenderStorePacket 15245 [09:41:35]StoreOFDPacket docnum=15245 [09:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 8F 55 07 01 00 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 51 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8D 3B 00 00 35 04 06 00 97 FE 14 A7 48 39 8D A5 9A E5 92 8F D8 BC [09:41:35]CheckFolder [09:41:35]dirname=/storage/ofd_packets [09:41:35]CheckFolder done [09:41:35]ProducePacketName [09:41:35]name=ofd_packets/00015245 [09:41:35]NVStorageSaveData ofd_packets/00015245 [09:41:35]File name is /storage/ofd_packets/00015245 [09:41:35]Write 301 bytes [09:41:35]NVStorageSaveData done [09:41:35]OFDSenderStorePacket done [09:41:35]KKMCreateOFDPacket done [09:41:35]NVStorageSaveData kkm_last_timestamp [09:41:35]File name is /storage/kkm_last_timestamp [09:41:35]Write 4 bytes [09:41:35]NVStorageSaveData done [09:41:35]ExternCall_PrintAddStr [09:41:35]wPrintStart [09:41:35]Write to MH i2c: 01 00 00 04 1D 21 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 04 1D 00 00 00 00 00 FF 0F 36 [09:41:35]RasterBufferAndPrint [09:41:35]line Счет N : (1)2078169 [09:41:35]line ИНН: 02508201610067 [09:41:35]line Контрольно-Кассовый Чек [09:41:35]line ПРОДАЖА [09:41:35]line ТРК (МРК, ГНК) : 63 [09:41:35]line Товар: 2710124130 [09:41:35]line Аи-92-К-4 [09:41:35]line 11.800 * 67.80 [09:41:35]line = 800.04 [09:41:35]line НДС 12% НСП 1% [09:41:35]line > о реализуемом товаре [09:41:35]line ИТОГО: 800.04 [09:41:35]line НСП 1% : 7.08 [09:41:35]line НДС 12% : 84.96 [09:41:35]line Наличными: 0.00 [09:41:35]line Безнал.: 800.04 [09:41:35]line Место: АЗС № 135 "Партнер Нефть" [09:41:35]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:41:35]line СНО: Общий режим [09:41:35]line Чек 39 23.08.2024 09:41 [09:41:35]line Смена: 102 ФФД: 1.0 [09:41:35]line ЗНМ: 0300000144 [09:41:35]line РНМ: 0000000000162784 [09:41:35]line Версия ККМ: v1.0 [09:41:35]line Платежная система: O! деньги [09:41:35]line ФМ: 0000000002094529 [09:41:35]line ФД: 15245 [09:41:35]line ФПД: 167117523994681 [09:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094137&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15245&fm=167117523994681&tin=02508201610067®Number=0000000000162784&sum=80004 [09:41:35]OFD Sender: Processing packet 15245 [packets to send 8, broken 7] [09:41:35]ProducePacketName [09:41:35]name=ofd_packets/00015245 [09:41:35]OFD Sender: To server: pG, [09:41:35]CommunicateWithHost lk.salyk.kg:30040 [09:41:35]ConnectInit lk.salyk.kg [09:41:35]written 0, free lines is 4095 [09:41:35]Connected sock=10 [09:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 8F 55 07 01 00 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 51 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8D 3B 00 00 35 04 06 00 97 FE 14 A7 48 39 8D A5 9A E5 92 8F D8 BC [09:41:36]Write to MH i2c: 01 00 00 2E 1D 4B [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 EC 0C 4A [09:41:36]RasterBufferAndPrint [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]written 0, free lines is 3314 [09:41:36]MH_Cut [09:41:36]Write to MH i2c: D1 01 00 35 1D 01 24 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 35 1D 00 23 [09:41:36]Write to MH i2c: 01 00 00 36 1D 53 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 74 7F 47 00 21 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8D 3B 00 00 F4 03 04 00 AD 03 C8 66 B6 04 01 00 00 19 BF 8B E5 F0 D9 E0 D5 [09:41:36]CommunicateWithHost err = 0 [09:41:36]CheckOFDResponse [09:41:36]1017 (14) - 77093643461234 [09:41:36]1041 (16) - 0000000002094529 [09:41:36]1040 (4) - 15245 [09:41:36]1012 (4) - 23.08.2024 03:36 [09:41:36]1206 (1) - 0 [09:41:36]OFD Sender: Remove packet 15245 [09:41:36]ProducePacketName [09:41:36]name=ofd_packets/00015245 [09:41:36]NVStorageDeleteData [09:41:36]OFD Sender: No OFD packet to send [09:41:37]*** Cut start [09:41:37]*** Partial cut [09:41:37]*** CUTSNS_PIN = 1 [09:41:37]*** CUTSNS_PIN = 0 [09:41:37]*** Brake cut motor [09:41:37]Read from MH i2c: 01 [09:41:37]MH_I2C_Read... [09:41:37]*** Stop cut motor [09:41:37]*** Cut end [09:41:37]Read from MH i2c: 01 07 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [09:41:37]process_action close_receipt done [09:41:37]requested_data is exist [09:41:37]produce_requested_data [09:41:37]requested_item fm.sn is exist - process it [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 11 00 00 [09:41:37]Write to MH i2c: E2 08 00 37 1D 80 11 00 00 00 00 00 00 CE [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 17 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 17 00 37 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 20 [09:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:41:37]wFMCommunicate OK [09:41:37]requested_item fd.num is exist - process it [09:41:37]SAM_PROTO_GetFieldsCounters [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 13 00 00 [09:41:37]Write to MH i2c: E2 08 00 38 1D 80 13 00 00 00 00 00 00 D1 [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 62 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 62 00 38 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:37]wFMCommunicate OK [09:41:37]SAM_PROTO_GetFieldsCounters done [09:41:37]requested_item shift.num is exist - process it [09:41:37]requested_item shift.opened is exist - process it [09:41:37]req_shift_opened [09:41:37]FM_GetShiftState [09:41:37]SAM_PROTO_GetShiftState [09:41:37]wFMCommunicate request_size=4 [09:41:37]MH_SAM_APDU [09:41:37]CAPDU: 80 13 01 00 [09:41:37]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [09:41:37]Write i2c OK [09:41:37]MH_I2C_Read... [09:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:37]Read from MH i2c: E2 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 0E 00 [09:41:37]MH_I2C_Read... [09:41:37]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 97 [09:41:37]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:41:37]wFMCommunicate OK [09:41:37]SAM_PROTO_GetShiftState done [09:41:37]FM_GetShiftState done [09:41:37]req_shift_opened done [09:41:37]requested_item shift.open_date is exist - process it [09:41:37]req_shift_open_date [09:41:37]req_shift_open_date done [09:41:37]produce_requested_data done [09:41:37]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15245,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:41:37]process_action_free close_receipt [09:41:37]json_value_free [09:41:37]json_value_free done [09:41:37]process_json_proto returns [09:41:37]Send response to host [09:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15245,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:41:37]free response buf [09:41:37]execute_script done [09:41:37]execute_script returns [09:41:37]free content buf [09:41:37]Sock 9.Close socket [09:41:37]Sock 9.Thread stoped [09:41:41]OFD Sender: No OFD packet to send [09:41:46]accept exits with 8 [09:41:46]New connection [09:41:46]New thread 3066944868 created [09:41:46]Thread 3066801508 joined [09:41:46]Waiting for new connection... [09:41:46] Sock 8.Parse request [09:41:46]Sock 8.Check first char [09:41:46]Sock 8.First char is OK [09:41:46]request: POST /json_proto HTTP/1.0 [09:41:46]Method: POST [09:41:46]URL: /json_proto [09:41:46]Method is POST - this is cgi request [09:41:46]url: /json_proto [09:41:46]query_string will be loaded in cgi processing [09:41:46]execute_cgi json_proto POST (null) [09:41:46]execute_cgi path=json_proto method=POST [09:41:46]POST find Content-Length [09:41:46]Host: 172.17.44.4:8080 [09:41:46]Content-Length: 798 [09:41:46]Content-Type: application/json [09:41:46] [09:41:46]POST finish read [09:41:46]Found Content-Length = 798 [09:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:46]execute_script... [09:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:46]POST & json_proto [09:41:46]process_json_proto [09:41:46]json parsed OK: [09:41:46]protocol is kg_v1.0 [09:41:46]action value=close_receipt [09:41:46]process_action close_receipt [09:41:46]cmd_close_receipt [09:41:46]MH_GetDate [09:41:46]Write to MH i2c: F0 00 00 3A 1D 46 [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 09 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 09 00 3A 1D 00 5E 59 C8 66 0F 81 47 66 71 [09:41:46]GetLastDocTimeStamp 1724406097 [09:41:46]current date 1724406110 [09:41:46]FM_GetShiftState [09:41:46]SAM_PROTO_GetShiftState [09:41:46]wFMCommunicate request_size=4 [09:41:46]MH_SAM_APDU [09:41:46]CAPDU: 80 13 01 00 [09:41:46]Write to MH i2c: E2 08 00 3B 1D 80 13 01 00 00 00 00 00 D5 [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:46]Read from MH i2c: E2 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 3B 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 99 [09:41:46]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:41:46]wFMCommunicate OK [09:41:46]SAM_PROTO_GetShiftState done [09:41:46]FM_GetShiftState done [09:41:46]opened in 1724372406 [09:41:46]opened+sec_in_day 1724458806 [09:41:46]quantity*price = 50063 [09:41:46]sum+1 = 50064 [09:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 40 23.08.2024 09:41 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15246 ФПД: 220984179603184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094150&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15246&fm=220984179603184&tin=02508201610067®Number=0000000000162784&sum=50063 [09:41:47]StoreToDocumentArchive [09:41:47]shift 102 fd 15246 [09:41:47]save to /storage/0102/doc_00015246 [09:41:47]save last doc name /storage/0102/doc_00015246 to /storage/kkm_last_doc_name [09:41:47]save OK [09:41:47]Clear old archive folders... [09:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:47]tlvbuf is 004BA150 [09:41:47]SAM_PROTO_ClearQueue [09:41:47]wFMCommunicate request_size=4 [09:41:47]MH_SAM_APDU [09:41:47]CAPDU: 80 09 00 00 [09:41:47]Write to MH i2c: E2 08 00 48 1D 80 09 00 00 00 00 00 00 D7 [09:41:47]Write i2c OK [09:41:47]MH_I2C_Read... [09:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:47]Read from MH i2c: E2 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 03 00 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [09:41:47]RAPDU: 90 00 [09:41:47]wFMCommunicate OK [09:41:47]SAM_PROTO_ClearQueue done [09:41:47]KKMCreateOFDPacket [09:41:47]OFDProtocolAddRootSTLVToBuf [09:41:47]FM_MakeSignedData [09:41:47]FM_MakeSignedData [09:41:47]SAM_PROTO_SignData [09:41:47]wFMCommunicate request_size=4 [09:41:47]MH_SAM_APDU [09:41:47]CAPDU: 80 0D 01 02 [09:41:47]Write to MH i2c: E2 08 00 49 1D 80 0D 01 02 00 00 00 00 DF [09:41:47]Write i2c OK [09:41:47]MH_I2C_Read... [09:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:47]Read from MH i2c: E2 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 03 00 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [09:41:47]RAPDU: 90 00 [09:41:47]wFMCommunicate OK [09:41:47]wFMCommunicate request_size=255 [09:41:47]MH_SAM_APDU [09:41:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5E 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8E 3B 00 00 35 04 06 00 C8 FB E3 86 [09:41:47]Write to MH i2c: E2 02 01 4A 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5E 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8E 3B 00 00 35 04 06 00 C8 FB E3 86 00 00 D4 [09:41:47]Write i2c OK [09:41:47]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 4A 1D 00 90 00 DB [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=7 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 02 02 02 B6 F0 [09:41:48]Write to MH i2c: E2 0A 00 4B 1D 80 0D 02 02 02 00 B6 F0 00 00 8C [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 03 02 [09:41:48]Write to MH i2c: E2 08 00 4C 1D 80 0D 03 02 00 00 00 00 E4 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 4C 1D 00 67 33 9B 57 00 DE 31 C2 90 00 42 [09:41:48]RAPDU: 67 33 9B 57 00 DE 31 C2 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_SignData done [09:41:48]FM_MakeSignedData done [09:41:48]CreateOFDProtocolMessage [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 11 00 00 [09:41:48]Write to MH i2c: E2 08 00 4D 1D 80 11 00 00 00 00 00 00 E4 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 4D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 36 [09:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:41:48]wFMCommunicate OK [09:41:48]CreateOFDProtocolMessage done [09:41:48]OFDSenderStorePacket 15246 [09:41:48]StoreOFDPacket docnum=15246 [09:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 4C FF 04 01 C7 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5E 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8E 3B 00 00 35 04 06 00 C8 FB E3 86 B6 F0 67 33 9B 57 00 DE 31 C2 [09:41:48]CheckFolder [09:41:48]dirname=/storage/ofd_packets [09:41:48]CheckFolder done [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00015246 [09:41:48]NVStorageSaveData ofd_packets/00015246 [09:41:48]File name is /storage/ofd_packets/00015246 [09:41:48]Write 298 bytes [09:41:48]NVStorageSaveData done [09:41:48]OFDSenderStorePacket done [09:41:48]KKMCreateOFDPacket done [09:41:48]NVStorageSaveData kkm_last_timestamp [09:41:48]File name is /storage/kkm_last_timestamp [09:41:48]Write 4 bytes [09:41:48]NVStorageSaveData done [09:41:48]ExternCall_PrintAddStr [09:41:48]wPrintStart [09:41:48]Write to MH i2c: 01 00 00 4E 1D 6B [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 FF 0F 80 [09:41:48]RasterBufferAndPrint [09:41:48]line Счет N : (1)2078170 [09:41:48]line ИНН: 02508201610067 [09:41:48]line Контрольно-Кассовый Чек [09:41:48]line ПРОДАЖА [09:41:48]line ТРК (МРК, ГНК) : 21 [09:41:48]line Товар: 2710194210 [09:41:48]line ДТ-К-5 [09:41:48]line 6.570 * 76.20 [09:41:48]line = 500.63 [09:41:48]line НДС 12% НСП 1% [09:41:48]line > о реализуемом товаре [09:41:48]line ИТОГО: 500.63 [09:41:48]line НСП 1% : 4.43 [09:41:48]line НДС 12% : 53.16 [09:41:48]line Наличными: 0.00 [09:41:48]line Безнал.: 500.63 [09:41:48]line Место: АЗС № 135 "Партнер Нефть" [09:41:48]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:41:48]line СНО: Общий режим [09:41:48]line Чек 40 23.08.2024 09:41 [09:41:48]line Смена: 102 ФФД: 1.0 [09:41:48]line ЗНМ: 0300000144 [09:41:48]line РНМ: 0000000000162784 [09:41:48]line Версия ККМ: v1.0 [09:41:48]line Платежная система: O! деньги [09:41:48]line ФМ: 0000000002094529 [09:41:48]line ФД: 15246 [09:41:48]line ФПД: 220984179603184 [09:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094150&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15246&fm=220984179603184&tin=02508201610067®Number=0000000000162784&sum=50063 [09:41:48]OFD Sender: Processing packet 15246 [packets to send 8, broken 7] [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00015246 [09:41:48]OFD Sender: To server: pG, [09:41:48]CommunicateWithHost lk.salyk.kg:30040 [09:41:48]ConnectInit lk.salyk.kg [09:41:48]Connected sock=10 [09:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 4C FF 04 01 C7 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 5E 59 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8E 3B 00 00 35 04 06 00 C8 FB E3 86 B6 F0 67 33 9B 57 00 DE 31 C2 [09:41:48]written 0, free lines is 4095 [09:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 58 F0 47 00 90 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8E 3B 00 00 F4 03 04 00 B9 03 C8 66 B6 04 01 00 00 E2 43 C7 44 6A E8 C4 A2 [09:41:48]CommunicateWithHost err = 0 [09:41:48]CheckOFDResponse [09:41:48]1017 (14) - 77093643461234 [09:41:48]1041 (16) - 0000000002094529 [09:41:48]1040 (4) - 15246 [09:41:48]1012 (4) - 23.08.2024 03:36 [09:41:48]1206 (1) - 0 [09:41:48]OFD Sender: Remove packet 15246 [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00015246 [09:41:48]NVStorageDeleteData [09:41:49]Write to MH i2c: 01 00 00 78 1D 95 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 78 1D 00 00 00 00 00 E0 0C 88 [09:41:49]RasterBufferAndPrint [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]written 0, free lines is 3303 [09:41:49]MH_Cut [09:41:49]Write to MH i2c: D1 01 00 7F 1D 01 6E [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 7F 1D 00 6D [09:41:49]Write to MH i2c: 01 00 00 80 1D 9D [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]OFD Sender: No OFD packet to send [09:41:49]*** Cut start [09:41:49]*** Partial cut [09:41:49]*** CUTSNS_PIN = 1 [09:41:49]*** CUTSNS_PIN = 0 [09:41:50]*** Brake cut motor [09:41:50]Read from MH i2c: 01 [09:41:50]MH_I2C_Read... [09:41:50]*** Stop cut motor [09:41:50]*** Cut end [09:41:50]Read from MH i2c: 01 07 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 80 1D 00 00 00 00 00 FF 0F B2 [09:41:50]process_action close_receipt done [09:41:50]requested_data is exist [09:41:50]produce_requested_data [09:41:50]requested_item fm.sn is exist - process it [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 11 00 00 [09:41:50]Write to MH i2c: E2 08 00 81 1D 80 11 00 00 00 00 00 00 18 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 81 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 6A [09:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:41:50]wFMCommunicate OK [09:41:50]requested_item fd.num is exist - process it [09:41:50]SAM_PROTO_GetFieldsCounters [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 13 00 00 [09:41:50]Write to MH i2c: E2 08 00 82 1D 80 13 00 00 00 00 00 00 1B [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 62 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 62 00 82 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_GetFieldsCounters done [09:41:50]requested_item shift.num is exist - process it [09:41:50]requested_item shift.opened is exist - process it [09:41:50]req_shift_opened [09:41:50]FM_GetShiftState [09:41:50]SAM_PROTO_GetShiftState [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 13 01 00 [09:41:50]Write to MH i2c: E2 08 00 83 1D 80 13 01 00 00 00 00 00 1D [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0E 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0E 00 83 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E1 [09:41:50]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_GetShiftState done [09:41:50]FM_GetShiftState done [09:41:50]req_shift_opened done [09:41:50]requested_item shift.open_date is exist - process it [09:41:50]req_shift_open_date [09:41:50]req_shift_open_date done [09:41:50]produce_requested_data done [09:41:50]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15246,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:41:50]process_action_free close_receipt [09:41:50]json_value_free [09:41:50]json_value_free done [09:41:50]process_json_proto returns [09:41:50]Send response to host [09:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15246,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:41:50]free response buf [09:41:50]execute_script done [09:41:50]execute_script returns [09:41:50]free content buf [09:41:50]Sock 8.Close socket [09:41:50]Sock 8.Thread stoped [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:43]accept exits with 9 [09:45:43]New connection [09:45:43]New thread 3066801508 created [09:45:43]Thread 3066944868 joined [09:45:43]Waiting for new connection... [09:45:43] Sock 9.Parse request [09:45:43]Sock 9.Check first char [09:45:43]Sock 9.First char is OK [09:45:43]request: POST /json_proto HTTP/1.0 [09:45:43]Method: POST [09:45:43]URL: /json_proto [09:45:43]Method is POST - this is cgi request [09:45:43]url: /json_proto [09:45:43]query_string will be loaded in cgi processing [09:45:43]execute_cgi json_proto POST (null) [09:45:43]execute_cgi path=json_proto method=POST [09:45:43]POST find Content-Length [09:45:43]Host: 172.17.44.4:8080 [09:45:43]Content-Length: 632 [09:45:43]Content-Type: application/json [09:45:43] [09:45:43]POST finish read [09:45:43]Found Content-Length = 632 [09:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151269", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:43]execute_script... [09:45: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)151269", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:43]POST & json_proto [09:45:43]process_json_proto [09:45:43]json parsed OK: [09:45:43]protocol is kg_v1.0 [09:45:43]action value=close_receipt [09:45:43]process_action close_receipt [09:45:43]cmd_close_receipt [09:45:43]MH_GetDate [09:45:43]Write to MH i2c: F0 00 00 84 1D 90 [09:45:43]Write i2c OK [09:45:43]MH_I2C_Read... [09:45:43]Read from MH i2c: F0 [09:45:43]MH_I2C_Read... [09:45:43]Read from MH i2c: F0 09 00 [09:45:43]MH_I2C_Read... [09:45:43]Read from MH i2c: F0 09 00 84 1D 00 4B 5A C8 66 0F 81 47 66 A9 [09:45:43]GetLastDocTimeStamp 1724406110 [09:45:43]current date 1724406347 [09:45:43]FM_GetShiftState [09:45:43]SAM_PROTO_GetShiftState [09:45:43]wFMCommunicate request_size=4 [09:45:43]MH_SAM_APDU [09:45:43]CAPDU: 80 13 01 00 [09:45:43]Write to MH i2c: E2 08 00 85 1D 80 13 01 00 00 00 00 00 1F [09:45:43]Write i2c OK [09:45:43]MH_I2C_Read... [09:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:43]Read from MH i2c: E2 [09:45:43]MH_I2C_Read... [09:45:43]Read from MH i2c: E2 0E 00 [09:45:43]MH_I2C_Read... [09:45:43]Read from MH i2c: E2 0E 00 85 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E3 [09:45:43]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:45:43]wFMCommunicate OK [09:45:43]SAM_PROTO_GetShiftState done [09:45:43]FM_GetShiftState done [09:45:43]opened in 1724372406 [09:45:43]opened+sec_in_day 1724458806 [09:45:43]quantity*price = 14000 [09:45:43]sum+1 = 14001 [09:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 41 23.08.2024 09:45 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15247 ФПД: 71542212925547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094547&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15247&fm=71542212925547&tin=02508201610067®Number=0000000000162784&sum=14000 0 [09:45:44]StoreToDocumentArchive [09:45:44]shift 102 fd 15247 [09:45:44]save to /storage/0102/doc_00015247 [09:45:44]save last doc name /storage/0102/doc_00015247 to /storage/kkm_last_doc_name [09:45:44]save OK [09:45:44]Clear old archive folders... [09:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:45:44]tlvbuf is B6ED8A30 [09:45:44]SAM_PROTO_ClearQueue [09:45:44]wFMCommunicate request_size=4 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 09 00 00 [09:45:44]Write to MH i2c: E2 08 00 92 1D 80 09 00 00 00 00 00 00 21 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 92 1D 00 90 00 23 [09:45:44]RAPDU: 90 00 [09:45:44]wFMCommunicate OK [09:45:44]SAM_PROTO_ClearQueue done [09:45:44]KKMCreateOFDPacket [09:45:44]OFDProtocolAddRootSTLVToBuf [09:45:44]FM_MakeSignedData [09:45:44]FM_MakeSignedData [09:45:44]SAM_PROTO_SignData [09:45:44]wFMCommunicate request_size=4 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 0D 01 02 [09:45:44]Write to MH i2c: E2 08 00 93 1D 80 0D 01 02 00 00 00 00 29 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [09:45:44]RAPDU: 90 00 [09:45:44]wFMCommunicate OK [09:45:44]wFMCommunicate request_size=255 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 [09:45:44]Write to MH i2c: E2 02 01 94 1D 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 00 00 77 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]OFD Sender: No OFD packet to send [09:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [09:45:44]RAPDU: 90 00 [09:45:44]wFMCommunicate OK [09:45:44]wFMCommunicate request_size=43 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8F 3B 00 00 35 04 06 00 41 11 38 30 18 6B [09:45:44]Write to MH i2c: E2 2E 00 95 1D 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8F 3B 00 00 35 04 06 00 41 11 38 30 18 6B 00 00 1A [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [09:45:44]RAPDU: 90 00 [09:45:44]wFMCommunicate OK [09:45:44]wFMCommunicate request_size=4 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 0D 03 02 [09:45:44]Write to MH i2c: E2 08 00 96 1D 80 0D 03 02 00 00 00 00 2E [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 0B 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 0B 00 96 1D 00 5E 4F 7E FD 55 72 AC 9B 90 00 65 [09:45:44]RAPDU: 5E 4F 7E FD 55 72 AC 9B 90 00 [09:45:44]wFMCommunicate OK [09:45:44]SAM_PROTO_SignData done [09:45:44]FM_MakeSignedData done [09:45:44]CreateOFDProtocolMessage [09:45:44]wFMCommunicate request_size=4 [09:45:44]MH_SAM_APDU [09:45:44]CAPDU: 80 11 00 00 [09:45:44]Write to MH i2c: E2 08 00 97 1D 80 11 00 00 00 00 00 00 2E [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:44]Read from MH i2c: E2 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 17 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: E2 17 00 97 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 80 [09:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:45:44]wFMCommunicate OK [09:45:44]CreateOFDProtocolMessage done [09:45:44]OFDSenderStorePacket 15247 [09:45:44]StoreOFDPacket docnum=15247 [09:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 AE 96 28 01 5B 60 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8F 3B 00 00 35 04 06 00 41 11 38 30 18 6B 5E 4F 7E FD 55 72 AC 9B [09:45:44]CheckFolder [09:45:44]dirname=/storage/ofd_packets [09:45:44]CheckFolder done [09:45:44]ProducePacketName [09:45:44]name=ofd_packets/00015247 [09:45:44]NVStorageSaveData ofd_packets/00015247 [09:45:44]File name is /storage/ofd_packets/00015247 [09:45:44]Write 334 bytes [09:45:44]NVStorageSaveData done [09:45:44]OFDSenderStorePacket done [09:45:44]KKMCreateOFDPacket done [09:45:44]NVStorageSaveData kkm_last_timestamp [09:45:44]File name is /storage/kkm_last_timestamp [09:45:44]Write 4 bytes [09:45:44]NVStorageSaveData done [09:45:44]ExternCall_PrintAddStr [09:45:44]wPrintStart [09:45:44]Write to MH i2c: 01 00 00 98 1D B5 [09:45:44]Write i2c OK [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 [09:45:44]MH_I2C_Read... [09:45:44]Read from MH i2c: 01 07 00 98 1D 00 00 00 00 00 FF 0F CA [09:45:44]RasterBufferAndPrint [09:45:44]line Счет N : (3)151269 [09:45:44]line ИНН: 02508201610067 [09:45:44]line Контрольно-Кассовый Чек [09:45:44]line ПРОДАЖА [09:45:44]line Товар: 48745031 [09:45:44]line Сигареты Winston Superslims Expand Blue [09:45:44]line 1.000 * 140.00 [09:45:44]line = 140.00 [09:45:44]line НДС 12% НСП 1% [09:45:44]line > о реализуемом товаре [09:45:44]line ИТОГО: 140.00 [09:45:44]line НСП 1% : 1.24 [09:45:44]line НДС 12% : 14.87 [09:45:44]line Наличными: 140.00 [09:45:44]line Безнал.: 0.00 [09:45:44]line Место: АЗС № 135 "Партнер Нефть" [09:45:44]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:45:44]line СНО: Общий режим [09:45:44]line Чек 41 23.08.2024 09:45 [09:45:44]line Смена: 102 ФФД: 1.0 [09:45:44]line ЗНМ: 0300000144 [09:45:44]line РНМ: 0000000000162784 [09:45:44]line Версия ККМ: v1.0 [09:45:44]line ФМ: 0000000002094529 [09:45:44]line ФД: 15247 [09:45:44]line ФПД: 71542212925547 [09:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094547&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15247&fm=71542212925547&tin=02508201610067®Number=0000000000162784&sum=14000 [09:45:45]line 0 [09:45:45]OFD Sender: Processing packet 15247 [packets to send 8, broken 7] [09:45:45]ProducePacketName [09:45:45]name=ofd_packets/00015247 [09:45:45]OFD Sender: To server: pG, [09:45:45]CommunicateWithHost lk.salyk.kg:30040 [09:45:45]ConnectInit lk.salyk.kg [09:45:45]written 0, free lines is 4095 [09:45:45]Connected sock=10 [09:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 AE 96 28 01 5B 60 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8F 3B 00 00 35 04 06 00 41 11 38 30 18 6B 5E 4F 7E FD 55 72 AC 9B [09:45:45]Write to MH i2c: 01 00 00 C1 1D DE [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: 01 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: 01 07 00 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: 01 07 00 C1 1D 00 00 00 00 00 CC 0C BD [09:45:45]RasterBufferAndPrint [09:45:45]line [09:45:45]line [09:45:45]line [09:45:45]line [09:45:45]line [09:45:45]written 0, free lines is 3282 [09:45:45]MH_Cut [09:45:45]Write to MH i2c: D1 01 00 C8 1D 01 B7 [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: D1 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: D1 01 00 [09:45:45]MH_I2C_Read... [09:45:45]Read from MH i2c: D1 01 00 C8 1D 00 B6 [09:45:45]Write to MH i2c: 01 00 00 C9 1D E6 [09:45:45]Write i2c OK [09:45:45]MH_I2C_Read... [09:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 E2 98 47 00 D7 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 8F 3B 00 00 F4 03 04 00 A6 04 C8 66 B6 04 01 00 00 39 3D 29 98 4D 41 48 32 [09:45:45]CommunicateWithHost err = 0 [09:45:45]CheckOFDResponse [09:45:45]1017 (14) - 77093643461234 [09:45:45]1041 (16) - 0000000002094529 [09:45:45]1040 (4) - 15247 [09:45:45]1012 (4) - 23.08.2024 03:40 [09:45:45]1206 (1) - 0 [09:45:45]OFD Sender: Remove packet 15247 [09:45:45]ProducePacketName [09:45:45]name=ofd_packets/00015247 [09:45:45]NVStorageDeleteData [09:45:46]OFD Sender: No OFD packet to send [09:45:46]*** Cut start [09:45:46]*** Partial cut [09:45:46]*** CUTSNS_PIN = 1 [09:45:46]*** CUTSNS_PIN = 0 [09:45:46]*** Brake cut motor [09:45:47]Read from MH i2c: 01 [09:45:47]MH_I2C_Read... [09:45:47]*** Stop cut motor [09:45:47]*** Cut end [09:45:47]Read from MH i2c: 01 07 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: 01 07 00 C9 1D 00 00 00 00 00 FF 0F FB [09:45:47]process_action close_receipt done [09:45:47]requested_data is exist [09:45:47]produce_requested_data [09:45:47]requested_item fm.sn is exist - process it [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 11 00 00 [09:45:47]Write to MH i2c: E2 08 00 CA 1D 80 11 00 00 00 00 00 00 61 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 17 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 17 00 CA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B3 [09:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:45:47]wFMCommunicate OK [09:45:47]requested_item fd.num is exist - process it [09:45:47]SAM_PROTO_GetFieldsCounters [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 13 00 00 [09:45:47]Write to MH i2c: E2 08 00 CB 1D 80 13 00 00 00 00 00 00 64 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 62 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 62 00 CB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [09:45:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 8F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:47]wFMCommunicate OK [09:45:47]SAM_PROTO_GetFieldsCounters done [09:45:47]requested_item shift.num is exist - process it [09:45:47]requested_item shift.opened is exist - process it [09:45:47]req_shift_opened [09:45:47]FM_GetShiftState [09:45:47]SAM_PROTO_GetShiftState [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 13 01 00 [09:45:47]Write to MH i2c: E2 08 00 CC 1D 80 13 01 00 00 00 00 00 66 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 0E 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 0E 00 CC 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2A [09:45:47]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:45:47]wFMCommunicate OK [09:45:47]SAM_PROTO_GetShiftState done [09:45:47]FM_GetShiftState done [09:45:47]req_shift_opened done [09:45:47]requested_item shift.open_date is exist - process it [09:45:47]req_shift_open_date [09:45:47]req_shift_open_date done [09:45:47]produce_requested_data done [09:45:47]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15247,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:45:47]process_action_free close_receipt [09:45:47]json_value_free [09:45:47]json_value_free done [09:45:47]process_json_proto returns [09:45:47]Send response to host [09:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15247,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:45:47]free response buf [09:45:47]execute_script done [09:45:47]execute_script returns [09:45:47]free content buf [09:45:47]Sock 9.Close socket [09:45:47]Sock 9.Thread stoped [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:11]accept exits with 8 [09:46:11]New connection [09:46:11]New thread 3066944868 created [09:46:11]Thread 3066801508 joined [09:46:11]Waiting for new connection... [09:46:11] Sock 8.Parse request [09:46:11]Sock 8.Check first char [09:46:11]Sock 8.First char is OK [09:46:11]request: POST /json_proto HTTP/1.0 [09:46:11]Method: POST [09:46:11]URL: /json_proto [09:46:11]Method is POST - this is cgi request [09:46:11]url: /json_proto [09:46:11]query_string will be loaded in cgi processing [09:46:11]execute_cgi json_proto POST (null) [09:46:11]execute_cgi path=json_proto method=POST [09:46:11]POST find Content-Length [09:46:11]Host: 172.17.44.4:8080 [09:46:11]Content-Length: 793 [09:46:11]Content-Type: application/json [09:46:11] [09:46:11]POST finish read [09:46:11]Found Content-Length = 793 [09:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:11]execute_script... [09:46:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:11]POST & json_proto [09:46:11]process_json_proto [09:46:11]json parsed OK: [09:46:11]protocol is kg_v1.0 [09:46:11]action value=close_receipt [09:46:11]process_action close_receipt [09:46:11]cmd_close_receipt [09:46:11]MH_GetDate [09:46:11]Write to MH i2c: F0 00 00 CD 1D D9 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 09 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 09 00 CD 1D 00 67 5A C8 66 0F 81 47 66 0E [09:46:11]GetLastDocTimeStamp 1724406347 [09:46:11]current date 1724406375 [09:46:11]FM_GetShiftState [09:46:11]SAM_PROTO_GetShiftState [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 13 01 00 [09:46:11]Write to MH i2c: E2 08 00 CE 1D 80 13 01 00 00 00 00 00 68 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 CE 1D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2C [09:46:11]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_GetShiftState done [09:46:11]FM_GetShiftState done [09:46:11]opened in 1724372406 [09:46:11]opened+sec_in_day 1724458806 [09:46:11]quantity*price = 0 [09:46:11]sum+1 = 1 [09:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 42 23.08.2024 09:46 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15248 ФПД: 78171257044719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094615&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15248&fm=78171257044719&tin=02508201610067®Number=0000000000162784&sum=0 [09:46:12]StoreToDocumentArchive [09:46:12]shift 102 fd 15248 [09:46:12]save to /storage/0102/doc_00015248 [09:46:12]save last doc name /storage/0102/doc_00015248 to /storage/kkm_last_doc_name [09:46:12]save OK [09:46:12]Clear old archive folders... [09:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:12]tlvbuf is 0046EB10 [09:46:12]SAM_PROTO_ClearQueue [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 09 00 00 [09:46:12]Write to MH i2c: E2 08 00 DB 1D 80 09 00 00 00 00 00 00 6A [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 DB 1D 00 90 00 6C [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_ClearQueue done [09:46:12]KKMCreateOFDPacket [09:46:12]OFDProtocolAddRootSTLVToBuf [09:46:12]FM_MakeSignedData [09:46:12]FM_MakeSignedData [09:46:12]SAM_PROTO_SignData [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 01 02 [09:46:12]Write to MH i2c: E2 08 00 DC 1D 80 0D 01 02 00 00 00 00 72 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=255 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 67 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 90 3B 00 00 35 04 06 00 47 [09:46:12]Write to MH i2c: E2 02 01 DD 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 67 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 90 3B 00 00 35 04 06 00 47 00 00 45 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [09:46:13]RAPDU: 90 00 [09:46:13]wFMCommunicate OK [09:46:13]wFMCommunicate request_size=10 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 0D 02 02 05 18 AA 01 FE EF [09:46:13]Write to MH i2c: E2 0D 00 DE 1D 80 0D 02 02 05 00 18 AA 01 FE EF 00 00 2F [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [09:46:13]RAPDU: 90 00 [09:46:13]wFMCommunicate OK [09:46:13]wFMCommunicate request_size=4 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 0D 03 02 [09:46:13]Write to MH i2c: E2 08 00 DF 1D 80 0D 03 02 00 00 00 00 77 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 0B 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 0B 00 DF 1D 00 98 60 E2 A9 65 B7 5B 0B 90 00 7D [09:46:13]RAPDU: 98 60 E2 A9 65 B7 5B 0B 90 00 [09:46:13]wFMCommunicate OK [09:46:13]SAM_PROTO_SignData done [09:46:13]FM_MakeSignedData done [09:46:13]CreateOFDProtocolMessage [09:46:13]wFMCommunicate request_size=4 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 11 00 00 [09:46:13]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 17 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C9 [09:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:46:13]wFMCommunicate OK [09:46:13]CreateOFDProtocolMessage done [09:46:13]OFDSenderStorePacket 15248 [09:46:13]StoreOFDPacket docnum=15248 [09:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 89 6C 07 01 7B B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 67 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 90 3B 00 00 35 04 06 00 47 18 AA 01 FE EF 98 60 E2 A9 65 B7 5B 0B [09:46:13]CheckFolder [09:46:13]dirname=/storage/ofd_packets [09:46:13]CheckFolder done [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00015248 [09:46:13]NVStorageSaveData ofd_packets/00015248 [09:46:13]File name is /storage/ofd_packets/00015248 [09:46:13]Write 301 bytes [09:46:13]NVStorageSaveData done [09:46:13]OFDSenderStorePacket done [09:46:13]KKMCreateOFDPacket done [09:46:13]NVStorageSaveData kkm_last_timestamp [09:46:13]File name is /storage/kkm_last_timestamp [09:46:13]Write 4 bytes [09:46:13]NVStorageSaveData done [09:46:13]OFD Sender: Processing packet 15248 [packets to send 8, broken 7] [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00015248 [09:46:13]OFD Sender: To server: pG, [09:46:13]CommunicateWithHost lk.salyk.kg:30040 [09:46:13]ConnectInit lk.salyk.kg [09:46:13]ExternCall_PrintAddStr [09:46:13]wPrintStart [09:46:13]Write to MH i2c: 01 00 00 E1 1D FE [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 E1 1D 00 00 00 00 00 FF 0F 13 [09:46:13]RasterBufferAndPrint [09:46:13]line Счет N : (1)2078175 [09:46:13]line ИНН: 02508201610067 [09:46:13]line Контрольно-Кассовый Чек [09:46:13]line ПРОДАЖА [09:46:13]line ТРК (МРК, ГНК) : 33 [09:46:13]line Товар: 2710124130 [09:46:13]line Аи-92-К-4 [09:46:13]line 10.000 * 0.00 [09:46:13]line = 0.00 [09:46:13]line НДС 12% НСП 1% [09:46:13]line > о реализуемом товаре [09:46:13]line ИТОГО: 0.00 [09:46:13]line НСП 1% : 0.00 [09:46:13]line НДС 12% : 0.00 [09:46:13]line Наличными: 0.00 [09:46:13]line Безнал.: 0.00 [09:46:13]line Место: АЗС № 135 "Партнер Нефть" [09:46:13]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:46:13]line СНО: Общий режим [09:46:13]line Чек 42 23.08.2024 09:46 [09:46:13]line Смена: 102 ФФД: 1.0 [09:46:13]line ЗНМ: 0300000144 [09:46:13]line РНМ: 0000000000162784 [09:46:13]line Версия ККМ: v1.0 [09:46:13]line Талоны: Топливная Карта [09:46:13]line 92875 [09:46:13]line ФМ: 0000000002094529 [09:46:13]line ФД: 15248 [09:46:13]line ФПД: 78171257044719 [09:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094615&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15248&fm=78171257044719&tin=02508201610067®Number=0000000000162784&sum=0 [09:46:13]Connected sock=11 [09:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 89 6C 07 01 7B B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 67 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 90 3B 00 00 35 04 06 00 47 18 AA 01 FE EF 98 60 E2 A9 65 B7 5B 0B [09:46:13]written 0, free lines is 4095 [09:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 75 0A 47 00 81 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 90 3B 00 00 F4 03 04 00 C3 04 C8 66 B6 04 01 00 00 D3 05 F1 15 3D 05 80 7B [09:46:13]CommunicateWithHost err = 0 [09:46:13]CheckOFDResponse [09:46:13]1017 (14) - 77093643461234 [09:46:13]1041 (16) - 0000000002094529 [09:46:13]1040 (4) - 15248 [09:46:13]1012 (4) - 23.08.2024 03:40 [09:46:13]1206 (1) - 0 [09:46:13]OFD Sender: Remove packet 15248 [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00015248 [09:46:13]NVStorageDeleteData [09:46:14]Write to MH i2c: 01 00 00 0B 1E 29 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: 01 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: 01 07 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: 01 07 00 0B 1E 00 00 00 00 00 DC 0C 18 [09:46:14]RasterBufferAndPrint [09:46:14]line [09:46:14]line [09:46:14]line [09:46:14]line [09:46:14]line [09:46:14]written 0, free lines is 3298 [09:46:14]MH_Cut [09:46:14]Write to MH i2c: D1 01 00 12 1E 01 02 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 01 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 01 00 12 1E 00 01 [09:46:14]Write to MH i2c: 01 00 00 13 1E 31 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]OFD Sender: No OFD packet to send [09:46:14]*** Cut start [09:46:14]*** Partial cut [09:46:14]*** CUTSNS_PIN = 1 [09:46:14]*** CUTSNS_PIN = 0 [09:46:15]*** Brake cut motor [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]*** Stop cut motor [09:46:15]*** Cut end [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 13 1E 00 00 00 00 00 FF 0F 46 [09:46:15]process_action close_receipt done [09:46:15]requested_data is exist [09:46:15]produce_requested_data [09:46:15]requested_item fm.sn is exist - process it [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 11 00 00 [09:46:15]Write to MH i2c: E2 08 00 14 1E 80 11 00 00 00 00 00 00 AC [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 17 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 17 00 14 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 FE [09:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:46:15]wFMCommunicate OK [09:46:15]requested_item fd.num is exist - process it [09:46:15]SAM_PROTO_GetFieldsCounters [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 00 00 [09:46:15]Write to MH i2c: E2 08 00 15 1E 80 13 00 00 00 00 00 00 AF [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 15 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 90 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 90 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetFieldsCounters done [09:46:15]requested_item shift.num is exist - process it [09:46:15]requested_item shift.opened is exist - process it [09:46:15]req_shift_opened [09:46:15]FM_GetShiftState [09:46:15]SAM_PROTO_GetShiftState [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 01 00 [09:46:15]Write to MH i2c: E2 08 00 16 1E 80 13 01 00 00 00 00 00 B1 [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 16 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 75 [09:46:15]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetShiftState done [09:46:15]FM_GetShiftState done [09:46:15]req_shift_opened done [09:46:15]requested_item shift.open_date is exist - process it [09:46:15]req_shift_open_date [09:46:15]req_shift_open_date done [09:46:15]produce_requested_data done [09:46:15]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15248,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:46:15]process_action_free close_receipt [09:46:15]json_value_free [09:46:15]json_value_free done [09:46:15]process_json_proto returns [09:46:15]Send response to host [09:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15248,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:46:15]free response buf [09:46:15]execute_script done [09:46:15]execute_script returns [09:46:15]free content buf [09:46:15]Sock 8.Close socket [09:46:15]Sock 8.Thread stoped [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:41]accept exits with 9 [09:46:41]New connection [09:46:41]New thread 3066801508 created [09:46:41]Thread 3066944868 joined [09:46:41]Waiting for new connection... [09:46:41] Sock 9.Parse request [09:46:41]Sock 9.Check first char [09:46:41]Sock 9.First char is OK [09:46:41]request: POST /json_proto HTTP/1.0 [09:46:41]Method: POST [09:46:41]URL: /json_proto [09:46:41]Method is POST - this is cgi request [09:46:41]url: /json_proto [09:46:41]query_string will be loaded in cgi processing [09:46:41]execute_cgi json_proto POST (null) [09:46:41]execute_cgi path=json_proto method=POST [09:46:41]POST find Content-Length [09:46:41]Host: 172.17.44.4:8080 [09:46:41]Content-Length: 792 [09:46:41]Content-Type: application/json [09:46:41] [09:46:41]POST finish read [09:46:41]Found Content-Length = 792 [09:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:41]execute_script... [09:46:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:41]POST & json_proto [09:46:41]process_json_proto [09:46:41]json parsed OK: [09:46:41]protocol is kg_v1.0 [09:46:41]action value=close_receipt [09:46:41]process_action close_receipt [09:46:41]cmd_close_receipt [09:46:41]MH_GetDate [09:46:41]Write to MH i2c: F0 00 00 17 1E 24 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: F0 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: F0 09 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: F0 09 00 17 1E 00 84 5A C8 66 0F 81 47 66 76 [09:46:41]GetLastDocTimeStamp 1724406375 [09:46:41]current date 1724406404 [09:46:41]FM_GetShiftState [09:46:41]SAM_PROTO_GetShiftState [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 13 01 00 [09:46:41]Write to MH i2c: E2 08 00 18 1E 80 13 01 00 00 00 00 00 B3 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0E 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0E 00 18 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 77 [09:46:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_GetShiftState done [09:46:41]FM_GetShiftState done [09:46:41]opened in 1724372406 [09:46:41]opened+sec_in_day 1724458806 [09:46:41]quantity*price = 0 [09:46:41]sum+1 = 1 [09:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 43 23.08.2024 09:46 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливные Талоны 1 ФМ: 0000000002094529 ФД: 15249 ФПД: 273688277676712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094645&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15249&fm=273688277676712&tin=02508201610067®Number=0000000000162784&sum=0 [09:46:42]StoreToDocumentArchive [09:46:42]shift 102 fd 15249 [09:46:42]save to /storage/0102/doc_00015249 [09:46:42]save last doc name /storage/0102/doc_00015249 to /storage/kkm_last_doc_name [09:46:42]save OK [09:46:42]Clear old archive folders... [09:46:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:42]tlvbuf is B6ED8480 [09:46:42]SAM_PROTO_ClearQueue [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 09 00 00 [09:46:42]Write to MH i2c: E2 08 00 25 1E 80 09 00 00 00 00 00 00 B5 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 25 1E 00 90 00 B7 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_ClearQueue done [09:46:42]KKMCreateOFDPacket [09:46:42]OFDProtocolAddRootSTLVToBuf [09:46:42]FM_MakeSignedData [09:46:42]FM_MakeSignedData [09:46:42]SAM_PROTO_SignData [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 01 02 [09:46:42]Write to MH i2c: E2 08 00 26 1E 80 0D 01 02 00 00 00 00 BD [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 26 1E 00 90 00 B8 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=255 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 85 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 91 3B 00 00 35 04 06 00 F8 EB 04 91 [09:46:42]Write to MH i2c: E2 02 01 27 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 85 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 91 3B 00 00 35 04 06 00 F8 EB 04 91 00 00 DA [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 27 1E 00 90 00 B9 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=7 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 02 02 02 F2 A8 [09:46:42]Write to MH i2c: E2 0A 00 28 1E 80 0D 02 02 02 00 F2 A8 00 00 5E [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 28 1E 00 90 00 BA [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 03 02 [09:46:42]Write to MH i2c: E2 08 00 29 1E 80 0D 03 02 00 00 00 00 C2 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 29 1E 00 77 74 46 8E 79 50 B5 CB 90 00 CB [09:46:42]RAPDU: 77 74 46 8E 79 50 B5 CB 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_SignData done [09:46:42]FM_MakeSignedData done [09:46:42]CreateOFDProtocolMessage [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 2A 1E 80 11 00 00 00 00 00 00 C2 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 2A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 14 [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:46:42]wFMCommunicate OK [09:46:42]CreateOFDProtocolMessage done [09:46:42]OFDSenderStorePacket 15249 [09:46:42]StoreOFDPacket docnum=15249 [09:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 96 6E 04 01 12 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 85 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 91 3B 00 00 35 04 06 00 F8 EB 04 91 F2 A8 77 74 46 8E 79 50 B5 CB [09:46:42]CheckFolder [09:46:42]dirname=/storage/ofd_packets [09:46:42]CheckFolder done [09:46:42]ProducePacketName [09:46:42]name=ofd_packets/00015249 [09:46:42]NVStorageSaveData ofd_packets/00015249 [09:46:42]File name is /storage/ofd_packets/00015249 [09:46:42]Write 298 bytes [09:46:42]NVStorageSaveData done [09:46:42]OFDSenderStorePacket done [09:46:42]KKMCreateOFDPacket done [09:46:42]NVStorageSaveData kkm_last_timestamp [09:46:42]File name is /storage/kkm_last_timestamp [09:46:42]Write 4 bytes [09:46:42]NVStorageSaveData done [09:46:42]ExternCall_PrintAddStr [09:46:42]wPrintStart [09:46:42]Write to MH i2c: 01 00 00 2B 1E 49 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 2B 1E 00 00 00 00 00 FF 0F 5E [09:46:42]RasterBufferAndPrint [09:46:42]line Счет N : (1)2078173 [09:46:42]line ИНН: 02508201610067 [09:46:42]line Контрольно-Кассовый Чек [09:46:42]line ПРОДАЖА [09:46:42]line ТРК (МРК, ГНК) : 21 [09:46:42]line Товар: 2710194210 [09:46:42]line ДТ-К-5 [09:46:42]line 40.000 * 0.00 [09:46:42]line = 0.00 [09:46:42]line НДС 12% НСП 1% [09:46:42]line > о реализуемом товаре [09:46:42]line ИТОГО: 0.00 [09:46:42]line НСП 1% : 0.00 [09:46:42]line НДС 12% : 0.00 [09:46:42]line Наличными: 0.00 [09:46:42]line Безнал.: 0.00 [09:46:42]line Место: АЗС № 135 "Партнер Нефть" [09:46:42]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:46:42]line СНО: Общий режим [09:46:42]line Чек 43 23.08.2024 09:46 [09:46:42]line Смена: 102 ФФД: 1.0 [09:46:42]line ЗНМ: 0300000144 [09:46:42]line РНМ: 0000000000162784 [09:46:42]line Версия ККМ: v1.0 [09:46:42]line Талоны: Топливные Талоны [09:46:42]line 1 [09:46:42]line ФМ: 0000000002094529 [09:46:42]line ФД: 15249 [09:46:42]line ФПД: 273688277676712 [09:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094645&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15249&fm=273688277676712&tin=02508201610067®Number=0000000000162784&sum=0 [09:46:43]OFD Sender: Processing packet 15249 [packets to send 8, broken 7] [09:46:43]ProducePacketName [09:46:43]name=ofd_packets/00015249 [09:46:43]OFD Sender: To server: pG, [09:46:43]CommunicateWithHost lk.salyk.kg:30040 [09:46:43]ConnectInit lk.salyk.kg [09:46:43]written 0, free lines is 4095 [09:46:43]Connected sock=10 [09:46:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 96 6E 04 01 12 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 85 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 91 3B 00 00 35 04 06 00 F8 EB 04 91 F2 A8 77 74 46 8E 79 50 B5 CB [09:46:43]Write to MH i2c: 01 00 00 55 1E 73 [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 07 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 E5 0C 6B [09:46:43]RasterBufferAndPrint [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]written 0, free lines is 3308 [09:46:43]MH_Cut [09:46:43]Write to MH i2c: D1 01 00 5C 1E 01 4C [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 01 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 01 00 5C 1E 00 4B [09:46:43]Write to MH i2c: 01 00 00 5D 1E 7B [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 B4 F2 47 00 74 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 91 3B 00 00 F4 03 04 00 E0 04 C8 66 B6 04 01 00 00 DC 7E ED 57 6F 8F A1 42 [09:46:43]CommunicateWithHost err = 0 [09:46:43]CheckOFDResponse [09:46:43]1017 (14) - 77093643461234 [09:46:43]1041 (16) - 0000000002094529 [09:46:43]1040 (4) - 15249 [09:46:43]1012 (4) - 23.08.2024 03:41 [09:46:43]1206 (1) - 0 [09:46:43]OFD Sender: Remove packet 15249 [09:46:43]ProducePacketName [09:46:43]name=ofd_packets/00015249 [09:46:43]NVStorageDeleteData [09:46:44]OFD Sender: No OFD packet to send [09:46:44]*** Cut start [09:46:44]*** Partial cut [09:46:44]*** CUTSNS_PIN = 1 [09:46:44]*** CUTSNS_PIN = 0 [09:46:44]*** Brake cut motor [09:46:44]Read from MH i2c: 01 [09:46:44]MH_I2C_Read... [09:46:44]*** Stop cut motor [09:46:44]*** Cut end [09:46:44]Read from MH i2c: 01 07 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: 01 07 00 5D 1E 00 00 00 00 00 FF 0F 90 [09:46:44]process_action close_receipt done [09:46:44]requested_data is exist [09:46:44]produce_requested_data [09:46:44]requested_item fm.sn is exist - process it [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 11 00 00 [09:46:44]Write to MH i2c: E2 08 00 5E 1E 80 11 00 00 00 00 00 00 F6 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 5E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 48 [09:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:46:44]wFMCommunicate OK [09:46:44]requested_item fd.num is exist - process it [09:46:44]SAM_PROTO_GetFieldsCounters [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 00 00 [09:46:44]Write to MH i2c: E2 08 00 5F 1E 80 13 00 00 00 00 00 00 F9 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 62 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 62 00 5F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 91 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [09:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 91 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:45]wFMCommunicate OK [09:46:45]SAM_PROTO_GetFieldsCounters done [09:46:45]requested_item shift.num is exist - process it [09:46:45]requested_item shift.opened is exist - process it [09:46:45]req_shift_opened [09:46:45]FM_GetShiftState [09:46:45]SAM_PROTO_GetShiftState [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 13 01 00 [09:46:45]Write to MH i2c: E2 08 00 60 1E 80 13 01 00 00 00 00 00 FB [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 0E 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 0E 00 60 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 BF [09:46:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:46:45]wFMCommunicate OK [09:46:45]SAM_PROTO_GetShiftState done [09:46:45]FM_GetShiftState done [09:46:45]req_shift_opened done [09:46:45]requested_item shift.open_date is exist - process it [09:46:45]req_shift_open_date [09:46:45]req_shift_open_date done [09:46:45]produce_requested_data done [09:46:45]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15249,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:46:45]process_action_free close_receipt [09:46:45]json_value_free [09:46:45]json_value_free done [09:46:45]process_json_proto returns [09:46:45]Send response to host [09:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15249,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:46:45]free response buf [09:46:45]execute_script done [09:46:45]execute_script returns [09:46:45]free content buf [09:46:45]Sock 9.Close socket [09:46:45]Sock 9.Thread stoped [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:56]accept exits with 8 [09:46:56]New connection [09:46:56]New thread 3066944868 created [09:46:56]Thread 3066801508 joined [09:46:56]Waiting for new connection... [09:46:56] Sock 8.Parse request [09:46:56]Sock 8.Check first char [09:46:56]Sock 8.First char is OK [09:46:56]request: POST /json_proto HTTP/1.0 [09:46:56]Method: POST [09:46:56]URL: /json_proto [09:46:56]Method is POST - this is cgi request [09:46:56]url: /json_proto [09:46:56]query_string will be loaded in cgi processing [09:46:56]execute_cgi json_proto POST (null) [09:46:56]execute_cgi path=json_proto method=POST [09:46:56]POST find Content-Length [09:46:56]Host: 172.17.44.4:8080 [09:46:56]Content-Length: 804 [09:46:56]Content-Type: application/json [09:46:56] [09:46:56]POST finish read [09:46:56]Found Content-Length = 804 [09:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:56]execute_script... [09:46:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:56]POST & json_proto [09:46:56]process_json_proto [09:46:56]json parsed OK: [09:46:56]protocol is kg_v1.0 [09:46:56]action value=close_receipt [09:46:56]process_action close_receipt [09:46:56]cmd_close_receipt [09:46:56]MH_GetDate [09:46:56]Write to MH i2c: F0 00 00 61 1E 6E [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 09 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 09 00 61 1E 00 94 5A C8 66 0F 81 47 66 D0 [09:46:56]GetLastDocTimeStamp 1724406405 [09:46:56]current date 1724406420 [09:46:56]FM_GetShiftState [09:46:56]SAM_PROTO_GetShiftState [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 13 01 00 [09:46:56]Write to MH i2c: E2 08 00 62 1E 80 13 01 00 00 00 00 00 FD [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 62 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 C1 [09:46:56]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:46:56]wFMCommunicate OK [09:46:56]SAM_PROTO_GetShiftState done [09:46:56]FM_GetShiftState done [09:46:56]opened in 1724372406 [09:46:56]opened+sec_in_day 1724458806 [09:46:56]quantity*price = 100005 [09:46:56]sum+1 = 100006 [09:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 44 23.08.2024 09:47 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15250 ФПД: 21163363367422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094700&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15250&fm=21163363367422&tin=02508201610067®Number=0000000000162784&sum=100005 [09:46:57]StoreToDocumentArchive [09:46:57]shift 102 fd 15250 [09:46:57]save to /storage/0102/doc_00015250 [09:46:57]save last doc name /storage/0102/doc_00015250 to /storage/kkm_last_doc_name [09:46:57]save OK [09:46:57]Clear old archive folders... [09:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:57]tlvbuf is B6F56520 [09:46:57]SAM_PROTO_ClearQueue [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 09 00 00 [09:46:57]Write to MH i2c: E2 08 00 6F 1E 80 09 00 00 00 00 00 00 FF [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_ClearQueue done [09:46:57]KKMCreateOFDPacket [09:46:57]OFDProtocolAddRootSTLVToBuf [09:46:57]FM_MakeSignedData [09:46:57]FM_MakeSignedData [09:46:57]SAM_PROTO_SignData [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 01 02 [09:46:57]Write to MH i2c: E2 08 00 70 1E 80 0D 01 02 00 00 00 00 07 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=255 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 92 3B 00 00 35 04 06 00 13 [09:46:57]Write to MH i2c: E2 02 01 71 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 92 3B 00 00 35 04 06 00 13 00 00 AE [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=10 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 05 3F 7A C1 79 FE [09:46:57]Write to MH i2c: E2 0D 00 72 1E 80 0D 02 02 05 00 3F 7A C1 79 FE 00 00 05 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 03 02 [09:46:57]Write to MH i2c: E2 08 00 73 1E 80 0D 03 02 00 00 00 00 0C [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 73 1E 00 1B 03 99 AD A7 DC 61 F1 90 00 46 [09:46:57]RAPDU: 1B 03 99 AD A7 DC 61 F1 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_SignData done [09:46:57]FM_MakeSignedData done [09:46:57]CreateOFDProtocolMessage [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 11 00 00 [09:46:57]Write to MH i2c: E2 08 00 74 1E 80 11 00 00 00 00 00 00 0C [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 74 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5E [09:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:46:57]wFMCommunicate OK [09:46:57]CreateOFDProtocolMessage done [09:46:57]OFDSenderStorePacket 15250 [09:46:57]StoreOFDPacket docnum=15250 [09:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 98 F0 07 01 28 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 92 3B 00 00 35 04 06 00 13 3F 7A C1 79 FE 1B 03 99 AD A7 DC 61 F1 [09:46:57]CheckFolder [09:46:57]dirname=/storage/ofd_packets [09:46:57]CheckFolder done [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00015250 [09:46:57]NVStorageSaveData ofd_packets/00015250 [09:46:57]File name is /storage/ofd_packets/00015250 [09:46:57]Write 301 bytes [09:46:57]NVStorageSaveData done [09:46:57]OFDSenderStorePacket done [09:46:57]KKMCreateOFDPacket done [09:46:57]NVStorageSaveData kkm_last_timestamp [09:46:57]File name is /storage/kkm_last_timestamp [09:46:57]Write 4 bytes [09:46:57]NVStorageSaveData done [09:46:57]ExternCall_PrintAddStr [09:46:57]wPrintStart [09:46:57]Write to MH i2c: 01 00 00 75 1E 93 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [09:46:57]RasterBufferAndPrint [09:46:57]line Счет N : (1)2078176 [09:46:57]line ИНН: 02508201610067 [09:46:57]line Контрольно-Кассовый Чек [09:46:57]line ПРОДАЖА [09:46:57]line ТРК (МРК, ГНК) : 43 [09:46:57]line Товар: 2710124130 [09:46:57]line Аи-92-К-4 [09:46:57]line 14.750 * 67.80 [09:46:57]line = 1000.05 [09:46:57]line НДС 12% НСП 1% [09:46:57]line > о реализуемом товаре [09:46:57]line ИТОГО: 1000.05 [09:46:57]line НСП 1% : 8.85 [09:46:57]line НДС 12% : 106.20 [09:46:57]line Наличными: 0.00 [09:46:57]line Безнал.: 1000.05 [09:46:57]line Место: АЗС № 135 "Партнер Нефть" [09:46:57]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:46:57]line СНО: Общий режим [09:46:57]line Чек 44 23.08.2024 09:47 [09:46:57]line Смена: 102 ФФД: 1.0 [09:46:57]line ЗНМ: 0300000144 [09:46:57]line РНМ: 0000000000162784 [09:46:57]line Версия ККМ: v1.0 [09:46:57]line Платежная система: O! деньги [09:46:57]line ФМ: 0000000002094529 [09:46:57]line ФД: 15250 [09:46:57]line ФПД: 21163363367422 [09:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094700&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15250&fm=21163363367422&tin=02508201610067®Number=0000000000162784&sum=100005 [09:46:58]OFD Sender: Processing packet 15250 [packets to send 8, broken 7] [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00015250 [09:46:58]OFD Sender: To server: pG, [09:46:58]CommunicateWithHost lk.salyk.kg:30040 [09:46:58]ConnectInit lk.salyk.kg [09:46:58]written 0, free lines is 4095 [09:46:58]Connected sock=10 [09:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 98 F0 07 01 28 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 92 3B 00 00 35 04 06 00 13 3F 7A C1 79 FE 1B 03 99 AD A7 DC 61 F1 [09:46:58]Write to MH i2c: 01 00 00 9F 1E BD [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 E7 0C B7 [09:46:58]RasterBufferAndPrint [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]written 0, free lines is 3309 [09:46:58]MH_Cut [09:46:58]Write to MH i2c: D1 01 00 A6 1E 01 96 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 A6 1E 00 95 [09:46:58]Write to MH i2c: 01 00 00 A7 1E C5 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1F 50 47 00 C7 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 92 3B 00 00 F4 03 04 00 EF 04 C8 66 B6 04 01 00 00 B5 38 94 6A A8 54 4B 55 [09:46:58]CommunicateWithHost err = 0 [09:46:58]CheckOFDResponse [09:46:58]1017 (14) - 77093643461234 [09:46:58]1041 (16) - 0000000002094529 [09:46:58]1040 (4) - 15250 [09:46:58]1012 (4) - 23.08.2024 03:41 [09:46:58]1206 (1) - 0 [09:46:58]OFD Sender: Remove packet 15250 [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00015250 [09:46:58]NVStorageDeleteData [09:46:59]OFD Sender: No OFD packet to send [09:46:59]*** Cut start [09:46:59]*** Partial cut [09:46:59]*** CUTSNS_PIN = 1 [09:46:59]*** CUTSNS_PIN = 0 [09:46:59]*** Brake cut motor [09:46:59]Read from MH i2c: 01 [09:46:59]MH_I2C_Read... [09:46:59]*** Stop cut motor [09:46:59]*** Cut end [09:46:59]Read from MH i2c: 01 07 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 FF 0F DA [09:47:00]process_action close_receipt done [09:47:00]requested_data is exist [09:47:00]produce_requested_data [09:47:00]requested_item fm.sn is exist - process it [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 11 00 00 [09:47:00]Write to MH i2c: E2 08 00 A8 1E 80 11 00 00 00 00 00 00 40 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 A8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 92 [09:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:47:00]wFMCommunicate OK [09:47:00]requested_item fd.num is exist - process it [09:47:00]SAM_PROTO_GetFieldsCounters [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 00 00 [09:47:00]Write to MH i2c: E2 08 00 A9 1E 80 13 00 00 00 00 00 00 43 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 A9 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 92 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 92 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetFieldsCounters done [09:47:00]requested_item shift.num is exist - process it [09:47:00]requested_item shift.opened is exist - process it [09:47:00]req_shift_opened [09:47:00]FM_GetShiftState [09:47:00]SAM_PROTO_GetShiftState [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 01 00 [09:47:00]Write to MH i2c: E2 08 00 AA 1E 80 13 01 00 00 00 00 00 45 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 AA 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 09 [09:47:00]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetShiftState done [09:47:00]FM_GetShiftState done [09:47:00]req_shift_opened done [09:47:00]requested_item shift.open_date is exist - process it [09:47:00]req_shift_open_date [09:47:00]req_shift_open_date done [09:47:00]produce_requested_data done [09:47:00]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15250,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:47:00]process_action_free close_receipt [09:47:00]json_value_free [09:47:00]json_value_free done [09:47:00]process_json_proto returns [09:47:00]Send response to host [09:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15250,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:47:00]free response buf [09:47:00]execute_script done [09:47:00]execute_script returns [09:47:00]free content buf [09:47:00]Sock 8.Close socket [09:47:00]Sock 8.Thread stoped [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:47:59]accept exits with 9 [09:47:59]New connection [09:47:59]New thread 3066801508 created [09:47:59]Thread 3066944868 joined [09:47:59]Waiting for new connection... [09:47:59] Sock 9.Parse request [09:47:59]Sock 9.Check first char [09:47:59]Sock 9.First char is OK [09:47:59]request: POST /json_proto HTTP/1.0 [09:47:59]Method: POST [09:47:59]URL: /json_proto [09:47:59]Method is POST - this is cgi request [09:47:59]url: /json_proto [09:47:59]query_string will be loaded in cgi processing [09:47:59]execute_cgi json_proto POST (null) [09:47:59]execute_cgi path=json_proto method=POST [09:47:59]POST find Content-Length [09:47:59]Host: 172.17.44.4:8080 [09:47:59]Content-Length: 675 [09:47:59]Content-Type: application/json [09:47:59] [09:47:59]POST finish read [09:47:59]Found Content-Length = 675 [09:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.940, "sum" : 452.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 452.00, "total" : 452.00, "payments": [ { "type": 0, "sum" : 452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:59]execute_script... [09:47: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 : (1)2078179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.940, "sum" : 452.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 452.00, "total" : 452.00, "payments": [ { "type": 0, "sum" : 452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:59]POST & json_proto [09:47:59]process_json_proto [09:47:59]json parsed OK: [09:47:59]protocol is kg_v1.0 [09:47:59]action value=close_receipt [09:47:59]process_action close_receipt [09:47:59]cmd_close_receipt [09:47:59]MH_GetDate [09:47:59]Write to MH i2c: F0 00 00 AB 1E B8 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 09 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 09 00 AB 1E 00 D3 5A C8 66 0F 81 47 66 59 [09:47:59]GetLastDocTimeStamp 1724406420 [09:47:59]current date 1724406483 [09:47:59]FM_GetShiftState [09:47:59]SAM_PROTO_GetShiftState [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 13 01 00 [09:47:59]Write to MH i2c: E2 08 00 AC 1E 80 13 01 00 00 00 00 00 47 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 AC 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 0B [09:47:59]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_GetShiftState done [09:47:59]FM_GetShiftState done [09:47:59]opened in 1724372406 [09:47:59]opened+sec_in_day 1724458806 [09:47:59]quantity*price = 45262 [09:47:59]sum+1 = 45264 [09:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 452.00 Внесено: 452.00 СДАЧА: 0.00 НСП 1% : 4.01 НДС 12% : 48.07 Наличными: 452.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 45 23.08.2024 09:48 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15251 ФПД: 143108265177432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094803&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15251&fm=143108265177432&tin=02508201610067®Number=0000000000162784&sum=45200 [09:48:00]StoreToDocumentArchive [09:48:00]shift 102 fd 15251 [09:48:00]save to /storage/0102/doc_00015251 [09:48:00]save last doc name /storage/0102/doc_00015251 to /storage/kkm_last_doc_name [09:48:00]save OK [09:48:00]Clear old archive folders... [09:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:00]tlvbuf is 004ABEE0 [09:48:00]SAM_PROTO_ClearQueue [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 09 00 00 [09:48:00]Write to MH i2c: E2 08 00 B9 1E 80 09 00 00 00 00 00 00 49 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 B9 1E 00 90 00 4B [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]SAM_PROTO_ClearQueue done [09:48:00]KKMCreateOFDPacket [09:48:00]OFDProtocolAddRootSTLVToBuf [09:48:00]FM_MakeSignedData [09:48:00]FM_MakeSignedData [09:48:00]SAM_PROTO_SignData [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 01 02 [09:48:00]Write to MH i2c: E2 08 00 BA 1E 80 0D 01 02 00 00 00 00 51 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 BA 1E 00 90 00 4C [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]wFMCommunicate request_size=255 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 12 00 00 00 00 07 04 06 00 90 B0 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 D3 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 93 3B 00 00 35 04 06 00 82 27 FD 4F [09:48:00]Write to MH i2c: E2 02 01 BB 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 12 00 00 00 00 07 04 06 00 90 B0 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 D3 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 93 3B 00 00 35 04 06 00 82 27 FD 4F 00 00 F7 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]wFMCommunicate request_size=7 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 02 02 02 71 58 [09:48:01]Write to MH i2c: E2 0A 00 BC 1E 80 0D 02 02 02 00 71 58 00 00 21 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 03 02 [09:48:01]Write to MH i2c: E2 08 00 BD 1E 80 0D 03 02 00 00 00 00 56 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0B 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0B 00 BD 1E 00 23 C6 0F E9 2B F2 A2 92 90 00 89 [09:48:01]RAPDU: 23 C6 0F E9 2B F2 A2 92 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_SignData done [09:48:01]FM_MakeSignedData done [09:48:01]CreateOFDProtocolMessage [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 11 00 00 [09:48:01]Write to MH i2c: E2 08 00 BE 1E 80 11 00 00 00 00 00 00 56 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 BE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A8 [09:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:48:01]wFMCommunicate OK [09:48:01]CreateOFDProtocolMessage done [09:48:01]OFDSenderStorePacket 15251 [09:48:01]StoreOFDPacket docnum=15251 [09:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 54 8B 04 01 87 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 12 00 00 00 00 07 04 06 00 90 B0 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 D3 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 93 3B 00 00 35 04 06 00 82 27 FD 4F 71 58 23 C6 0F E9 2B F2 A2 92 [09:48:01]CheckFolder [09:48:01]dirname=/storage/ofd_packets [09:48:01]CheckFolder done [09:48:01]ProducePacketName [09:48:01]name=ofd_packets/00015251 [09:48:01]NVStorageSaveData ofd_packets/00015251 [09:48:01]File name is /storage/ofd_packets/00015251 [09:48:01]Write 298 bytes [09:48:01]NVStorageSaveData done [09:48:01]OFDSenderStorePacket done [09:48:01]KKMCreateOFDPacket done [09:48:01]NVStorageSaveData kkm_last_timestamp [09:48:01]File name is /storage/kkm_last_timestamp [09:48:01]Write 4 bytes [09:48:01]NVStorageSaveData done [09:48:01]ExternCall_PrintAddStr [09:48:01]wPrintStart [09:48:01]Write to MH i2c: 01 00 00 BF 1E DD [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 BF 1E 00 00 00 00 00 FF 0F F2 [09:48:01]RasterBufferAndPrint [09:48:01]line Счет N : (1)2078179 [09:48:01]line ИНН: 02508201610067 [09:48:01]line Контрольно-Кассовый Чек [09:48:01]line ПРОДАЖА [09:48:01]line ТРК (МРК, ГНК) : 21 [09:48:01]line Товар: 2710194210 [09:48:01]line ДТ-К-5 [09:48:01]line 5.940 * 76.20 [09:48:01]line = 452.63 [09:48:01]line НДС 12% НСП 1% [09:48:01]line > о реализуемом товаре [09:48:01]line ОКРУГЛЕНИЕ: -0.63 [09:48:01]line ИТОГО: 452.00 [09:48:01]line Внесено: 452.00 [09:48:01]line СДАЧА: 0.00 [09:48:01]line НСП 1% : 4.01 [09:48:01]line НДС 12% : 48.07 [09:48:01]line Наличными: 452.00 [09:48:01]line Безнал.: 0.00 [09:48:01]line Место: АЗС № 135 "Партнер Нефть" [09:48:01]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:48:01]line СНО: Общий режим [09:48:01]line Чек 45 23.08.2024 09:48 [09:48:01]line Смена: 102 ФФД: 1.0 [09:48:01]line ЗНМ: 0300000144 [09:48:01]line РНМ: 0000000000162784 [09:48:01]line Версия ККМ: v1.0 [09:48:01]line ФМ: 0000000002094529 [09:48:01]line ФД: 15251 [09:48:01]line ФПД: 143108265177432 [09:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094803&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15251&fm=143108265177432&tin=02508201610067®Number=0000000000162784&sum=45200 [09:48:01]OFD Sender: Processing packet 15251 [packets to send 8, broken 7] [09:48:01]ProducePacketName [09:48:01]name=ofd_packets/00015251 [09:48:01]OFD Sender: To server: pG, [09:48:01]CommunicateWithHost lk.salyk.kg:30040 [09:48:01]ConnectInit lk.salyk.kg [09:48:01]written 0, free lines is 4095 [09:48:01]Connected sock=10 [09:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 54 8B 04 01 87 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 B0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 12 00 00 00 00 07 04 06 00 90 B0 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 D3 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 93 3B 00 00 35 04 06 00 82 27 FD 4F 71 58 23 C6 0F E9 2B F2 A2 92 [09:48:02]Write to MH i2c: 01 00 00 EA 1E 08 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 EA 1E 00 00 00 00 00 CD 0C E8 [09:48:02]RasterBufferAndPrint [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]written 0, free lines is 3282 [09:48:02]MH_Cut [09:48:02]Write to MH i2c: D1 01 00 F1 1E 01 E1 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 01 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 01 00 F1 1E 00 E0 [09:48:02]Write to MH i2c: 01 00 00 F2 1E 10 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 83 CC 47 00 D1 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 93 3B 00 00 F4 03 04 00 2F 05 C8 66 B6 04 01 00 00 9F 44 38 BD CB 4F 0D 2D [09:48:02]CommunicateWithHost err = 0 [09:48:02]CheckOFDResponse [09:48:02]1017 (14) - 77093643461234 [09:48:02]1041 (16) - 0000000002094529 [09:48:02]1040 (4) - 15251 [09:48:02]1012 (4) - 23.08.2024 03:42 [09:48:02]1206 (1) - 0 [09:48:02]OFD Sender: Remove packet 15251 [09:48:02]ProducePacketName [09:48:02]name=ofd_packets/00015251 [09:48:02]NVStorageDeleteData [09:48:02]OFD Sender: No OFD packet to send [09:48:02]*** Cut start [09:48:02]*** Partial cut [09:48:02]*** CUTSNS_PIN = 1 [09:48:02]*** CUTSNS_PIN = 0 [09:48:03]*** Brake cut motor [09:48:03]Read from MH i2c: 01 [09:48:03]MH_I2C_Read... [09:48:03]*** Stop cut motor [09:48:03]*** Cut end [09:48:03]Read from MH i2c: 01 07 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 FF 0F 25 [09:48:03]process_action close_receipt done [09:48:03]requested_data is exist [09:48:03]produce_requested_data [09:48:03]requested_item fm.sn is exist - process it [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 11 00 00 [09:48:03]Write to MH i2c: E2 08 00 F3 1E 80 11 00 00 00 00 00 00 8B [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 F3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 DD [09:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:48:03]wFMCommunicate OK [09:48:03]requested_item fd.num is exist - process it [09:48:03]SAM_PROTO_GetFieldsCounters [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 13 00 00 [09:48:03]Write to MH i2c: E2 08 00 F4 1E 80 13 00 00 00 00 00 00 8E [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 62 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 62 00 F4 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 93 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:48:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 93 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_GetFieldsCounters done [09:48:03]requested_item shift.num is exist - process it [09:48:03]requested_item shift.opened is exist - process it [09:48:03]req_shift_opened [09:48:03]FM_GetShiftState [09:48:03]SAM_PROTO_GetShiftState [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 13 01 00 [09:48:03]Write to MH i2c: E2 08 00 F5 1E 80 13 01 00 00 00 00 00 90 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 F5 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 54 [09:48:03]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_GetShiftState done [09:48:03]FM_GetShiftState done [09:48:03]req_shift_opened done [09:48:03]requested_item shift.open_date is exist - process it [09:48:03]req_shift_open_date [09:48:03]req_shift_open_date done [09:48:03]produce_requested_data done [09:48:03]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15251,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:48:03]process_action_free close_receipt [09:48:03]json_value_free [09:48:03]json_value_free done [09:48:03]process_json_proto returns [09:48:03]Send response to host [09:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15251,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:48:03]free response buf [09:48:03]execute_script done [09:48:03]execute_script returns [09:48:03]free content buf [09:48:03]Sock 9.Close socket [09:48:03]Sock 9.Thread stoped [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]accept exits with 8 [09:48:27]New connection [09:48:27]New thread 3066944868 created [09:48:27]Thread 3066801508 joined [09:48:27]Waiting for new connection... [09:48:27] Sock 8.Parse request [09:48:27]Sock 8.Check first char [09:48:27]Sock 8.First char is OK [09:48:27]request: POST /json_proto HTTP/1.0 [09:48:27]Method: POST [09:48:27]URL: /json_proto [09:48:27]Method is POST - this is cgi request [09:48:27]url: /json_proto [09:48:27]query_string will be loaded in cgi processing [09:48:27]execute_cgi json_proto POST (null) [09:48:27]execute_cgi path=json_proto method=POST [09:48:27]POST find Content-Length [09:48:27]Host: 172.17.44.4:8080 [09:48:27]Content-Length: 804 [09:48:27]Content-Type: application/json [09:48:27] [09:48:27]POST finish read [09:48:27]Found Content-Length = 804 [09:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 73.970, "sum" : 5488.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5488.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:27]execute_script... [09:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 73.970, "sum" : 5488.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5488.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:27]POST & json_proto [09:48:27]process_json_proto [09:48:27]json parsed OK: [09:48:27]protocol is kg_v1.0 [09:48:27]action value=close_receipt [09:48:27]process_action close_receipt [09:48:27]cmd_close_receipt [09:48:27]MH_GetDate [09:48:27]Write to MH i2c: F0 00 00 F6 1E 03 [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 09 00 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 09 00 F6 1E 00 EE 5A C8 66 0F 81 47 66 BF [09:48:27]GetLastDocTimeStamp 1724406483 [09:48:27]current date 1724406510 [09:48:27]FM_GetShiftState [09:48:27]SAM_PROTO_GetShiftState [09:48:27]wFMCommunicate request_size=4 [09:48:27]MH_SAM_APDU [09:48:27]CAPDU: 80 13 01 00 [09:48:27]Write to MH i2c: E2 08 00 F7 1E 80 13 01 00 00 00 00 00 92 [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:27]Read from MH i2c: E2 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 0E 00 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 0E 00 F7 1E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 56 [09:48:27]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:48:27]wFMCommunicate OK [09:48:27]SAM_PROTO_GetShiftState done [09:48:27]FM_GetShiftState done [09:48:27]opened in 1724372406 [09:48:27]opened+sec_in_day 1724458806 [09:48:27]quantity*price = 548857 [09:48:27]sum+1 = 548858 [09:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5488.57 НСП 1% : 48.57 НДС 12% : 582.86 Наличными: 0.00 Безнал.: 5488.57 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 46 23.08.2024 09:48 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15252 ФПД: 243743413235395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094831&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15252&fm=243743413235395&tin=02508201610067®Number=0000000000162784&sum=548857 [09:48:28]StoreToDocumentArchive [09:48:28]shift 102 fd 15252 [09:48:28]save to /storage/0102/doc_00015252 [09:48:28]save last doc name /storage/0102/doc_00015252 to /storage/kkm_last_doc_name [09:48:28]save OK [09:48:28]Clear old archive folders... [09:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:28]tlvbuf is 0047A9E0 [09:48:28]SAM_PROTO_ClearQueue [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 09 00 00 [09:48:28]Write to MH i2c: E2 08 00 04 1F 80 09 00 00 00 00 00 00 95 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 04 1F 00 90 00 97 [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]SAM_PROTO_ClearQueue done [09:48:28]KKMCreateOFDPacket [09:48:28]OFDProtocolAddRootSTLVToBuf [09:48:28]FM_MakeSignedData [09:48:28]FM_MakeSignedData [09:48:28]SAM_PROTO_SignData [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 01 02 [09:48:28]Write to MH i2c: E2 08 00 05 1F 80 0D 01 02 00 00 00 00 9D [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 05 1F 00 90 00 98 [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=255 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 20 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F9 5F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 5F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE E3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 5F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EF 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 94 3B 00 00 35 04 06 00 DD [09:48:28]Write to MH i2c: E2 02 01 06 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 20 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F9 5F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 5F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE E3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 5F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EF 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 94 3B 00 00 35 04 06 00 DD 00 00 4B [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 06 1F 00 90 00 99 [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=10 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 02 02 05 AE EF 8F EE C3 [09:48:28]Write to MH i2c: E2 0D 00 07 1F 80 0D 02 02 05 00 AE EF 8F EE C3 00 00 87 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 03 02 [09:48:28]Write to MH i2c: E2 08 00 08 1F 80 0D 03 02 00 00 00 00 A2 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0B 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 0B 00 08 1F 00 9D AE 5C 98 E1 12 0F 16 90 00 FA [09:48:28]RAPDU: 9D AE 5C 98 E1 12 0F 16 90 00 [09:48:28]wFMCommunicate OK [09:48:28]SAM_PROTO_SignData done [09:48:28]FM_MakeSignedData done [09:48:28]CreateOFDProtocolMessage [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 11 00 00 [09:48:28]Write to MH i2c: E2 08 00 09 1F 80 11 00 00 00 00 00 00 A2 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 17 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 17 00 09 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F4 [09:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:48:28]wFMCommunicate OK [09:48:28]CreateOFDProtocolMessage done [09:48:28]OFDSenderStorePacket 15252 [09:48:28]StoreOFDPacket docnum=15252 [09:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 60 E0 07 01 22 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 20 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F9 5F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 5F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE E3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 5F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EF 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 94 3B 00 00 35 04 06 00 DD AE EF 8F EE C3 9D AE 5C 98 E1 12 0F 16 [09:48:28]CheckFolder [09:48:28]dirname=/storage/ofd_packets [09:48:28]CheckFolder done [09:48:28]ProducePacketName [09:48:28]name=ofd_packets/00015252 [09:48:28]NVStorageSaveData ofd_packets/00015252 [09:48:28]File name is /storage/ofd_packets/00015252 [09:48:28]Write 301 bytes [09:48:28]NVStorageSaveData done [09:48:28]OFDSenderStorePacket done [09:48:28]KKMCreateOFDPacket done [09:48:28]NVStorageSaveData kkm_last_timestamp [09:48:28]File name is /storage/kkm_last_timestamp [09:48:28]Write 4 bytes [09:48:28]NVStorageSaveData done [09:48:28]ExternCall_PrintAddStr [09:48:28]wPrintStart [09:48:28]Write to MH i2c: 01 00 00 0A 1F 29 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 07 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: 01 07 00 0A 1F 00 00 00 00 00 FF 0F 3E [09:48:28]RasterBufferAndPrint [09:48:28]line Счет N : (1)2078177 [09:48:28]line ИНН: 02508201610067 [09:48:28]line Контрольно-Кассовый Чек [09:48:28]line ПРОДАЖА [09:48:28]line ТРК (МРК, ГНК) : 52 [09:48:28]line Товар: 2710124500 [09:48:28]line Аи-95-К-5 [09:48:28]line 73.970 * 74.20 [09:48:28]line = 5488.57 [09:48:28]line НДС 12% НСП 1% [09:48:28]line > о реализуемом товаре [09:48:28]line ИТОГО: 5488.57 [09:48:28]line НСП 1% : 48.57 [09:48:28]line НДС 12% : 582.86 [09:48:28]line Наличными: 0.00 [09:48:28]line Безнал.: 5488.57 [09:48:28]line Место: АЗС № 135 "Партнер Нефть" [09:48:28]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:48:28]line СНО: Общий режим [09:48:28]line Чек 46 23.08.2024 09:48 [09:48:28]line Смена: 102 ФФД: 1.0 [09:48:28]line ЗНМ: 0300000144 [09:48:28]line РНМ: 0000000000162784 [09:48:29]line Версия ККМ: v1.0 [09:48:29]line Платежная система: O! деньги [09:48:29]line ФМ: 0000000002094529 [09:48:29]line ФД: 15252 [09:48:29]line ФПД: 243743413235395 [09:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094831&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15252&fm=243743413235395&tin=02508201610067®Number=0000000000162784&sum=548857 [09:48:29]OFD Sender: Processing packet 15252 [packets to send 8, broken 7] [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00015252 [09:48:29]OFD Sender: To server: pG, [09:48:29]CommunicateWithHost lk.salyk.kg:30040 [09:48:29]ConnectInit lk.salyk.kg [09:48:29]written 0, free lines is 4095 [09:48:29]Connected sock=10 [09:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 60 E0 07 01 22 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 20 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F9 5F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 5F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE E3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 5F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EF 5A C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 94 3B 00 00 35 04 06 00 DD AE EF 8F EE C3 9D AE 5C 98 E1 12 0F 16 [09:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 F2 63 47 00 39 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 94 3B 00 00 F4 03 04 00 4A 05 C8 66 B6 04 01 00 00 E0 F3 95 B3 18 84 F0 F0 [09:48:29]CommunicateWithHost err = 0 [09:48:29]CheckOFDResponse [09:48:29]1017 (14) - 77093643461234 [09:48:29]1041 (16) - 0000000002094529 [09:48:29]1040 (4) - 15252 [09:48:29]1012 (4) - 23.08.2024 03:43 [09:48:29]1206 (1) - 0 [09:48:29]OFD Sender: Remove packet 15252 [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00015252 [09:48:29]NVStorageDeleteData [09:48:29]Write to MH i2c: 01 00 00 34 1F 53 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 34 1F 00 00 00 00 00 E7 0C 4D [09:48:29]RasterBufferAndPrint [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]written 0, free lines is 3310 [09:48:29]MH_Cut [09:48:29]Write to MH i2c: D1 01 00 3B 1F 01 2C [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 3B 1F 00 2B [09:48:29]Write to MH i2c: 01 00 00 3C 1F 5B [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:30]OFD Sender: No OFD packet to send [09:48:30]*** Cut start [09:48:30]*** Partial cut [09:48:30]*** CUTSNS_PIN = 1 [09:48:30]*** CUTSNS_PIN = 0 [09:48:30]*** Brake cut motor [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]*** Stop cut motor [09:48:30]*** Cut end [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 3C 1F 00 00 00 00 00 FF 0F 70 [09:48:30]process_action close_receipt done [09:48:30]requested_data is exist [09:48:30]produce_requested_data [09:48:30]requested_item fm.sn is exist - process it [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 11 00 00 [09:48:30]Write to MH i2c: E2 08 00 3D 1F 80 11 00 00 00 00 00 00 D6 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 17 00 3D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 28 [09:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:48:30]wFMCommunicate OK [09:48:30]requested_item fd.num is exist - process it [09:48:30]SAM_PROTO_GetFieldsCounters [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 13 00 00 [09:48:30]Write to MH i2c: E2 08 00 3E 1F 80 13 00 00 00 00 00 00 D9 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 3E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 94 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 94 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetFieldsCounters done [09:48:31]requested_item shift.num is exist - process it [09:48:31]requested_item shift.opened is exist - process it [09:48:31]req_shift_opened [09:48:31]FM_GetShiftState [09:48:31]SAM_PROTO_GetShiftState [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 13 01 00 [09:48:31]Write to MH i2c: E2 08 00 3F 1F 80 13 01 00 00 00 00 00 DB [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 3F 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 9F [09:48:31]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetShiftState done [09:48:31]FM_GetShiftState done [09:48:31]req_shift_opened done [09:48:31]requested_item shift.open_date is exist - process it [09:48:31]req_shift_open_date [09:48:31]req_shift_open_date done [09:48:31]produce_requested_data done [09:48:31]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15252,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:48:31]process_action_free close_receipt [09:48:31]json_value_free [09:48:31]json_value_free done [09:48:31]process_json_proto returns [09:48:31]Send response to host [09:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15252,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:48:31]free response buf [09:48:31]execute_script done [09:48:31]execute_script returns [09:48:31]free content buf [09:48:31]Sock 8.Close socket [09:48:31]Sock 8.Thread stoped [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:01]accept exits with 9 [09:49:01]New connection [09:49:01]New thread 3066801508 created [09:49:01]Thread 3066944868 joined [09:49:01]Waiting for new connection... [09:49:01] Sock 9.Parse request [09:49:01]Sock 9.Check first char [09:49:01]Sock 9.First char is OK [09:49:01]request: POST /json_proto HTTP/1.0 [09:49:01]Method: POST [09:49:01]URL: /json_proto [09:49:01]Method is POST - this is cgi request [09:49:01]url: /json_proto [09:49:01]query_string will be loaded in cgi processing [09:49:01]execute_cgi json_proto POST (null) [09:49:01]execute_cgi path=json_proto method=POST [09:49:01]POST find Content-Length [09:49:01]Host: 172.17.44.4:8080 [09:49:01]Content-Length: 895 [09:49:01]Content-Type: application/json [09:49:01] [09:49:01]POST finish read [09:49:01]Found Content-Length = 895 [09:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151270", "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 }]} ,{ "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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:01]execute_script... [09:49: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)151270", "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 }]} ,{ "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" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:01]POST & json_proto [09:49:01]process_json_proto [09:49:01]json parsed OK: [09:49:01]protocol is kg_v1.0 [09:49:01]action value=close_receipt [09:49:01]process_action close_receipt [09:49:01]cmd_close_receipt [09:49:01]MH_GetDate [09:49:01]Write to MH i2c: F0 00 00 40 1F 4E [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: F0 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: F0 09 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: F0 09 00 40 1F 00 11 5B C8 66 0F 81 47 66 2E [09:49:01]GetLastDocTimeStamp 1724406511 [09:49:01]current date 1724406545 [09:49:01]FM_GetShiftState [09:49:01]SAM_PROTO_GetShiftState [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 13 01 00 [09:49:01]Write to MH i2c: E2 08 00 41 1F 80 13 01 00 00 00 00 00 DD [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0E 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0E 00 41 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 A1 [09:49:01]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:49:01]wFMCommunicate OK [09:49:01]SAM_PROTO_GetShiftState done [09:49:01]FM_GetShiftState done [09:49:01]opened in 1724372406 [09:49:01]opened+sec_in_day 1724458806 [09:49:01]quantity*price = 6000 [09:49:01]sum+1 = 6001 [09:49:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 47 23.08.2024 09:49 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15253 ФПД: 185633982088262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094905&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15253&fm=185633982088262&tin=02508201610067®Number=0000000000162784&sum=12000 0 [09:49:02]StoreToDocumentArchive [09:49:02]shift 102 fd 15253 [09:49:02]save to /storage/0102/doc_00015253 [09:49:02]save last doc name /storage/0102/doc_00015253 to /storage/kkm_last_doc_name [09:49:02]save OK [09:49:02]Clear old archive folders... [09:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=377 [09:49:02]tlvbuf is 0047AC30 [09:49:02]SAM_PROTO_ClearQueue [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 09 00 00 [09:49:02]Write to MH i2c: E2 08 00 4E 1F 80 09 00 00 00 00 00 00 DF [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 4E 1F 00 90 00 E1 [09:49:02]RAPDU: 90 00 [09:49:02]wFMCommunicate OK [09:49:02]SAM_PROTO_ClearQueue done [09:49:02]KKMCreateOFDPacket [09:49:02]OFDProtocolAddRootSTLVToBuf [09:49:02]FM_MakeSignedData [09:49:02]FM_MakeSignedData [09:49:02]SAM_PROTO_SignData [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 0D 01 02 [09:49:02]Write to MH i2c: E2 08 00 4F 1F 80 0D 01 02 00 00 00 00 E7 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 4F 1F 00 90 00 E2 [09:49:02]RAPDU: 90 00 [09:49:02]wFMCommunicate OK [09:49:02]wFMCommunicate request_size=255 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 0D 02 02 FA 03 00 79 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 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE [09:49:02]Write to MH i2c: E2 02 01 50 1F 80 0D 02 02 FA 00 03 00 79 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 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 00 00 79 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 50 1F 00 90 00 E3 [09:49:02]RAPDU: 90 00 [09:49:02]wFMCommunicate OK [09:49:02]wFMCommunicate request_size=136 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 11 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 95 3B 00 00 35 04 06 00 A8 D5 47 8F 84 46 [09:49:02]Write to MH i2c: E2 8B 00 51 1F 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 11 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 95 3B 00 00 35 04 06 00 A8 D5 47 8F 84 46 00 00 59 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [09:49:02]RAPDU: 90 00 [09:49:02]wFMCommunicate OK [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 0D 03 02 [09:49:02]Write to MH i2c: E2 08 00 52 1F 80 0D 03 02 00 00 00 00 EC [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0B 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 0B 00 52 1F 00 22 C4 90 37 02 F0 C1 C5 90 00 12 [09:49:03]RAPDU: 22 C4 90 37 02 F0 C1 C5 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_SignData done [09:49:03]FM_MakeSignedData done [09:49:03]CreateOFDProtocolMessage [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 11 00 00 [09:49:03]Write to MH i2c: E2 08 00 53 1F 80 11 00 00 00 00 00 00 EC [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 53 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 3E [09:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:49:03]wFMCommunicate OK [09:49:03]CreateOFDProtocolMessage done [09:49:03]OFDSenderStorePacket 15253 [09:49:03]StoreOFDPacket docnum=15253 [09:49:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 8D 01 00 00 15 A5 85 01 88 7D 5A 03 01 00 03 00 79 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 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 11 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 95 3B 00 00 35 04 06 00 A8 D5 47 8F 84 46 22 C4 90 37 02 F0 C1 C5 [09:49:03]CheckFolder [09:49:03]dirname=/storage/ofd_packets [09:49:03]CheckFolder done [09:49:03]ProducePacketName [09:49:03]name=ofd_packets/00015253 [09:49:03]NVStorageSaveData ofd_packets/00015253 [09:49:03]File name is /storage/ofd_packets/00015253 [09:49:03]Write 427 bytes [09:49:03]NVStorageSaveData done [09:49:03]OFDSenderStorePacket done [09:49:03]KKMCreateOFDPacket done [09:49:03]NVStorageSaveData kkm_last_timestamp [09:49:03]File name is /storage/kkm_last_timestamp [09:49:03]Write 4 bytes [09:49:03]NVStorageSaveData done [09:49:03]ExternCall_PrintAddStr [09:49:03]wPrintStart [09:49:03]Write to MH i2c: 01 00 00 54 1F 73 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 54 1F 00 00 00 00 00 FF 0F 88 [09:49:03]RasterBufferAndPrint [09:49:03]line Счет N : (3)151270 [09:49:03]line ИНН: 02508201610067 [09:49:03]line Контрольно-Кассовый Чек [09:49:03]line ПРОДАЖА [09:49:03]line Товар: 4700000160204 [09:49:03]line Вода Легенда 1,5л [09:49:03]line 1.000 * 60.00 [09:49:03]line = 60.00 [09:49:03]line НДС 12% НСП 1% [09:49:03]line > о реализуемом товаре [09:49:03]line Товар: 4700000310043 [09:49:03]line Вода Жалалабат 27 1л [09:49:03]line 1.000 * 60.00 [09:49:03]line = 60.00 [09:49:03]line НДС 12% НСП 1% [09:49:03]line > о реализуемом товаре [09:49:03]line ИТОГО: 120.00 [09:49:03]line НСП 1% : 1.06 [09:49:03]line НДС 12% : 12.74 [09:49:03]line Наличными: 120.00 [09:49:03]line Безнал.: 0.00 [09:49:03]line Место: АЗС № 135 "Партнер Нефть" [09:49:03]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:49:03]line СНО: Общий режим [09:49:03]line Чек 47 23.08.2024 09:49 [09:49:03]line Смена: 102 ФФД: 1.0 [09:49:03]line ЗНМ: 0300000144 [09:49:03]line РНМ: 0000000000162784 [09:49:03]line Версия ККМ: v1.0 [09:49:03]line ФМ: 0000000002094529 [09:49:03]line ФД: 15253 [09:49:03]line ФПД: 185633982088262 [09:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094905&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15253&fm=185633982088262&tin=02508201610067®Number=0000000000162784&sum=12000 [09:49:03]line 0 [09:49:03]OFD Sender: Processing packet 15253 [packets to send 8, broken 7] [09:49:03]ProducePacketName [09:49:03]name=ofd_packets/00015253 [09:49:03]OFD Sender: To server: pG, [09:49:03]CommunicateWithHost lk.salyk.kg:30040 [09:49:03]ConnectInit lk.salyk.kg [09:49:03]written 0, free lines is 4095 [09:49:03]Connected sock=10 [09:49:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 8D 01 00 00 15 A5 85 01 88 7D 5A 03 01 00 03 00 79 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 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 11 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 95 3B 00 00 35 04 06 00 A8 D5 47 8F 84 46 22 C4 90 37 02 F0 C1 C5 [09:49:03]Write to MH i2c: 01 00 00 82 1F A1 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 82 1F 00 00 00 00 00 B3 0C 67 [09:49:03]RasterBufferAndPrint [09:49:03]line [09:49:03]line [09:49:03]line [09:49:03]line [09:49:03]line [09:49:03]written 0, free lines is 3257 [09:49:03]MH_Cut [09:49:03]Write to MH i2c: D1 01 00 89 1F 01 7A [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: D1 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: D1 01 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: D1 01 00 89 1F 00 79 [09:49:03]Write to MH i2c: 01 00 00 8A 1F A9 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 C3 9D 47 00 64 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 95 3B 00 00 F4 03 04 00 6D 05 C8 66 B6 04 01 00 00 FF A5 5C 93 F4 AB 5D 50 [09:49:03]CommunicateWithHost err = 0 [09:49:03]CheckOFDResponse [09:49:03]1017 (14) - 77093643461234 [09:49:03]1041 (16) - 0000000002094529 [09:49:03]1040 (4) - 15253 [09:49:03]1012 (4) - 23.08.2024 03:43 [09:49:03]1206 (1) - 0 [09:49:03]OFD Sender: Remove packet 15253 [09:49:03]ProducePacketName [09:49:03]name=ofd_packets/00015253 [09:49:03]NVStorageDeleteData [09:49:04]OFD Sender: No OFD packet to send [09:49:04]*** Cut start [09:49:04]*** Partial cut [09:49:04]*** CUTSNS_PIN = 1 [09:49:04]*** CUTSNS_PIN = 0 [09:49:04]*** Brake cut motor [09:49:05]Read from MH i2c: 01 [09:49:05]MH_I2C_Read... [09:49:05]*** Stop cut motor [09:49:05]*** Cut end [09:49:05]Read from MH i2c: 01 07 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: 01 07 00 8A 1F 00 00 00 00 00 FF 0F BE [09:49:05]process_action close_receipt done [09:49:05]requested_data is exist [09:49:05]produce_requested_data [09:49:05]requested_item fm.sn is exist - process it [09:49:05]wFMCommunicate request_size=4 [09:49:05]MH_SAM_APDU [09:49:05]CAPDU: 80 11 00 00 [09:49:05]Write to MH i2c: E2 08 00 8B 1F 80 11 00 00 00 00 00 00 24 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:05]Read from MH i2c: E2 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 17 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 17 00 8B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 76 [09:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:49:05]wFMCommunicate OK [09:49:05]requested_item fd.num is exist - process it [09:49:05]SAM_PROTO_GetFieldsCounters [09:49:05]wFMCommunicate request_size=4 [09:49:05]MH_SAM_APDU [09:49:05]CAPDU: 80 13 00 00 [09:49:05]Write to MH i2c: E2 08 00 8C 1F 80 13 00 00 00 00 00 00 27 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:05]Read from MH i2c: E2 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 62 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 62 00 8C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 95 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 95 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:05]wFMCommunicate OK [09:49:05]SAM_PROTO_GetFieldsCounters done [09:49:05]requested_item shift.num is exist - process it [09:49:05]requested_item shift.opened is exist - process it [09:49:05]req_shift_opened [09:49:05]FM_GetShiftState [09:49:05]SAM_PROTO_GetShiftState [09:49:05]wFMCommunicate request_size=4 [09:49:05]MH_SAM_APDU [09:49:05]CAPDU: 80 13 01 00 [09:49:05]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:05]Read from MH i2c: E2 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 0E 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 ED [09:49:05]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:49:05]wFMCommunicate OK [09:49:05]SAM_PROTO_GetShiftState done [09:49:05]FM_GetShiftState done [09:49:05]req_shift_opened done [09:49:05]requested_item shift.open_date is exist - process it [09:49:05]req_shift_open_date [09:49:05]req_shift_open_date done [09:49:05]produce_requested_data done [09:49:05]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15253,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:49:05]process_action_free close_receipt [09:49:05]json_value_free [09:49:05]json_value_free done [09:49:05]process_json_proto returns [09:49:05]Send response to host [09:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15253,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:49:05]free response buf [09:49:05]execute_script done [09:49:05]execute_script returns [09:49:05]free content buf [09:49:05]Sock 9.Close socket [09:49:05]Sock 9.Thread stoped [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:36]accept exits with 8 [09:49:36]New connection [09:49:36]New thread 3066944868 created [09:49:36]Thread 3066801508 joined [09:49:36]Waiting for new connection... [09:49:36] Sock 8.Parse request [09:49:36]Sock 8.Check first char [09:49:36]Sock 8.First char is OK [09:49:36]request: POST /json_proto HTTP/1.0 [09:49:36]Method: POST [09:49:36]URL: /json_proto [09:49:36]Method is POST - this is cgi request [09:49:36]url: /json_proto [09:49:36]query_string will be loaded in cgi processing [09:49:36]execute_cgi json_proto POST (null) [09:49:36]execute_cgi path=json_proto method=POST [09:49:36]POST find Content-Length [09:49:36]Host: 172.17.44.4:8080 [09:49:36]Content-Length: 651 [09:49:36]Content-Type: application/json [09:49:36] [09:49:36]POST finish read [09:49:36]Found Content-Length = 651 [09:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151271", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 5.000, "sum" : 705.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 705.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:36]execute_script... [09: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)151271", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 5.000, "sum" : 705.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 705.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:36]POST & json_proto [09:49:36]process_json_proto [09:49:36]json parsed OK: [09:49:36]protocol is kg_v1.0 [09:49:36]action value=close_receipt [09:49:36]process_action close_receipt [09:49:36]cmd_close_receipt [09:49:36]MH_GetDate [09:49:36]Write to MH i2c: F0 00 00 8E 1F 9C [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: F0 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: F0 09 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: F0 09 00 8E 1F 00 34 5B C8 66 0F 81 47 66 9F [09:49:36]GetLastDocTimeStamp 1724406545 [09:49:36]current date 1724406580 [09:49:36]FM_GetShiftState [09:49:36]SAM_PROTO_GetShiftState [09:49:36]wFMCommunicate request_size=4 [09:49:36]MH_SAM_APDU [09:49:36]CAPDU: 80 13 01 00 [09:49:36]Write to MH i2c: E2 08 00 8F 1F 80 13 01 00 00 00 00 00 2B [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:36]Read from MH i2c: E2 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 0E 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: E2 0E 00 8F 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 EF [09:49:36]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:49:36]wFMCommunicate OK [09:49:36]SAM_PROTO_GetShiftState done [09:49:36]FM_GetShiftState done [09:49:36]opened in 1724372406 [09:49:36]opened+sec_in_day 1724458806 [09:49:36]quantity*price = 70500 [09:49:36]sum+1 = 70501 [09:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 705.00 НСП 1% : 6.24 НДС 12% : 74.87 Наличными: 705.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 48 23.08.2024 09:49 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15254 ФПД: 107841476425912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094940&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15254&fm=107841476425912&tin=02508201610067®Number=0000000000162784&sum=70500 0 [09:49:37]StoreToDocumentArchive [09:49:37]shift 102 fd 15254 [09:49:37]save to /storage/0102/doc_00015254 [09:49:37]save last doc name /storage/0102/doc_00015254 to /storage/kkm_last_doc_name [09:49:37]save OK [09:49:37]Clear old archive folders... [09:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=287 [09:49:37]tlvbuf is 004BA2B0 [09:49:37]SAM_PROTO_ClearQueue [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 09 00 00 [09:49:37]Write to MH i2c: E2 08 00 9C 1F 80 09 00 00 00 00 00 00 2D [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [09:49:37]RAPDU: 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_ClearQueue done [09:49:37]KKMCreateOFDPacket [09:49:37]OFDProtocolAddRootSTLVToBuf [09:49:37]FM_MakeSignedData [09:49:37]FM_MakeSignedData [09:49:37]SAM_PROTO_SignData [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 0D 01 02 [09:49:37]Write to MH i2c: E2 08 00 9D 1F 80 0D 01 02 00 00 00 00 35 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [09:49:37]RAPDU: 90 00 [09:49:37]wFMCommunicate OK [09:49:37]wFMCommunicate request_size=255 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 64 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1D 00 00 00 00 07 04 06 00 64 13 01 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 34 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 [09:49:37]Write to MH i2c: E2 02 01 9E 1F 80 0D 02 02 FA 00 03 00 1F 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 64 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1D 00 00 00 00 07 04 06 00 64 13 01 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 34 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 00 00 21 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 9E 1F 00 90 00 31 [09:49:37]RAPDU: 90 00 [09:49:37]wFMCommunicate OK [09:49:37]wFMCommunicate request_size=46 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 0D 02 02 29 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 96 3B 00 00 35 04 06 00 62 14 CC E4 F8 B8 [09:49:37]Write to MH i2c: E2 31 00 9F 1F 80 0D 02 02 29 00 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 96 3B 00 00 35 04 06 00 62 14 CC E4 F8 B8 00 00 6F [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 03 00 9F 1F 00 90 00 32 [09:49:37]RAPDU: 90 00 [09:49:37]wFMCommunicate OK [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 0D 03 02 [09:49:37]Write to MH i2c: E2 08 00 A0 1F 80 0D 03 02 00 00 00 00 3A [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0B 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0B 00 A0 1F 00 61 6F 6A 91 32 F7 C2 9A 90 00 8B [09:49:37]RAPDU: 61 6F 6A 91 32 F7 C2 9A 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_SignData done [09:49:37]FM_MakeSignedData done [09:49:37]CreateOFDProtocolMessage [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 11 00 00 [09:49:37]Write to MH i2c: E2 08 00 A1 1F 80 11 00 00 00 00 00 00 3A [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 17 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 17 00 A1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 8C [09:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:49:37]wFMCommunicate OK [09:49:37]CreateOFDProtocolMessage done [09:49:37]OFDSenderStorePacket 15254 [09:49:37]StoreOFDPacket docnum=15254 [09:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 33 01 00 00 32 93 2B 01 41 D1 5A 03 01 00 03 00 1F 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 64 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1D 00 00 00 00 07 04 06 00 64 13 01 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 34 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 96 3B 00 00 35 04 06 00 62 14 CC E4 F8 B8 61 6F 6A 91 32 F7 C2 9A [09:49:37]CheckFolder [09:49:37]dirname=/storage/ofd_packets [09:49:37]CheckFolder done [09:49:37]ProducePacketName [09:49:37]name=ofd_packets/00015254 [09:49:37]NVStorageSaveData ofd_packets/00015254 [09:49:37]File name is /storage/ofd_packets/00015254 [09:49:37]Write 337 bytes [09:49:37]NVStorageSaveData done [09:49:37]OFDSenderStorePacket done [09:49:37]KKMCreateOFDPacket done [09:49:37]NVStorageSaveData kkm_last_timestamp [09:49:37]File name is /storage/kkm_last_timestamp [09:49:37]Write 4 bytes [09:49:37]NVStorageSaveData done [09:49:37]ExternCall_PrintAddStr [09:49:37]wPrintStart [09:49:37]Write to MH i2c: 01 00 00 A2 1F C1 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: 01 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: 01 07 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: 01 07 00 A2 1F 00 00 00 00 00 FF 0F D6 [09:49:37]RasterBufferAndPrint [09:49:37]line Счет N : (3)151271 [09:49:37]line ИНН: 02508201610067 [09:49:37]line Контрольно-Кассовый Чек [09:49:37]line ПРОДАЖА [09:49:37]line Товар: 4870216765088 [09:49:37]line Нагр.Таб.Палоч. HEETS Purple Wave [09:49:37]line 5.000 * 141.00 [09:49:37]line = 705.00 [09:49:37]line НДС 12% НСП 1% [09:49:37]line > о реализуемом товаре [09:49:37]line ИТОГО: 705.00 [09:49:37]line НСП 1% : 6.24 [09:49:37]line НДС 12% : 74.87 [09:49:37]line Наличными: 705.00 [09:49:37]line Безнал.: 0.00 [09:49:37]line Место: АЗС № 135 "Партнер Нефть" [09:49:37]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:49:37]line СНО: Общий режим [09:49:37]line Чек 48 23.08.2024 09:49 [09:49:37]line Смена: 102 ФФД: 1.0 [09:49:37]line ЗНМ: 0300000144 [09:49:37]line РНМ: 0000000000162784 [09:49:37]line Версия ККМ: v1.0 [09:49:37]line ФМ: 0000000002094529 [09:49:37]line ФД: 15254 [09:49:38]line ФПД: 107841476425912 [09:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094940&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15254&fm=107841476425912&tin=02508201610067®Number=0000000000162784&sum=70500 [09:49:38]line 0 [09:49:38]OFD Sender: Processing packet 15254 [packets to send 8, broken 7] [09:49:38]ProducePacketName [09:49:38]name=ofd_packets/00015254 [09:49:38]OFD Sender: To server: pG, [09:49:38]CommunicateWithHost lk.salyk.kg:30040 [09:49:38]ConnectInit lk.salyk.kg [09:49:38]written 0, free lines is 4095 [09:49:38]Connected sock=10 [09:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 33 01 00 00 32 93 2B 01 41 D1 5A 03 01 00 03 00 1F 01 1E 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 88 13 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 64 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1D 00 00 00 00 07 04 06 00 64 13 01 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 34 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 96 3B 00 00 35 04 06 00 62 14 CC E4 F8 B8 61 6F 6A 91 32 F7 C2 9A [09:49:38]Write to MH i2c: 01 00 00 CB 1F EA [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: 01 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: 01 07 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 E5 0C E2 [09:49:38]RasterBufferAndPrint [09:49:38]line [09:49:38]line [09:49:38]line [09:49:38]line [09:49:38]line [09:49:38]written 0, free lines is 3307 [09:49:38]MH_Cut [09:49:38]Write to MH i2c: D1 01 00 D2 1F 01 C3 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: D1 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: D1 01 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: D1 01 00 D2 1F 00 C2 [09:49:38]Write to MH i2c: 01 00 00 D3 1F F2 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 D5 B2 47 00 3A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 96 3B 00 00 F4 03 04 00 8F 05 C8 66 B6 04 01 00 00 60 D3 02 BA C7 A6 46 95 [09:49:38]CommunicateWithHost err = 0 [09:49:38]CheckOFDResponse [09:49:38]1017 (14) - 77093643461234 [09:49:38]1041 (16) - 0000000002094529 [09:49:38]1040 (4) - 15254 [09:49:38]1012 (4) - 23.08.2024 03:44 [09:49:38]1206 (1) - 0 [09:49:38]OFD Sender: Remove packet 15254 [09:49:38]ProducePacketName [09:49:38]name=ofd_packets/00015254 [09:49:38]NVStorageDeleteData [09:49:39]OFD Sender: No OFD packet to send [09:49:39]*** Cut start [09:49:39]*** Partial cut [09:49:39]*** CUTSNS_PIN = 1 [09:49:39]*** CUTSNS_PIN = 0 [09:49:39]*** Brake cut motor [09:49:39]Read from MH i2c: 01 [09:49:39]MH_I2C_Read... [09:49:39]*** Stop cut motor [09:49:39]*** Cut end [09:49:39]Read from MH i2c: 01 07 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [09:49:39]process_action close_receipt done [09:49:39]requested_data is exist [09:49:39]produce_requested_data [09:49:39]requested_item fm.sn is exist - process it [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 11 00 00 [09:49:39]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BF [09:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:49:39]wFMCommunicate OK [09:49:39]requested_item fd.num is exist - process it [09:49:39]SAM_PROTO_GetFieldsCounters [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 13 00 00 [09:49:39]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:40]Read from MH i2c: E2 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 62 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 62 00 D5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 96 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 96 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:40]wFMCommunicate OK [09:49:40]SAM_PROTO_GetFieldsCounters done [09:49:40]requested_item shift.num is exist - process it [09:49:40]requested_item shift.opened is exist - process it [09:49:40]req_shift_opened [09:49:40]FM_GetShiftState [09:49:40]SAM_PROTO_GetShiftState [09:49:40]wFMCommunicate request_size=4 [09:49:40]MH_SAM_APDU [09:49:40]CAPDU: 80 13 01 00 [09:49:40]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:40]Read from MH i2c: E2 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 0E 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 36 [09:49:40]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:49:40]wFMCommunicate OK [09:49:40]SAM_PROTO_GetShiftState done [09:49:40]FM_GetShiftState done [09:49:40]req_shift_opened done [09:49:40]requested_item shift.open_date is exist - process it [09:49:40]req_shift_open_date [09:49:40]req_shift_open_date done [09:49:40]produce_requested_data done [09:49:40]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15254,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:49:40]process_action_free close_receipt [09:49:40]json_value_free [09:49:40]json_value_free done [09:49:40]process_json_proto returns [09:49:40]Send response to host [09:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15254,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:49:40]free response buf [09:49:40]execute_script done [09:49:40]execute_script returns [09:49:40]free content buf [09:49:40]Sock 8.Close socket [09:49:40]Sock 8.Thread stoped [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:13]accept exits with 9 [09:50:13]New connection [09:50:13]New thread 3066801508 created [09:50:13]Thread 3066944868 joined [09:50:13]Waiting for new connection... [09:50:13] Sock 9.Parse request [09:50:13]Sock 9.Check first char [09:50:13]Sock 9.First char is OK [09:50:13]request: POST /json_proto HTTP/1.0 [09:50:13]Method: POST [09:50:13]URL: /json_proto [09:50:13]Method is POST - this is cgi request [09:50:13]url: /json_proto [09:50:13]query_string will be loaded in cgi processing [09:50:13]execute_cgi json_proto POST (null) [09:50:13]execute_cgi path=json_proto method=POST [09:50:13]POST find Content-Length [09:50:13]Host: 172.17.44.4:8080 [09:50:13]Content-Length: 707 [09:50:13]Content-Type: application/json [09:50:13] [09:50:13]POST finish read [09:50:13]Found Content-Length = 707 [09:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151272", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:13]execute_script... [09:50: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)151272", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:13]POST & json_proto [09:50:13]process_json_proto [09:50:13]json parsed OK: [09:50:13]protocol is kg_v1.0 [09:50:13]action value=close_receipt [09:50:13]process_action close_receipt [09:50:13]cmd_close_receipt [09:50:13]MH_GetDate [09:50:13]Write to MH i2c: F0 00 00 D7 1F E5 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: F0 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: F0 09 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: F0 09 00 D7 1F 00 59 5B C8 66 0F 81 47 66 0D [09:50:13]GetLastDocTimeStamp 1724406580 [09:50:13]current date 1724406617 [09:50:13]FM_GetShiftState [09:50:13]SAM_PROTO_GetShiftState [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 13 01 00 [09:50:13]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 38 [09:50:13]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_GetShiftState done [09:50:13]FM_GetShiftState done [09:50:13]opened in 1724372406 [09:50:13]opened+sec_in_day 1724458806 [09:50:13]quantity*price = 6500 [09:50:13]sum+1 = 6501 [09:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 49 23.08.2024 09:50 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15255 ФПД: 254120091838614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095017&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15255&fm=254120091838614&tin=02508201610067®Number=0000000000162784&sum=6500 0 [09:50:14]StoreToDocumentArchive [09:50:14]shift 102 fd 15255 [09:50:14]save to /storage/0102/doc_00015255 [09:50:14]save last doc name /storage/0102/doc_00015255 to /storage/kkm_last_doc_name [09:50:14]save OK [09:50:14]Clear old archive folders... [09:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=298 [09:50:14]tlvbuf is 00507770 [09:50:14]SAM_PROTO_ClearQueue [09:50:14]wFMCommunicate request_size=4 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 09 00 00 [09:50:14]Write to MH i2c: E2 08 00 E5 1F 80 09 00 00 00 00 00 00 76 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [09:50:14]RAPDU: 90 00 [09:50:14]wFMCommunicate OK [09:50:14]SAM_PROTO_ClearQueue done [09:50:14]KKMCreateOFDPacket [09:50:14]OFDProtocolAddRootSTLVToBuf [09:50:14]FM_MakeSignedData [09:50:14]FM_MakeSignedData [09:50:14]SAM_PROTO_SignData [09:50:14]wFMCommunicate request_size=4 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 0D 01 02 [09:50:14]Write to MH i2c: E2 08 00 E6 1F 80 0D 01 02 00 00 00 00 7E [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [09:50:14]RAPDU: 90 00 [09:50:14]wFMCommunicate OK [09:50:14]wFMCommunicate request_size=255 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 59 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [09:50:14]Write to MH i2c: E2 02 01 E7 1F 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 59 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 8C [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [09:50:14]RAPDU: 90 00 [09:50:14]wFMCommunicate OK [09:50:14]wFMCommunicate request_size=57 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 97 3B 00 00 35 04 06 00 E7 1E F1 CD E8 96 [09:50:14]Write to MH i2c: E2 3C 00 E8 1F 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 97 3B 00 00 35 04 06 00 E7 1E F1 CD E8 96 00 00 53 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [09:50:14]RAPDU: 90 00 [09:50:14]wFMCommunicate OK [09:50:14]wFMCommunicate request_size=4 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 0D 03 02 [09:50:14]Write to MH i2c: E2 08 00 E9 1F 80 0D 03 02 00 00 00 00 83 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 0B 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 0B 00 E9 1F 00 B9 63 0E 7F F8 88 22 33 90 00 02 [09:50:14]RAPDU: B9 63 0E 7F F8 88 22 33 90 00 [09:50:14]wFMCommunicate OK [09:50:14]SAM_PROTO_SignData done [09:50:14]FM_MakeSignedData done [09:50:14]CreateOFDProtocolMessage [09:50:14]wFMCommunicate request_size=4 [09:50:14]MH_SAM_APDU [09:50:14]CAPDU: 80 11 00 00 [09:50:14]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:14]Read from MH i2c: E2 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 17 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: E2 17 00 EA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D5 [09:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:50:14]wFMCommunicate OK [09:50:14]CreateOFDProtocolMessage done [09:50:14]OFDSenderStorePacket 15255 [09:50:14]StoreOFDPacket docnum=15255 [09:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3E 01 00 00 59 17 36 01 26 1B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 59 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 97 3B 00 00 35 04 06 00 E7 1E F1 CD E8 96 B9 63 0E 7F F8 88 22 33 [09:50:14]CheckFolder [09:50:14]dirname=/storage/ofd_packets [09:50:14]CheckFolder done [09:50:14]ProducePacketName [09:50:14]name=ofd_packets/00015255 [09:50:14]NVStorageSaveData ofd_packets/00015255 [09:50:14]File name is /storage/ofd_packets/00015255 [09:50:14]Write 348 bytes [09:50:14]NVStorageSaveData done [09:50:14]OFDSenderStorePacket done [09:50:14]KKMCreateOFDPacket done [09:50:14]NVStorageSaveData kkm_last_timestamp [09:50:14]File name is /storage/kkm_last_timestamp [09:50:14]Write 4 bytes [09:50:14]NVStorageSaveData done [09:50:14]ExternCall_PrintAddStr [09:50:14]wPrintStart [09:50:14]Write to MH i2c: 01 00 00 EB 1F 0A [09:50:14]OFD Sender: Processing packet 15255 [packets to send 8, broken 7] [09:50:14]ProducePacketName [09:50:14]name=ofd_packets/00015255 [09:50:14]OFD Sender: To server: pG, [09:50:14]CommunicateWithHost lk.salyk.kg:30040 [09:50:14]ConnectInit lk.salyk.kg [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 07 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 FF 0F 1F [09:50:14]RasterBufferAndPrint [09:50:14]line Счет N : (3)151272 [09:50:14]line ИНН: 02508201610067 [09:50:14]line Контрольно-Кассовый Чек [09:50:14]line ПРОДАЖА [09:50:14]line Товар: 4600338000183 [09:50:14]line Сок Фруто НЯНЯ яблоко освет 0,2л [09:50:14]line 1.000 * 65.00 [09:50:14]line = 65.00 [09:50:14]line НДС 12% НСП 1% [09:50:14]line > о реализуемом товаре [09:50:14]line ИТОГО: 65.00 [09:50:14]line НСП 1% : 0.57 [09:50:14]line НДС 12% : 6.90 [09:50:14]line Наличными: 65.00 [09:50:14]line Безнал.: 0.00 [09:50:14]line Место: АЗС № 135 "Партнер Нефть" [09:50:14]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:50:14]line СНО: Общий режим [09:50:14]line Чек 49 23.08.2024 09:50 [09:50:14]line Смена: 102 ФФД: 1.0 [09:50:14]line ЗНМ: 0300000144 [09:50:14]line РНМ: 0000000000162784 [09:50:14]line Версия ККМ: v1.0 [09:50:14]line ФМ: 0000000002094529 [09:50:14]line ФД: 15255 [09:50:14]line ФПД: 254120091838614 [09:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095017&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15255&fm=254120091838614&tin=02508201610067®Number=0000000000162784&sum=6500 [09:50:15]line 0 [09:50:15]Connected sock=10 [09:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3E 01 00 00 59 17 36 01 26 1B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 59 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 97 3B 00 00 35 04 06 00 E7 1E F1 CD E8 96 B9 63 0E 7F F8 88 22 33 [09:50:15]written 0, free lines is 4095 [09:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 E6 D4 47 00 F0 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 32 30 39 34 35 32 39 10 04 04 00 97 3B 00 00 F4 03 04 00 B4 05 C8 66 B6 04 01 00 00 64 A2 25 F3 7F 89 35 80 [09:50:15]CommunicateWithHost err = 0 [09:50:15]CheckOFDResponse [09:50:15]1017 (14) - 77093643461234 [09:50:15]1041 (16) - 0000000002094529 [09:50:15]1040 (4) - 15255 [09:50:15]1012 (4) - 23.08.2024 03:44 [09:50:15]1206 (1) - 0 [09:50:15]OFD Sender: Remove packet 15255 [09:50:15]ProducePacketName [09:50:15]name=ofd_packets/00015255 [09:50:15]NVStorageDeleteData [09:50:15]Write to MH i2c: 01 00 00 14 20 34 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: 01 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: 01 07 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 ED 0C 34 [09:50:15]RasterBufferAndPrint [09:50:15]line [09:50:15]line [09:50:15]line [09:50:15]line [09:50:15]line [09:50:15]written 0, free lines is 3318 [09:50:15]MH_Cut [09:50:15]Write to MH i2c: D1 01 00 1B 20 01 0D [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: D1 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: D1 01 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: D1 01 00 1B 20 00 0C [09:50:15]Write to MH i2c: 01 00 00 1C 20 3C [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:16]OFD Sender: No OFD packet to send [09:50:16]*** Cut start [09:50:16]*** Partial cut [09:50:16]*** CUTSNS_PIN = 1 [09:50:16]*** CUTSNS_PIN = 0 [09:50:16]*** Brake cut motor [09:50:16]Read from MH i2c: 01 [09:50:17]MH_I2C_Read... [09:50:17]*** Stop cut motor [09:50:17]*** Cut end [09:50:17]Read from MH i2c: 01 07 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: 01 07 00 1C 20 00 00 00 00 00 FF 0F 51 [09:50:17]process_action close_receipt done [09:50:17]requested_data is exist [09:50:17]produce_requested_data [09:50:17]requested_item fm.sn is exist - process it [09:50:17]wFMCommunicate request_size=4 [09:50:17]MH_SAM_APDU [09:50:17]CAPDU: 80 11 00 00 [09:50:17]Write to MH i2c: E2 08 00 1D 20 80 11 00 00 00 00 00 00 B7 [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:17]Read from MH i2c: E2 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 17 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 17 00 1D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 09 [09:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:50:17]wFMCommunicate OK [09:50:17]requested_item fd.num is exist - process it [09:50:17]SAM_PROTO_GetFieldsCounters [09:50:17]wFMCommunicate request_size=4 [09:50:17]MH_SAM_APDU [09:50:17]CAPDU: 80 13 00 00 [09:50:17]Write to MH i2c: E2 08 00 1E 20 80 13 00 00 00 00 00 00 BA [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:17]Read from MH i2c: E2 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 62 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 62 00 1E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 97 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:50:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 97 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:17]wFMCommunicate OK [09:50:17]SAM_PROTO_GetFieldsCounters done [09:50:17]requested_item shift.num is exist - process it [09:50:17]requested_item shift.opened is exist - process it [09:50:17]req_shift_opened [09:50:17]FM_GetShiftState [09:50:17]SAM_PROTO_GetShiftState [09:50:17]wFMCommunicate request_size=4 [09:50:17]MH_SAM_APDU [09:50:17]CAPDU: 80 13 01 00 [09:50:17]Write to MH i2c: E2 08 00 1F 20 80 13 01 00 00 00 00 00 BC [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:17]Read from MH i2c: E2 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 0E 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 0E 00 1F 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 80 [09:50:17]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:50:17]wFMCommunicate OK [09:50:17]SAM_PROTO_GetShiftState done [09:50:17]FM_GetShiftState done [09:50:17]req_shift_opened done [09:50:17]requested_item shift.open_date is exist - process it [09:50:17]req_shift_open_date [09:50:17]req_shift_open_date done [09:50:17]produce_requested_data done [09:50:17]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15255,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:50:17]process_action_free close_receipt [09:50:17]json_value_free [09:50:17]json_value_free done [09:50:17]process_json_proto returns [09:50:17]Send response to host [09:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15255,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:50:17]free response buf [09:50:17]execute_script done [09:50:17]execute_script returns [09:50:17]free content buf [09:50:17]Sock 9.Close socket [09:50:17]Sock 9.Thread stoped [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:13]accept exits with 8 [09:51:13]New connection [09:51:13]New thread 3066944868 created [09:51:13]Thread 3066801508 joined [09:51:13]Waiting for new connection... [09:51:13] Sock 8.Parse request [09:51:13]Sock 8.Check first char [09:51:13]Sock 8.First char is OK [09:51:13]request: POST /json_proto HTTP/1.0 [09:51:13]Method: POST [09:51:13]URL: /json_proto [09:51:13]Method is POST - this is cgi request [09:51:13]url: /json_proto [09:51:13]query_string will be loaded in cgi processing [09:51:13]execute_cgi json_proto POST (null) [09:51:13]execute_cgi path=json_proto method=POST [09:51:13]POST find Content-Length [09:51:13]Host: 172.17.44.4:8080 [09:51:13]Content-Length: 678 [09:51:13]Content-Type: application/json [09:51:13] [09:51:13]POST finish read [09:51:13]Found Content-Length = 678 [09:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.900, "sum" : 535.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 535.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:13]execute_script... [09:51:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.900, "sum" : 535.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 535.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:13]POST & json_proto [09:51:13]process_json_proto [09:51:13]json parsed OK: [09:51:13]protocol is kg_v1.0 [09:51:13]action value=close_receipt [09:51:13]process_action close_receipt [09:51:13]cmd_close_receipt [09:51:13]MH_GetDate [09:51:13]Write to MH i2c: F0 00 00 20 20 2F [09:51:13]Write i2c OK [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: F0 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: F0 09 00 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: F0 09 00 20 20 00 95 5B C8 66 0F 81 47 66 93 [09:51:13]GetLastDocTimeStamp 1724406617 [09:51:13]current date 1724406677 [09:51:13]FM_GetShiftState [09:51:13]SAM_PROTO_GetShiftState [09:51:13]wFMCommunicate request_size=4 [09:51:13]MH_SAM_APDU [09:51:13]CAPDU: 80 13 01 00 [09:51:13]Write to MH i2c: E2 08 00 21 20 80 13 01 00 00 00 00 00 BE [09:51:13]Write i2c OK [09:51:13]MH_I2C_Read... [09:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:14]Read from MH i2c: E2 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 21 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 82 [09:51:14]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:14]wFMCommunicate OK [09:51:14]SAM_PROTO_GetShiftState done [09:51:14]FM_GetShiftState done [09:51:14]opened in 1724372406 [09:51:14]opened+sec_in_day 1724458806 [09:51:14]quantity*price = 53562 [09:51:14]sum+1 = 53563 [09:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 535.00 Внесено: 535.00 СДАЧА: 0.00 НСП 1% : 4.74 НДС 12% : 56.88 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 50 23.08.2024 09:51 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15256 ФПД: 156961806030269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095117&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15256&fm=156961806030269&tin=02508201610067®Number=0000000000162784&sum=53500 [09:51:15]StoreToDocumentArchive [09:51:15]shift 102 fd 15256 [09:51:15]save to /storage/0102/doc_00015256 [09:51:15]save last doc name /storage/0102/doc_00015256 to /storage/kkm_last_doc_name [09:51:15]save OK [09:51:15]Clear old archive folders... [09:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:15]tlvbuf is 0045E6D0 [09:51:15]SAM_PROTO_ClearQueue [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 09 00 00 [09:51:15]Write to MH i2c: E2 08 00 2E 20 80 09 00 00 00 00 00 00 C0 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_ClearQueue done [09:51:15]KKMCreateOFDPacket [09:51:15]OFDProtocolAddRootSTLVToBuf [09:51:15]FM_MakeSignedData [09:51:15]FM_MakeSignedData [09:51:15]SAM_PROTO_SignData [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 01 02 [09:51:15]Write to MH i2c: E2 08 00 2F 20 80 0D 01 02 00 00 00 00 C8 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=255 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 95 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 98 3B 00 00 35 04 06 00 8E [09:51:15]Write to MH i2c: E2 02 01 30 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 95 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 98 3B 00 00 35 04 06 00 8E 00 00 46 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=10 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 02 02 05 C1 84 B1 15 BD [09:51:15]Write to MH i2c: E2 0D 00 31 20 80 0D 02 02 05 00 C1 84 B1 15 BD 00 00 9D [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 03 02 [09:51:15]Write to MH i2c: E2 08 00 32 20 80 0D 03 02 00 00 00 00 CD [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0B 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0B 00 32 20 00 2A 7A 80 09 E8 D6 00 5D 90 00 16 [09:51:15]RAPDU: 2A 7A 80 09 E8 D6 00 5D 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_SignData done [09:51:15]FM_MakeSignedData done [09:51:15]CreateOFDProtocolMessage [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 11 00 00 [09:51:15]Write to MH i2c: E2 08 00 33 20 80 11 00 00 00 00 00 00 CD [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 17 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 17 00 33 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 1F [09:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:15]wFMCommunicate OK [09:51:15]CreateOFDProtocolMessage done [09:51:15]OFDSenderStorePacket 15256 [09:51:15]StoreOFDPacket docnum=15256 [09:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 8F F9 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 95 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 98 3B 00 00 35 04 06 00 8E C1 84 B1 15 BD 2A 7A 80 09 E8 D6 00 5D [09:51:15]CheckFolder [09:51:15]dirname=/storage/ofd_packets [09:51:15]CheckFolder done [09:51:15]ProducePacketName [09:51:15]name=ofd_packets/00015256 [09:51:15]NVStorageSaveData ofd_packets/00015256 [09:51:15]File name is /storage/ofd_packets/00015256 [09:51:15]Write 301 bytes [09:51:15]NVStorageSaveData done [09:51:15]OFDSenderStorePacket done [09:51:15]KKMCreateOFDPacket done [09:51:15]NVStorageSaveData kkm_last_timestamp [09:51:15]File name is /storage/kkm_last_timestamp [09:51:15]Write 4 bytes [09:51:15]NVStorageSaveData done [09:51:15]OFD Sender: Processing packet 15256 [packets to send 8, broken 7] [09:51:15]ProducePacketName [09:51:15]name=ofd_packets/00015256 [09:51:15]OFD Sender: To server: pG, [09:51:15]CommunicateWithHost lk.salyk.kg:30040 [09:51:15]ConnectInit lk.salyk.kg [09:51:15]ExternCall_PrintAddStr [09:51:15]wPrintStart [09:51:15]Write to MH i2c: 01 00 00 34 20 54 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 34 20 00 00 00 00 00 FF 0F 69 [09:51:15]RasterBufferAndPrint [09:51:15]line Счет N : (1)2078182 [09:51:15]line ИНН: 02508201610067 [09:51:15]line Контрольно-Кассовый Чек [09:51:15]line ПРОДАЖА [09:51:15]line ТРК (МРК, ГНК) : 33 [09:51:15]line Товар: 2710124130 [09:51:15]line Аи-92-К-4 [09:51:15]line 7.900 * 67.80 [09:51:15]line = 535.62 [09:51:15]line НДС 12% НСП 1% [09:51:15]line > о реализуемом товаре [09:51:15]line ОКРУГЛЕНИЕ: -0.62 [09:51:15]line ИТОГО: 535.00 [09:51:15]line Внесено: 535.00 [09:51:15]line СДАЧА: 0.00 [09:51:15]line НСП 1% : 4.74 [09:51:15]line НДС 12% : 56.88 [09:51:15]line Наличными: 535.00 [09:51:15]line Безнал.: 0.00 [09:51:15]line Место: АЗС № 135 "Партнер Нефть" [09:51:15]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:51:15]line СНО: Общий режим [09:51:15]line Чек 50 23.08.2024 09:51 [09:51:15]line Смена: 102 ФФД: 1.0 [09:51:15]line ЗНМ: 0300000144 [09:51:15]line РНМ: 0000000000162784 [09:51:15]line Версия ККМ: v1.0 [09:51:15]line ФМ: 0000000002094529 [09:51:15]line ФД: 15256 [09:51:15]line ФПД: 156961806030269 [09:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095117&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15256&fm=156961806030269&tin=02508201610067®Number=0000000000162784&sum=53500 [09:51:16]Connected sock=11 [09:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 8F F9 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 written 0, free lines is 4095 [09:51:16]00 12 04 04 00 32 00 00 00 F4 03 04 00 95 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 98 3B 00 00 35 04 06 00 8E C1 84 B1 15 BD 2A 7A 80 09 E8 D6 00 5D [09:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 4B F1 47 00 B3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 98 3B 00 00 F4 03 04 00 F1 05 C8 66 B6 04 01 00 00 C3 C4 E4 4C 4A A8 75 C9 [09:51:16]CommunicateWithHost err = 0 [09:51:16]CheckOFDResponse [09:51:16]1017 (14) - 77093643461234 [09:51:16]1041 (16) - 0000000002094529 [09:51:16]1040 (4) - 15256 [09:51:16]1012 (4) - 23.08.2024 03:45 [09:51:16]1206 (1) - 0 [09:51:16]OFD Sender: Remove packet 15256 [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00015256 [09:51:16]NVStorageDeleteData [09:51:16]Write to MH i2c: 01 00 00 5F 20 7F [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 CE 0C 60 [09:51:16]RasterBufferAndPrint [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]written 0, free lines is 3284 [09:51:16]MH_Cut [09:51:16]Write to MH i2c: D1 01 00 66 20 01 58 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 01 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 01 00 66 20 00 57 [09:51:16]Write to MH i2c: 01 00 00 67 20 87 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]OFD Sender: No OFD packet to send [09:51:17]*** Cut start [09:51:17]*** Partial cut [09:51:17]*** CUTSNS_PIN = 1 [09:51:17]*** CUTSNS_PIN = 0 [09:51:17]*** Brake cut motor [09:51:17]Read from MH i2c: 01 [09:51:17]MH_I2C_Read... [09:51:17]*** Stop cut motor [09:51:17]*** Cut end [09:51:17]Read from MH i2c: 01 07 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 67 20 00 00 00 00 00 FF 0F 9C [09:51:17]process_action close_receipt done [09:51:17]requested_data is exist [09:51:17]produce_requested_data [09:51:17]requested_item fm.sn is exist - process it [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 11 00 00 [09:51:17]Write to MH i2c: E2 08 00 68 20 80 11 00 00 00 00 00 00 02 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 68 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 54 [09:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:17]wFMCommunicate OK [09:51:17]requested_item fd.num is exist - process it [09:51:17]SAM_PROTO_GetFieldsCounters [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 13 00 00 [09:51:17]Write to MH i2c: E2 08 00 69 20 80 13 00 00 00 00 00 00 05 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 69 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 98 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 98 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetFieldsCounters done [09:51:18]requested_item shift.num is exist - process it [09:51:18]requested_item shift.opened is exist - process it [09:51:18]req_shift_opened [09:51:18]FM_GetShiftState [09:51:18]SAM_PROTO_GetShiftState [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 01 00 [09:51:18]Write to MH i2c: E2 08 00 6A 20 80 13 01 00 00 00 00 00 07 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 6A 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CB [09:51:18]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetShiftState done [09:51:18]FM_GetShiftState done [09:51:18]req_shift_opened done [09:51:18]requested_item shift.open_date is exist - process it [09:51:18]req_shift_open_date [09:51:18]req_shift_open_date done [09:51:18]produce_requested_data done [09:51:18]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15256,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:51:18]process_action_free close_receipt [09:51:18]json_value_free [09:51:18]json_value_free done [09:51:18]process_json_proto returns [09:51:18]Send response to host [09:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15256,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:51:18]free response buf [09:51:18]execute_script done [09:51:18]execute_script returns [09:51:18]free content buf [09:51:18]Sock 8.Close socket [09:51:18]Sock 8.Thread stoped [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:35]accept exits with 9 [09:51:35]New connection [09:51:35]New thread 3066801508 created [09:51:35]Thread 3066944868 joined [09:51:35]Waiting for new connection... [09:51:35] Sock 9.Parse request [09:51:35]Sock 9.Check first char [09:51:35]Sock 9.First char is OK [09:51:35]request: POST /json_proto HTTP/1.0 [09:51:35]Method: POST [09:51:35]URL: /json_proto [09:51:35]Method is POST - this is cgi request [09:51:35]url: /json_proto [09:51:35]query_string will be loaded in cgi processing [09:51:35]execute_cgi json_proto POST (null) [09:51:35]execute_cgi path=json_proto method=POST [09:51:35]POST find Content-Length [09:51:35]Host: 172.17.44.4:8080 [09:51:35]Content-Length: 793 [09:51:35]Content-Type: application/json [09:51:35] [09:51:35]POST finish read [09:51:35]Found Content-Length = 793 [09:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]execute_script... [09:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]POST & json_proto [09:51:35]process_json_proto [09:51:35]json parsed OK: [09:51:35]protocol is kg_v1.0 [09:51:35]action value=close_receipt [09:51:35]process_action close_receipt [09:51:35]cmd_close_receipt [09:51:35]MH_GetDate [09:51:35]Write to MH i2c: F0 00 00 6B 20 7A [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 6B 20 00 AB 5B C8 66 0F 81 47 66 F4 [09:51:35]GetLastDocTimeStamp 1724406677 [09:51:35]current date 1724406699 [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 6C 20 80 13 01 00 00 00 00 00 09 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 6C 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CD [09:51:35]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]opened in 1724372406 [09:51:35]opened+sec_in_day 1724458806 [09:51:35]quantity*price = 0 [09:51:35]sum+1 = 1 [09:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 51 23.08.2024 09:51 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15257 ФПД: 216815529294783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095139&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15257&fm=216815529294783&tin=02508201610067®Number=0000000000162784&sum=0 [09:51:36]StoreToDocumentArchive [09:51:36]shift 102 fd 15257 [09:51:36]save to /storage/0102/doc_00015257 [09:51:36]save last doc name /storage/0102/doc_00015257 to /storage/kkm_last_doc_name [09:51:36]save OK [09:51:36]Clear old archive folders... [09:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:36]tlvbuf is 004C4910 [09:51:36]SAM_PROTO_ClearQueue [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 09 00 00 [09:51:36]Write to MH i2c: E2 08 00 79 20 80 09 00 00 00 00 00 00 0B [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_ClearQueue done [09:51:36]KKMCreateOFDPacket [09:51:36]OFDProtocolAddRootSTLVToBuf [09:51:36]FM_MakeSignedData [09:51:36]FM_MakeSignedData [09:51:36]SAM_PROTO_SignData [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 01 02 [09:51:36]Write to MH i2c: E2 08 00 7A 20 80 0D 01 02 00 00 00 00 13 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=255 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AB 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 99 3B 00 00 35 04 06 00 C5 [09:51:36]Write to MH i2c: E2 02 01 7B 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AB 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 99 3B 00 00 35 04 06 00 C5 00 00 BB [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]OFD Sender: No OFD packet to send [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=10 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 05 31 4C 9A FB BF [09:51:36]Write to MH i2c: E2 0D 00 7C 20 80 0D 02 02 05 00 31 4C 9A FB BF 00 00 F1 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 03 02 [09:51:36]Write to MH i2c: E2 08 00 7D 20 80 0D 03 02 00 00 00 00 18 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 7D 20 00 AA D3 42 07 B2 37 8A 5B 90 00 AD [09:51:37]RAPDU: AA D3 42 07 B2 37 8A 5B 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_SignData done [09:51:37]FM_MakeSignedData done [09:51:37]CreateOFDProtocolMessage [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 7E 20 80 11 00 00 00 00 00 00 18 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 7E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 6A [09:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:37]wFMCommunicate OK [09:51:37]CreateOFDProtocolMessage done [09:51:37]OFDSenderStorePacket 15257 [09:51:37]StoreOFDPacket docnum=15257 [09:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 C4 21 07 01 55 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AB 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 99 3B 00 00 35 04 06 00 C5 31 4C 9A FB BF AA D3 42 07 B2 37 8A 5B [09:51:37]CheckFolder [09:51:37]dirname=/storage/ofd_packets [09:51:37]CheckFolder done [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00015257 [09:51:37]NVStorageSaveData ofd_packets/00015257 [09:51:37]File name is /storage/ofd_packets/00015257 [09:51:37]Write 301 bytes [09:51:37]NVStorageSaveData done [09:51:37]OFDSenderStorePacket done [09:51:37]KKMCreateOFDPacket done [09:51:37]NVStorageSaveData kkm_last_timestamp [09:51:37]File name is /storage/kkm_last_timestamp [09:51:37]Write 4 bytes [09:51:37]NVStorageSaveData done [09:51:37]ExternCall_PrintAddStr [09:51:37]wPrintStart [09:51:37]Write to MH i2c: 01 00 00 7F 20 9F [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 7F 20 00 00 00 00 00 FF 0F B4 [09:51:37]RasterBufferAndPrint [09:51:37]line Счет N : (1)2078184 [09:51:37]line ИНН: 02508201610067 [09:51:37]line Контрольно-Кассовый Чек [09:51:37]line ПРОДАЖА [09:51:37]line ТРК (МРК, ГНК) : 43 [09:51:37]line Товар: 2710124130 [09:51:37]line Аи-92-К-4 [09:51:37]line 10.000 * 0.00 [09:51:37]line = 0.00 [09:51:37]line НДС 12% НСП 1% [09:51:37]line > о реализуемом товаре [09:51:37]line ИТОГО: 0.00 [09:51:37]line НСП 1% : 0.00 [09:51:37]line НДС 12% : 0.00 [09:51:37]line Наличными: 0.00 [09:51:37]line Безнал.: 0.00 [09:51:37]line Место: АЗС № 135 "Партнер Нефть" [09:51:37]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 51 23.08.2024 09:51 [09:51:37]line Смена: 102 ФФД: 1.0 [09:51:37]line ЗНМ: 0300000144 [09:51:37]line РНМ: 0000000000162784 [09:51:37]line Версия ККМ: v1.0 [09:51:37]line Талоны: Топливная Карта [09:51:37]line 92875 [09:51:37]line ФМ: 0000000002094529 [09:51:37]line ФД: 15257 [09:51:37]line ФПД: 216815529294783 [09:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095139&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15257&fm=216815529294783&tin=02508201610067®Number=0000000000162784&sum=0 [09:51:37]OFD Sender: Processing packet 15257 [packets to send 8, broken 7] [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00015257 [09:51:37]OFD Sender: To server: pG, [09:51:37]CommunicateWithHost lk.salyk.kg:30040 [09:51:37]ConnectInit lk.salyk.kg [09:51:37]written 0, free lines is 4095 [09:51:37]Connected sock=10 [09:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 C4 21 07 01 55 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 AB 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 99 3B 00 00 35 04 06 00 C5 31 4C 9A FB BF AA D3 42 07 B2 37 8A 5B [09:51:37]Write to MH i2c: 01 00 00 A9 20 C9 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 A9 20 00 00 00 00 00 E2 0C BE [09:51:37]RasterBufferAndPrint [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]written 0, free lines is 3304 [09:51:37]MH_Cut [09:51:37]Write to MH i2c: D1 01 00 B0 20 01 A2 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 B0 20 00 A1 [09:51:37]Write to MH i2c: 01 00 00 B1 20 D1 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 3F 86 47 00 31 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 32 30 39 34 35 32 39 10 04 04 00 99 3B 00 00 F4 03 04 00 07 06 C8 66 B6 04 01 00 00 58 E2 CF 1F 00 1A 54 01 [09:51:37]CommunicateWithHost err = 0 [09:51:37]CheckOFDResponse [09:51:37]1017 (14) - 77093643461234 [09:51:37]1041 (16) - 0000000002094529 [09:51:37]1040 (4) - 15257 [09:51:37]1012 (4) - 23.08.2024 03:46 [09:51:37]1206 (1) - 0 [09:51:37]OFD Sender: Remove packet 15257 [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00015257 [09:51:37]NVStorageDeleteData [09:51:38]OFD Sender: No OFD packet to send [09:51:38]*** Cut start [09:51:38]*** Partial cut [09:51:38]*** CUTSNS_PIN = 1 [09:51:38]*** CUTSNS_PIN = 0 [09:51:38]*** Brake cut motor [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]*** Stop cut motor [09:51:39]*** Cut end [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 FF 0F E6 [09:51:39]process_action close_receipt done [09:51:39]requested_data is exist [09:51:39]produce_requested_data [09:51:39]requested_item fm.sn is exist - process it [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 B2 20 80 11 00 00 00 00 00 00 4C [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 B2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 9E [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:39]wFMCommunicate OK [09:51:39]requested_item fd.num is exist - process it [09:51:39]SAM_PROTO_GetFieldsCounters [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 00 00 [09:51:39]Write to MH i2c: E2 08 00 B3 20 80 13 00 00 00 00 00 00 4F [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 B3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 99 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 99 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetFieldsCounters done [09:51:39]requested_item shift.num is exist - process it [09:51:39]requested_item shift.opened is exist - process it [09:51:39]req_shift_opened [09:51:39]FM_GetShiftState [09:51:39]SAM_PROTO_GetShiftState [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 01 00 [09:51:39]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 15 [09:51:39]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetShiftState done [09:51:39]FM_GetShiftState done [09:51:39]req_shift_opened done [09:51:39]requested_item shift.open_date is exist - process it [09:51:39]req_shift_open_date [09:51:39]req_shift_open_date done [09:51:39]produce_requested_data done [09:51:39]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15257,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:51:39]process_action_free close_receipt [09:51:39]json_value_free [09:51:39]json_value_free done [09:51:39]process_json_proto returns [09:51:39]Send response to host [09:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15257,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:51:39]free response buf [09:51:39]execute_script done [09:51:39]execute_script returns [09:51:39]free content buf [09:51:39]Sock 9.Close socket [09:51:39]Sock 9.Thread stoped [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]accept exits with 8 [09:51:53]New connection [09:51:53]New thread 3066944868 created [09:51:53]Thread 3066801508 joined [09:51:53]Waiting for new connection... [09:51:53] Sock 8.Parse request [09:51:53]Sock 8.Check first char [09:51:53]Sock 8.First char is OK [09:51:53]request: POST /json_proto HTTP/1.0 [09:51:53]Method: POST [09:51:53]URL: /json_proto [09:51:53]Method is POST - this is cgi request [09:51:53]url: /json_proto [09:51:53]query_string will be loaded in cgi processing [09:51:53]execute_cgi json_proto POST (null) [09:51:53]execute_cgi path=json_proto method=POST [09:51:53]POST find Content-Length [09:51:53]Host: 172.17.44.4:8080 [09:51:53]Content-Length: 790 [09:51:53]Content-Type: application/json [09:51:53] [09:51:53]POST finish read [09:51:53]Found Content-Length = 790 [09:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:53]execute_script... [09:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:53]POST & json_proto [09:51:53]process_json_proto [09:51:53]json parsed OK: [09:51:53]protocol is kg_v1.0 [09:51:53]action value=close_receipt [09:51:53]process_action close_receipt [09:51:53]cmd_close_receipt [09:51:53]MH_GetDate [09:51:53]Write to MH i2c: F0 00 00 B5 20 C4 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 09 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 09 00 B5 20 00 BD 5B C8 66 0F 81 47 66 50 [09:51:53]GetLastDocTimeStamp 1724406699 [09:51:53]current date 1724406717 [09:51:53]FM_GetShiftState [09:51:53]SAM_PROTO_GetShiftState [09:51:53]wFMCommunicate request_size=4 [09:51:53]MH_SAM_APDU [09:51:53]CAPDU: 80 13 01 00 [09:51:53]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:53]Read from MH i2c: E2 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 17 [09:51:53]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:53]wFMCommunicate OK [09:51:53]SAM_PROTO_GetShiftState done [09:51:53]FM_GetShiftState done [09:51:53]opened in 1724372406 [09:51:53]opened+sec_in_day 1724458806 [09:51:53]quantity*price = 0 [09:51:53]sum+1 = 1 [09:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 52 23.08.2024 09:51 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15258 ФПД: 50129031457311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095157&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15258&fm=50129031457311&tin=02508201610067®Number=0000000000162784&sum=0 [09:51:54]StoreToDocumentArchive [09:51:54]shift 102 fd 15258 [09:51:54]save to /storage/0102/doc_00015258 [09:51:54]save last doc name /storage/0102/doc_00015258 to /storage/kkm_last_doc_name [09:51:54]save OK [09:51:54]Clear old archive folders... [09:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:54]tlvbuf is 00448490 [09:51:54]SAM_PROTO_ClearQueue [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 09 00 00 [09:51:54]Write to MH i2c: E2 08 00 C3 20 80 09 00 00 00 00 00 00 55 [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [09:51:54]RAPDU: 90 00 [09:51:54]wFMCommunicate OK [09:51:54]SAM_PROTO_ClearQueue done [09:51:54]KKMCreateOFDPacket [09:51:54]OFDProtocolAddRootSTLVToBuf [09:51:54]FM_MakeSignedData [09:51:54]FM_MakeSignedData [09:51:54]SAM_PROTO_SignData [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 0D 01 02 [09:51:54]Write to MH i2c: E2 08 00 C4 20 80 0D 01 02 00 00 00 00 5D [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [09:51:54]RAPDU: 90 00 [09:51:54]wFMCommunicate OK [09:51:54]wFMCommunicate request_size=255 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 BD 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9A 3B 00 00 35 04 06 00 2D 97 93 1C [09:51:54]Write to MH i2c: E2 02 01 C5 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 BD 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9A 3B 00 00 35 04 06 00 2D 97 93 1C 00 00 1B [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [09:51:54]RAPDU: 90 00 [09:51:54]wFMCommunicate OK [09:51:54]wFMCommunicate request_size=7 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 0D 02 02 02 EA 1F [09:51:54]Write to MH i2c: E2 0A 00 C6 20 80 0D 02 02 02 00 EA 1F 00 00 6D [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [09:51:54]RAPDU: 90 00 [09:51:54]wFMCommunicate OK [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 0D 03 02 [09:51:54]Write to MH i2c: E2 08 00 C7 20 80 0D 03 02 00 00 00 00 62 [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0B 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0B 00 C7 20 00 62 69 15 8E 55 F0 7B 8E 90 00 1F [09:51:54]RAPDU: 62 69 15 8E 55 F0 7B 8E 90 00 [09:51:54]wFMCommunicate OK [09:51:54]SAM_PROTO_SignData done [09:51:54]FM_MakeSignedData done [09:51:54]CreateOFDProtocolMessage [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 11 00 00 [09:51:54]Write to MH i2c: E2 08 00 C8 20 80 11 00 00 00 00 00 00 62 [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 17 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 17 00 C8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B4 [09:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:54]wFMCommunicate OK [09:51:54]CreateOFDProtocolMessage done [09:51:54]OFDSenderStorePacket 15258 [09:51:54]StoreOFDPacket docnum=15258 [09:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 4B B9 04 01 5C 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 BD 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9A 3B 00 00 35 04 06 00 2D 97 93 1C EA 1F 62 69 15 8E 55 F0 7B 8E [09:51:54]CheckFolder [09:51:54]dirname=/storage/ofd_packets [09:51:54]CheckFolder done [09:51:54]ProducePacketName [09:51:54]name=ofd_packets/00015258 [09:51:54]NVStorageSaveData ofd_packets/00015258 [09:51:54]File name is /storage/ofd_packets/00015258 [09:51:54]Write 298 bytes [09:51:54]NVStorageSaveData done [09:51:54]OFDSenderStorePacket done [09:51:54]KKMCreateOFDPacket done [09:51:54]NVStorageSaveData kkm_last_timestamp [09:51:54]File name is /storage/kkm_last_timestamp [09:51:54]Write 4 bytes [09:51:54]NVStorageSaveData done [09:51:54]ExternCall_PrintAddStr [09:51:54]wPrintStart [09:51:54]Write to MH i2c: 01 00 00 C9 20 E9 [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: 01 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: 01 07 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: 01 07 00 C9 20 00 00 00 00 00 FF 0F FE [09:51:54]RasterBufferAndPrint [09:51:54]line Счет N : (1)2078183 [09:51:54]line ИНН: 02508201610067 [09:51:54]line Контрольно-Кассовый Чек [09:51:54]line ПРОДАЖА [09:51:54]line ТРК (МРК, ГНК) : 21 [09:51:54]line Товар: 2710194210 [09:51:54]line ДТ-К-5 [09:51:54]line 10.000 * 0.00 [09:51:54]line = 0.00 [09:51:54]line НДС 12% НСП 1% [09:51:54]line > о реализуемом товаре [09:51:54]line ИТОГО: 0.00 [09:51:54]line НСП 1% : 0.00 [09:51:54]line НДС 12% : 0.00 [09:51:54]line Наличными: 0.00 [09:51:54]line Безнал.: 0.00 [09:51:54]line Место: АЗС № 135 "Партнер Нефть" [09:51:54]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:51:54]line СНО: Общий режим [09:51:54]line Чек 52 23.08.2024 09:51 [09:51:54]line Смена: 102 ФФД: 1.0 [09:51:54]line ЗНМ: 0300000144 [09:51:54]line РНМ: 0000000000162784 [09:51:54]line Версия ККМ: v1.0 [09:51:54]line Талоны: Топливная Карта [09:51:54]line 92875 [09:51:54]line ФМ: 0000000002094529 [09:51:54]line ФД: 15258 [09:51:54]line ФПД: 50129031457311 [09:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095157&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15258&fm=50129031457311&tin=02508201610067®Number=0000000000162784&sum=0 [09:51:55]OFD Sender: Processing packet 15258 [packets to send 8, broken 7] [09:51:55]ProducePacketName [09:51:55]name=ofd_packets/00015258 [09:51:55]OFD Sender: To server: pG, [09:51:55]CommunicateWithHost lk.salyk.kg:30040 [09:51:55]ConnectInit lk.salyk.kg [09:51:55]written 0, free lines is 4095 [09:51:55]Connected sock=11 [09:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 4B B9 04 01 5C 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 BD 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9A 3B 00 00 35 04 06 00 2D 97 93 1C EA 1F 62 69 15 8E 55 F0 7B 8E [09:51:55]Write to MH i2c: 01 00 00 F3 20 13 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 07 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 E4 0C 0A [09:51:55]RasterBufferAndPrint [09:51:55]line [09:51:55]line [09:51:55]line [09:51:55]line [09:51:55]line [09:51:55]written 0, free lines is 3306 [09:51:55]MH_Cut [09:51:55]Write to MH i2c: D1 01 00 FA 20 01 EC [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: D1 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: D1 01 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: D1 01 00 FA 20 00 EB [09:51:55]Write to MH i2c: 01 00 00 FB 20 1B [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 71 B0 47 00 B1 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9A 3B 00 00 F4 03 04 00 18 06 C8 66 B6 04 01 00 00 D5 6E B1 F5 95 30 2F 9F [09:51:55]CommunicateWithHost err = 0 [09:51:55]CheckOFDResponse [09:51:55]1017 (14) - 77093643461234 [09:51:55]1041 (16) - 0000000002094529 [09:51:55]1040 (4) - 15258 [09:51:55]1012 (4) - 23.08.2024 03:46 [09:51:55]1206 (1) - 0 [09:51:55]OFD Sender: Remove packet 15258 [09:51:55]ProducePacketName [09:51:55]name=ofd_packets/00015258 [09:51:55]NVStorageDeleteData [09:51:56]OFD Sender: No OFD packet to send [09:51:56]*** Cut start [09:51:56]*** Partial cut [09:51:56]*** CUTSNS_PIN = 1 [09:51:56]*** CUTSNS_PIN = 0 [09:51:56]*** Brake cut motor [09:51:57]Read from MH i2c: 01 [09:51:57]MH_I2C_Read... [09:51:57]*** Stop cut motor [09:51:57]*** Cut end [09:51:57]Read from MH i2c: 01 07 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 FB 20 00 00 00 00 00 FF 0F 30 [09:51:57]process_action close_receipt done [09:51:57]requested_data is exist [09:51:57]produce_requested_data [09:51:57]requested_item fm.sn is exist - process it [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 11 00 00 [09:51:57]Write to MH i2c: E2 08 00 FC 20 80 11 00 00 00 00 00 00 96 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 17 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 17 00 FC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E8 [09:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:57]wFMCommunicate OK [09:51:57]requested_item fd.num is exist - process it [09:51:57]SAM_PROTO_GetFieldsCounters [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 13 00 00 [09:51:57]Write to MH i2c: E2 08 00 FD 20 80 13 00 00 00 00 00 00 99 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 62 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 62 00 FD 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9A 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:57]wFMCommunicate OK [09:51:57]SAM_PROTO_GetFieldsCounters done [09:51:57]requested_item shift.num is exist - process it [09:51:57]requested_item shift.opened is exist - process it [09:51:57]req_shift_opened [09:51:57]FM_GetShiftState [09:51:57]SAM_PROTO_GetShiftState [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 13 01 00 [09:51:57]Write to MH i2c: E2 08 00 FE 20 80 13 01 00 00 00 00 00 9B [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 0E 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 0E 00 FE 20 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 5F [09:51:57]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:57]wFMCommunicate OK [09:51:57]SAM_PROTO_GetShiftState done [09:51:57]FM_GetShiftState done [09:51:57]req_shift_opened done [09:51:57]requested_item shift.open_date is exist - process it [09:51:57]req_shift_open_date [09:51:57]req_shift_open_date done [09:51:57]produce_requested_data done [09:51:57]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15258,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:51:57]process_action_free close_receipt [09:51:57]json_value_free [09:51:57]json_value_free done [09:51:57]process_json_proto returns [09:51:57]Send response to host [09:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15258,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:51:57]free response buf [09:51:57]execute_script done [09:51:57]execute_script returns [09:51:57]free content buf [09:51:57]Sock 8.Close socket [09:51:57]Sock 8.Thread stoped [09:51:57]accept exits with 9 [09:51:57]New connection [09:51:57]New thread 3066801508 created [09:51:57]Thread 3066944868 joined [09:51:57]Waiting for new connection... [09:51:57] Sock 9.Parse request [09:51:57]Sock 9.Check first char [09:51:57]Sock 9.First char is OK [09:51:57]request: POST /json_proto HTTP/1.0 [09:51:57]Method: POST [09:51:57]URL: /json_proto [09:51:57]Method is POST - this is cgi request [09:51:57]url: /json_proto [09:51:57]query_string will be loaded in cgi processing [09:51:57]execute_cgi json_proto POST (null) [09:51:57]execute_cgi path=json_proto method=POST [09:51:57]POST find Content-Length [09:51:57]Host: 172.17.44.4:8080 [09:51:57]Content-Length: 678 [09:51:57]Content-Type: application/json [09:51:57] [09:51:57]POST finish read [09:51:57]Found Content-Length = 678 [09:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:57]execute_script... [09:51:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:57]POST & json_proto [09:51:57]process_json_proto [09:51:57]json parsed OK: [09:51:57]protocol is kg_v1.0 [09:51:57]action value=close_receipt [09:51:57]process_action close_receipt [09:51:57]cmd_close_receipt [09:51:57]MH_GetDate [09:51:57]Write to MH i2c: F0 00 00 FF 20 0E [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 09 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 09 00 FF 20 00 C1 5B C8 66 0F 81 47 66 9E [09:51:57]GetLastDocTimeStamp 1724406717 [09:51:57]current date 1724406721 [09:51:57]FM_GetShiftState [09:51:57]SAM_PROTO_GetShiftState [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 13 01 00 [09:51:57]Write to MH i2c: E2 08 00 00 21 80 13 01 00 00 00 00 00 9E [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:57]Read from MH i2c: E2 0E 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 0E 00 00 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 62 [09:51:57]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:51:57]wFMCommunicate OK [09:51:57]SAM_PROTO_GetShiftState done [09:51:57]FM_GetShiftState done [09:51:57]opened in 1724372406 [09:51:57]opened+sec_in_day 1724458806 [09:51:57]quantity*price = 20001 [09:51:57]sum+1 = 20002 [09:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 53 23.08.2024 09:52 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15259 ФПД: 151806249542892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095201&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15259&fm=151806249542892&tin=02508201610067®Number=0000000000162784&sum=20000 [09:51:58]StoreToDocumentArchive [09:51:58]shift 102 fd 15259 [09:51:58]save to /storage/0102/doc_00015259 [09:51:58]save last doc name /storage/0102/doc_00015259 to /storage/kkm_last_doc_name [09:51:58]save OK [09:51:58]Clear old archive folders... [09:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:58]tlvbuf is 004C45D0 [09:51:58]SAM_PROTO_ClearQueue [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 09 00 00 [09:51:58]Write to MH i2c: E2 08 00 0D 21 80 09 00 00 00 00 00 00 A0 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [09:51:58]RAPDU: 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_ClearQueue done [09:51:58]KKMCreateOFDPacket [09:51:58]OFDProtocolAddRootSTLVToBuf [09:51:58]FM_MakeSignedData [09:51:58]FM_MakeSignedData [09:51:58]SAM_PROTO_SignData [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 0D 01 02 [09:51:58]Write to MH i2c: E2 08 00 0E 21 80 0D 01 02 00 00 00 00 A8 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [09:51:59]RAPDU: 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=255 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 35 00 00 00 F4 03 04 00 C1 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9B 3B 00 00 35 04 06 00 8A [09:51:59]Write to MH i2c: E2 02 01 0F 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 35 00 00 00 F4 03 04 00 C1 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9B 3B 00 00 35 04 06 00 8A 00 00 6F [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [09:51:59]RAPDU: 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=10 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 0D 02 02 05 11 25 94 24 EC [09:51:59]Write to MH i2c: E2 0D 00 10 21 80 0D 02 02 05 00 11 25 94 24 EC 00 00 8F [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [09:51:59]RAPDU: 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 0D 03 02 [09:51:59]Write to MH i2c: E2 08 00 11 21 80 0D 03 02 00 00 00 00 AD [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0B 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0B 00 11 21 00 B2 06 30 68 FA 69 91 AB 90 00 9D [09:51:59]RAPDU: B2 06 30 68 FA 69 91 AB 90 00 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_SignData done [09:51:59]FM_MakeSignedData done [09:51:59]CreateOFDProtocolMessage [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 11 00 00 [09:51:59]Write to MH i2c: E2 08 00 12 21 80 11 00 00 00 00 00 00 AD [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 12 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 FF [09:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:51:59]wFMCommunicate OK [09:51:59]CreateOFDProtocolMessage done [09:51:59]OFDSenderStorePacket 15259 [09:51:59]StoreOFDPacket docnum=15259 [09:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 7D 29 07 01 90 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 35 00 00 00 F4 03 04 00 C1 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9B 3B 00 00 35 04 06 00 8A 11 25 94 24 EC B2 06 30 68 FA 69 91 AB [09:51:59]CheckFolder [09:51:59]dirname=/storage/ofd_packets [09:51:59]CheckFolder done [09:51:59]ProducePacketName [09:51:59]name=ofd_packets/00015259 [09:51:59]NVStorageSaveData ofd_packets/00015259 [09:51:59]File name is /storage/ofd_packets/00015259 [09:51:59]Write 301 bytes [09:51:59]NVStorageSaveData done [09:51:59]OFDSenderStorePacket done [09:51:59]KKMCreateOFDPacket done [09:51:59]NVStorageSaveData kkm_last_timestamp [09:51:59]File name is /storage/kkm_last_timestamp [09:51:59]Write 4 bytes [09:51:59]NVStorageSaveData done [09:51:59]ExternCall_PrintAddStr [09:51:59]wPrintStart [09:51:59]Write to MH i2c: 01 00 00 13 21 34 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 FF 0F 49 [09:51:59]RasterBufferAndPrint [09:51:59]line Счет N : (1)2078185 [09:51:59]line ИНН: 02508201610067 [09:51:59]line Контрольно-Кассовый Чек [09:51:59]line ПРОДАЖА [09:51:59]line ТРК (МРК, ГНК) : 63 [09:51:59]line Товар: 2710124130 [09:51:59]line Аи-92-К-4 [09:52:00]line 2.950 * 67.80 [09:52:00]line = 200.01 [09:52:00]line НДС 12% НСП 1% [09:52:00]line > о реализуемом товаре [09:52:00]line ОКРУГЛЕНИЕ: -0.01 [09:52:00]line ИТОГО: 200.00 [09:52:00]line Внесено: 200.00 [09:52:00]line СДАЧА: 0.00 [09:52:00]line НСП 1% : 1.77 [09:52:00]line НДС 12% : 21.24 [09:52:00]line Наличными: 200.00 [09:52:00]line Безнал.: 0.00 [09:52:00]line Место: АЗС № 135 "Партнер Нефть" [09:52:00]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:52:00]line СНО: Общий режим [09:52:00]line Чек 53 23.08.2024 09:52 [09:52:00]line Смена: 102 ФФД: 1.0 [09:52:00]line ЗНМ: 0300000144 [09:52:00]line РНМ: 0000000000162784 [09:52:00]line Версия ККМ: v1.0 [09:52:00]line ФМ: 0000000002094529 [09:52:00]line ФД: 15259 [09:52:00]line ФПД: 151806249542892 [09:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095201&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15259&fm=151806249542892&tin=02508201610067®Number=0000000000162784&sum=20000 [09:52:00]OFD Sender: Processing packet 15259 [packets to send 8, broken 7] [09:52:00]ProducePacketName [09:52:00]name=ofd_packets/00015259 [09:52:00]OFD Sender: To server: pG, [09:52:00]CommunicateWithHost lk.salyk.kg:30040 [09:52:00]ConnectInit lk.salyk.kg [09:52:00]written 0, free lines is 4095 [09:52:00]Connected sock=10 [09:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 7D 29 07 01 90 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 35 00 00 00 F4 03 04 00 C1 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9B 3B 00 00 35 04 06 00 8A 11 25 94 24 EC B2 06 30 68 FA 69 91 AB [09:52:00]Write to MH i2c: 01 00 00 3E 21 5F [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: 01 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: 01 07 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: 01 07 00 3E 21 00 00 00 00 00 EE 0C 60 [09:52:00]RasterBufferAndPrint [09:52:00]line [09:52:00]line [09:52:00]line [09:52:00]line [09:52:00]line [09:52:00]written 0, free lines is 3322 [09:52:00]MH_Cut [09:52:00]Write to MH i2c: D1 01 00 45 21 01 38 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: D1 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: D1 01 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: D1 01 00 45 21 00 37 [09:52:00]Write to MH i2c: 01 00 00 46 21 67 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1C B1 47 00 8E 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9B 3B 00 00 F4 03 04 00 1D 06 C8 66 B6 04 01 00 00 11 FD 05 D4 73 E2 FD 89 [09:52:00]CommunicateWithHost err = 0 [09:52:00]CheckOFDResponse [09:52:00]1017 (14) - 77093643461234 [09:52:00]1041 (16) - 0000000002094529 [09:52:00]1040 (4) - 15259 [09:52:00]1012 (4) - 23.08.2024 03:46 [09:52:00]1206 (1) - 0 [09:52:00]OFD Sender: Remove packet 15259 [09:52:00]ProducePacketName [09:52:00]name=ofd_packets/00015259 [09:52:00]NVStorageDeleteData [09:52:01]OFD Sender: No OFD packet to send [09:52:01]*** Cut start [09:52:01]*** Partial cut [09:52:01]*** CUTSNS_PIN = 1 [09:52:01]*** CUTSNS_PIN = 0 [09:52:01]*** Brake cut motor [09:52:01]Read from MH i2c: 01 [09:52:01]MH_I2C_Read... [09:52:01]*** Stop cut motor [09:52:01]*** Cut end [09:52:01]Read from MH i2c: 01 07 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [09:52:01]process_action close_receipt done [09:52:01]requested_data is exist [09:52:01]produce_requested_data [09:52:01]requested_item fm.sn is exist - process it [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 11 00 00 [09:52:01]Write to MH i2c: E2 08 00 47 21 80 11 00 00 00 00 00 00 E2 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 47 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 34 [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:52:02]wFMCommunicate OK [09:52:02]requested_item fd.num is exist - process it [09:52:02]SAM_PROTO_GetFieldsCounters [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 13 00 00 [09:52:02]Write to MH i2c: E2 08 00 48 21 80 13 00 00 00 00 00 00 E5 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 62 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 62 00 48 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [09:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9B 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_GetFieldsCounters done [09:52:02]requested_item shift.num is exist - process it [09:52:02]requested_item shift.opened is exist - process it [09:52:02]req_shift_opened [09:52:02]FM_GetShiftState [09:52:02]SAM_PROTO_GetShiftState [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 13 01 00 [09:52:02]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0E 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AB [09:52:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_GetShiftState done [09:52:02]FM_GetShiftState done [09:52:02]req_shift_opened done [09:52:02]requested_item shift.open_date is exist - process it [09:52:02]req_shift_open_date [09:52:02]req_shift_open_date done [09:52:02]produce_requested_data done [09:52:02]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15259,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:52:02]process_action_free close_receipt [09:52:02]json_value_free [09:52:02]json_value_free done [09:52:02]process_json_proto returns [09:52:02]Send response to host [09:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15259,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:52:02]free response buf [09:52:02]execute_script done [09:52:02]execute_script returns [09:52:02]free content buf [09:52:02]Sock 9.Close socket [09:52:02]Sock 9.Thread stoped [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:47]accept exits with 8 [09:52:47]New connection [09:52:47]New thread 3066944868 created [09:52:47]Thread 3066801508 joined [09:52:47]Waiting for new connection... [09:52:47] Sock 8.Parse request [09:52:47]Sock 8.Check first char [09:52:47]Sock 8.First char is OK [09:52:47]request: POST /json_proto HTTP/1.0 [09:52:47]Method: POST [09:52:47]URL: /json_proto [09:52:47]Method is POST - this is cgi request [09:52:47]url: /json_proto [09:52:47]query_string will be loaded in cgi processing [09:52:47]execute_cgi json_proto POST (null) [09:52:47]execute_cgi path=json_proto method=POST [09:52:47]POST find Content-Length [09:52:47]Host: 172.17.44.4:8080 [09:52:47]Content-Length: 820 [09:52:47]Content-Type: application/json [09:52:47] [09:52:47]POST finish read [09:52:47]Found Content-Length = 820 [09:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:47]execute_script... [09:52:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:47]POST & json_proto [09:52:47]process_json_proto [09:52:47]json parsed OK: [09:52:47]protocol is kg_v1.0 [09:52:47]action value=close_receipt [09:52:47]process_action close_receipt [09:52:47]cmd_close_receipt [09:52:47]MH_GetDate [09:52:47]Write to MH i2c: F0 00 00 4A 21 5A [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 4A 21 00 F3 5B C8 66 0F 81 47 66 1C [09:52:47]GetLastDocTimeStamp 1724406721 [09:52:47]current date 1724406771 [09:52:47]FM_GetShiftState [09:52:47]SAM_PROTO_GetShiftState [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 13 01 00 [09:52:47]Write to MH i2c: E2 08 00 4B 21 80 13 01 00 00 00 00 00 E9 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 4B 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AD [09:52:47]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:52:47]wFMCommunicate OK [09:52:47]SAM_PROTO_GetShiftState done [09:52:47]FM_GetShiftState done [09:52:47]opened in 1724372406 [09:52:47]opened+sec_in_day 1724458806 [09:52:47]quantity*price = 100005 [09:52:47]sum+1 = 100006 [09:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 54 23.08.2024 09:52 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094529 ФД: 15260 ФПД: 182889662756975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095251&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15260&fm=182889662756975&tin=02508201610067®Number=0000000000162784&sum=100005 [09:52:49]StoreToDocumentArchive [09:52:49]shift 102 fd 15260 [09:52:49]save to /storage/0102/doc_00015260 [09:52:49]save last doc name /storage/0102/doc_00015260 to /storage/kkm_last_doc_name [09:52:49]save OK [09:52:49]Clear old archive folders... [09:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:49]tlvbuf is B6DA6640 [09:52:49]SAM_PROTO_ClearQueue [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 09 00 00 [09:52:49]Write to MH i2c: E2 08 00 58 21 80 09 00 00 00 00 00 00 EB [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_ClearQueue done [09:52:49]KKMCreateOFDPacket [09:52:49]OFDProtocolAddRootSTLVToBuf [09:52:49]FM_MakeSignedData [09:52:49]FM_MakeSignedData [09:52:49]SAM_PROTO_SignData [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 01 02 [09:52:49]Write to MH i2c: E2 08 00 59 21 80 0D 01 02 00 00 00 00 F3 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=255 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F3 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9C 3B 00 00 35 04 06 00 A6 [09:52:49]Write to MH i2c: E2 02 01 5A 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F3 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9C 3B 00 00 35 04 06 00 A6 00 00 A1 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=10 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 02 02 05 56 51 61 B8 6F [09:52:49]Write to MH i2c: E2 0D 00 5B 21 80 0D 02 02 05 00 56 51 61 B8 6F 00 00 2F [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 03 02 [09:52:49]Write to MH i2c: E2 08 00 5C 21 80 0D 03 02 00 00 00 00 F8 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 5C 21 00 66 0A 93 C0 97 1E 50 BA 90 00 7B [09:52:49]RAPDU: 66 0A 93 C0 97 1E 50 BA 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_SignData done [09:52:49]FM_MakeSignedData done [09:52:49]CreateOFDProtocolMessage [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 11 00 00 [09:52:49]Write to MH i2c: E2 08 00 5D 21 80 11 00 00 00 00 00 00 F8 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 5D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 4A [09:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:52:49]wFMCommunicate OK [09:52:49]CreateOFDProtocolMessage done [09:52:49]OFDSenderStorePacket 15260 [09:52:49]StoreOFDPacket docnum=15260 [09:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 02 E4 07 01 E8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F3 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9C 3B 00 00 35 04 06 00 A6 56 51 61 B8 6F 66 0A 93 C0 97 1E 50 BA [09:52:49]CheckFolder [09:52:49]dirname=/storage/ofd_packets [09:52:49]CheckFolder done [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00015260 [09:52:49]NVStorageSaveData ofd_packets/00015260 [09:52:49]File name is /storage/ofd_packets/00015260 [09:52:49]Write 301 bytes [09:52:49]NVStorageSaveData done [09:52:49]OFDSenderStorePacket done [09:52:49]KKMCreateOFDPacket done [09:52:49]NVStorageSaveData kkm_last_timestamp [09:52:49]File name is /storage/kkm_last_timestamp [09:52:49]Write 4 bytes [09:52:49]NVStorageSaveData done [09:52:49]ExternCall_PrintAddStr [09:52:49]wPrintStart [09:52:49]Write to MH i2c: 01 00 00 5E 21 7F [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 5E 21 00 00 00 00 00 FF 0F 94 [09:52:49]RasterBufferAndPrint [09:52:49]line Счет N : (1)2078186 [09:52:49]line ИНН: 02508201610067 [09:52:49]line Контрольно-Кассовый Чек [09:52:49]line ПРОДАЖА [09:52:49]line ТРК (МРК, ГНК) : 53 [09:52:49]line Товар: 2710124130 [09:52:49]line Аи-92-К-4 [09:52:49]line 14.750 * 67.80 [09:52:49]line = 1000.05 [09:52:49]line НДС 12% НСП 1% [09:52:49]line > о реализуемом товаре [09:52:49]line ИТОГО: 1000.05 [09:52:49]line НСП 1% : 8.85 [09:52:49]line НДС 12% : 106.20 [09:52:49]line Наличными: 0.00 [09:52:49]line Безнал.: 1000.05 [09:52:49]line Место: АЗС № 135 "Партнер Нефть" [09:52:49]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:52:49]line СНО: Общий режим [09:52:49]line Чек 54 23.08.2024 09:52 [09:52:49]line Смена: 102 ФФД: 1.0 [09:52:49]line ЗНМ: 0300000144 [09:52:49]line РНМ: 0000000000162784 [09:52:49]line Версия ККМ: v1.0 [09:52:49]line Платежная система: Бакай Банк [09:52:49]line ФМ: 0000000002094529 [09:52:49]line ФД: 15260 [09:52:49]line ФПД: 182889662756975 [09:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095251&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15260&fm=182889662756975&tin=02508201610067®Number=0000000000162784&sum=100005 [09:52:49]OFD Sender: Processing packet 15260 [packets to send 8, broken 7] [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00015260 [09:52:49]OFD Sender: To server: pG, [09:52:49]CommunicateWithHost lk.salyk.kg:30040 [09:52:49]ConnectInit lk.salyk.kg [09:52:49]written 0, free lines is 4095 [09:52:50]Write to MH i2c: 01 00 00 88 21 A9 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 EF 0C AB [09:52:50]RasterBufferAndPrint [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]written 0, free lines is 3315 [09:52:50]MH_Cut [09:52:50]Write to MH i2c: D1 01 00 8F 21 01 82 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 8F 21 00 81 [09:52:50]Write to MH i2c: 01 00 00 90 21 B1 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:51]*** Cut start [09:52:51]*** Partial cut [09:52:51]*** CUTSNS_PIN = 1 [09:52:51]*** CUTSNS_PIN = 0 [09:52:51]*** Brake cut motor [09:52:51]Read from MH i2c: 01 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: 01 07 00 [09:52:51]MH_I2C_Read... [09:52:51]*** Stop cut motor [09:52:51]*** Cut end [09:52:51]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 FF 0F C6 [09:52:51]process_action close_receipt done [09:52:51]requested_data is exist [09:52:51]produce_requested_data [09:52:51]requested_item fm.sn is exist - process it [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 11 00 00 [09:52:51]Write to MH i2c: E2 08 00 91 21 80 11 00 00 00 00 00 00 2C [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 91 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 7E [09:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:52:51]wFMCommunicate OK [09:52:51]requested_item fd.num is exist - process it [09:52:51]SAM_PROTO_GetFieldsCounters [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 00 00 [09:52:51]Write to MH i2c: E2 08 00 92 21 80 13 00 00 00 00 00 00 2F [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 92 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [09:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9C 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetFieldsCounters done [09:52:51]requested_item shift.num is exist - process it [09:52:51]requested_item shift.opened is exist - process it [09:52:51]req_shift_opened [09:52:51]FM_GetShiftState [09:52:51]SAM_PROTO_GetShiftState [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 01 00 [09:52:51]Write to MH i2c: E2 08 00 93 21 80 13 01 00 00 00 00 00 31 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 93 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F5 [09:52:51]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetShiftState done [09:52:51]FM_GetShiftState done [09:52:51]req_shift_opened done [09:52:51]requested_item shift.open_date is exist - process it [09:52:51]req_shift_open_date [09:52:51]req_shift_open_date done [09:52:51]produce_requested_data done [09:52:51]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15260,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:52:51]process_action_free close_receipt [09:52:51]json_value_free [09:52:51]json_value_free done [09:52:51]process_json_proto returns [09:52:51]Send response to host [09:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15260,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:52:51]free response buf [09:52:51]execute_script done [09:52:51]execute_script returns [09:52:51]free content buf [09:52:51]Sock 8.Close socket [09:52:51]Sock 8.Thread stoped [09:55:02]ConnectInit Can't connect to host [09:55:02]CommunicateWithHost connect error [09:55:02]CommunicateWithHost err = -1 [09:55:02]OFD Sender: Server communicate error [09:55:07]OFD Sender: Processing packet 15260 [packets to send 8, broken 7] [09:55:07]ProducePacketName [09:55:07]name=ofd_packets/00015260 [09:55:07]OFD Sender: To server: pG, [09:55:07]CommunicateWithHost lk.salyk.kg:30040 [09:55:07]ConnectInit lk.salyk.kg [09:55:07]Connected sock=8 [09:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 02 E4 07 01 E8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F3 5B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9C 3B 00 00 35 04 06 00 A6 56 51 61 B8 6F 66 0A 93 C0 97 1E 50 BA [09:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 BF 7E 47 00 90 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9C 3B 00 00 F4 03 04 00 D8 06 C8 66 B6 04 01 00 00 E1 29 FA DB 0C 74 FA 46 [09:55:07]CommunicateWithHost err = 0 [09:55:07]CheckOFDResponse [09:55:07]1017 (14) - 77093643461234 [09:55:07]1041 (16) - 0000000002094529 [09:55:07]1040 (4) - 15260 [09:55:07]1012 (4) - 23.08.2024 03:49 [09:55:07]1206 (1) - 0 [09:55:07]OFD Sender: Remove packet 15260 [09:55:07]ProducePacketName [09:55:07]name=ofd_packets/00015260 [09:55:07]NVStorageDeleteData [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:31]accept exits with 9 [09:57:31]New connection [09:57:31]New thread 3066801508 created [09:57:31]Thread 3066944868 joined [09:57:31]Waiting for new connection... [09:57:31] Sock 9.Parse request [09:57:31]Sock 9.Check first char [09:57:31]Sock 9.First char is OK [09:57:31]request: POST /json_proto HTTP/1.0 [09:57:31]Method: POST [09:57:31]URL: /json_proto [09:57:31]Method is POST - this is cgi request [09:57:31]url: /json_proto [09:57:31]query_string will be loaded in cgi processing [09:57:31]execute_cgi json_proto POST (null) [09:57:31]execute_cgi path=json_proto method=POST [09:57:31]POST find Content-Length [09:57:31]Host: 172.17.44.4:8080 [09:57:31]Content-Length: 789 [09:57:31]Content-Type: application/json [09:57:31] [09:57:31]POST finish read [09:57:31]Found Content-Length = 789 [09:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:31]execute_script... [09:57:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:31]POST & json_proto [09:57:31]process_json_proto [09:57:31]json parsed OK: [09:57:31]protocol is kg_v1.0 [09:57:31]action value=close_receipt [09:57:31]process_action close_receipt [09:57:31]cmd_close_receipt [09:57:31]MH_GetDate [09:57:31]Write to MH i2c: F0 00 00 94 21 A4 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 09 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 09 00 94 21 00 0F 5D C8 66 0F 81 47 66 84 [09:57:31]GetLastDocTimeStamp 1724406771 [09:57:31]current date 1724407055 [09:57:31]FM_GetShiftState [09:57:31]SAM_PROTO_GetShiftState [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 13 01 00 [09:57:31]Write to MH i2c: E2 08 00 95 21 80 13 01 00 00 00 00 00 33 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0E 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0E 00 95 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F7 [09:57:31]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:57:31]wFMCommunicate OK [09:57:31]SAM_PROTO_GetShiftState done [09:57:31]FM_GetShiftState done [09:57:31]opened in 1724372406 [09:57:31]opened+sec_in_day 1724458806 [09:57:31]quantity*price = 0 [09:57:31]sum+1 = 1 [09:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 55 23.08.2024 09:57 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15261 ФПД: 69026220171364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095735&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15261&fm=69026220171364&tin=02508201610067®Number=0000000000162784&sum=0 [09:57:33]StoreToDocumentArchive [09:57:33]shift 102 fd 15261 [09:57:33]save to /storage/0102/doc_00015261 [09:57:33]save last doc name /storage/0102/doc_00015261 to /storage/kkm_last_doc_name [09:57:33]save OK [09:57:33]Clear old archive folders... [09:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:33]tlvbuf is 00507350 [09:57:33]SAM_PROTO_ClearQueue [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 09 00 00 [09:57:33]Write to MH i2c: E2 08 00 A2 21 80 09 00 00 00 00 00 00 35 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [09:57:33]RAPDU: 90 00 [09:57:33]wFMCommunicate OK [09:57:33]SAM_PROTO_ClearQueue done [09:57:33]KKMCreateOFDPacket [09:57:33]OFDProtocolAddRootSTLVToBuf [09:57:33]FM_MakeSignedData [09:57:33]FM_MakeSignedData [09:57:33]SAM_PROTO_SignData [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 0D 01 02 [09:57:33]Write to MH i2c: E2 08 00 A3 21 80 0D 01 02 00 00 00 00 3D [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [09:57:33]RAPDU: 90 00 [09:57:33]wFMCommunicate OK [09:57:33]wFMCommunicate request_size=255 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9D 3B 00 00 35 04 06 00 3E C7 6B 55 [09:57:33]Write to MH i2c: E2 02 01 A4 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9D 3B 00 00 35 04 06 00 3E C7 6B 55 00 00 0B [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]OFD Sender: No OFD packet to send [09:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [09:57:33]RAPDU: 90 00 [09:57:33]wFMCommunicate OK [09:57:33]wFMCommunicate request_size=7 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 0D 02 02 02 60 64 [09:57:33]Write to MH i2c: E2 0A 00 A5 21 80 0D 02 02 02 00 60 64 00 00 08 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [09:57:33]RAPDU: 90 00 [09:57:33]wFMCommunicate OK [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 0D 03 02 [09:57:33]Write to MH i2c: E2 08 00 A6 21 80 0D 03 02 00 00 00 00 42 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 0B 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 0B 00 A6 21 00 98 8C B5 D0 1D 30 FB 1E 90 00 52 [09:57:33]RAPDU: 98 8C B5 D0 1D 30 FB 1E 90 00 [09:57:33]wFMCommunicate OK [09:57:33]SAM_PROTO_SignData done [09:57:33]FM_MakeSignedData done [09:57:33]CreateOFDProtocolMessage [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 11 00 00 [09:57:33]Write to MH i2c: E2 08 00 A7 21 80 11 00 00 00 00 00 00 42 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 17 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 17 00 A7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 94 [09:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:57:33]wFMCommunicate OK [09:57:33]CreateOFDProtocolMessage done [09:57:33]OFDSenderStorePacket 15261 [09:57:33]StoreOFDPacket docnum=15261 [09:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A9 2A 04 01 29 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9D 3B 00 00 35 04 06 00 3E C7 6B 55 60 64 98 8C B5 D0 1D 30 FB 1E [09:57:33]CheckFolder [09:57:33]dirname=/storage/ofd_packets [09:57:33]CheckFolder done [09:57:33]ProducePacketName [09:57:33]name=ofd_packets/00015261 [09:57:33]NVStorageSaveData ofd_packets/00015261 [09:57:33]File name is /storage/ofd_packets/00015261 [09:57:33]Write 298 bytes [09:57:33]NVStorageSaveData done [09:57:33]OFDSenderStorePacket done [09:57:33]KKMCreateOFDPacket done [09:57:33]NVStorageSaveData kkm_last_timestamp [09:57:33]File name is /storage/kkm_last_timestamp [09:57:33]Write 4 bytes [09:57:33]NVStorageSaveData done [09:57:33]ExternCall_PrintAddStr [09:57:33]wPrintStart [09:57:33]Write to MH i2c: 01 00 00 A8 21 C9 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 FF 0F DE [09:57:33]RasterBufferAndPrint [09:57:33]line Счет N : (1)2078194 [09:57:33]line ИНН: 02508201610067 [09:57:33]line Контрольно-Кассовый Чек [09:57:33]line ПРОДАЖА [09:57:33]line ТРК (МРК, ГНК) : 21 [09:57:33]line Товар: 2710194210 [09:57:33]line ДТ-К-5 [09:57:33]line 5.000 * 0.00 [09:57:33]line = 0.00 [09:57:33]line НДС 12% НСП 1% [09:57:33]line > о реализуемом товаре [09:57:33]line ИТОГО: 0.00 [09:57:33]line НСП 1% : 0.00 [09:57:33]line НДС 12% : 0.00 [09:57:33]line Наличными: 0.00 [09:57:33]line Безнал.: 0.00 [09:57:33]line Место: АЗС № 135 "Партнер Нефть" [09:57:33]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:57:33]line СНО: Общий режим [09:57:33]line Чек 55 23.08.2024 09:57 [09:57:33]line Смена: 102 ФФД: 1.0 [09:57:33]line ЗНМ: 0300000144 [09:57:33]line РНМ: 0000000000162784 [09:57:33]line Версия ККМ: v1.0 [09:57:33]line Талоны: Топливная Карта [09:57:33]line 92875 [09:57:33]line ФМ: 0000000002094529 [09:57:33]line ФД: 15261 [09:57:33]line ФПД: 69026220171364 [09:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095735&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15261&fm=69026220171364&tin=02508201610067®Number=0000000000162784&sum=0 [09:57:33]OFD Sender: Processing packet 15261 [packets to send 8, broken 7] [09:57:33]ProducePacketName [09:57:33]name=ofd_packets/00015261 [09:57:33]OFD Sender: To server: pG, [09:57:33]CommunicateWithHost lk.salyk.kg:30040 [09:57:33]ConnectInit lk.salyk.kg [09:57:33]written 0, free lines is 4095 [09:57:34]Connected sock=11 [09:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A9 2A 04 01 29 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9D 3B 00 00 35 04 06 00 3E C7 6B 55 60 64 98 8C B5 D0 1D 30 FB 1E [09:57:34]Write to MH i2c: 01 00 00 D2 21 F3 [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: 01 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: 01 07 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: 01 07 00 D2 21 00 00 00 00 00 EA 0C F0 [09:57:34]RasterBufferAndPrint [09:57:34]line [09:57:34]line [09:57:34]line [09:57:34]line [09:57:34]line [09:57:34]written 0, free lines is 3313 [09:57:34]MH_Cut [09:57:34]Write to MH i2c: D1 01 00 D9 21 01 CC [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: D1 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: D1 01 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: D1 01 00 D9 21 00 CB [09:57:34]Write to MH i2c: 01 00 00 DA 21 FB [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 8D 97 47 00 F6 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9D 3B 00 00 F4 03 04 00 6B 07 C8 66 B6 04 01 00 00 CC 8D E9 7E FC 40 AF 09 [09:57:34]CommunicateWithHost err = 0 [09:57:34]CheckOFDResponse [09:57:34]1017 (14) - 77093643461234 [09:57:34]1041 (16) - 0000000002094529 [09:57:34]1040 (4) - 15261 [09:57:34]1012 (4) - 23.08.2024 03:52 [09:57:34]1206 (1) - 0 [09:57:34]OFD Sender: Remove packet 15261 [09:57:34]ProducePacketName [09:57:34]name=ofd_packets/00015261 [09:57:34]NVStorageDeleteData [09:57:34]OFD Sender: No OFD packet to send [09:57:35]*** Cut start [09:57:35]*** Partial cut [09:57:35]*** CUTSNS_PIN = 1 [09:57:35]*** CUTSNS_PIN = 0 [09:57:35]*** Brake cut motor [09:57:35]Read from MH i2c: 01 [09:57:35]MH_I2C_Read... [09:57:35]*** Stop cut motor [09:57:35]*** Cut end [09:57:35]Read from MH i2c: 01 07 00 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [09:57:35]process_action close_receipt done [09:57:35]requested_data is exist [09:57:35]produce_requested_data [09:57:35]requested_item fm.sn is exist - process it [09:57:35]wFMCommunicate request_size=4 [09:57:35]MH_SAM_APDU [09:57:35]CAPDU: 80 11 00 00 [09:57:35]Write to MH i2c: E2 08 00 DB 21 80 11 00 00 00 00 00 00 76 [09:57:35]Write i2c OK [09:57:35]MH_I2C_Read... [09:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:35]Read from MH i2c: E2 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 17 00 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 17 00 DB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C8 [09:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:57:35]wFMCommunicate OK [09:57:35]requested_item fd.num is exist - process it [09:57:35]SAM_PROTO_GetFieldsCounters [09:57:35]wFMCommunicate request_size=4 [09:57:35]MH_SAM_APDU [09:57:35]CAPDU: 80 13 00 00 [09:57:35]Write to MH i2c: E2 08 00 DC 21 80 13 00 00 00 00 00 00 79 [09:57:35]Write i2c OK [09:57:35]MH_I2C_Read... [09:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:35]Read from MH i2c: E2 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 62 00 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 62 00 DC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9D 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:35]wFMCommunicate OK [09:57:35]SAM_PROTO_GetFieldsCounters done [09:57:35]requested_item shift.num is exist - process it [09:57:35]requested_item shift.opened is exist - process it [09:57:35]req_shift_opened [09:57:35]FM_GetShiftState [09:57:35]SAM_PROTO_GetShiftState [09:57:35]wFMCommunicate request_size=4 [09:57:35]MH_SAM_APDU [09:57:35]CAPDU: 80 13 01 00 [09:57:35]Write to MH i2c: E2 08 00 DD 21 80 13 01 00 00 00 00 00 7B [09:57:35]Write i2c OK [09:57:35]MH_I2C_Read... [09:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:35]Read from MH i2c: E2 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 0E 00 [09:57:35]MH_I2C_Read... [09:57:35]Read from MH i2c: E2 0E 00 DD 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 3F [09:57:35]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:57:35]wFMCommunicate OK [09:57:35]SAM_PROTO_GetShiftState done [09:57:35]FM_GetShiftState done [09:57:35]req_shift_opened done [09:57:35]requested_item shift.open_date is exist - process it [09:57:35]req_shift_open_date [09:57:35]req_shift_open_date done [09:57:35]produce_requested_data done [09:57:35]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15261,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:57:35]process_action_free close_receipt [09:57:35]json_value_free [09:57:35]json_value_free done [09:57:35]process_json_proto returns [09:57:35]Send response to host [09:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15261,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:57:35]free response buf [09:57:35]execute_script done [09:57:35]execute_script returns [09:57:35]free content buf [09:57:35]Sock 9.Close socket [09:57:35]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:58:58]accept exits with 8 [09:58:58]New connection [09:58:58]New thread 3066944868 created [09:58:58]Thread 3066801508 joined [09:58:58]Waiting for new connection... [09:58:58] Sock 8.Parse request [09:58:58]Sock 8.Check first char [09:58:58]Sock 8.First char is OK [09:58:58]request: POST /json_proto HTTP/1.0 [09:58:58]Method: POST [09:58:58]URL: /json_proto [09:58:58]Method is POST - this is cgi request [09:58:58]url: /json_proto [09:58:58]query_string will be loaded in cgi processing [09:58:58]execute_cgi json_proto POST (null) [09:58:58]execute_cgi path=json_proto method=POST [09:58:58]POST find Content-Length [09:58:58]Host: 172.17.44.4:8080 [09:58:58]Content-Length: 785 [09:58:58]Content-Type: application/json [09:58:58] [09:58:58]POST finish read [09:58:58]Found Content-Length = 785 [09:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]execute_script... [09:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]POST & json_proto [09:58:58]process_json_proto [09:58:58]json parsed OK: [09:58:58]protocol is kg_v1.0 [09:58:58]action value=close_receipt [09:58:58]process_action close_receipt [09:58:58]cmd_close_receipt [09:58:58]MH_GetDate [09:58:58]Write to MH i2c: F0 00 00 DE 21 EE [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 DE 21 00 66 5D C8 66 0F 81 47 66 25 [09:58:58]GetLastDocTimeStamp 1724407055 [09:58:58]current date 1724407142 [09:58:58]FM_GetShiftState [09:58:58]SAM_PROTO_GetShiftState [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 13 01 00 [09:58:58]Write to MH i2c: E2 08 00 DF 21 80 13 01 00 00 00 00 00 7D [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 DF 21 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 41 [09:58:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:58:58]wFMCommunicate OK [09:58:58]SAM_PROTO_GetShiftState done [09:58:58]FM_GetShiftState done [09:58:58]opened in 1724372406 [09:58:58]opened+sec_in_day 1724458806 [09:58:58]quantity*price = 100035 [09:58:58]sum+1 = 100036 [09:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.35 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.35 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 56 23.08.2024 09:59 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15262 ФПД: 114687530706694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095902&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15262&fm=114687530706694&tin=02508201610067®Number=0000000000162784&sum=100035 [09:58:59]StoreToDocumentArchive [09:58:59]shift 102 fd 15262 [09:58:59]save to /storage/0102/doc_00015262 [09:58:59]save last doc name /storage/0102/doc_00015262 to /storage/kkm_last_doc_name [09:58:59]save OK [09:58:59]Clear old archive folders... [09:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:58:59]tlvbuf is B6DA6070 [09:58:59]SAM_PROTO_ClearQueue [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 09 00 00 [09:58:59]Write to MH i2c: E2 08 00 EC 21 80 09 00 00 00 00 00 00 7F [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]SAM_PROTO_ClearQueue done [09:58:59]KKMCreateOFDPacket [09:58:59]OFDProtocolAddRootSTLVToBuf [09:58:59]FM_MakeSignedData [09:58:59]FM_MakeSignedData [09:58:59]SAM_PROTO_SignData [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 01 02 [09:58:59]Write to MH i2c: E2 08 00 ED 21 80 0D 01 02 00 00 00 00 87 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=253 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 66 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9E 3B 00 00 35 04 06 00 68 4E C5 87 27 06 [09:58:59]Write to MH i2c: E2 00 01 EE 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 66 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9E 3B 00 00 35 04 06 00 68 4E C5 87 27 06 00 00 D4 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 03 02 [09:58:59]Write to MH i2c: E2 08 00 EF 21 80 0D 03 02 00 00 00 00 8B [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 EF 21 00 02 B0 02 99 D6 00 6E 00 90 00 1D [09:59:00]RAPDU: 02 B0 02 99 D6 00 6E 00 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_SignData done [09:59:00]FM_MakeSignedData done [09:59:00]CreateOFDProtocolMessage [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 11 00 00 [09:59:00]Write to MH i2c: E2 08 00 F0 21 80 11 00 00 00 00 00 00 8B [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]OFD Sender: No OFD packet to send [09:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 F0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 DD [09:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:59:00]wFMCommunicate OK [09:59:00]CreateOFDProtocolMessage done [09:59:00]OFDSenderStorePacket 15262 [09:59:00]StoreOFDPacket docnum=15262 [09:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 F1 D9 00 01 20 08 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 66 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9E 3B 00 00 35 04 06 00 68 4E C5 87 27 06 02 B0 02 99 D6 00 6E 00 [09:59:00]CheckFolder [09:59:00]dirname=/storage/ofd_packets [09:59:00]CheckFolder done [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00015262 [09:59:00]NVStorageSaveData ofd_packets/00015262 [09:59:00]File name is /storage/ofd_packets/00015262 [09:59:00]Write 294 bytes [09:59:00]NVStorageSaveData done [09:59:00]OFDSenderStorePacket done [09:59:00]KKMCreateOFDPacket done [09:59:00]NVStorageSaveData kkm_last_timestamp [09:59:00]File name is /storage/kkm_last_timestamp [09:59:00]Write 4 bytes [09:59:00]NVStorageSaveData done [09:59:00]ExternCall_PrintAddStr [09:59:00]wPrintStart [09:59:00]Write to MH i2c: 01 00 00 F1 21 12 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 F1 21 00 00 00 00 00 FF 0F 27 [09:59:00]RasterBufferAndPrint [09:59:00]line Счет N : (1)2078195 [09:59:00]line ИНН: 02508201610067 [09:59:00]line Контрольно-Кассовый Чек [09:59:00]line ПРОДАЖА [09:59:00]line ТРК (МРК, ГНК) : 54 [09:59:00]line Товар: 2710124130 [09:59:00]line SU-92 [09:59:00]line 14.540 * 68.80 [09:59:00]line = 1000.35 [09:59:00]line НДС 12% НСП 1% [09:59:00]line > о реализуемом товаре [09:59:00]line ИТОГО: 1000.35 [09:59:00]line НСП 1% : 8.85 [09:59:00]line НДС 12% : 106.23 [09:59:00]line Наличными: 0.00 [09:59:00]line Безнал.: 1000.35 [09:59:00]line Место: АЗС № 135 "Партнер Нефть" [09:59:00]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:59:00]line СНО: Общий режим [09:59:00]line Чек 56 23.08.2024 09:59 [09:59:00]line Смена: 102 ФФД: 1.0 [09:59:00]line ЗНМ: 0300000144 [09:59:00]line РНМ: 0000000000162784 [09:59:00]line Версия ККМ: v1.0 [09:59:00]line Платежная система: O! деньги [09:59:00]line ФМ: 0000000002094529 [09:59:00]line ФД: 15262 [09:59:00]line ФПД: 114687530706694 [09:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095902&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15262&fm=114687530706694&tin=02508201610067®Number=0000000000162784&sum=100035 [09:59:00]OFD Sender: Processing packet 15262 [packets to send 8, broken 7] [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00015262 [09:59:00]OFD Sender: To server: pG, [09:59:00]CommunicateWithHost lk.salyk.kg:30040 [09:59:00]ConnectInit lk.salyk.kg [09:59:00]written 0, free lines is 4095 [09:59:00]Connected sock=10 [09:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 F1 D9 00 01 20 08 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 66 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9E 3B 00 00 35 04 06 00 68 4E C5 87 27 06 02 B0 02 99 D6 00 6E 00 [09:59:00]Write to MH i2c: 01 00 00 1B 22 3D [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 F7 0C 47 [09:59:00]RasterBufferAndPrint [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]written 0, free lines is 3324 [09:59:00]MH_Cut [09:59:00]Write to MH i2c: D1 01 00 22 22 01 16 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 22 22 00 15 [09:59:00]Write to MH i2c: 01 00 00 23 22 45 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 05 DF 47 00 26 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9E 3B 00 00 F4 03 04 00 C2 07 C8 66 B6 04 01 00 00 87 B7 CE 32 F6 6A 33 67 [09:59:00]CommunicateWithHost err = 0 [09:59:00]CheckOFDResponse [09:59:00]1017 (14) - 77093643461234 [09:59:00]1041 (16) - 0000000002094529 [09:59:00]1040 (4) - 15262 [09:59:00]1012 (4) - 23.08.2024 03:53 [09:59:00]1206 (1) - 0 [09:59:00]OFD Sender: Remove packet 15262 [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00015262 [09:59:00]NVStorageDeleteData [09:59:01]OFD Sender: No OFD packet to send [09:59:01]*** Cut start [09:59:01]*** Partial cut [09:59:01]*** CUTSNS_PIN = 1 [09:59:01]*** CUTSNS_PIN = 0 [09:59:01]*** Brake cut motor [09:59:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]*** Stop cut motor [09:59:02]*** Cut end [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 23 22 00 00 00 00 00 FF 0F 5A [09:59:02]process_action close_receipt done [09:59:02]requested_data is exist [09:59:02]produce_requested_data [09:59:02]requested_item fm.sn is exist - process it [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 11 00 00 [09:59:02]Write to MH i2c: E2 08 00 24 22 80 11 00 00 00 00 00 00 C0 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:02]Read from MH i2c: E2 17 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 24 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 12 [09:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [09:59:02]wFMCommunicate OK [09:59:02]requested_item fd.num is exist - process it [09:59:02]SAM_PROTO_GetFieldsCounters [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 00 00 [09:59:02]Write to MH i2c: E2 08 00 25 22 80 13 00 00 00 00 00 00 C3 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 25 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9E 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetFieldsCounters done [09:59:02]requested_item shift.num is exist - process it [09:59:02]requested_item shift.opened is exist - process it [09:59:02]req_shift_opened [09:59:02]FM_GetShiftState [09:59:02]SAM_PROTO_GetShiftState [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 01 00 [09:59:02]Write to MH i2c: E2 08 00 26 22 80 13 01 00 00 00 00 00 C5 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 26 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 89 [09:59:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetShiftState done [09:59:02]FM_GetShiftState done [09:59:02]req_shift_opened done [09:59:02]requested_item shift.open_date is exist - process it [09:59:02]req_shift_open_date [09:59:02]req_shift_open_date done [09:59:02]produce_requested_data done [09:59:02]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15262,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [09:59:02]process_action_free close_receipt [09:59:02]json_value_free [09:59:02]json_value_free done [09:59:02]process_json_proto returns [09:59:02]Send response to host [09:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15262,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [09:59:02]free response buf [09:59:02]execute_script done [09:59:02]execute_script returns [09:59:02]free content buf [09:59:02]Sock 8.Close socket [09:59:02]Sock 8.Thread stoped [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:20]accept exits with 9 [10:01:20]New connection [10:01:20]New thread 3066801508 created [10:01:20]Thread 3066944868 joined [10:01:20]Waiting for new connection... [10:01:20] Sock 9.Parse request [10:01:20]Sock 9.Check first char [10:01:20]Sock 9.First char is OK [10:01:20]request: POST /json_proto HTTP/1.0 [10:01:20]Method: POST [10:01:20]URL: /json_proto [10:01:20]Method is POST - this is cgi request [10:01:20]url: /json_proto [10:01:20]query_string will be loaded in cgi processing [10:01:20]execute_cgi json_proto POST (null) [10:01:20]execute_cgi path=json_proto method=POST [10:01:20]POST find Content-Length [10:01:20]Host: 172.17.44.4:8080 [10:01:20]Content-Length: 790 [10:01:20]Content-Type: application/json [10:01:20] [10:01:20]POST finish read [10:01:20]Found Content-Length = 790 [10:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:20]execute_script... [10:01:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:20]POST & json_proto [10:01:20]process_json_proto [10:01:20]json parsed OK: [10:01:20]protocol is kg_v1.0 [10:01:20]action value=close_receipt [10:01:20]process_action close_receipt [10:01:20]cmd_close_receipt [10:01:20]MH_GetDate [10:01:20]Write to MH i2c: F0 00 00 27 22 38 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: F0 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: F0 09 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: F0 09 00 27 22 00 F4 5D C8 66 0F 81 47 66 FD [10:01:20]GetLastDocTimeStamp 1724407142 [10:01:20]current date 1724407284 [10:01:20]FM_GetShiftState [10:01:20]SAM_PROTO_GetShiftState [10:01:20]wFMCommunicate request_size=4 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 13 01 00 [10:01:20]Write to MH i2c: E2 08 00 28 22 80 13 01 00 00 00 00 00 C7 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 0E 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 0E 00 28 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 8B [10:01:20]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:01:20]wFMCommunicate OK [10:01:20]SAM_PROTO_GetShiftState done [10:01:20]FM_GetShiftState done [10:01:20]opened in 1724372406 [10:01:20]opened+sec_in_day 1724458806 [10:01:20]quantity*price = 0 [10:01:20]sum+1 = 1 [10:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 57 23.08.2024 10:01 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15263 ФПД: 93363473001710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100124&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15263&fm=93363473001710&tin=02508201610067®Number=0000000000162784&sum=0 [10:01:21]StoreToDocumentArchive [10:01:21]shift 102 fd 15263 [10:01:21]save to /storage/0102/doc_00015263 [10:01:21]save last doc name /storage/0102/doc_00015263 to /storage/kkm_last_doc_name [10:01:21]save OK [10:01:21]Clear old archive folders... [10:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:21]tlvbuf is 005074A0 [10:01:21]SAM_PROTO_ClearQueue [10:01:21]wFMCommunicate request_size=4 [10:01:21]MH_SAM_APDU [10:01:21]CAPDU: 80 09 00 00 [10:01:21]Write to MH i2c: E2 08 00 35 22 80 09 00 00 00 00 00 00 C9 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:21]Read from MH i2c: E2 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 03 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 03 00 35 22 00 90 00 CB [10:01:21]RAPDU: 90 00 [10:01:21]wFMCommunicate OK [10:01:21]SAM_PROTO_ClearQueue done [10:01:21]KKMCreateOFDPacket [10:01:21]OFDProtocolAddRootSTLVToBuf [10:01:21]FM_MakeSignedData [10:01:21]FM_MakeSignedData [10:01:21]SAM_PROTO_SignData [10:01:21]wFMCommunicate request_size=4 [10:01:21]MH_SAM_APDU [10:01:21]CAPDU: 80 0D 01 02 [10:01:21]Write to MH i2c: E2 08 00 36 22 80 0D 01 02 00 00 00 00 D1 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:21]Read from MH i2c: E2 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 03 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [10:01:21]RAPDU: 90 00 [10:01:21]wFMCommunicate OK [10:01:21]wFMCommunicate request_size=255 [10:01:21]MH_SAM_APDU [10:01:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9F 3B 00 00 35 04 06 00 54 E9 E0 A4 [10:01:21]Write to MH i2c: E2 02 01 37 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9F 3B 00 00 35 04 06 00 54 E9 E0 A4 00 00 20 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]wFMCommunicate request_size=7 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 02 02 02 AC EE [10:01:22]Write to MH i2c: E2 0A 00 38 22 80 0D 02 02 02 00 AC EE 00 00 72 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 03 02 [10:01:22]Write to MH i2c: E2 08 00 39 22 80 0D 03 02 00 00 00 00 D6 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0B 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0B 00 39 22 00 CB B4 DC FC 02 84 25 D4 90 00 AD [10:01:22]RAPDU: CB B4 DC FC 02 84 25 D4 90 00 [10:01:22]wFMCommunicate OK [10:01:22]SAM_PROTO_SignData done [10:01:22]FM_MakeSignedData done [10:01:22]CreateOFDProtocolMessage [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 11 00 00 [10:01:22]Write to MH i2c: E2 08 00 3A 22 80 11 00 00 00 00 00 00 D6 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 17 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 17 00 3A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 28 [10:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:01:22]wFMCommunicate OK [10:01:22]CreateOFDProtocolMessage done [10:01:22]OFDSenderStorePacket 15263 [10:01:22]StoreOFDPacket docnum=15263 [10:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A0 A4 04 01 E2 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9F 3B 00 00 35 04 06 00 54 E9 E0 A4 AC EE CB B4 DC FC 02 84 25 D4 [10:01:22]CheckFolder [10:01:22]dirname=/storage/ofd_packets [10:01:22]CheckFolder done [10:01:22]ProducePacketName [10:01:22]name=ofd_packets/00015263 [10:01:22]NVStorageSaveData ofd_packets/00015263 [10:01:22]File name is /storage/ofd_packets/00015263 [10:01:22]Write 298 bytes [10:01:22]NVStorageSaveData done [10:01:22]OFDSenderStorePacket done [10:01:22]KKMCreateOFDPacket done [10:01:22]NVStorageSaveData kkm_last_timestamp [10:01:22]File name is /storage/kkm_last_timestamp [10:01:22]Write 4 bytes [10:01:22]NVStorageSaveData done [10:01:22]ExternCall_PrintAddStr [10:01:22]wPrintStart [10:01:22]Write to MH i2c: 01 00 00 3B 22 5D [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: 01 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: 01 07 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: 01 07 00 3B 22 00 00 00 00 00 FF 0F 72 [10:01:22]RasterBufferAndPrint [10:01:22]line Счет N : (1)2078196 [10:01:22]line ИНН: 02508201610067 [10:01:22]line Контрольно-Кассовый Чек [10:01:22]line ПРОДАЖА [10:01:22]line ТРК (МРК, ГНК) : 21 [10:01:22]line Товар: 2710194210 [10:01:22]line ДТ-К-5 [10:01:22]line 10.000 * 0.00 [10:01:22]line = 0.00 [10:01:22]line НДС 12% НСП 1% [10:01:22]line > о реализуемом товаре [10:01:22]line ИТОГО: 0.00 [10:01:22]line НСП 1% : 0.00 [10:01:22]line НДС 12% : 0.00 [10:01:22]line Наличными: 0.00 [10:01:22]line Безнал.: 0.00 [10:01:22]line Место: АЗС № 135 "Партнер Нефть" [10:01:22]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:01:22]line СНО: Общий режим [10:01:22]line Чек 57 23.08.2024 10:01 [10:01:22]line Смена: 102 ФФД: 1.0 [10:01:22]line ЗНМ: 0300000144 [10:01:22]line РНМ: 0000000000162784 [10:01:22]line Версия ККМ: v1.0 [10:01:22]line Талоны: Топливная Карта [10:01:22]line 92875 [10:01:22]line ФМ: 0000000002094529 [10:01:22]line ФД: 15263 [10:01:22]line ФПД: 93363473001710 [10:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100124&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15263&fm=93363473001710&tin=02508201610067®Number=0000000000162784&sum=0 [10:01:22]OFD Sender: Processing packet 15263 [packets to send 8, broken 7] [10:01:22]ProducePacketName [10:01:22]name=ofd_packets/00015263 [10:01:22]OFD Sender: To server: pG, [10:01:22]CommunicateWithHost lk.salyk.kg:30040 [10:01:22]ConnectInit lk.salyk.kg [10:01:22]written 0, free lines is 4095 [10:01:22]Connected sock=10 [10:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 A0 A4 04 01 E2 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F4 5D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9F 3B 00 00 35 04 06 00 54 E9 E0 A4 AC EE CB B4 DC FC 02 84 25 D4 [10:01:23]Write to MH i2c: 01 00 00 65 22 87 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 F6 0C 90 [10:01:23]RasterBufferAndPrint [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]written 0, free lines is 3327 [10:01:23]MH_Cut [10:01:23]Write to MH i2c: D1 01 00 6C 22 01 60 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 01 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 01 00 6C 22 00 5F [10:01:23]Write to MH i2c: 01 00 00 6D 22 8F [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1B 34 47 00 DF 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 9F 3B 00 00 F4 03 04 00 50 08 C8 66 B6 04 01 00 00 E3 E7 AB 2A F2 98 04 F9 [10:01:23]CommunicateWithHost err = 0 [10:01:23]CheckOFDResponse [10:01:23]1017 (14) - 77093643461234 [10:01:23]1041 (16) - 0000000002094529 [10:01:23]1040 (4) - 15263 [10:01:23]1012 (4) - 23.08.2024 03:56 [10:01:23]1206 (1) - 0 [10:01:23]OFD Sender: Remove packet 15263 [10:01:23]ProducePacketName [10:01:23]name=ofd_packets/00015263 [10:01:23]NVStorageDeleteData [10:01:23]OFD Sender: No OFD packet to send [10:01:23]*** Cut start [10:01:23]*** Partial cut [10:01:23]*** CUTSNS_PIN = 1 [10:01:23]*** CUTSNS_PIN = 0 [10:01:24]*** Brake cut motor [10:01:24]Read from MH i2c: 01 [10:01:24]MH_I2C_Read... [10:01:24]*** Stop cut motor [10:01:24]*** Cut end [10:01:24]Read from MH i2c: 01 07 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [10:01:24]process_action close_receipt done [10:01:24]requested_data is exist [10:01:24]produce_requested_data [10:01:24]requested_item fm.sn is exist - process it [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 11 00 00 [10:01:24]Write to MH i2c: E2 08 00 6E 22 80 11 00 00 00 00 00 00 0A [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 6E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5C [10:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:01:24]wFMCommunicate OK [10:01:24]requested_item fd.num is exist - process it [10:01:24]SAM_PROTO_GetFieldsCounters [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 13 00 00 [10:01:24]Write to MH i2c: E2 08 00 6F 22 80 13 00 00 00 00 00 00 0D [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 62 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 62 00 6F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:01:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 9F 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_GetFieldsCounters done [10:01:24]requested_item shift.num is exist - process it [10:01:24]requested_item shift.opened is exist - process it [10:01:24]req_shift_opened [10:01:24]FM_GetShiftState [10:01:24]SAM_PROTO_GetShiftState [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 13 01 00 [10:01:24]Write to MH i2c: E2 08 00 70 22 80 13 01 00 00 00 00 00 0F [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0E 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0E 00 70 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D3 [10:01:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_GetShiftState done [10:01:24]FM_GetShiftState done [10:01:24]req_shift_opened done [10:01:24]requested_item shift.open_date is exist - process it [10:01:24]req_shift_open_date [10:01:24]req_shift_open_date done [10:01:24]produce_requested_data done [10:01:24]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15263,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:01:24]process_action_free close_receipt [10:01:24]json_value_free [10:01:24]json_value_free done [10:01:24]process_json_proto returns [10:01:24]Send response to host [10:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15263,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:01:24]free response buf [10:01:24]execute_script done [10:01:24]execute_script returns [10:01:24]free content buf [10:01:24]Sock 9.Close socket [10:01:24]Sock 9.Thread stoped [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]accept exits with 8 [10:02:33]New connection [10:02:33]New thread 3066944868 created [10:02:33]Thread 3066801508 joined [10:02:33]Waiting for new connection... [10:02:33] Sock 8.Parse request [10:02:33]Sock 8.Check first char [10:02:33]Sock 8.First char is OK [10:02:33]request: POST /json_proto HTTP/1.0 [10:02:33]Method: POST [10:02:33]URL: /json_proto [10:02:33]Method is POST - this is cgi request [10:02:33]url: /json_proto [10:02:33]query_string will be loaded in cgi processing [10:02:33]execute_cgi json_proto POST (null) [10:02:33]execute_cgi path=json_proto method=POST [10:02:33]POST find Content-Length [10:02:33]Host: 172.17.44.4:8080 [10:02:33]Content-Length: 755 [10:02:33]Content-Type: application/json [10:02:33] [10:02:33]POST finish read [10:02:33]Found Content-Length = 755 [10:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30057030", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:33]execute_script... [10:02:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30057030", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:33]POST & json_proto [10:02:33]process_json_proto [10:02:33]json parsed OK: [10:02:33]protocol is kg_v1.0 [10:02:33]action value=close_receipt [10:02:33]process_action close_receipt [10:02:33]cmd_close_receipt [10:02:33]MH_GetDate [10:02:33]Write to MH i2c: F0 00 00 71 22 82 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 09 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 09 00 71 22 00 3D 5E C8 66 0F 81 47 66 91 [10:02:33]GetLastDocTimeStamp 1724407284 [10:02:33]current date 1724407357 [10:02:33]FM_GetShiftState [10:02:33]SAM_PROTO_GetShiftState [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 01 00 [10:02:33]Write to MH i2c: E2 08 00 72 22 80 13 01 00 00 00 00 00 11 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 72 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D5 [10:02:33]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_GetShiftState done [10:02:33]FM_GetShiftState done [10:02:33]opened in 1724372406 [10:02:33]opened+sec_in_day 1724458806 [10:02:33]quantity*price = 0 [10:02:33]sum+1 = 1 [10:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 58 23.08.2024 10:02 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30057030 ФМ: 0000000002094529 ФД: 15264 ФПД: 136248633525819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100237&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15264&fm=136248633525819&tin=02508201610067®Number=0000000000162784&sum=0 [10:02:34]StoreToDocumentArchive [10:02:34]shift 102 fd 15264 [10:02:34]save to /storage/0102/doc_00015264 [10:02:34]save last doc name /storage/0102/doc_00015264 to /storage/kkm_last_doc_name [10:02:34]save OK [10:02:34]Clear old archive folders... [10:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:34]tlvbuf is 004ABC00 [10:02:34]SAM_PROTO_ClearQueue [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 09 00 00 [10:02:34]Write to MH i2c: E2 08 00 7F 22 80 09 00 00 00 00 00 00 13 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]SAM_PROTO_ClearQueue done [10:02:34]KKMCreateOFDPacket [10:02:34]OFDProtocolAddRootSTLVToBuf [10:02:34]FM_MakeSignedData [10:02:34]FM_MakeSignedData [10:02:34]SAM_PROTO_SignData [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 0D 01 02 [10:02:34]Write to MH i2c: E2 08 00 80 22 80 0D 01 02 00 00 00 00 1B [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]wFMCommunicate request_size=255 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A0 3B 00 00 35 04 06 00 7B [10:02:34]Write to MH i2c: E2 02 01 81 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A0 3B 00 00 35 04 06 00 7B 00 00 F3 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]wFMCommunicate request_size=10 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 0D 02 02 05 EA DB 67 06 3B [10:02:34]Write to MH i2c: E2 0D 00 82 22 80 0D 02 02 05 00 EA DB 67 06 3B 00 00 95 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 0D 03 02 [10:02:34]Write to MH i2c: E2 08 00 83 22 80 0D 03 02 00 00 00 00 20 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0B 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0B 00 83 22 00 72 1D F9 02 48 00 3C 82 90 00 B1 [10:02:34]RAPDU: 72 1D F9 02 48 00 3C 82 90 00 [10:02:34]wFMCommunicate OK [10:02:34]SAM_PROTO_SignData done [10:02:34]FM_MakeSignedData done [10:02:34]CreateOFDProtocolMessage [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 11 00 00 [10:02:34]Write to MH i2c: E2 08 00 84 22 80 11 00 00 00 00 00 00 20 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 17 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 17 00 84 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 72 [10:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:02:34]wFMCommunicate OK [10:02:34]CreateOFDProtocolMessage done [10:02:34]OFDSenderStorePacket 15264 [10:02:34]StoreOFDPacket docnum=15264 [10:02:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 F1 DB 07 01 BF AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A0 3B 00 00 35 04 06 00 7B EA DB 67 06 3B 72 1D F9 02 48 00 3C 82 [10:02:34]CheckFolder [10:02:34]dirname=/storage/ofd_packets [10:02:34]CheckFolder done [10:02:34]ProducePacketName [10:02:34]name=ofd_packets/00015264 [10:02:34]NVStorageSaveData ofd_packets/00015264 [10:02:34]File name is /storage/ofd_packets/00015264 [10:02:34]Write 301 bytes [10:02:34]NVStorageSaveData done [10:02:34]OFDSenderStorePacket done [10:02:34]KKMCreateOFDPacket done [10:02:34]NVStorageSaveData kkm_last_timestamp [10:02:34]File name is /storage/kkm_last_timestamp [10:02:34]Write 4 bytes [10:02:34]NVStorageSaveData done [10:02:34]ExternCall_PrintAddStr [10:02:34]wPrintStart [10:02:34]Write to MH i2c: 01 00 00 85 22 A7 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 07 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 07 00 85 22 00 00 00 00 00 FF 0F BC [10:02:34]RasterBufferAndPrint [10:02:34]line Счет N : (1)2078197 [10:02:34]line ИНН: 02508201610067 [10:02:34]line Контрольно-Кассовый Чек [10:02:34]line ПРОДАЖА [10:02:34]line ТРК (МРК, ГНК) : 32 [10:02:34]line Товар: 2710124500 [10:02:34]line Аи-95-К-5 [10:02:34]line 25.000 * 0.00 [10:02:34]line = 0.00 [10:02:34]line НДС 12% НСП 1% [10:02:34]line > о реализуемом товаре [10:02:34]line ИТОГО: 0.00 [10:02:34]line НСП 1% : 0.00 [10:02:34]line НДС 12% : 0.00 [10:02:34]line Наличными: 0.00 [10:02:34]line Безнал.: 0.00 [10:02:34]line Место: АЗС № 135 "Партнер Нефть" [10:02:34]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:02:34]line СНО: Общий режим [10:02:34]line Чек 58 23.08.2024 10:02 [10:02:34]line Смена: 102 ФФД: 1.0 [10:02:34]line ЗНМ: 0300000144 [10:02:34]line РНМ: 0000000000162784 [10:02:34]line Версия ККМ: v1.0 [10:02:34]line Талоны: ТК ГПНА Online [10:02:34]line 30057030 [10:02:34]line ФМ: 0000000002094529 [10:02:34]line ФД: 15264 [10:02:34]line ФПД: 136248633525819 [10:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100237&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15264&fm=136248633525819&tin=02508201610067®Number=0000000000162784&sum=0 [10:02:35]OFD Sender: Processing packet 15264 [packets to send 8, broken 7] [10:02:35]ProducePacketName [10:02:35]name=ofd_packets/00015264 [10:02:35]OFD Sender: To server: pG, [10:02:35]CommunicateWithHost lk.salyk.kg:30040 [10:02:35]ConnectInit lk.salyk.kg [10:02:35]written 0, free lines is 4095 [10:02:35]Connected sock=10 [10:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 F1 DB 07 01 BF AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A0 3B 00 00 35 04 06 00 7B EA DB 67 06 3B 72 1D F9 02 48 00 3C 82 [10:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 65 8A 47 00 10 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A0 3B 00 00 F4 03 04 00 98 08 C8 66 B6 04 01 00 00 C4 A7 B5 5D FB 2A F2 00 [10:02:35]CommunicateWithHost err = 0 [10:02:35]CheckOFDResponse [10:02:35]1017 (14) - 77093643461234 [10:02:35]1041 (16) - 0000000002094529 [10:02:35]1040 (4) - 15264 [10:02:35]1012 (4) - 23.08.2024 03:57 [10:02:35]1206 (1) - 0 [10:02:35]OFD Sender: Remove packet 15264 [10:02:35]ProducePacketName [10:02:35]name=ofd_packets/00015264 [10:02:35]NVStorageDeleteData [10:02:35]Write to MH i2c: 01 00 00 AF 22 D1 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 00 0D E5 [10:02:35]RasterBufferAndPrint [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]written 0, free lines is 3333 [10:02:35]MH_Cut [10:02:35]Write to MH i2c: D1 01 00 B6 22 01 AA [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 01 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 01 00 B6 22 00 A9 [10:02:35]Write to MH i2c: 01 00 00 B7 22 D9 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:36]OFD Sender: No OFD packet to send [10:02:36]*** Cut start [10:02:36]*** Partial cut [10:02:36]*** CUTSNS_PIN = 1 [10:02:36]*** CUTSNS_PIN = 0 [10:02:36]*** Brake cut motor [10:02:36]Read from MH i2c: 01 [10:02:36]MH_I2C_Read... [10:02:36]*** Stop cut motor [10:02:36]*** Cut end [10:02:36]Read from MH i2c: 01 07 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 FF 0F EE [10:02:36]process_action close_receipt done [10:02:36]requested_data is exist [10:02:36]produce_requested_data [10:02:36]requested_item fm.sn is exist - process it [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 11 00 00 [10:02:36]Write to MH i2c: E2 08 00 B8 22 80 11 00 00 00 00 00 00 54 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 17 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 17 00 B8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A6 [10:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:02:36]wFMCommunicate OK [10:02:36]requested_item fd.num is exist - process it [10:02:36]SAM_PROTO_GetFieldsCounters [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 13 00 00 [10:02:36]Write to MH i2c: E2 08 00 B9 22 80 13 00 00 00 00 00 00 57 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 62 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 62 00 B9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:02:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_GetFieldsCounters done [10:02:37]requested_item shift.num is exist - process it [10:02:37]requested_item shift.opened is exist - process it [10:02:37]req_shift_opened [10:02:37]FM_GetShiftState [10:02:37]SAM_PROTO_GetShiftState [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 13 01 00 [10:02:37]Write to MH i2c: E2 08 00 BA 22 80 13 01 00 00 00 00 00 59 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0E 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0E 00 BA 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1D [10:02:37]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_GetShiftState done [10:02:37]FM_GetShiftState done [10:02:37]req_shift_opened done [10:02:37]requested_item shift.open_date is exist - process it [10:02:37]req_shift_open_date [10:02:37]req_shift_open_date done [10:02:37]produce_requested_data done [10:02:37]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15264,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:02:37]process_action_free close_receipt [10:02:37]json_value_free [10:02:37]json_value_free done [10:02:37]process_json_proto returns [10:02:37]Send response to host [10:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15264,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:02:37]free response buf [10:02:37]execute_script done [10:02:37]execute_script returns [10:02:37]free content buf [10:02:37]Sock 8.Close socket [10:02:37]Sock 8.Thread stoped [10:02:41]OFD Sender: No OFD packet to send [10:02:41]accept exits with 9 [10:02:41]New connection [10:02:41]New thread 3066801508 created [10:02:41]Thread 3066944868 joined [10:02:41]Waiting for new connection... [10:02:41] Sock 9.Parse request [10:02:41]Sock 9.Check first char [10:02:41]Sock 9.First char is OK [10:02:41]request: POST /json_proto HTTP/1.0 [10:02:41]Method: POST [10:02:41]URL: /json_proto [10:02:41]Method is POST - this is cgi request [10:02:41]url: /json_proto [10:02:41]query_string will be loaded in cgi processing [10:02:41]execute_cgi json_proto POST (null) [10:02:41]execute_cgi path=json_proto method=POST [10:02:41]POST find Content-Length [10:02:41]Host: 172.17.44.4:8080 [10:02:41]Content-Length: 802 [10:02:41]Content-Type: application/json [10:02:41] [10:02:41]POST finish read [10:02:41]Found Content-Length = 802 [10:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:41]execute_script... [10:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:41]POST & json_proto [10:02:41]process_json_proto [10:02:41]json parsed OK: [10:02:41]protocol is kg_v1.0 [10:02:41]action value=close_receipt [10:02:41]process_action close_receipt [10:02:41]cmd_close_receipt [10:02:41]MH_GetDate [10:02:41]Write to MH i2c: F0 00 00 BB 22 CC [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 09 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 09 00 BB 22 00 45 5E C8 66 0F 81 47 66 E3 [10:02:41]GetLastDocTimeStamp 1724407357 [10:02:41]current date 1724407365 [10:02:41]FM_GetShiftState [10:02:41]SAM_PROTO_GetShiftState [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 13 01 00 [10:02:41]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1F [10:02:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:02:41]wFMCommunicate OK [10:02:41]SAM_PROTO_GetShiftState done [10:02:41]FM_GetShiftState done [10:02:41]opened in 1724372406 [10:02:41]opened+sec_in_day 1724458806 [10:02:41]quantity*price = 70037 [10:02:41]sum+1 = 70038 [10:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 59 23.08.2024 10:02 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15265 ФПД: 143577085114020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100245&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15265&fm=143577085114020&tin=02508201610067®Number=0000000000162784&sum=70037 [10:02:42]StoreToDocumentArchive [10:02:42]shift 102 fd 15265 [10:02:42]save to /storage/0102/doc_00015265 [10:02:42]save last doc name /storage/0102/doc_00015265 to /storage/kkm_last_doc_name [10:02:42]save OK [10:02:42]Clear old archive folders... [10:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:42]tlvbuf is 0049D960 [10:02:42]SAM_PROTO_ClearQueue [10:02:42]wFMCommunicate request_size=4 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 09 00 00 [10:02:42]Write to MH i2c: E2 08 00 C9 22 80 09 00 00 00 00 00 00 5D [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:42]Read from MH i2c: E2 03 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [10:02:42]RAPDU: 90 00 [10:02:42]wFMCommunicate OK [10:02:42]SAM_PROTO_ClearQueue done [10:02:42]KKMCreateOFDPacket [10:02:42]OFDProtocolAddRootSTLVToBuf [10:02:42]FM_MakeSignedData [10:02:42]FM_MakeSignedData [10:02:42]SAM_PROTO_SignData [10:02:42]wFMCommunicate request_size=4 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 0D 01 02 [10:02:42]Write to MH i2c: E2 08 00 CA 22 80 0D 01 02 00 00 00 00 65 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:42]Read from MH i2c: E2 03 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [10:02:42]RAPDU: 90 00 [10:02:42]wFMCommunicate OK [10:02:42]wFMCommunicate request_size=255 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 45 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A1 3B 00 00 35 04 06 00 82 [10:02:42]Write to MH i2c: E2 02 01 CB 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 45 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A1 3B 00 00 35 04 06 00 82 00 00 E6 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [10:02:42]RAPDU: 90 00 [10:02:42]wFMCommunicate OK [10:02:42]wFMCommunicate request_size=10 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 0D 02 02 05 95 25 27 F6 A4 [10:02:42]Write to MH i2c: E2 0D 00 CC 22 80 0D 02 02 05 00 95 25 27 F6 A4 00 00 ED [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [10:02:42]RAPDU: 90 00 [10:02:42]wFMCommunicate OK [10:02:42]wFMCommunicate request_size=4 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 0D 03 02 [10:02:42]Write to MH i2c: E2 08 00 CD 22 80 0D 03 02 00 00 00 00 6A [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 0B 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 0B 00 CD 22 00 97 69 CB 08 1F 95 D7 E2 90 00 AB [10:02:42]RAPDU: 97 69 CB 08 1F 95 D7 E2 90 00 [10:02:42]wFMCommunicate OK [10:02:42]SAM_PROTO_SignData done [10:02:42]FM_MakeSignedData done [10:02:42]CreateOFDProtocolMessage [10:02:42]wFMCommunicate request_size=4 [10:02:42]MH_SAM_APDU [10:02:42]CAPDU: 80 11 00 00 [10:02:42]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:42]Read from MH i2c: E2 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 17 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BC [10:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:02:42]wFMCommunicate OK [10:02:42]CreateOFDProtocolMessage done [10:02:42]OFDSenderStorePacket 15265 [10:02:42]StoreOFDPacket docnum=15265 [10:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 51 27 07 01 50 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 45 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A1 3B 00 00 35 04 06 00 82 95 25 27 F6 A4 97 69 CB 08 1F 95 D7 E2 [10:02:42]CheckFolder [10:02:42]dirname=/storage/ofd_packets [10:02:42]CheckFolder done [10:02:42]ProducePacketName [10:02:42]name=ofd_packets/00015265 [10:02:42]NVStorageSaveData ofd_packets/00015265 [10:02:42]File name is /storage/ofd_packets/00015265 [10:02:42]Write 301 bytes [10:02:42]NVStorageSaveData done [10:02:42]OFDSenderStorePacket done [10:02:42]KKMCreateOFDPacket done [10:02:42]NVStorageSaveData kkm_last_timestamp [10:02:42]File name is /storage/kkm_last_timestamp [10:02:42]Write 4 bytes [10:02:42]NVStorageSaveData done [10:02:42]ExternCall_PrintAddStr [10:02:42]wPrintStart [10:02:42]Write to MH i2c: 01 00 00 CF 22 F1 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 07 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 07 00 CF 22 00 00 00 00 00 FF 0F 06 [10:02:42]RasterBufferAndPrint [10:02:42]line Счет N : (1)2078199 [10:02:42]line ИНН: 02508201610067 [10:02:42]line Контрольно-Кассовый Чек [10:02:42]line ПРОДАЖА [10:02:42]line ТРК (МРК, ГНК) : 53 [10:02:42]line Товар: 2710124130 [10:02:42]line Аи-92-К-4 [10:02:42]line 10.330 * 67.80 [10:02:42]line = 700.37 [10:02:42]line НДС 12% НСП 1% [10:02:42]line > о реализуемом товаре [10:02:42]line ИТОГО: 700.37 [10:02:42]line НСП 1% : 6.20 [10:02:42]line НДС 12% : 74.38 [10:02:42]line Наличными: 0.00 [10:02:42]line Безнал.: 700.37 [10:02:42]line Место: АЗС № 135 "Партнер Нефть" [10:02:42]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:02:42]line СНО: Общий режим [10:02:42]line Чек 59 23.08.2024 10:02 [10:02:42]line Смена: 102 ФФД: 1.0 [10:02:42]line ЗНМ: 0300000144 [10:02:42]line РНМ: 0000000000162784 [10:02:42]line Версия ККМ: v1.0 [10:02:42]line Платежная система: O! деньги [10:02:42]line ФМ: 0000000002094529 [10:02:42]line ФД: 15265 [10:02:42]line ФПД: 143577085114020 [10:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100245&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15265&fm=143577085114020&tin=02508201610067®Number=0000000000162784&sum=70037 [10:02:42]written 0, free lines is 4095 [10:02:42]OFD Sender: Processing packet 15265 [packets to send 8, broken 7] [10:02:42]ProducePacketName [10:02:42]name=ofd_packets/00015265 [10:02:42]OFD Sender: To server: pG, [10:02:42]CommunicateWithHost lk.salyk.kg:30040 [10:02:42]ConnectInit lk.salyk.kg [10:02:43]Connected sock=10 [10:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 51 27 07 01 50 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 45 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A1 3B 00 00 35 04 06 00 82 95 25 27 F6 A4 97 69 CB 08 1F 95 D7 E2 [10:02:43]Write to MH i2c: 01 00 00 F9 22 1B [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 F9 22 00 00 00 00 00 E9 0C 17 [10:02:43]RasterBufferAndPrint [10:02:43]line [10:02:43]line [10:02:43]line [10:02:43]line [10:02:43]line [10:02:43]written 0, free lines is 3315 [10:02:43]MH_Cut [10:02:43]Write to MH i2c: D1 01 00 00 23 01 F5 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: D1 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: D1 01 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: D1 01 00 00 23 00 F4 [10:02:43]Write to MH i2c: 01 00 00 01 23 24 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 45 BE 47 00 FF 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 32 30 39 34 35 32 39 10 04 04 00 A1 3B 00 00 F4 03 04 00 A0 08 C8 66 B6 04 01 00 00 13 FD 9E 68 65 78 12 60 [10:02:43]CommunicateWithHost err = 0 [10:02:43]CheckOFDResponse [10:02:43]1017 (14) - 77093643461234 [10:02:43]1041 (16) - 0000000002094529 [10:02:43]1040 (4) - 15265 [10:02:43]1012 (4) - 23.08.2024 03:57 [10:02:43]1206 (1) - 0 [10:02:43]OFD Sender: Remove packet 15265 [10:02:43]ProducePacketName [10:02:43]name=ofd_packets/00015265 [10:02:43]NVStorageDeleteData [10:02:43]OFD Sender: No OFD packet to send [10:02:44]*** Cut start [10:02:44]*** Partial cut [10:02:44]*** CUTSNS_PIN = 1 [10:02:44]*** CUTSNS_PIN = 0 [10:02:44]*** Brake cut motor [10:02:44]Read from MH i2c: 01 [10:02:44]MH_I2C_Read... [10:02:44]*** Stop cut motor [10:02:44]*** Cut end [10:02:44]Read from MH i2c: 01 07 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 01 23 00 00 00 00 00 FF 0F 39 [10:02:44]process_action close_receipt done [10:02:44]requested_data is exist [10:02:44]produce_requested_data [10:02:44]requested_item fm.sn is exist - process it [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 11 00 00 [10:02:44]Write to MH i2c: E2 08 00 02 23 80 11 00 00 00 00 00 00 9F [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 17 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 17 00 02 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F1 [10:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:02:44]wFMCommunicate OK [10:02:44]requested_item fd.num is exist - process it [10:02:44]SAM_PROTO_GetFieldsCounters [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 13 00 00 [10:02:44]Write to MH i2c: E2 08 00 03 23 80 13 00 00 00 00 00 00 A2 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 62 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 62 00 03 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:44]wFMCommunicate OK [10:02:44]SAM_PROTO_GetFieldsCounters done [10:02:44]requested_item shift.num is exist - process it [10:02:44]requested_item shift.opened is exist - process it [10:02:44]req_shift_opened [10:02:44]FM_GetShiftState [10:02:44]SAM_PROTO_GetShiftState [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 13 01 00 [10:02:44]Write to MH i2c: E2 08 00 04 23 80 13 01 00 00 00 00 00 A4 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:45]Read from MH i2c: E2 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 04 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 68 [10:02:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:02:45]wFMCommunicate OK [10:02:45]SAM_PROTO_GetShiftState done [10:02:45]FM_GetShiftState done [10:02:45]req_shift_opened done [10:02:45]requested_item shift.open_date is exist - process it [10:02:45]req_shift_open_date [10:02:45]req_shift_open_date done [10:02:45]produce_requested_data done [10:02:45]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15265,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:02:45]process_action_free close_receipt [10:02:45]json_value_free [10:02:45]json_value_free done [10:02:45]process_json_proto returns [10:02:45]Send response to host [10:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15265,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:02:45]free response buf [10:02:45]execute_script done [10:02:45]execute_script returns [10:02:45]free content buf [10:02:45]Sock 9.Close socket [10:02:45]Sock 9.Thread stoped [10:02:48]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:49]accept exits with 8 [10:03:49]New connection [10:03:49]New thread 3066944868 created [10:03:49]Thread 3066801508 joined [10:03:49]Waiting for new connection... [10:03:49] Sock 8.Parse request [10:03:49]Sock 8.Check first char [10:03:49]Sock 8.First char is OK [10:03:49]request: POST /json_proto HTTP/1.0 [10:03:49]Method: POST [10:03:49]URL: /json_proto [10:03:49]Method is POST - this is cgi request [10:03:49]url: /json_proto [10:03:49]query_string will be loaded in cgi processing [10:03:49]execute_cgi json_proto POST (null) [10:03:49]execute_cgi path=json_proto method=POST [10:03:49]POST find Content-Length [10:03:49]Host: 172.17.44.4:8080 [10:03:49]Content-Length: 659 [10:03:49]Content-Type: application/json [10:03:49] [10:03:49]POST finish read [10:03:49]Found Content-Length = 659 [10:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:49]execute_script... [10:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:49]POST & json_proto [10:03:49]process_json_proto [10:03:49]json parsed OK: [10:03:49]protocol is kg_v1.0 [10:03:49]action value=close_receipt [10:03:49]process_action close_receipt [10:03:49]cmd_close_receipt [10:03:49]MH_GetDate [10:03:49]Write to MH i2c: F0 00 00 05 23 17 [10:03:49]Write i2c OK [10:03:49]MH_I2C_Read... [10:03:49]Read from MH i2c: F0 [10:03:49]MH_I2C_Read... [10:03:49]Read from MH i2c: F0 09 00 [10:03:49]MH_I2C_Read... [10:03:49]Read from MH i2c: F0 09 00 05 23 00 89 5E C8 66 0F 81 47 66 72 [10:03:49]GetLastDocTimeStamp 1724407365 [10:03:49]current date 1724407433 [10:03:49]FM_GetShiftState [10:03:49]SAM_PROTO_GetShiftState [10:03:49]wFMCommunicate request_size=4 [10:03:49]MH_SAM_APDU [10:03:49]CAPDU: 80 13 01 00 [10:03:49]Write to MH i2c: E2 08 00 06 23 80 13 01 00 00 00 00 00 A6 [10:03:49]Write i2c OK [10:03:49]MH_I2C_Read... [10:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:49]Read from MH i2c: E2 [10:03:49]MH_I2C_Read... [10:03:49]Read from MH i2c: E2 0E 00 [10:03:49]MH_I2C_Read... [10:03:49]Read from MH i2c: E2 0E 00 06 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 6A [10:03:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:03:49]wFMCommunicate OK [10:03:49]SAM_PROTO_GetShiftState done [10:03:49]FM_GetShiftState done [10:03:49]opened in 1724372406 [10:03:49]opened+sec_in_day 1724458806 [10:03:49]quantity*price = 20020 [10:03:49]sum+1 = 20022 [10:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 60 23.08.2024 10:03 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15266 ФПД: 73268155689940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100353&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15266&fm=73268155689940&tin=02508201610067®Number=0000000000162784&sum=20000 [10:03:50]StoreToDocumentArchive [10:03:50]shift 102 fd 15266 [10:03:50]save to /storage/0102/doc_00015266 [10:03:50]save last doc name /storage/0102/doc_00015266 to /storage/kkm_last_doc_name [10:03:50]save OK [10:03:50]Clear old archive folders... [10:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:03:50]tlvbuf is 004B5710 [10:03:50]SAM_PROTO_ClearQueue [10:03:50]wFMCommunicate request_size=4 [10:03:50]MH_SAM_APDU [10:03:50]CAPDU: 80 09 00 00 [10:03:50]Write to MH i2c: E2 08 00 13 23 80 09 00 00 00 00 00 00 A8 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:50]Read from MH i2c: E2 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [10:03:50]RAPDU: 90 00 [10:03:50]wFMCommunicate OK [10:03:50]SAM_PROTO_ClearQueue done [10:03:50]KKMCreateOFDPacket [10:03:50]OFDProtocolAddRootSTLVToBuf [10:03:50]FM_MakeSignedData [10:03:50]FM_MakeSignedData [10:03:50]SAM_PROTO_SignData [10:03:50]wFMCommunicate request_size=4 [10:03:50]MH_SAM_APDU [10:03:50]CAPDU: 80 0D 01 02 [10:03:50]Write to MH i2c: E2 08 00 14 23 80 0D 01 02 00 00 00 00 B0 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:50]Read from MH i2c: E2 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [10:03:50]RAPDU: 90 00 [10:03:50]wFMCommunicate OK [10:03:50]wFMCommunicate request_size=253 [10:03:50]MH_SAM_APDU [10:03:50]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 3C 00 00 00 F4 03 04 00 89 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A2 3B 00 00 35 04 06 00 42 A3 12 64 AB D4 [10:03:50]Write to MH i2c: E2 00 01 15 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 3C 00 00 00 F4 03 04 00 89 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A2 3B 00 00 35 04 06 00 42 A3 12 64 AB D4 00 00 A1 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:50]Read from MH i2c: E2 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [10:03:50]RAPDU: 90 00 [10:03:50]wFMCommunicate OK [10:03:50]wFMCommunicate request_size=4 [10:03:50]MH_SAM_APDU [10:03:50]CAPDU: 80 0D 03 02 [10:03:50]Write to MH i2c: E2 08 00 16 23 80 0D 03 02 00 00 00 00 B4 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:50]Read from MH i2c: E2 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 0B 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 0B 00 16 23 00 1C EE 08 CC 67 CE 23 08 90 00 F3 [10:03:50]RAPDU: 1C EE 08 CC 67 CE 23 08 90 00 [10:03:50]wFMCommunicate OK [10:03:50]SAM_PROTO_SignData done [10:03:50]FM_MakeSignedData done [10:03:50]CreateOFDProtocolMessage [10:03:50]wFMCommunicate request_size=4 [10:03:50]MH_SAM_APDU [10:03:50]CAPDU: 80 11 00 00 [10:03:50]Write to MH i2c: E2 08 00 17 23 80 11 00 00 00 00 00 00 B4 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:50]Read from MH i2c: E2 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 17 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: E2 17 00 17 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 06 [10:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:03:50]wFMCommunicate OK [10:03:50]CreateOFDProtocolMessage done [10:03:50]OFDSenderStorePacket 15266 [10:03:50]StoreOFDPacket docnum=15266 [10:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 DF D9 00 01 E6 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 3C 00 00 00 F4 03 04 00 89 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A2 3B 00 00 35 04 06 00 42 A3 12 64 AB D4 1C EE 08 CC 67 CE 23 08 [10:03:50]CheckFolder [10:03:50]dirname=/storage/ofd_packets [10:03:50]CheckFolder done [10:03:50]ProducePacketName [10:03:50]name=ofd_packets/00015266 [10:03:50]NVStorageSaveData ofd_packets/00015266 [10:03:50]File name is /storage/ofd_packets/00015266 [10:03:50]Write 294 bytes [10:03:50]NVStorageSaveData done [10:03:50]OFDSenderStorePacket done [10:03:50]KKMCreateOFDPacket done [10:03:50]NVStorageSaveData kkm_last_timestamp [10:03:50]File name is /storage/kkm_last_timestamp [10:03:50]Write 4 bytes [10:03:50]NVStorageSaveData done [10:03:50]ExternCall_PrintAddStr [10:03:50]wPrintStart [10:03:50]Write to MH i2c: 01 00 00 18 23 3B [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 18 23 00 00 00 00 00 FF 0F 50 [10:03:50]RasterBufferAndPrint [10:03:50]line Счет N : (1)2078201 [10:03:50]line ИНН: 02508201610067 [10:03:50]line Контрольно-Кассовый Чек [10:03:50]line ПРОДАЖА [10:03:50]line ТРК (МРК, ГНК) : 64 [10:03:50]line Товар: 2710124130 [10:03:50]line SU-92 [10:03:50]line 2.910 * 68.80 [10:03:50]line = 200.21 [10:03:50]line НДС 12% НСП 1% [10:03:50]line > о реализуемом товаре [10:03:50]line ОКРУГЛЕНИЕ: -0.21 [10:03:50]line ИТОГО: 200.00 [10:03:50]line Внесено: 200.00 [10:03:50]line СДАЧА: 0.00 [10:03:50]line НСП 1% : 1.77 [10:03:50]line НДС 12% : 21.26 [10:03:50]line Наличными: 200.00 [10:03:50]line Безнал.: 0.00 [10:03:50]line Место: АЗС № 135 "Партнер Нефть" [10:03:50]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:03:50]line СНО: Общий режим [10:03:50]line Чек 60 23.08.2024 10:03 [10:03:50]line Смена: 102 ФФД: 1.0 [10:03:50]line ЗНМ: 0300000144 [10:03:50]line РНМ: 0000000000162784 [10:03:50]line Версия ККМ: v1.0 [10:03:50]line ФМ: 0000000002094529 [10:03:50]line ФД: 15266 [10:03:50]line ФПД: 73268155689940 [10:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100353&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15266&fm=73268155689940&tin=02508201610067®Number=0000000000162784&sum=20000 [10:03:51]OFD Sender: Processing packet 15266 [packets to send 8, broken 7] [10:03:51]ProducePacketName [10:03:51]name=ofd_packets/00015266 [10:03:51]OFD Sender: To server: pG, [10:03:51]CommunicateWithHost lk.salyk.kg:30040 [10:03:51]ConnectInit lk.salyk.kg [10:03:51]written 0, free lines is 4095 [10:03:51]Connected sock=11 [10:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 DF D9 00 01 E6 8E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 3C 00 00 00 F4 03 04 00 89 5E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A2 3B 00 00 35 04 06 00 42 A3 12 64 AB D4 1C EE 08 CC 67 CE 23 08 [10:03:51]Write to MH i2c: 01 00 00 43 23 66 [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 07 00 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 D8 0C 51 [10:03:51]RasterBufferAndPrint [10:03:51]line [10:03:51]line [10:03:51]line [10:03:51]line [10:03:51]line [10:03:51]written 0, free lines is 3293 [10:03:51]MH_Cut [10:03:51]Write to MH i2c: D1 01 00 4A 23 01 3F [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: D1 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: D1 01 00 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: D1 01 00 4A 23 00 3E [10:03:51]Write to MH i2c: 01 00 00 4B 23 6E [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 D1 A2 47 00 D7 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A2 3B 00 00 F4 03 04 00 E4 08 C8 66 B6 04 01 00 00 A5 B8 22 E4 FE 1C 24 4B [10:03:51]CommunicateWithHost err = 0 [10:03:51]CheckOFDResponse [10:03:51]1017 (14) - 77093643461234 [10:03:51]1041 (16) - 0000000002094529 [10:03:51]1040 (4) - 15266 [10:03:51]1012 (4) - 23.08.2024 03:58 [10:03:51]1206 (1) - 0 [10:03:51]OFD Sender: Remove packet 15266 [10:03:51]ProducePacketName [10:03:51]name=ofd_packets/00015266 [10:03:51]NVStorageDeleteData [10:03:52]OFD Sender: No OFD packet to send [10:03:52]*** Cut start [10:03:52]*** Partial cut [10:03:52]*** CUTSNS_PIN = 1 [10:03:52]*** CUTSNS_PIN = 0 [10:03:52]*** Brake cut motor [10:03:52]Read from MH i2c: 01 [10:03:52]MH_I2C_Read... [10:03:52]*** Stop cut motor [10:03:52]*** Cut end [10:03:52]Read from MH i2c: 01 07 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: 01 07 00 4B 23 00 00 00 00 00 FF 0F 83 [10:03:52]process_action close_receipt done [10:03:52]requested_data is exist [10:03:52]produce_requested_data [10:03:52]requested_item fm.sn is exist - process it [10:03:52]wFMCommunicate request_size=4 [10:03:52]MH_SAM_APDU [10:03:52]CAPDU: 80 11 00 00 [10:03:52]Write to MH i2c: E2 08 00 4C 23 80 11 00 00 00 00 00 00 E9 [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:52]Read from MH i2c: E2 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 17 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 17 00 4C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 3B [10:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:03:52]wFMCommunicate OK [10:03:52]requested_item fd.num is exist - process it [10:03:52]SAM_PROTO_GetFieldsCounters [10:03:52]wFMCommunicate request_size=4 [10:03:52]MH_SAM_APDU [10:03:52]CAPDU: 80 13 00 00 [10:03:52]Write to MH i2c: E2 08 00 4D 23 80 13 00 00 00 00 00 00 EC [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 62 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 62 00 4D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:53]wFMCommunicate OK [10:03:53]SAM_PROTO_GetFieldsCounters done [10:03:53]requested_item shift.num is exist - process it [10:03:53]requested_item shift.opened is exist - process it [10:03:53]req_shift_opened [10:03:53]FM_GetShiftState [10:03:53]SAM_PROTO_GetShiftState [10:03:53]wFMCommunicate request_size=4 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 13 01 00 [10:03:53]Write to MH i2c: E2 08 00 4E 23 80 13 01 00 00 00 00 00 EE [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 0E 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 0E 00 4E 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B2 [10:03:53]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:03:53]wFMCommunicate OK [10:03:53]SAM_PROTO_GetShiftState done [10:03:53]FM_GetShiftState done [10:03:53]req_shift_opened done [10:03:53]requested_item shift.open_date is exist - process it [10:03:53]req_shift_open_date [10:03:53]req_shift_open_date done [10:03:53]produce_requested_data done [10:03:53]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15266,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:03:53]process_action_free close_receipt [10:03:53]json_value_free [10:03:53]json_value_free done [10:03:53]process_json_proto returns [10:03:53]Send response to host [10:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15266,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:03:53]free response buf [10:03:53]execute_script done [10:03:53]execute_script returns [10:03:53]free content buf [10:03:53]Sock 8.Close socket [10:03:53]Sock 8.Thread stoped [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:54]accept exits with 9 [10:05:54]New connection [10:05:54]New thread 3066801508 created [10:05:54]Thread 3066944868 joined [10:05:54]Waiting for new connection... [10:05:54] Sock 9.Parse request [10:05:54]Sock 9.Check first char [10:05:54]Sock 9.First char is OK [10:05:54]request: POST /json_proto HTTP/1.0 [10:05:54]Method: POST [10:05:54]URL: /json_proto [10:05:54]Method is POST - this is cgi request [10:05:54]url: /json_proto [10:05:54]query_string will be loaded in cgi processing [10:05:54]execute_cgi json_proto POST (null) [10:05:54]execute_cgi path=json_proto method=POST [10:05:54]POST find Content-Length [10:05:54]Host: 172.17.44.4:8080 [10:05:54]Content-Length: 790 [10:05:54]Content-Type: application/json [10:05:54] [10:05:54]POST finish read [10:05:54]Found Content-Length = 790 [10:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:54]execute_script... [10:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:54]POST & json_proto [10:05:54]process_json_proto [10:05:54]json parsed OK: [10:05:54]protocol is kg_v1.0 [10:05:54]action value=close_receipt [10:05:54]process_action close_receipt [10:05:54]cmd_close_receipt [10:05:54]MH_GetDate [10:05:54]Write to MH i2c: F0 00 00 4F 23 61 [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 09 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 09 00 4F 23 00 06 5F C8 66 0F 81 47 66 3A [10:05:54]GetLastDocTimeStamp 1724407433 [10:05:54]current date 1724407558 [10:05:54]FM_GetShiftState [10:05:54]SAM_PROTO_GetShiftState [10:05:54]wFMCommunicate request_size=4 [10:05:54]MH_SAM_APDU [10:05:54]CAPDU: 80 13 01 00 [10:05:54]Write to MH i2c: E2 08 00 50 23 80 13 01 00 00 00 00 00 F0 [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:54]Read from MH i2c: E2 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 50 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B4 [10:05:54]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:05:54]wFMCommunicate OK [10:05:54]SAM_PROTO_GetShiftState done [10:05:54]FM_GetShiftState done [10:05:54]opened in 1724372406 [10:05:54]opened+sec_in_day 1724458806 [10:05:54]quantity*price = 0 [10:05:54]sum+1 = 1 [10:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 61 23.08.2024 10:05 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15267 ФПД: 85452433476539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100558&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15267&fm=85452433476539&tin=02508201610067®Number=0000000000162784&sum=0 [10:05:55]StoreToDocumentArchive [10:05:55]shift 102 fd 15267 [10:05:55]save to /storage/0102/doc_00015267 [10:05:55]save last doc name /storage/0102/doc_00015267 to /storage/kkm_last_doc_name [10:05:55]save OK [10:05:55]Clear old archive folders... [10:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:55]tlvbuf is B6ED8510 [10:05:55]SAM_PROTO_ClearQueue [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 09 00 00 [10:05:55]Write to MH i2c: E2 08 00 5D 23 80 09 00 00 00 00 00 00 F2 [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 5D 23 00 90 00 F4 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]SAM_PROTO_ClearQueue done [10:05:55]KKMCreateOFDPacket [10:05:55]OFDProtocolAddRootSTLVToBuf [10:05:55]FM_MakeSignedData [10:05:55]FM_MakeSignedData [10:05:55]SAM_PROTO_SignData [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 01 02 [10:05:55]Write to MH i2c: E2 08 00 5E 23 80 0D 01 02 00 00 00 00 FA [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 5E 23 00 90 00 F5 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=255 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 06 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A3 3B 00 00 35 04 06 00 4D B7 F1 F1 [10:05:55]Write to MH i2c: E2 02 01 5F 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 06 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A3 3B 00 00 35 04 06 00 4D B7 F1 F1 00 00 9D [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=7 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 02 02 02 4B BB [10:05:55]Write to MH i2c: E2 0A 00 60 23 80 0D 02 02 02 00 4B BB 00 00 07 [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 03 02 [10:05:55]Write to MH i2c: E2 08 00 61 23 80 0D 03 02 00 00 00 00 FF [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 0B 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 0B 00 61 23 00 33 96 5F AA C7 90 95 7D 90 00 3B [10:05:55]RAPDU: 33 96 5F AA C7 90 95 7D 90 00 [10:05:55]wFMCommunicate OK [10:05:55]SAM_PROTO_SignData done [10:05:55]FM_MakeSignedData done [10:05:55]CreateOFDProtocolMessage [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 11 00 00 [10:05:55]Write to MH i2c: E2 08 00 62 23 80 11 00 00 00 00 00 00 FF [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 17 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 17 00 62 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 51 [10:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:05:55]wFMCommunicate OK [10:05:55]CreateOFDProtocolMessage done [10:05:55]OFDSenderStorePacket 15267 [10:05:55]StoreOFDPacket docnum=15267 [10:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 91 56 04 01 39 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 06 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A3 3B 00 00 35 04 06 00 4D B7 F1 F1 4B BB 33 96 5F AA C7 90 95 7D [10:05:55]CheckFolder [10:05:55]dirname=/storage/ofd_packets [10:05:55]CheckFolder done [10:05:55]ProducePacketName [10:05:55]name=ofd_packets/00015267 [10:05:55]NVStorageSaveData ofd_packets/00015267 [10:05:55]File name is /storage/ofd_packets/00015267 [10:05:55]Write 298 bytes [10:05:55]NVStorageSaveData done [10:05:55]OFDSenderStorePacket done [10:05:55]KKMCreateOFDPacket done [10:05:55]NVStorageSaveData kkm_last_timestamp [10:05:55]File name is /storage/kkm_last_timestamp [10:05:55]Write 4 bytes [10:05:55]NVStorageSaveData done [10:05:55]ExternCall_PrintAddStr [10:05:55]wPrintStart [10:05:55]Write to MH i2c: 01 00 00 63 23 86 [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: 01 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: 01 07 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: 01 07 00 63 23 00 00 00 00 00 FF 0F 9B [10:05:55]RasterBufferAndPrint [10:05:55]line Счет N : (1)2078198 [10:05:55]line ИНН: 02508201610067 [10:05:55]line Контрольно-Кассовый Чек [10:05:55]line ПРОДАЖА [10:05:55]line ТРК (МРК, ГНК) : 11 [10:05:55]line Товар: 2710194210 [10:05:55]line ДТ-К-5 [10:05:55]line 60.000 * 0.00 [10:05:55]line = 0.00 [10:05:55]line НДС 12% НСП 1% [10:05:55]line > о реализуемом товаре [10:05:55]line ИТОГО: 0.00 [10:05:55]line НСП 1% : 0.00 [10:05:55]line НДС 12% : 0.00 [10:05:55]line Наличными: 0.00 [10:05:55]line Безнал.: 0.00 [10:05:55]line Место: АЗС № 135 "Партнер Нефть" [10:05:55]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:05:55]line СНО: Общий режим [10:05:55]line Чек 61 23.08.2024 10:05 [10:05:55]line Смена: 102 ФФД: 1.0 [10:05:55]line ЗНМ: 0300000144 [10:05:55]line РНМ: 0000000000162784 [10:05:55]line Версия ККМ: v1.0 [10:05:55]line Талоны: Топливная Карта [10:05:55]line 92875 [10:05:55]line ФМ: 0000000002094529 [10:05:55]line ФД: 15267 [10:05:55]line ФПД: 85452433476539 [10:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100558&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15267&fm=85452433476539&tin=02508201610067®Number=0000000000162784&sum=0 [10:05:56]OFD Sender: Processing packet 15267 [packets to send 8, broken 7] [10:05:56]ProducePacketName [10:05:56]name=ofd_packets/00015267 [10:05:56]OFD Sender: To server: pG, [10:05:56]CommunicateWithHost lk.salyk.kg:30040 [10:05:56]ConnectInit lk.salyk.kg [10:05:56]written 0, free lines is 4095 [10:05:56]Write to MH i2c: 01 00 00 8D 23 B0 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 E5 0C A8 [10:05:56]RasterBufferAndPrint [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]written 0, free lines is 3308 [10:05:56]MH_Cut [10:05:56]Write to MH i2c: D1 01 00 94 23 01 89 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 01 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 01 00 94 23 00 88 [10:05:56]Write to MH i2c: 01 00 00 95 23 B8 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:57]*** Cut start [10:05:57]*** Partial cut [10:05:57]*** CUTSNS_PIN = 1 [10:05:57]*** CUTSNS_PIN = 0 [10:05:57]*** Brake cut motor [10:05:57]Read from MH i2c: 01 [10:05:57]MH_I2C_Read... [10:05:57]*** Stop cut motor [10:05:57]*** Cut end [10:05:57]Read from MH i2c: 01 07 00 [10:05:57]MH_I2C_Read... [10:05:57]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 FF 0F CD [10:05:57]process_action close_receipt done [10:05:57]requested_data is exist [10:05:57]produce_requested_data [10:05:57]requested_item fm.sn is exist - process it [10:05:57]wFMCommunicate request_size=4 [10:05:57]MH_SAM_APDU [10:05:57]CAPDU: 80 11 00 00 [10:05:57]Write to MH i2c: E2 08 00 96 23 80 11 00 00 00 00 00 00 33 [10:05:57]Write i2c OK [10:05:57]MH_I2C_Read... [10:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:57]Read from MH i2c: E2 [10:05:57]MH_I2C_Read... [10:05:57]Read from MH i2c: E2 17 00 [10:05:57]MH_I2C_Read... [10:05:57]Read from MH i2c: E2 17 00 96 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 85 [10:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:05:57]wFMCommunicate OK [10:05:57]requested_item fd.num is exist - process it [10:05:57]SAM_PROTO_GetFieldsCounters [10:05:57]wFMCommunicate request_size=4 [10:05:57]MH_SAM_APDU [10:05:57]CAPDU: 80 13 00 00 [10:05:57]Write to MH i2c: E2 08 00 97 23 80 13 00 00 00 00 00 00 36 [10:05:57]Write i2c OK [10:05:57]MH_I2C_Read... [10:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:58]Read from MH i2c: E2 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 62 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 62 00 97 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:58]wFMCommunicate OK [10:05:58]SAM_PROTO_GetFieldsCounters done [10:05:58]requested_item shift.num is exist - process it [10:05:58]requested_item shift.opened is exist - process it [10:05:58]req_shift_opened [10:05:58]FM_GetShiftState [10:05:58]SAM_PROTO_GetShiftState [10:05:58]wFMCommunicate request_size=4 [10:05:58]MH_SAM_APDU [10:05:58]CAPDU: 80 13 01 00 [10:05:58]Write to MH i2c: E2 08 00 98 23 80 13 01 00 00 00 00 00 38 [10:05:58]Write i2c OK [10:05:58]MH_I2C_Read... [10:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:58]Read from MH i2c: E2 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 0E 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 0E 00 98 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FC [10:05:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:05:58]wFMCommunicate OK [10:05:58]SAM_PROTO_GetShiftState done [10:05:58]FM_GetShiftState done [10:05:58]req_shift_opened done [10:05:58]requested_item shift.open_date is exist - process it [10:05:58]req_shift_open_date [10:05:58]req_shift_open_date done [10:05:58]produce_requested_data done [10:05:58]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15267,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:05:58]process_action_free close_receipt [10:05:58]json_value_free [10:05:58]json_value_free done [10:05:58]process_json_proto returns [10:05:58]Send response to host [10:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15267,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:05:58]free response buf [10:05:58]execute_script done [10:05:58]execute_script returns [10:05:58]free content buf [10:05:58]Sock 9.Close socket [10:05:58]Sock 9.Thread stoped [10:07:36]accept exits with 8 [10:07:36]New connection [10:07:36]New thread 3066944868 created [10:07:36]Thread 3066801508 joined [10:07:36]Waiting for new connection... [10:07:36] Sock 8.Parse request [10:07:36]Sock 8.Check first char [10:07:36]Sock 8.First char is OK [10:07:36]request: POST /json_proto HTTP/1.0 [10:07:36]Method: POST [10:07:36]URL: /json_proto [10:07:36]Method is POST - this is cgi request [10:07:36]url: /json_proto [10:07:36]query_string will be loaded in cgi processing [10:07:36]execute_cgi json_proto POST (null) [10:07:36]execute_cgi path=json_proto method=POST [10:07:36]POST find Content-Length [10:07:36]Host: 172.17.44.4:8080 [10:07:36]Content-Length: 807 [10:07:36]Content-Type: application/json [10:07:36] [10:07:36]POST finish read [10:07:36]Found Content-Length = 807 [10:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 53.480, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:36]execute_script... [10:07:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 53.480, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:36]POST & json_proto [10:07:36]process_json_proto [10:07:36]json parsed OK: [10:07:36]protocol is kg_v1.0 [10:07:36]action value=close_receipt [10:07:36]process_action close_receipt [10:07:36]cmd_close_receipt [10:07:36]MH_GetDate [10:07:36]Write to MH i2c: F0 00 00 99 23 AB [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: F0 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: F0 09 00 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: F0 09 00 99 23 00 6C 5F C8 66 0F 81 47 66 EA [10:07:36]GetLastDocTimeStamp 1724407558 [10:07:36]current date 1724407660 [10:07:36]FM_GetShiftState [10:07:36]SAM_PROTO_GetShiftState [10:07:36]wFMCommunicate request_size=4 [10:07:36]MH_SAM_APDU [10:07:36]CAPDU: 80 13 01 00 [10:07:36]Write to MH i2c: E2 08 00 9A 23 80 13 01 00 00 00 00 00 3A [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:36]Read from MH i2c: E2 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 0E 00 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: E2 0E 00 9A 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FE [10:07:36]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:07:36]wFMCommunicate OK [10:07:36]SAM_PROTO_GetShiftState done [10:07:36]FM_GetShiftState done [10:07:36]opened in 1724372406 [10:07:36]opened+sec_in_day 1724458806 [10:07:36]quantity*price = 200015 [10:07:36]sum+1 = 200016 [10:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.15 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.15 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 62 23.08.2024 10:07 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15268 ФПД: 33334353294945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100740&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15268&fm=33334353294945&tin=02508201610067®Number=0000000000162784&sum=200015 [10:07:38]StoreToDocumentArchive [10:07:38]shift 102 fd 15268 [10:07:38]save to /storage/0102/doc_00015268 [10:07:38]save last doc name /storage/0102/doc_00015268 to /storage/kkm_last_doc_name [10:07:38]save OK [10:07:38]Clear old archive folders... [10:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:07:38]tlvbuf is 0047EA00 [10:07:38]SAM_PROTO_ClearQueue [10:07:38]wFMCommunicate request_size=4 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 09 00 00 [10:07:38]Write to MH i2c: E2 08 00 A7 23 80 09 00 00 00 00 00 00 3C [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 A7 23 00 90 00 3E [10:07:38]RAPDU: 90 00 [10:07:38]wFMCommunicate OK [10:07:38]SAM_PROTO_ClearQueue done [10:07:38]KKMCreateOFDPacket [10:07:38]OFDProtocolAddRootSTLVToBuf [10:07:38]FM_MakeSignedData [10:07:38]FM_MakeSignedData [10:07:38]SAM_PROTO_SignData [10:07:38]wFMCommunicate request_size=4 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 0D 01 02 [10:07:38]Write to MH i2c: E2 08 00 A8 23 80 0D 01 02 00 00 00 00 44 [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 A8 23 00 90 00 3F [10:07:38]RAPDU: 90 00 [10:07:38]wFMCommunicate OK [10:07:38]wFMCommunicate request_size=255 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6C 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A4 3B 00 00 35 04 06 00 1E 51 [10:07:38]Write to MH i2c: E2 02 01 A9 23 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6C 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A4 3B 00 00 35 04 06 00 1E 51 00 00 9B [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:38]Read from MH i2c: E2 03 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 A9 23 00 90 00 40 [10:07:38]RAPDU: 90 00 [10:07:38]wFMCommunicate OK [10:07:38]wFMCommunicate request_size=9 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 0D 02 02 04 42 49 76 61 [10:07:38]Write to MH i2c: E2 0C 00 AA 23 80 0D 02 02 04 00 42 49 76 61 00 00 B1 [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [10:07:38]RAPDU: 90 00 [10:07:38]wFMCommunicate OK [10:07:38]wFMCommunicate request_size=4 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 0D 03 02 [10:07:38]Write to MH i2c: E2 08 00 AB 23 80 0D 03 02 00 00 00 00 49 [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 0B 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 0B 00 AB 23 00 9A 3C E7 04 8E C5 1F A9 90 00 26 [10:07:38]RAPDU: 9A 3C E7 04 8E C5 1F A9 90 00 [10:07:38]wFMCommunicate OK [10:07:38]SAM_PROTO_SignData done [10:07:38]FM_MakeSignedData done [10:07:38]CreateOFDProtocolMessage [10:07:38]wFMCommunicate request_size=4 [10:07:38]MH_SAM_APDU [10:07:38]CAPDU: 80 11 00 00 [10:07:38]Write to MH i2c: E2 08 00 AC 23 80 11 00 00 00 00 00 00 49 [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:38]Read from MH i2c: E2 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 17 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: E2 17 00 AC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 9B [10:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:07:38]wFMCommunicate OK [10:07:38]CreateOFDProtocolMessage done [10:07:38]OFDSenderStorePacket 15268 [10:07:38]StoreOFDPacket docnum=15268 [10:07:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0E 01 00 00 28 A5 06 01 BE A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6C 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A4 3B 00 00 35 04 06 00 1E 51 42 49 76 61 9A 3C E7 04 8E C5 1F A9 [10:07:38]CheckFolder [10:07:38]dirname=/storage/ofd_packets [10:07:38]CheckFolder done [10:07:38]ProducePacketName [10:07:38]name=ofd_packets/00015268 [10:07:38]NVStorageSaveData ofd_packets/00015268 [10:07:38]File name is /storage/ofd_packets/00015268 [10:07:38]Write 300 bytes [10:07:38]NVStorageSaveData done [10:07:38]OFDSenderStorePacket done [10:07:38]KKMCreateOFDPacket done [10:07:38]NVStorageSaveData kkm_last_timestamp [10:07:38]File name is /storage/kkm_last_timestamp [10:07:38]Write 4 bytes [10:07:38]NVStorageSaveData done [10:07:38]ExternCall_PrintAddStr [10:07:38]wPrintStart [10:07:38]Write to MH i2c: 01 00 00 AD 23 D0 [10:07:38]Write i2c OK [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: 01 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: 01 07 00 [10:07:38]MH_I2C_Read... [10:07:38]Read from MH i2c: 01 07 00 AD 23 00 00 00 00 00 FF 0F E5 [10:07:38]RasterBufferAndPrint [10:07:38]line Счет N : (1)2078171 [10:07:38]line ИНН: 02508201610067 [10:07:38]line Контрольно-Кассовый Чек [10:07:38]line ПРОДАЖА [10:07:38]line ТРК (МРК, ГНК) : 81 [10:07:38]line Товар: 2711190000 [10:07:38]line ГАЗ-К-5 [10:07:38]line 53.480 * 37.40 [10:07:38]line = 2000.15 [10:07:38]line НДС 12% НСП 1% [10:07:38]line > о реализуемом товаре [10:07:38]line ИТОГО: 2000.15 [10:07:38]line НСП 1% : 17.70 [10:07:38]line НДС 12% : 212.40 [10:07:38]line Наличными: 0.00 [10:07:38]line Безнал.: 2000.15 [10:07:38]line Место: АЗС № 135 "Партнер Нефть" [10:07:38]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:07:38]line СНО: Общий режим [10:07:38]line Чек 62 23.08.2024 10:07 [10:07:38]line Смена: 102 ФФД: 1.0 [10:07:38]line ЗНМ: 0300000144 [10:07:38]line РНМ: 0000000000162784 [10:07:38]line Версия ККМ: v1.0 [10:07:38]line Платежная система: O! деньги [10:07:38]line ФМ: 0000000002094529 [10:07:38]line ФД: 15268 [10:07:38]line ФПД: 33334353294945 [10:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100740&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15268&fm=33334353294945&tin=02508201610067®Number=0000000000162784&sum=200015 [10:07:38]written 0, free lines is 4095 [10:07:39]Write to MH i2c: 01 00 00 D7 23 FA [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: 01 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: 01 07 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 E4 0C F1 [10:07:39]RasterBufferAndPrint [10:07:39]line [10:07:39]line [10:07:39]line [10:07:39]line [10:07:39]line [10:07:39]written 0, free lines is 3304 [10:07:39]MH_Cut [10:07:39]Write to MH i2c: D1 01 00 DE 23 01 D3 [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: D1 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: D1 01 00 [10:07:39]MH_I2C_Read... [10:07:39]Read from MH i2c: D1 01 00 DE 23 00 D2 [10:07:39]Write to MH i2c: 01 00 00 DF 23 02 [10:07:39]Write i2c OK [10:07:39]MH_I2C_Read... [10:07:40]*** Cut start [10:07:40]*** Partial cut [10:07:40]*** CUTSNS_PIN = 1 [10:07:40]*** CUTSNS_PIN = 0 [10:07:40]*** Brake cut motor [10:07:40]Read from MH i2c: 01 [10:07:40]MH_I2C_Read... [10:07:40]*** Stop cut motor [10:07:40]*** Cut end [10:07:40]Read from MH i2c: 01 07 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: 01 07 00 DF 23 00 00 00 00 00 FF 0F 17 [10:07:40]process_action close_receipt done [10:07:40]requested_data is exist [10:07:40]produce_requested_data [10:07:40]requested_item fm.sn is exist - process it [10:07:40]wFMCommunicate request_size=4 [10:07:40]MH_SAM_APDU [10:07:40]CAPDU: 80 11 00 00 [10:07:40]Write to MH i2c: E2 08 00 E0 23 80 11 00 00 00 00 00 00 7D [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:40]Read from MH i2c: E2 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 17 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 17 00 E0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CF [10:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:07:40]wFMCommunicate OK [10:07:40]requested_item fd.num is exist - process it [10:07:40]SAM_PROTO_GetFieldsCounters [10:07:40]wFMCommunicate request_size=4 [10:07:40]MH_SAM_APDU [10:07:40]CAPDU: 80 13 00 00 [10:07:40]Write to MH i2c: E2 08 00 E1 23 80 13 00 00 00 00 00 00 80 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:40]Read from MH i2c: E2 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 62 00 [10:07:40]MH_I2C_Read... [10:07:40]Read from MH i2c: E2 62 00 E1 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [10:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:40]wFMCommunicate OK [10:07:40]SAM_PROTO_GetFieldsCounters done [10:07:40]requested_item shift.num is exist - process it [10:07:40]requested_item shift.opened is exist - process it [10:07:40]req_shift_opened [10:07:40]FM_GetShiftState [10:07:40]SAM_PROTO_GetShiftState [10:07:40]wFMCommunicate request_size=4 [10:07:40]MH_SAM_APDU [10:07:40]CAPDU: 80 13 01 00 [10:07:40]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [10:07:40]Write i2c OK [10:07:40]MH_I2C_Read... [10:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:41]Read from MH i2c: E2 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 0E 00 [10:07:41]MH_I2C_Read... [10:07:41]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 46 [10:07:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:07:41]wFMCommunicate OK [10:07:41]SAM_PROTO_GetShiftState done [10:07:41]FM_GetShiftState done [10:07:41]req_shift_opened done [10:07:41]requested_item shift.open_date is exist - process it [10:07:41]req_shift_open_date [10:07:41]req_shift_open_date done [10:07:41]produce_requested_data done [10:07:41]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15268,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:07:41]process_action_free close_receipt [10:07:41]json_value_free [10:07:41]json_value_free done [10:07:41]process_json_proto returns [10:07:41]Send response to host [10:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15268,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:07:41]free response buf [10:07:41]execute_script done [10:07:41]execute_script returns [10:07:41]free content buf [10:07:41]Sock 8.Close socket [10:07:41]Sock 8.Thread stoped [10:08:01]accept exits with 9 [10:08:01]New connection [10:08:01]New thread 3066801508 created [10:08:01]Thread 3066944868 joined [10:08:01]Waiting for new connection... [10:08:01] Sock 9.Parse request [10:08:01]Sock 9.Check first char [10:08:01]Sock 9.First char is OK [10:08:01]request: POST /json_proto HTTP/1.0 [10:08:01]Method: POST [10:08:01]URL: /json_proto [10:08:01]Method is POST - this is cgi request [10:08:01]url: /json_proto [10:08:01]query_string will be loaded in cgi processing [10:08:01]execute_cgi json_proto POST (null) [10:08:01]execute_cgi path=json_proto method=POST [10:08:01]POST find Content-Length [10:08:01]Host: 172.17.44.4:8080 [10:08:01]Content-Length: 752 [10:08:01]Content-Type: application/json [10:08:01] [10:08:01]POST finish read [10:08:01]Found Content-Length = 752 [10:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106381", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:01]execute_script... [10:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106381", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:01]POST & json_proto [10:08:01]process_json_proto [10:08:01]json parsed OK: [10:08:01]protocol is kg_v1.0 [10:08:01]action value=close_receipt [10:08:01]process_action close_receipt [10:08:01]cmd_close_receipt [10:08:01]MH_GetDate [10:08:01]Write to MH i2c: F0 00 00 E3 23 F5 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 09 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: F0 09 00 E3 23 00 85 5F C8 66 0F 81 47 66 4D [10:08:01]GetLastDocTimeStamp 1724407660 [10:08:01]current date 1724407685 [10:08:01]FM_GetShiftState [10:08:01]SAM_PROTO_GetShiftState [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 13 01 00 [10:08:01]Write to MH i2c: E2 08 00 E4 23 80 13 01 00 00 00 00 00 84 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0E 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0E 00 E4 23 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 48 [10:08:01]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_GetShiftState done [10:08:01]FM_GetShiftState done [10:08:01]opened in 1724372406 [10:08:01]opened+sec_in_day 1724458806 [10:08:01]quantity*price = 0 [10:08:01]sum+1 = 1 [10:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 63 23.08.2024 10:08 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30106381 ФМ: 0000000002094529 ФД: 15269 ФПД: 24142204571180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100805&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15269&fm=24142204571180&tin=02508201610067®Number=0000000000162784&sum=0 [10:08:02]StoreToDocumentArchive [10:08:02]shift 102 fd 15269 [10:08:02]save to /storage/0102/doc_00015269 [10:08:02]save last doc name /storage/0102/doc_00015269 to /storage/kkm_last_doc_name [10:08:02]save OK [10:08:02]Clear old archive folders... [10:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:02]tlvbuf is 004A9550 [10:08:02]SAM_PROTO_ClearQueue [10:08:02]wFMCommunicate request_size=4 [10:08:02]MH_SAM_APDU [10:08:02]CAPDU: 80 09 00 00 [10:08:02]Write to MH i2c: E2 08 00 F1 23 80 09 00 00 00 00 00 00 86 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:02]Read from MH i2c: E2 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: E2 03 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [10:08:02]RAPDU: 90 00 [10:08:02]wFMCommunicate OK [10:08:02]SAM_PROTO_ClearQueue done [10:08:02]KKMCreateOFDPacket [10:08:02]OFDProtocolAddRootSTLVToBuf [10:08:02]FM_MakeSignedData [10:08:02]FM_MakeSignedData [10:08:02]SAM_PROTO_SignData [10:08:02]wFMCommunicate request_size=4 [10:08:02]MH_SAM_APDU [10:08:02]CAPDU: 80 0D 01 02 [10:08:02]Write to MH i2c: E2 08 00 F2 23 80 0D 01 02 00 00 00 00 8E [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:02]Read from MH i2c: E2 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: E2 03 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: E2 03 00 F2 23 00 90 00 89 [10:08:02]RAPDU: 90 00 [10:08:02]wFMCommunicate OK [10:08:02]wFMCommunicate request_size=255 [10:08:02]MH_SAM_APDU [10:08:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 85 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A5 3B 00 00 35 04 06 00 15 F5 0B 87 [10:08:02]Write to MH i2c: E2 02 01 F3 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 85 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A5 3B 00 00 35 04 06 00 15 F5 0B 87 00 00 8E [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 F3 23 00 90 00 8A [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=7 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 02 02 02 0E 2C [10:08:03]Write to MH i2c: E2 0A 00 F4 23 80 0D 02 02 02 00 0E 2C 00 00 CF [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [10:08:03]RAPDU: 90 00 [10:08:03]wFMCommunicate OK [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 0D 03 02 [10:08:03]Write to MH i2c: E2 08 00 F5 23 80 0D 03 02 00 00 00 00 93 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0B 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0B 00 F5 23 00 EF 99 C2 89 46 29 7C 59 90 00 AB [10:08:03]RAPDU: EF 99 C2 89 46 29 7C 59 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_SignData done [10:08:03]FM_MakeSignedData done [10:08:03]CreateOFDProtocolMessage [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 11 00 00 [10:08:03]Write to MH i2c: E2 08 00 F6 23 80 11 00 00 00 00 00 00 93 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 F6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E5 [10:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:08:03]wFMCommunicate OK [10:08:03]CreateOFDProtocolMessage done [10:08:03]OFDSenderStorePacket 15269 [10:08:03]StoreOFDPacket docnum=15269 [10:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 76 8E 04 01 33 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 85 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A5 3B 00 00 35 04 06 00 15 F5 0B 87 0E 2C EF 99 C2 89 46 29 7C 59 [10:08:03]CheckFolder [10:08:03]dirname=/storage/ofd_packets [10:08:03]CheckFolder done [10:08:03]ProducePacketName [10:08:03]name=ofd_packets/00015269 [10:08:03]NVStorageSaveData ofd_packets/00015269 [10:08:03]File name is /storage/ofd_packets/00015269 [10:08:03]Write 298 bytes [10:08:03]NVStorageSaveData done [10:08:03]OFDSenderStorePacket done [10:08:03]KKMCreateOFDPacket done [10:08:03]NVStorageSaveData kkm_last_timestamp [10:08:03]File name is /storage/kkm_last_timestamp [10:08:03]Write 4 bytes [10:08:03]NVStorageSaveData done [10:08:03]ExternCall_PrintAddStr [10:08:03]wPrintStart [10:08:03]Write to MH i2c: 01 00 00 F7 23 1A [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 F7 23 00 00 00 00 00 FF 0F 2F [10:08:03]RasterBufferAndPrint [10:08:03]line Счет N : (1)2078203 [10:08:03]line ИНН: 02508201610067 [10:08:03]line Контрольно-Кассовый Чек [10:08:03]line ПРОДАЖА [10:08:03]line ТРК (МРК, ГНК) : 11 [10:08:03]line Товар: 2710194210 [10:08:03]line ДТ-К-5 [10:08:03]line 20.000 * 0.00 [10:08:03]line = 0.00 [10:08:03]line НДС 12% НСП 1% [10:08:03]line > о реализуемом товаре [10:08:03]line ИТОГО: 0.00 [10:08:03]line НСП 1% : 0.00 [10:08:03]line НДС 12% : 0.00 [10:08:03]line Наличными: 0.00 [10:08:03]line Безнал.: 0.00 [10:08:03]line Место: АЗС № 135 "Партнер Нефть" [10:08:03]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:08:03]line СНО: Общий режим [10:08:03]line Чек 63 23.08.2024 10:08 [10:08:03]line Смена: 102 ФФД: 1.0 [10:08:03]line ЗНМ: 0300000144 [10:08:03]line РНМ: 0000000000162784 [10:08:03]line Версия ККМ: v1.0 [10:08:03]line Талоны: ТК ГПНА Online [10:08:03]line 30106381 [10:08:03]line ФМ: 0000000002094529 [10:08:03]line ФД: 15269 [10:08:03]line ФПД: 24142204571180 [10:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100805&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15269&fm=24142204571180&tin=02508201610067®Number=0000000000162784&sum=0 [10:08:03]written 0, free lines is 4095 [10:08:03]Write to MH i2c: 01 00 00 21 24 45 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 21 24 00 00 00 00 00 DC 0C 34 [10:08:03]RasterBufferAndPrint [10:08:03]line [10:08:03]line [10:08:03]line [10:08:03]line [10:08:03]line [10:08:03]written 0, free lines is 3298 [10:08:03]MH_Cut [10:08:03]Write to MH i2c: D1 01 00 28 24 01 1E [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: D1 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: D1 01 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: D1 01 00 28 24 00 1D [10:08:03]Write to MH i2c: 01 00 00 29 24 4D [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:04]*** Cut start [10:08:04]*** Partial cut [10:08:04]*** CUTSNS_PIN = 1 [10:08:04]*** CUTSNS_PIN = 0 [10:08:04]*** Brake cut motor [10:08:05]Read from MH i2c: 01 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 [10:08:05]MH_I2C_Read... [10:08:05]*** Stop cut motor [10:08:05]*** Cut end [10:08:05]Read from MH i2c: 01 07 00 29 24 00 00 00 00 00 FF 0F 62 [10:08:05]process_action close_receipt done [10:08:05]requested_data is exist [10:08:05]produce_requested_data [10:08:05]requested_item fm.sn is exist - process it [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 11 00 00 [10:08:05]Write to MH i2c: E2 08 00 2A 24 80 11 00 00 00 00 00 00 C8 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:05]Read from MH i2c: E2 17 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 17 00 2A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 1A [10:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:08:05]wFMCommunicate OK [10:08:05]requested_item fd.num is exist - process it [10:08:05]SAM_PROTO_GetFieldsCounters [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 13 00 00 [10:08:05]Write to MH i2c: E2 08 00 2B 24 80 13 00 00 00 00 00 00 CB [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]ConnectInit Can't connect to host [10:08:05]CommunicateWithHost connect error [10:08:05]CommunicateWithHost err = -1 [10:08:05]OFD Sender: Server communicate error [10:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 62 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 62 00 2B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:05]wFMCommunicate OK [10:08:05]SAM_PROTO_GetFieldsCounters done [10:08:05]requested_item shift.num is exist - process it [10:08:05]requested_item shift.opened is exist - process it [10:08:05]req_shift_opened [10:08:05]FM_GetShiftState [10:08:05]SAM_PROTO_GetShiftState [10:08:05]wFMCommunicate request_size=4 [10:08:05]MH_SAM_APDU [10:08:05]CAPDU: 80 13 01 00 [10:08:05]Write to MH i2c: E2 08 00 2C 24 80 13 01 00 00 00 00 00 CD [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]OFD Sender: Processing packet 15267 [packets to send 10, broken 7] [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00015267 [10:08:05]OFD Sender: To server: pG, [10:08:05]CommunicateWithHost lk.salyk.kg:30040 [10:08:05]ConnectInit lk.salyk.kg [10:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:05]Read from MH i2c: E2 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0E 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: E2 0E 00 2C 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 91 [10:08:05]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:08:05]wFMCommunicate OK [10:08:05]SAM_PROTO_GetShiftState done [10:08:05]FM_GetShiftState done [10:08:05]req_shift_opened done [10:08:05]requested_item shift.open_date is exist - process it [10:08:05]req_shift_open_date [10:08:05]req_shift_open_date done [10:08:05]produce_requested_data done [10:08:05]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15269,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:08:05]process_action_free close_receipt [10:08:05]json_value_free [10:08:05]json_value_free done [10:08:05]process_json_proto returns [10:08:05]Send response to host [10:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15269,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:08:05]free response buf [10:08:05]execute_script done [10:08:05]execute_script returns [10:08:05]free content buf [10:08:05]Sock 9.Close socket [10:08:05]Sock 9.Thread stoped [10:08:05]Connected sock=10 [10:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 91 56 04 01 39 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 06 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A3 3B 00 00 35 04 06 00 4D B7 F1 F1 4B BB 33 96 5F AA C7 90 95 7D [10:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 50 73 47 00 5A 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 32 30 39 34 35 32 39 10 04 04 00 A3 3B 00 00 F4 03 04 00 E3 09 C8 66 B6 04 01 00 00 69 F2 D1 04 8E FF A1 54 [10:08:06]CommunicateWithHost err = 0 [10:08:06]CheckOFDResponse [10:08:06]1017 (14) - 77093643461234 [10:08:06]1041 (16) - 0000000002094529 [10:08:06]1040 (4) - 15267 [10:08:06]1012 (4) - 23.08.2024 04:02 [10:08:06]1206 (1) - 0 [10:08:06]OFD Sender: Remove packet 15267 [10:08:06]ProducePacketName [10:08:06]name=ofd_packets/00015267 [10:08:06]NVStorageDeleteData [10:08:06]OFD Sender: Processing packet 15268 [packets to send 9, broken 7] [10:08:06]ProducePacketName [10:08:06]name=ofd_packets/00015268 [10:08:06]OFD Sender: To server: pG, [10:08:06]CommunicateWithHost lk.salyk.kg:30040 [10:08:06]ConnectInit lk.salyk.kg [10:08:06]Connected sock=9 [10:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0E 01 00 00 28 A5 06 01 BE A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 6C 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A4 3B 00 00 35 04 06 00 1E 51 42 49 76 61 9A 3C E7 04 8E C5 1F A9 [10:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 82 C1 47 00 9F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A4 3B 00 00 F4 03 04 00 E4 09 C8 66 B6 04 01 00 00 74 00 59 22 00 59 4E B6 [10:08:07]CommunicateWithHost err = 0 [10:08:07]CheckOFDResponse [10:08:07]1017 (14) - 77093643461234 [10:08:07]1041 (16) - 0000000002094529 [10:08:07]1040 (4) - 15268 [10:08:07]1012 (4) - 23.08.2024 04:02 [10:08:07]1206 (1) - 0 [10:08:07]OFD Sender: Remove packet 15268 [10:08:07]ProducePacketName [10:08:07]name=ofd_packets/00015268 [10:08:07]NVStorageDeleteData [10:08:07]OFD Sender: Processing packet 15269 [packets to send 8, broken 7] [10:08:07]ProducePacketName [10:08:07]name=ofd_packets/00015269 [10:08:07]OFD Sender: To server: pG, [10:08:07]CommunicateWithHost lk.salyk.kg:30040 [10:08:07]ConnectInit lk.salyk.kg [10:08:07]Connected sock=9 [10:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 76 8E 04 01 33 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 85 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A5 3B 00 00 35 04 06 00 15 F5 0B 87 0E 2C EF 99 C2 89 46 29 7C 59 [10:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 B6 AF 47 00 4F 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A5 3B 00 00 F4 03 04 00 E5 09 C8 66 B6 04 01 00 00 C7 28 A3 97 41 FE 7B 1A [10:08:08]CommunicateWithHost err = 0 [10:08:08]CheckOFDResponse [10:08:08]1017 (14) - 77093643461234 [10:08:08]1041 (16) - 0000000002094529 [10:08:08]1040 (4) - 15269 [10:08:08]1012 (4) - 23.08.2024 04:02 [10:08:08]1206 (1) - 0 [10:08:08]OFD Sender: Remove packet 15269 [10:08:08]ProducePacketName [10:08:08]name=ofd_packets/00015269 [10:08:08]NVStorageDeleteData [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:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:05]accept exits with 8 [10:09:05]New connection [10:09:05]New thread 3066944868 created [10:09:05]Thread 3066801508 joined [10:09:05]Waiting for new connection... [10:09:05] Sock 8.Parse request [10:09:05]Sock 8.Check first char [10:09:05]Sock 8.First char is OK [10:09:05]request: POST /json_proto HTTP/1.0 [10:09:05]Method: POST [10:09:05]URL: /json_proto [10:09:05]Method is POST - this is cgi request [10:09:05]url: /json_proto [10:09:05]query_string will be loaded in cgi processing [10:09:05]execute_cgi json_proto POST (null) [10:09:05]execute_cgi path=json_proto method=POST [10:09:05]POST find Content-Length [10:09:05]Host: 172.17.44.4:8080 [10:09:05]Content-Length: 782 [10:09:05]Content-Type: application/json [10:09:05] [10:09:05]POST finish read [10:09:05]Found Content-Length = 782 [10:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:05]execute_script... [10:09:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:05]POST & json_proto [10:09:05]process_json_proto [10:09:05]json parsed OK: [10:09:05]protocol is kg_v1.0 [10:09:05]action value=close_receipt [10:09:05]process_action close_receipt [10:09:05]cmd_close_receipt [10:09:05]MH_GetDate [10:09:05]Write to MH i2c: F0 00 00 2D 24 40 [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: F0 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: F0 09 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: F0 09 00 2D 24 00 C6 5F C8 66 0F 81 47 66 D9 [10:09:05]GetLastDocTimeStamp 1724407685 [10:09:05]current date 1724407750 [10:09:05]FM_GetShiftState [10:09:05]SAM_PROTO_GetShiftState [10:09:05]wFMCommunicate request_size=4 [10:09:05]MH_SAM_APDU [10:09:05]CAPDU: 80 13 01 00 [10:09:05]Write to MH i2c: E2 08 00 2E 24 80 13 01 00 00 00 00 00 CF [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:06]Read from MH i2c: E2 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 0E 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 0E 00 2E 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 93 [10:09:06]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:09:06]wFMCommunicate OK [10:09:06]SAM_PROTO_GetShiftState done [10:09:06]FM_GetShiftState done [10:09:06]opened in 1724372406 [10:09:06]opened+sec_in_day 1724458806 [10:09:06]quantity*price = 50017 [10:09:06]sum+1 = 50019 [10:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 64 23.08.2024 10:09 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15270 ФПД: 258945357787608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100910&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15270&fm=258945357787608&tin=02508201610067®Number=0000000000162784&sum=50018 [10:09:07]StoreToDocumentArchive [10:09:07]shift 102 fd 15270 [10:09:07]save to /storage/0102/doc_00015270 [10:09:07]save last doc name /storage/0102/doc_00015270 to /storage/kkm_last_doc_name [10:09:07]save OK [10:09:07]Clear old archive folders... [10:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:09:07]tlvbuf is 00455AD0 [10:09:07]SAM_PROTO_ClearQueue [10:09:07]wFMCommunicate request_size=4 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 09 00 00 [10:09:07]Write to MH i2c: E2 08 00 3B 24 80 09 00 00 00 00 00 00 D1 [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [10:09:07]RAPDU: 90 00 [10:09:07]wFMCommunicate OK [10:09:07]SAM_PROTO_ClearQueue done [10:09:07]KKMCreateOFDPacket [10:09:07]OFDProtocolAddRootSTLVToBuf [10:09:07]FM_MakeSignedData [10:09:07]FM_MakeSignedData [10:09:07]SAM_PROTO_SignData [10:09:07]wFMCommunicate request_size=4 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 0D 01 02 [10:09:07]Write to MH i2c: E2 08 00 3C 24 80 0D 01 02 00 00 00 00 D9 [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [10:09:07]RAPDU: 90 00 [10:09:07]wFMCommunicate OK [10:09:07]wFMCommunicate request_size=253 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C6 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A6 3B 00 00 35 04 06 00 EB 82 6A 11 31 D8 [10:09:07]Write to MH i2c: E2 00 01 3D 24 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C6 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A6 3B 00 00 35 04 06 00 EB 82 6A 11 31 D8 00 00 D9 [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [10:09:07]RAPDU: 90 00 [10:09:07]wFMCommunicate OK [10:09:07]wFMCommunicate request_size=4 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 0D 03 02 [10:09:07]Write to MH i2c: E2 08 00 3E 24 80 0D 03 02 00 00 00 00 DD [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 0B 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 0B 00 3E 24 00 7B 97 9F 21 E3 7A 8D C6 90 00 60 [10:09:07]RAPDU: 7B 97 9F 21 E3 7A 8D C6 90 00 [10:09:07]wFMCommunicate OK [10:09:07]SAM_PROTO_SignData done [10:09:07]FM_MakeSignedData done [10:09:07]CreateOFDProtocolMessage [10:09:07]wFMCommunicate request_size=4 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 11 00 00 [10:09:07]Write to MH i2c: E2 08 00 3F 24 80 11 00 00 00 00 00 00 DD [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 17 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 17 00 3F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 2F [10:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:09:07]wFMCommunicate OK [10:09:07]CreateOFDProtocolMessage done [10:09:07]OFDSenderStorePacket 15270 [10:09:07]StoreOFDPacket docnum=15270 [10:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 4B 72 00 01 58 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C6 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A6 3B 00 00 35 04 06 00 EB 82 6A 11 31 D8 7B 97 9F 21 E3 7A 8D C6 [10:09:07]CheckFolder [10:09:07]dirname=/storage/ofd_packets [10:09:07]CheckFolder done [10:09:07]ProducePacketName [10:09:07]name=ofd_packets/00015270 [10:09:07]NVStorageSaveData ofd_packets/00015270 [10:09:07]File name is /storage/ofd_packets/00015270 [10:09:07]Write 294 bytes [10:09:07]NVStorageSaveData done [10:09:07]OFDSenderStorePacket done [10:09:07]KKMCreateOFDPacket done [10:09:07]NVStorageSaveData kkm_last_timestamp [10:09:07]File name is /storage/kkm_last_timestamp [10:09:07]Write 4 bytes [10:09:07]NVStorageSaveData done [10:09:07]ExternCall_PrintAddStr [10:09:07]wPrintStart [10:09:07]Write to MH i2c: 01 00 00 40 24 64 [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: 01 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: 01 07 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 FF 0F 79 [10:09:07]RasterBufferAndPrint [10:09:07]line Счет N : (1)2078206 [10:09:07]line ИНН: 02508201610067 [10:09:07]line Контрольно-Кассовый Чек [10:09:07]line ПРОДАЖА [10:09:07]line ТРК (МРК, ГНК) : 54 [10:09:07]line Товар: 2710124130 [10:09:07]line SU-92 [10:09:07]line 7.270 * 68.80 [10:09:07]line = 500.18 [10:09:07]line НДС 12% НСП 1% [10:09:07]line > о реализуемом товаре [10:09:07]line ИТОГО: 500.18 [10:09:07]line НСП 1% : 4.43 [10:09:07]line НДС 12% : 53.12 [10:09:07]line Наличными: 0.00 [10:09:07]line Безнал.: 500.18 [10:09:07]line Место: АЗС № 135 "Партнер Нефть" [10:09:07]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:09:07]line СНО: Общий режим [10:09:07]line Чек 64 23.08.2024 10:09 [10:09:07]line Смена: 102 ФФД: 1.0 [10:09:07]line ЗНМ: 0300000144 [10:09:07]line РНМ: 0000000000162784 [10:09:07]line Версия ККМ: v1.0 [10:09:07]line Платежная система: O! деньги [10:09:07]line ФМ: 0000000002094529 [10:09:07]line ФД: 15270 [10:09:07]line ФПД: 258945357787608 [10:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100910&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15270&fm=258945357787608&tin=02508201610067®Number=0000000000162784&sum=50018 [10:09:07]OFD Sender: Processing packet 15270 [packets to send 8, broken 7] [10:09:07]ProducePacketName [10:09:07]name=ofd_packets/00015270 [10:09:07]OFD Sender: To server: pG, [10:09:07]CommunicateWithHost lk.salyk.kg:30040 [10:09:07]ConnectInit lk.salyk.kg [10:09:07]written 0, free lines is 4095 [10:09:08]Connected sock=10 [10:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 4B 72 00 01 58 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C6 5F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A6 3B 00 00 35 04 06 00 EB 82 6A 11 31 D8 7B 97 9F 21 E3 7A 8D C6 [10:09:08]Write to MH i2c: 01 00 00 6A 24 8E [10:09:08]Write i2c OK [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: 01 [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: 01 07 00 [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: 01 07 00 6A 24 00 00 00 00 00 EC 0C 8D [10:09:08]RasterBufferAndPrint [10:09:08]line [10:09:08]line [10:09:08]line [10:09:08]line [10:09:08]line [10:09:08]written 0, free lines is 3314 [10:09:08]MH_Cut [10:09:08]Write to MH i2c: D1 01 00 71 24 01 67 [10:09:08]Write i2c OK [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: D1 [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: D1 01 00 [10:09:08]MH_I2C_Read... [10:09:08]Read from MH i2c: D1 01 00 71 24 00 66 [10:09:08]Write to MH i2c: 01 00 00 72 24 96 [10:09:08]Write i2c OK [10:09:08]MH_I2C_Read... [10:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 ED A2 47 00 5E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A6 3B 00 00 F4 03 04 00 21 0A C8 66 B6 04 01 00 00 7D 1D 74 28 CD 4F B4 C5 [10:09:08]CommunicateWithHost err = 0 [10:09:08]CheckOFDResponse [10:09:08]1017 (14) - 77093643461234 [10:09:08]1041 (16) - 0000000002094529 [10:09:08]1040 (4) - 15270 [10:09:08]1012 (4) - 23.08.2024 04:03 [10:09:08]1206 (1) - 0 [10:09:08]OFD Sender: Remove packet 15270 [10:09:08]ProducePacketName [10:09:08]name=ofd_packets/00015270 [10:09:08]NVStorageDeleteData [10:09:09]OFD Sender: No OFD packet to send [10:09:09]*** Cut start [10:09:09]*** Partial cut [10:09:09]*** CUTSNS_PIN = 1 [10:09:09]*** CUTSNS_PIN = 0 [10:09:09]*** Brake cut motor [10:09:09]Read from MH i2c: 01 [10:09:09]MH_I2C_Read... [10:09:09]*** Stop cut motor [10:09:09]*** Cut end [10:09:09]Read from MH i2c: 01 07 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: 01 07 00 72 24 00 00 00 00 00 FF 0F AB [10:09:09]process_action close_receipt done [10:09:09]requested_data is exist [10:09:09]produce_requested_data [10:09:09]requested_item fm.sn is exist - process it [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 11 00 00 [10:09:09]Write to MH i2c: E2 08 00 73 24 80 11 00 00 00 00 00 00 11 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:09]Read from MH i2c: E2 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 17 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 17 00 73 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 63 [10:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:09:09]wFMCommunicate OK [10:09:09]requested_item fd.num is exist - process it [10:09:09]SAM_PROTO_GetFieldsCounters [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 13 00 00 [10:09:09]Write to MH i2c: E2 08 00 74 24 80 13 00 00 00 00 00 00 14 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:09]Read from MH i2c: E2 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 62 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 62 00 74 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [10:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:09]wFMCommunicate OK [10:09:09]SAM_PROTO_GetFieldsCounters done [10:09:09]requested_item shift.num is exist - process it [10:09:09]requested_item shift.opened is exist - process it [10:09:09]req_shift_opened [10:09:09]FM_GetShiftState [10:09:09]SAM_PROTO_GetShiftState [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 13 01 00 [10:09:09]Write to MH i2c: E2 08 00 75 24 80 13 01 00 00 00 00 00 16 [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 0E 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 0E 00 75 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 DA [10:09:10]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:09:10]wFMCommunicate OK [10:09:10]SAM_PROTO_GetShiftState done [10:09:10]FM_GetShiftState done [10:09:10]req_shift_opened done [10:09:10]requested_item shift.open_date is exist - process it [10:09:10]req_shift_open_date [10:09:10]req_shift_open_date done [10:09:10]produce_requested_data done [10:09:10]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15270,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:09:10]process_action_free close_receipt [10:09:10]json_value_free [10:09:10]json_value_free done [10:09:10]process_json_proto returns [10:09:10]Send response to host [10:09:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15270,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:09:10]free response buf [10:09:10]execute_script done [10:09:10]execute_script returns [10:09:10]free content buf [10:09:10]Sock 8.Close socket [10:09:10]Sock 8.Thread stoped [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:20]accept exits with 9 [10:10:20]New connection [10:10:20]New thread 3066801508 created [10:10:20]Thread 3066944868 joined [10:10:20]Waiting for new connection... [10:10:20] Sock 9.Parse request [10:10:20]Sock 9.Check first char [10:10:20]Sock 9.First char is OK [10:10:20]request: POST /json_proto HTTP/1.0 [10:10:20]Method: POST [10:10:20]URL: /json_proto [10:10:20]Method is POST - this is cgi request [10:10:20]url: /json_proto [10:10:20]query_string will be loaded in cgi processing [10:10:20]execute_cgi json_proto POST (null) [10:10:20]execute_cgi path=json_proto method=POST [10:10:20]POST find Content-Length [10:10:20]Host: 172.17.44.4:8080 [10:10:20]Content-Length: 792 [10:10:20]Content-Type: application/json [10:10:20] [10:10:20]POST finish read [10:10:20]Found Content-Length = 792 [10:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:20]execute_script... [10:10:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:20]POST & json_proto [10:10:20]process_json_proto [10:10:20]json parsed OK: [10:10:20]protocol is kg_v1.0 [10:10:20]action value=close_receipt [10:10:20]process_action close_receipt [10:10:20]cmd_close_receipt [10:10:20]MH_GetDate [10:10:20]Write to MH i2c: F0 00 00 76 24 89 [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: F0 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: F0 09 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: F0 09 00 76 24 00 10 60 C8 66 0F 81 47 66 6D [10:10:20]GetLastDocTimeStamp 1724407750 [10:10:20]current date 1724407824 [10:10:20]FM_GetShiftState [10:10:20]SAM_PROTO_GetShiftState [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 01 00 [10:10:20]Write to MH i2c: E2 08 00 77 24 80 13 01 00 00 00 00 00 18 [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 77 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 DC [10:10:20]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:10:20]wFMCommunicate OK [10:10:20]SAM_PROTO_GetShiftState done [10:10:20]FM_GetShiftState done [10:10:20]opened in 1724372406 [10:10:20]opened+sec_in_day 1724458806 [10:10:20]quantity*price = 0 [10:10:20]sum+1 = 1 [10:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 65 23.08.2024 10:10 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливные Талоны 1 ФМ: 0000000002094529 ФД: 15271 ФПД: 95839711763844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101024&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15271&fm=95839711763844&tin=02508201610067®Number=0000000000162784&sum=0 [10:10:21]StoreToDocumentArchive [10:10:21]shift 102 fd 15271 [10:10:21]save to /storage/0102/doc_00015271 [10:10:21]save last doc name /storage/0102/doc_00015271 to /storage/kkm_last_doc_name [10:10:21]save OK [10:10:21]Clear old archive folders... [10:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:21]tlvbuf is B6DA6810 [10:10:21]SAM_PROTO_ClearQueue [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 09 00 00 [10:10:21]Write to MH i2c: E2 08 00 84 24 80 09 00 00 00 00 00 00 1A [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 03 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [10:10:21]RAPDU: 90 00 [10:10:21]wFMCommunicate OK [10:10:21]SAM_PROTO_ClearQueue done [10:10:21]KKMCreateOFDPacket [10:10:21]OFDProtocolAddRootSTLVToBuf [10:10:21]FM_MakeSignedData [10:10:21]FM_MakeSignedData [10:10:21]SAM_PROTO_SignData [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 0D 01 02 [10:10:21]Write to MH i2c: E2 08 00 85 24 80 0D 01 02 00 00 00 00 22 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 03 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [10:10:21]RAPDU: 90 00 [10:10:21]wFMCommunicate OK [10:10:21]wFMCommunicate request_size=255 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A7 3B 00 00 35 04 06 00 57 2A 6B F9 [10:10:21]Write to MH i2c: E2 02 01 86 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A7 3B 00 00 35 04 06 00 57 2A 6B F9 00 00 E2 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 03 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 03 00 86 24 00 90 00 1E [10:10:22]RAPDU: 90 00 [10:10:22]wFMCommunicate OK [10:10:22]wFMCommunicate request_size=7 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 0D 02 02 02 9D 84 [10:10:22]Write to MH i2c: E2 0A 00 87 24 80 0D 02 02 02 00 9D 84 00 00 4A [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 03 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 03 00 87 24 00 90 00 1F [10:10:22]RAPDU: 90 00 [10:10:22]wFMCommunicate OK [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 0D 03 02 [10:10:22]Write to MH i2c: E2 08 00 88 24 80 0D 03 02 00 00 00 00 27 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0B 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0B 00 88 24 00 13 1A 0B D2 42 31 58 F9 90 00 F6 [10:10:22]RAPDU: 13 1A 0B D2 42 31 58 F9 90 00 [10:10:22]wFMCommunicate OK [10:10:22]SAM_PROTO_SignData done [10:10:22]FM_MakeSignedData done [10:10:22]CreateOFDProtocolMessage [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 11 00 00 [10:10:22]Write to MH i2c: E2 08 00 89 24 80 11 00 00 00 00 00 00 27 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 17 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 17 00 89 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 79 [10:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:10:22]wFMCommunicate OK [10:10:22]CreateOFDProtocolMessage done [10:10:22]OFDSenderStorePacket 15271 [10:10:22]StoreOFDPacket docnum=15271 [10:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 92 1D 04 01 BD 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A7 3B 00 00 35 04 06 00 57 2A 6B F9 9D 84 13 1A 0B D2 42 31 58 F9 [10:10:22]CheckFolder [10:10:22]dirname=/storage/ofd_packets [10:10:22]CheckFolder done [10:10:22]ProducePacketName [10:10:22]name=ofd_packets/00015271 [10:10:22]NVStorageSaveData ofd_packets/00015271 [10:10:22]File name is /storage/ofd_packets/00015271 [10:10:22]Write 298 bytes [10:10:22]NVStorageSaveData done [10:10:22]OFDSenderStorePacket done [10:10:22]KKMCreateOFDPacket done [10:10:22]NVStorageSaveData kkm_last_timestamp [10:10:22]File name is /storage/kkm_last_timestamp [10:10:22]Write 4 bytes [10:10:22]NVStorageSaveData done [10:10:22]ExternCall_PrintAddStr [10:10:22]wPrintStart [10:10:22]Write to MH i2c: 01 00 00 8A 24 AE [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 FF 0F C3 [10:10:22]RasterBufferAndPrint [10:10:22]line Счет N : (1)2078204 [10:10:22]line ИНН: 02508201610067 [10:10:22]line Контрольно-Кассовый Чек [10:10:22]line ПРОДАЖА [10:10:22]line ТРК (МРК, ГНК) : 21 [10:10:22]line Товар: 2710194210 [10:10:22]line ДТ-К-5 [10:10:22]line 65.620 * 0.00 [10:10:22]line = 0.00 [10:10:22]line НДС 12% НСП 1% [10:10:22]line > о реализуемом товаре [10:10:22]line ИТОГО: 0.00 [10:10:22]line НСП 1% : 0.00 [10:10:22]line НДС 12% : 0.00 [10:10:22]line Наличными: 0.00 [10:10:22]line Безнал.: 0.00 [10:10:22]line Место: АЗС № 135 "Партнер Нефть" [10:10:22]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:10:22]line СНО: Общий режим [10:10:22]line Чек 65 23.08.2024 10:10 [10:10:22]line Смена: 102 ФФД: 1.0 [10:10:22]line ЗНМ: 0300000144 [10:10:22]line РНМ: 0000000000162784 [10:10:22]line Версия ККМ: v1.0 [10:10:22]line Талоны: Топливные Талоны [10:10:22]line 1 [10:10:22]line ФМ: 0000000002094529 [10:10:22]line ФД: 15271 [10:10:22]line ФПД: 95839711763844 [10:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101024&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15271&fm=95839711763844&tin=02508201610067®Number=0000000000162784&sum=0 [10:10:22]OFD Sender: Processing packet 15271 [packets to send 8, broken 7] [10:10:22]ProducePacketName [10:10:22]name=ofd_packets/00015271 [10:10:22]OFD Sender: To server: pG, [10:10:22]CommunicateWithHost lk.salyk.kg:30040 [10:10:22]ConnectInit lk.salyk.kg [10:10:22]written 0, free lines is 4095 [10:10:22]Connected sock=10 [10:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 92 1D 04 01 BD 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A7 3B 00 00 35 04 06 00 57 2A 6B F9 9D 84 13 1A 0B D2 42 31 58 F9 [10:10:22]Write to MH i2c: 01 00 00 B4 24 D8 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: 01 07 00 B4 24 00 00 00 00 00 E8 0C D3 [10:10:22]RasterBufferAndPrint [10:10:22]line [10:10:22]line [10:10:22]line [10:10:22]line [10:10:22]line [10:10:22]written 0, free lines is 3310 [10:10:22]MH_Cut [10:10:22]Write to MH i2c: D1 01 00 BB 24 01 B1 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: D1 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: D1 01 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: D1 01 00 BB 24 00 B0 [10:10:22]Write to MH i2c: 01 00 00 BC 24 E0 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 12 04 47 00 CE EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A7 3B 00 00 F4 03 04 00 6C 0A C8 66 B6 04 01 00 00 8B 0F D1 2B EF 6C BC 69 [10:10:23]CommunicateWithHost err = 0 [10:10:23]CheckOFDResponse [10:10:23]1017 (14) - 77093643461234 [10:10:23]1041 (16) - 0000000002094529 [10:10:23]1040 (4) - 15271 [10:10:23]1012 (4) - 23.08.2024 04:05 [10:10:23]1206 (1) - 0 [10:10:23]OFD Sender: Remove packet 15271 [10:10:23]ProducePacketName [10:10:23]name=ofd_packets/00015271 [10:10:23]NVStorageDeleteData [10:10:23]OFD Sender: No OFD packet to send [10:10:23]*** Cut start [10:10:23]*** Partial cut [10:10:23]*** CUTSNS_PIN = 1 [10:10:23]*** CUTSNS_PIN = 0 [10:10:23]*** Brake cut motor [10:10:24]Read from MH i2c: 01 [10:10:24]MH_I2C_Read... [10:10:24]*** Stop cut motor [10:10:24]*** Cut end [10:10:24]Read from MH i2c: 01 07 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 BC 24 00 00 00 00 00 FF 0F F5 [10:10:24]process_action close_receipt done [10:10:24]requested_data is exist [10:10:24]produce_requested_data [10:10:24]requested_item fm.sn is exist - process it [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 11 00 00 [10:10:24]Write to MH i2c: E2 08 00 BD 24 80 11 00 00 00 00 00 00 5B [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 BD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 AD [10:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:10:24]wFMCommunicate OK [10:10:24]requested_item fd.num is exist - process it [10:10:24]SAM_PROTO_GetFieldsCounters [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 13 00 00 [10:10:24]Write to MH i2c: E2 08 00 BE 24 80 13 00 00 00 00 00 00 5E [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 62 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 62 00 BE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:10:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_GetFieldsCounters done [10:10:24]requested_item shift.num is exist - process it [10:10:24]requested_item shift.opened is exist - process it [10:10:24]req_shift_opened [10:10:24]FM_GetShiftState [10:10:24]SAM_PROTO_GetShiftState [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 13 01 00 [10:10:24]Write to MH i2c: E2 08 00 BF 24 80 13 01 00 00 00 00 00 60 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:24]Read from MH i2c: E2 0E 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 0E 00 BF 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 24 [10:10:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_GetShiftState done [10:10:24]FM_GetShiftState done [10:10:24]req_shift_opened done [10:10:24]requested_item shift.open_date is exist - process it [10:10:24]req_shift_open_date [10:10:24]req_shift_open_date done [10:10:24]produce_requested_data done [10:10:24]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15271,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:10:24]process_action_free close_receipt [10:10:24]json_value_free [10:10:24]json_value_free done [10:10:24]process_json_proto returns [10:10:24]Send response to host [10:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15271,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:10:24]free response buf [10:10:24]execute_script done [10:10:24]execute_script returns [10:10:24]free content buf [10:10:24]Sock 9.Close socket [10:10:24]Sock 9.Thread stoped [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:50]accept exits with 8 [10:11:50]New connection [10:11:50]New thread 3066944868 created [10:11:50]Thread 3066801508 joined [10:11:50]Waiting for new connection... [10:11:50] Sock 8.Parse request [10:11:50]Sock 8.Check first char [10:11:50]Sock 8.First char is OK [10:11:50]request: POST /json_proto HTTP/1.0 [10:11:50]Method: POST [10:11:50]URL: /json_proto [10:11:50]Method is POST - this is cgi request [10:11:50]url: /json_proto [10:11:50]query_string will be loaded in cgi processing [10:11:50]execute_cgi json_proto POST (null) [10:11:50]execute_cgi path=json_proto method=POST [10:11:50]POST find Content-Length [10:11:50]Host: 172.17.44.4:8080 [10:11:50]Content-Length: 804 [10:11:50]Content-Type: application/json [10:11:50] [10:11:50]POST finish read [10:11:50]Found Content-Length = 804 [10:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:50]execute_script... [10:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:50]POST & json_proto [10:11:50]process_json_proto [10:11:50]json parsed OK: [10:11:50]protocol is kg_v1.0 [10:11:50]action value=close_receipt [10:11:50]process_action close_receipt [10:11:50]cmd_close_receipt [10:11:50]MH_GetDate [10:11:50]Write to MH i2c: F0 00 00 C0 24 D3 [10:11:51]Write i2c OK [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: F0 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: F0 09 00 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: F0 09 00 C0 24 00 6B 60 C8 66 0F 81 47 66 12 [10:11:51]GetLastDocTimeStamp 1724407824 [10:11:51]current date 1724407915 [10:11:51]FM_GetShiftState [10:11:51]SAM_PROTO_GetShiftState [10:11:51]wFMCommunicate request_size=4 [10:11:51]MH_SAM_APDU [10:11:51]CAPDU: 80 13 01 00 [10:11:51]Write to MH i2c: E2 08 00 C1 24 80 13 01 00 00 00 00 00 62 [10:11:51]Write i2c OK [10:11:51]MH_I2C_Read... [10:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:51]Read from MH i2c: E2 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 0E 00 [10:11:51]MH_I2C_Read... [10:11:51]Read from MH i2c: E2 0E 00 C1 24 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 26 [10:11:51]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:11:51]wFMCommunicate OK [10:11:51]SAM_PROTO_GetShiftState done [10:11:51]FM_GetShiftState done [10:11:51]opened in 1724372406 [10:11:51]opened+sec_in_day 1724458806 [10:11:51]quantity*price = 100021 [10:11:51]sum+1 = 100023 [10:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 66 23.08.2024 10:11 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15272 ФПД: 228321334979727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101155&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15272&fm=228321334979727&tin=02508201610067®Number=0000000000162784&sum=100022 [10:11:52]StoreToDocumentArchive [10:11:52]shift 102 fd 15272 [10:11:52]save to /storage/0102/doc_00015272 [10:11:52]save last doc name /storage/0102/doc_00015272 to /storage/kkm_last_doc_name [10:11:52]save OK [10:11:52]Clear old archive folders... [10:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:52]tlvbuf is 004C41A0 [10:11:52]SAM_PROTO_ClearQueue [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 09 00 00 [10:11:52]Write to MH i2c: E2 08 00 CE 24 80 09 00 00 00 00 00 00 64 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]SAM_PROTO_ClearQueue done [10:11:52]KKMCreateOFDPacket [10:11:52]OFDProtocolAddRootSTLVToBuf [10:11:52]FM_MakeSignedData [10:11:52]FM_MakeSignedData [10:11:52]SAM_PROTO_SignData [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 01 02 [10:11:52]Write to MH i2c: E2 08 00 CF 24 80 0D 01 02 00 00 00 00 6C [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]wFMCommunicate request_size=255 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6B 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A8 3B 00 00 35 04 06 00 CF [10:11:52]Write to MH i2c: E2 02 01 D0 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6B 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A8 3B 00 00 35 04 06 00 CF 00 00 99 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]wFMCommunicate request_size=10 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 02 02 05 A8 34 10 EC 8F [10:11:52]Write to MH i2c: E2 0D 00 D1 24 80 0D 02 02 05 00 A8 34 10 EC 8F 00 00 E0 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [10:11:52]RAPDU: 90 00 [10:11:52]wFMCommunicate OK [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 0D 03 02 [10:11:52]Write to MH i2c: E2 08 00 D2 24 80 0D 03 02 00 00 00 00 71 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 0B 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 0B 00 D2 24 00 3B 3F B0 8D E6 4D 4B 59 90 00 00 [10:11:52]RAPDU: 3B 3F B0 8D E6 4D 4B 59 90 00 [10:11:52]wFMCommunicate OK [10:11:52]SAM_PROTO_SignData done [10:11:52]FM_MakeSignedData done [10:11:52]CreateOFDProtocolMessage [10:11:52]wFMCommunicate request_size=4 [10:11:52]MH_SAM_APDU [10:11:52]CAPDU: 80 11 00 00 [10:11:52]Write to MH i2c: E2 08 00 D3 24 80 11 00 00 00 00 00 00 71 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:52]Read from MH i2c: E2 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 17 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: E2 17 00 D3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C3 [10:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:11:52]wFMCommunicate OK [10:11:52]CreateOFDProtocolMessage done [10:11:52]OFDSenderStorePacket 15272 [10:11:52]StoreOFDPacket docnum=15272 [10:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 23 6C 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6B 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A8 3B 00 00 35 04 06 00 CF A8 34 10 EC 8F 3B 3F B0 8D E6 4D 4B 59 [10:11:52]CheckFolder [10:11:52]dirname=/storage/ofd_packets [10:11:52]CheckFolder done [10:11:52]ProducePacketName [10:11:52]name=ofd_packets/00015272 [10:11:52]NVStorageSaveData ofd_packets/00015272 [10:11:52]File name is /storage/ofd_packets/00015272 [10:11:52]Write 301 bytes [10:11:52]NVStorageSaveData done [10:11:52]OFDSenderStorePacket done [10:11:52]KKMCreateOFDPacket done [10:11:52]NVStorageSaveData kkm_last_timestamp [10:11:52]File name is /storage/kkm_last_timestamp [10:11:52]Write 4 bytes [10:11:52]NVStorageSaveData done [10:11:52]ExternCall_PrintAddStr [10:11:52]wPrintStart [10:11:52]Write to MH i2c: 01 00 00 D4 24 F8 [10:11:52]Write i2c OK [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 07 00 [10:11:52]MH_I2C_Read... [10:11:52]Read from MH i2c: 01 07 00 D4 24 00 00 00 00 00 FF 0F 0D [10:11:52]RasterBufferAndPrint [10:11:52]line Счет N : (1)2078209 [10:11:52]line ИНН: 02508201610067 [10:11:52]line Контрольно-Кассовый Чек [10:11:52]line ПРОДАЖА [10:11:52]line ТРК (МРК, ГНК) : 52 [10:11:52]line Товар: 2710124500 [10:11:52]line Аи-95-К-5 [10:11:52]line 13.480 * 74.20 [10:11:52]line = 1000.22 [10:11:52]line НДС 12% НСП 1% [10:11:52]line > о реализуемом товаре [10:11:52]line ИТОГО: 1000.22 [10:11:52]line НСП 1% : 8.85 [10:11:52]line НДС 12% : 106.22 [10:11:52]line Наличными: 0.00 [10:11:52]line Безнал.: 1000.22 [10:11:52]line Место: АЗС № 135 "Партнер Нефть" [10:11:52]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:11:52]line СНО: Общий режим [10:11:52]line Чек 66 23.08.2024 10:11 [10:11:52]line Смена: 102 ФФД: 1.0 [10:11:52]line ЗНМ: 0300000144 [10:11:52]line РНМ: 0000000000162784 [10:11:52]line Версия ККМ: v1.0 [10:11:52]line Платежная система: O! деньги [10:11:52]line ФМ: 0000000002094529 [10:11:52]line ФД: 15272 [10:11:52]line ФПД: 228321334979727 [10:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101155&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15272&fm=228321334979727&tin=02508201610067®Number=0000000000162784&sum=100022 [10:11:53]OFD Sender: Processing packet 15272 [packets to send 8, broken 7] [10:11:53]ProducePacketName [10:11:53]name=ofd_packets/00015272 [10:11:53]OFD Sender: To server: pG, [10:11:53]CommunicateWithHost lk.salyk.kg:30040 [10:11:53]ConnectInit lk.salyk.kg [10:11:53]written 0, free lines is 4095 [10:11:53]Connected sock=10 [10:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 23 6C 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6B 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A8 3B 00 00 35 04 06 00 CF A8 34 10 EC 8F 3B 3F B0 8D E6 4D 4B 59 [10:11:53]Write to MH i2c: 01 00 00 FE 24 22 [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 E7 0C 1C [10:11:53]RasterBufferAndPrint [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]line [10:11:53]written 0, free lines is 3309 [10:11:53]MH_Cut [10:11:53]Write to MH i2c: D1 01 00 05 25 01 FC [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 01 00 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: D1 01 00 05 25 00 FB [10:11:53]Write to MH i2c: 01 00 00 06 25 2B [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 3B 99 47 00 33 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A8 3B 00 00 F4 03 04 00 C6 0A C8 66 B6 04 01 00 00 72 4D FA 26 1F 3E EB 9A [10:11:53]CommunicateWithHost err = 0 [10:11:53]CheckOFDResponse [10:11:53]1017 (14) - 77093643461234 [10:11:53]1041 (16) - 0000000002094529 [10:11:53]1040 (4) - 15272 [10:11:53]1012 (4) - 23.08.2024 04:06 [10:11:53]1206 (1) - 0 [10:11:53]OFD Sender: Remove packet 15272 [10:11:53]ProducePacketName [10:11:53]name=ofd_packets/00015272 [10:11:53]NVStorageDeleteData [10:11:54]OFD Sender: No OFD packet to send [10:11:54]*** Cut start [10:11:54]*** Partial cut [10:11:54]*** CUTSNS_PIN = 1 [10:11:54]*** CUTSNS_PIN = 0 [10:11:54]*** Brake cut motor [10:11:54]Read from MH i2c: 01 [10:11:54]MH_I2C_Read... [10:11:54]*** Stop cut motor [10:11:54]*** Cut end [10:11:54]Read from MH i2c: 01 07 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 06 25 00 00 00 00 00 FF 0F 40 [10:11:54]process_action close_receipt done [10:11:54]requested_data is exist [10:11:54]produce_requested_data [10:11:54]requested_item fm.sn is exist - process it [10:11:54]wFMCommunicate request_size=4 [10:11:54]MH_SAM_APDU [10:11:54]CAPDU: 80 11 00 00 [10:11:54]Write to MH i2c: E2 08 00 07 25 80 11 00 00 00 00 00 00 A6 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:54]Read from MH i2c: E2 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: E2 17 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: E2 17 00 07 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F8 [10:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:11:54]wFMCommunicate OK [10:11:54]requested_item fd.num is exist - process it [10:11:54]SAM_PROTO_GetFieldsCounters [10:11:54]wFMCommunicate request_size=4 [10:11:54]MH_SAM_APDU [10:11:54]CAPDU: 80 13 00 00 [10:11:54]Write to MH i2c: E2 08 00 08 25 80 13 00 00 00 00 00 00 A9 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:55]Read from MH i2c: E2 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 62 00 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 62 00 08 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [10:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:55]wFMCommunicate OK [10:11:55]SAM_PROTO_GetFieldsCounters done [10:11:55]requested_item shift.num is exist - process it [10:11:55]requested_item shift.opened is exist - process it [10:11:55]req_shift_opened [10:11:55]FM_GetShiftState [10:11:55]SAM_PROTO_GetShiftState [10:11:55]wFMCommunicate request_size=4 [10:11:55]MH_SAM_APDU [10:11:55]CAPDU: 80 13 01 00 [10:11:55]Write to MH i2c: E2 08 00 09 25 80 13 01 00 00 00 00 00 AB [10:11:55]Write i2c OK [10:11:55]MH_I2C_Read... [10:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:55]Read from MH i2c: E2 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 0E 00 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 0E 00 09 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 6F [10:11:55]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:11:55]wFMCommunicate OK [10:11:55]SAM_PROTO_GetShiftState done [10:11:55]FM_GetShiftState done [10:11:55]req_shift_opened done [10:11:55]requested_item shift.open_date is exist - process it [10:11:55]req_shift_open_date [10:11:55]req_shift_open_date done [10:11:55]produce_requested_data done [10:11:55]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15272,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:11:55]process_action_free close_receipt [10:11:55]json_value_free [10:11:55]json_value_free done [10:11:55]process_json_proto returns [10:11:55]Send response to host [10:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15272,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:11:55]free response buf [10:11:55]execute_script done [10:11:55]execute_script returns [10:11:55]free content buf [10:11:55]Sock 8.Close socket [10:11:55]Sock 8.Thread stoped [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:15]accept exits with 9 [10:12:15]New connection [10:12:15]New thread 3066801508 created [10:12:15]Thread 3066944868 joined [10:12:15]Waiting for new connection... [10:12:15] Sock 9.Parse request [10:12:15]Sock 9.Check first char [10:12:15]Sock 9.First char is OK [10:12:15]request: POST /json_proto HTTP/1.0 [10:12:15]Method: POST [10:12:15]URL: /json_proto [10:12:15]Method is POST - this is cgi request [10:12:15]url: /json_proto [10:12:15]query_string will be loaded in cgi processing [10:12:15]execute_cgi json_proto POST (null) [10:12:15]execute_cgi path=json_proto method=POST [10:12:15]POST find Content-Length [10:12:15]Host: 172.17.44.4:8080 [10:12:15]Content-Length: 790 [10:12:15]Content-Type: application/json [10:12:15] [10:12:15]POST finish read [10:12:15]Found Content-Length = 790 [10:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:15]execute_script... [10:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:15]POST & json_proto [10:12:15]process_json_proto [10:12:15]json parsed OK: [10:12:15]protocol is kg_v1.0 [10:12:15]action value=close_receipt [10:12:15]process_action close_receipt [10:12:15]cmd_close_receipt [10:12:15]MH_GetDate [10:12:15]Write to MH i2c: F0 00 00 0A 25 1E [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: F0 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: F0 09 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: F0 09 00 0A 25 00 83 60 C8 66 0F 81 47 66 75 [10:12:15]GetLastDocTimeStamp 1724407915 [10:12:15]current date 1724407939 [10:12:15]FM_GetShiftState [10:12:15]SAM_PROTO_GetShiftState [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 13 01 00 [10:12:15]Write to MH i2c: E2 08 00 0B 25 80 13 01 00 00 00 00 00 AD [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 0B 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 71 [10:12:15]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:12:15]wFMCommunicate OK [10:12:15]SAM_PROTO_GetShiftState done [10:12:15]FM_GetShiftState done [10:12:15]opened in 1724372406 [10:12:15]opened+sec_in_day 1724458806 [10:12:15]quantity*price = 0 [10:12:15]sum+1 = 1 [10:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 67 23.08.2024 10:12 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15273 ФПД: 187012298232154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101219&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15273&fm=187012298232154&tin=02508201610067®Number=0000000000162784&sum=0 [10:12:16]StoreToDocumentArchive [10:12:16]shift 102 fd 15273 [10:12:16]save to /storage/0102/doc_00015273 [10:12:16]save last doc name /storage/0102/doc_00015273 to /storage/kkm_last_doc_name [10:12:16]save OK [10:12:16]Clear old archive folders... [10:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:16]tlvbuf is 005144D0 [10:12:16]SAM_PROTO_ClearQueue [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 09 00 00 [10:12:16]Write to MH i2c: E2 08 00 18 25 80 09 00 00 00 00 00 00 AF [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 18 25 00 90 00 B1 [10:12:16]RAPDU: 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_ClearQueue done [10:12:16]KKMCreateOFDPacket [10:12:16]OFDProtocolAddRootSTLVToBuf [10:12:16]FM_MakeSignedData [10:12:16]FM_MakeSignedData [10:12:16]SAM_PROTO_SignData [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 0D 01 02 [10:12:16]Write to MH i2c: E2 08 00 19 25 80 0D 01 02 00 00 00 00 B7 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 19 25 00 90 00 B2 [10:12:17]RAPDU: 90 00 [10:12:17]wFMCommunicate OK [10:12:17]wFMCommunicate request_size=255 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 83 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A9 3B 00 00 35 04 06 00 AA 16 31 9A [10:12:17]Write to MH i2c: E2 02 01 1A 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 83 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A9 3B 00 00 35 04 06 00 AA 16 31 9A 00 00 76 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [10:12:17]RAPDU: 90 00 [10:12:17]wFMCommunicate OK [10:12:17]wFMCommunicate request_size=7 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 0D 02 02 02 D1 5A [10:12:17]Write to MH i2c: E2 0A 00 1B 25 80 0D 02 02 02 00 D1 5A 00 00 E9 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [10:12:17]RAPDU: 90 00 [10:12:17]wFMCommunicate OK [10:12:17]wFMCommunicate request_size=4 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 0D 03 02 [10:12:17]Write to MH i2c: E2 08 00 1C 25 80 0D 03 02 00 00 00 00 BC [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0B 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0B 00 1C 25 00 BB 90 F3 4A 4E 04 5E 48 90 00 3D [10:12:17]RAPDU: BB 90 F3 4A 4E 04 5E 48 90 00 [10:12:17]wFMCommunicate OK [10:12:17]SAM_PROTO_SignData done [10:12:17]FM_MakeSignedData done [10:12:17]CreateOFDProtocolMessage [10:12:17]wFMCommunicate request_size=4 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 11 00 00 [10:12:17]Write to MH i2c: E2 08 00 1D 25 80 11 00 00 00 00 00 00 BC [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 17 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 17 00 1D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 0E [10:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:12:17]wFMCommunicate OK [10:12:17]CreateOFDProtocolMessage done [10:12:17]OFDSenderStorePacket 15273 [10:12:17]StoreOFDPacket docnum=15273 [10:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 62 44 04 01 B6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 83 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A9 3B 00 00 35 04 06 00 AA 16 31 9A D1 5A BB 90 F3 4A 4E 04 5E 48 [10:12:17]CheckFolder [10:12:17]dirname=/storage/ofd_packets [10:12:17]CheckFolder done [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00015273 [10:12:17]NVStorageSaveData ofd_packets/00015273 [10:12:17]File name is /storage/ofd_packets/00015273 [10:12:17]Write 298 bytes [10:12:17]NVStorageSaveData done [10:12:17]OFDSenderStorePacket done [10:12:17]KKMCreateOFDPacket done [10:12:17]NVStorageSaveData kkm_last_timestamp [10:12:17]File name is /storage/kkm_last_timestamp [10:12:17]Write 4 bytes [10:12:17]NVStorageSaveData done [10:12:17]ExternCall_PrintAddStr [10:12:17]wPrintStart [10:12:17]Write to MH i2c: 01 00 00 1E 25 43 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 FF 0F 58 [10:12:17]RasterBufferAndPrint [10:12:17]line Счет N : (1)2078208 [10:12:17]line ИНН: 02508201610067 [10:12:17]line Контрольно-Кассовый Чек [10:12:17]line ПРОДАЖА [10:12:17]line ТРК (МРК, ГНК) : 11 [10:12:17]line Товар: 2710194210 [10:12:17]line ДТ-К-5 [10:12:17]line 10.000 * 0.00 [10:12:17]line = 0.00 [10:12:17]line НДС 12% НСП 1% [10:12:17]line > о реализуемом товаре [10:12:17]line ИТОГО: 0.00 [10:12:17]line НСП 1% : 0.00 [10:12:17]line НДС 12% : 0.00 [10:12:17]line Наличными: 0.00 [10:12:17]line Безнал.: 0.00 [10:12:17]line Место: АЗС № 135 "Партнер Нефть" [10:12:17]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:12:17]line СНО: Общий режим [10:12:17]line Чек 67 23.08.2024 10:12 [10:12:17]line Смена: 102 ФФД: 1.0 [10:12:17]line ЗНМ: 0300000144 [10:12:17]line РНМ: 0000000000162784 [10:12:17]line Версия ККМ: v1.0 [10:12:17]line Талоны: Топливная Карта [10:12:17]line 92875 [10:12:17]line ФМ: 0000000002094529 [10:12:17]line ФД: 15273 [10:12:17]line ФПД: 187012298232154 [10:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101219&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15273&fm=187012298232154&tin=02508201610067®Number=0000000000162784&sum=0 [10:12:17]OFD Sender: Processing packet 15273 [packets to send 8, broken 7] [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00015273 [10:12:17]OFD Sender: To server: pG, [10:12:17]CommunicateWithHost lk.salyk.kg:30040 [10:12:17]ConnectInit lk.salyk.kg [10:12:17]written 0, free lines is 4095 [10:12:18]Connected sock=8 [10:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 62 44 04 01 B6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 83 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A9 3B 00 00 35 04 06 00 AA 16 31 9A D1 5A BB 90 F3 4A 4E 04 5E 48 [10:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 7C 42 47 00 5D 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 A9 3B 00 00 F4 03 04 00 DF 0A C8 66 B6 04 01 00 00 99 7B B0 21 78 41 BF 78 [10:12:18]CommunicateWithHost err = 0 [10:12:18]CheckOFDResponse [10:12:18]1017 (14) - 77093643461234 [10:12:18]1041 (16) - 0000000002094529 [10:12:18]1040 (4) - 15273 [10:12:18]1012 (4) - 23.08.2024 04:06 [10:12:18]1206 (1) - 0 [10:12:18]OFD Sender: Remove packet 15273 [10:12:18]ProducePacketName [10:12:18]name=ofd_packets/00015273 [10:12:18]NVStorageDeleteData [10:12:18]Write to MH i2c: 01 00 00 48 25 6D [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: 01 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: 01 07 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: 01 07 00 48 25 00 00 00 00 00 FB 0C 7B [10:12:18]RasterBufferAndPrint [10:12:18]line [10:12:18]line [10:12:18]line [10:12:18]line [10:12:18]line [10:12:18]written 0, free lines is 3330 [10:12:18]MH_Cut [10:12:18]Write to MH i2c: D1 01 00 4F 25 01 46 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: D1 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: D1 01 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: D1 01 00 4F 25 00 45 [10:12:18]Write to MH i2c: 01 00 00 50 25 75 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]OFD Sender: No OFD packet to send [10:12:18]*** Cut start [10:12:18]*** Partial cut [10:12:18]*** CUTSNS_PIN = 1 [10:12:19]*** CUTSNS_PIN = 0 [10:12:19]*** Brake cut motor [10:12:19]Read from MH i2c: 01 [10:12:19]MH_I2C_Read... [10:12:19]*** Stop cut motor [10:12:19]*** Cut end [10:12:19]Read from MH i2c: 01 07 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: 01 07 00 50 25 00 00 00 00 00 FF 0F 8A [10:12:19]process_action close_receipt done [10:12:19]requested_data is exist [10:12:19]produce_requested_data [10:12:19]requested_item fm.sn is exist - process it [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 11 00 00 [10:12:19]Write to MH i2c: E2 08 00 51 25 80 11 00 00 00 00 00 00 F0 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 17 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 17 00 51 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 42 [10:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:12:19]wFMCommunicate OK [10:12:19]requested_item fd.num is exist - process it [10:12:19]SAM_PROTO_GetFieldsCounters [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 13 00 00 [10:12:19]Write to MH i2c: E2 08 00 52 25 80 13 00 00 00 00 00 00 F3 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 62 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 62 00 52 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [10:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 A9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_GetFieldsCounters done [10:12:19]requested_item shift.num is exist - process it [10:12:19]requested_item shift.opened is exist - process it [10:12:19]req_shift_opened [10:12:19]FM_GetShiftState [10:12:19]SAM_PROTO_GetShiftState [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 13 01 00 [10:12:19]Write to MH i2c: E2 08 00 53 25 80 13 01 00 00 00 00 00 F5 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 53 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B9 [10:12:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_GetShiftState done [10:12:19]FM_GetShiftState done [10:12:19]req_shift_opened done [10:12:19]requested_item shift.open_date is exist - process it [10:12:19]req_shift_open_date [10:12:19]req_shift_open_date done [10:12:19]produce_requested_data done [10:12:19]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15273,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:12:19]process_action_free close_receipt [10:12:19]json_value_free [10:12:19]json_value_free done [10:12:19]process_json_proto returns [10:12:19]Send response to host [10:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15273,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:12:19]free response buf [10:12:19]execute_script done [10:12:19]execute_script returns [10:12:19]free content buf [10:12:19]Sock 9.Close socket [10:12:19]Sock 9.Thread stoped [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:54]accept exits with 10 [10:12:54]New connection [10:12:54]New thread 3066944868 created [10:12:54]Thread 3066801508 joined [10:12:54]Waiting for new connection... [10:12:54] Sock 10.Parse request [10:12:54]Sock 10.Check first char [10:12:54]Sock 10.First char is OK [10:12:54]request: POST /json_proto HTTP/1.0 [10:12:54]Method: POST [10:12:54]URL: /json_proto [10:12:54]Method is POST - this is cgi request [10:12:54]url: /json_proto [10:12:54]query_string will be loaded in cgi processing [10:12:54]execute_cgi json_proto POST (null) [10:12:54]execute_cgi path=json_proto method=POST [10:12:54]POST find Content-Length [10:12:54]Host: 172.17.44.4:8080 [10:12:54]Content-Length: 801 [10:12:54]Content-Type: application/json [10:12:54] [10:12:54]POST finish read [10:12:54]Found Content-Length = 801 [10:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:54]execute_script... [10:12:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:54]POST & json_proto [10:12:54]process_json_proto [10:12:54]json parsed OK: [10:12:54]protocol is kg_v1.0 [10:12:54]action value=close_receipt [10:12:54]process_action close_receipt [10:12:54]cmd_close_receipt [10:12:54]MH_GetDate [10:12:54]Write to MH i2c: F0 00 00 54 25 68 [10:12:54]Write i2c OK [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: F0 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: F0 09 00 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: F0 09 00 54 25 00 AA 60 C8 66 0F 81 47 66 E6 [10:12:54]GetLastDocTimeStamp 1724407939 [10:12:54]current date 1724407978 [10:12:54]FM_GetShiftState [10:12:54]SAM_PROTO_GetShiftState [10:12:54]wFMCommunicate request_size=4 [10:12:54]MH_SAM_APDU [10:12:54]CAPDU: 80 13 01 00 [10:12:54]Write to MH i2c: E2 08 00 55 25 80 13 01 00 00 00 00 00 F7 [10:12:54]Write i2c OK [10:12:54]MH_I2C_Read... [10:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:54]Read from MH i2c: E2 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: E2 0E 00 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: E2 0E 00 55 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 BB [10:12:54]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:12:54]wFMCommunicate OK [10:12:54]SAM_PROTO_GetShiftState done [10:12:54]FM_GetShiftState done [10:12:54]opened in 1724372406 [10:12:54]opened+sec_in_day 1724458806 [10:12:54]quantity*price = 50010 [10:12:54]sum+1 = 50012 [10:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 68 23.08.2024 10:12 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15274 ФПД: 76635717026018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101258&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15274&fm=76635717026018&tin=02508201610067®Number=0000000000162784&sum=50011 [10:12:55]StoreToDocumentArchive [10:12:55]shift 102 fd 15274 [10:12:55]save to /storage/0102/doc_00015274 [10:12:55]save last doc name /storage/0102/doc_00015274 to /storage/kkm_last_doc_name [10:12:55]save OK [10:12:55]Clear old archive folders... [10:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:55]tlvbuf is 0045E290 [10:12:55]SAM_PROTO_ClearQueue [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 09 00 00 [10:12:55]Write to MH i2c: E2 08 00 62 25 80 09 00 00 00 00 00 00 F9 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 03 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [10:12:55]RAPDU: 90 00 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_ClearQueue done [10:12:55]KKMCreateOFDPacket [10:12:55]OFDProtocolAddRootSTLVToBuf [10:12:55]FM_MakeSignedData [10:12:55]FM_MakeSignedData [10:12:55]SAM_PROTO_SignData [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 0D 01 02 [10:12:55]Write to MH i2c: E2 08 00 63 25 80 0D 01 02 00 00 00 00 01 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 03 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [10:12:55]RAPDU: 90 00 [10:12:55]wFMCommunicate OK [10:12:55]wFMCommunicate request_size=255 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AA 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AA 3B 00 00 35 04 06 00 45 [10:12:55]Write to MH i2c: E2 02 01 64 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AA 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AA 3B 00 00 35 04 06 00 45 00 00 8C [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=10 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 02 02 05 B3 24 B0 C0 E2 [10:12:56]Write to MH i2c: E2 0D 00 65 25 80 0D 02 02 05 00 B3 24 B0 C0 E2 00 00 37 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 03 02 [10:12:56]Write to MH i2c: E2 08 00 66 25 80 0D 03 02 00 00 00 00 06 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0B 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0B 00 66 25 00 58 65 12 A3 03 01 B9 DD 90 00 13 [10:12:56]RAPDU: 58 65 12 A3 03 01 B9 DD 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_SignData done [10:12:56]FM_MakeSignedData done [10:12:56]CreateOFDProtocolMessage [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 11 00 00 [10:12:56]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 67 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 58 [10:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:12:56]wFMCommunicate OK [10:12:56]CreateOFDProtocolMessage done [10:12:56]OFDSenderStorePacket 15274 [10:12:56]StoreOFDPacket docnum=15274 [10:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 44 37 07 01 3F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AA 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AA 3B 00 00 35 04 06 00 45 B3 24 B0 C0 E2 58 65 12 A3 03 01 B9 DD [10:12:56]CheckFolder [10:12:56]dirname=/storage/ofd_packets [10:12:56]CheckFolder done [10:12:56]ProducePacketName [10:12:56]name=ofd_packets/00015274 [10:12:56]NVStorageSaveData ofd_packets/00015274 [10:12:56]File name is /storage/ofd_packets/00015274 [10:12:56]Write 301 bytes [10:12:56]NVStorageSaveData done [10:12:56]OFDSenderStorePacket done [10:12:56]KKMCreateOFDPacket done [10:12:56]NVStorageSaveData kkm_last_timestamp [10:12:56]File name is /storage/kkm_last_timestamp [10:12:56]Write 4 bytes [10:12:56]NVStorageSaveData done [10:12:56]ExternCall_PrintAddStr [10:12:56]wPrintStart [10:12:56]Write to MH i2c: 01 00 00 68 25 8D [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 07 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [10:12:56]RasterBufferAndPrint [10:12:56]line Счет N : (1)2078211 [10:12:56]line ИНН: 02508201610067 [10:12:56]line Контрольно-Кассовый Чек [10:12:56]line ПРОДАЖА [10:12:56]line ТРК (МРК, ГНК) : 32 [10:12:56]line Товар: 2710124500 [10:12:56]line Аи-95-К-5 [10:12:56]line 6.740 * 74.20 [10:12:56]line = 500.11 [10:12:56]line НДС 12% НСП 1% [10:12:56]line > о реализуемом товаре [10:12:56]line ИТОГО: 500.11 [10:12:56]line НСП 1% : 4.43 [10:12:56]line НДС 12% : 53.11 [10:12:56]line Наличными: 0.00 [10:12:56]line Безнал.: 500.11 [10:12:56]line Место: АЗС № 135 "Партнер Нефть" [10:12:56]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:12:56]line СНО: Общий режим [10:12:56]line Чек 68 23.08.2024 10:12 [10:12:56]line Смена: 102 ФФД: 1.0 [10:12:56]line ЗНМ: 0300000144 [10:12:56]line РНМ: 0000000000162784 [10:12:56]line Версия ККМ: v1.0 [10:12:56]line Платежная система: O! деньги [10:12:56]line ФМ: 0000000002094529 [10:12:56]line ФД: 15274 [10:12:56]line ФПД: 76635717026018 [10:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101258&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15274&fm=76635717026018&tin=02508201610067®Number=0000000000162784&sum=50011 [10:12:56]OFD Sender: Processing packet 15274 [packets to send 8, broken 7] [10:12:56]ProducePacketName [10:12:56]name=ofd_packets/00015274 [10:12:56]OFD Sender: To server: pG, [10:12:56]CommunicateWithHost lk.salyk.kg:30040 [10:12:56]ConnectInit lk.salyk.kg [10:12:56]written 0, free lines is 4095 [10:12:56]Connected sock=9 [10:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 44 37 07 01 3F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AA 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AA 3B 00 00 35 04 06 00 45 B3 24 B0 C0 E2 58 65 12 A3 03 01 B9 DD [10:12:57]Write to MH i2c: 01 00 00 92 25 B7 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 E5 0C AF [10:12:57]RasterBufferAndPrint [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]line [10:12:57]written 0, free lines is 3307 [10:12:57]MH_Cut [10:12:57]Write to MH i2c: D1 01 00 99 25 01 90 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 01 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: D1 01 00 99 25 00 8F [10:12:57]Write to MH i2c: 01 00 00 9A 25 BF [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 CD 9A 47 00 AA 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 32 30 39 34 35 32 39 10 04 04 00 AA 3B 00 00 F4 03 04 00 06 0B C8 66 B6 04 01 00 00 DF 55 61 5F C1 4C 03 43 [10:12:57]CommunicateWithHost err = 0 [10:12:57]CheckOFDResponse [10:12:57]1017 (14) - 77093643461234 [10:12:57]1041 (16) - 0000000002094529 [10:12:57]1040 (4) - 15274 [10:12:57]1012 (4) - 23.08.2024 04:07 [10:12:57]1206 (1) - 0 [10:12:57]OFD Sender: Remove packet 15274 [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00015274 [10:12:57]NVStorageDeleteData [10:12:57]OFD Sender: No OFD packet to send [10:12:57]*** Cut start [10:12:57]*** Partial cut [10:12:57]*** CUTSNS_PIN = 1 [10:12:57]*** CUTSNS_PIN = 0 [10:12:58]*** Brake cut motor [10:12:58]Read from MH i2c: 01 [10:12:58]MH_I2C_Read... [10:12:58]*** Stop cut motor [10:12:58]*** Cut end [10:12:58]Read from MH i2c: 01 07 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: 01 07 00 9A 25 00 00 00 00 00 FF 0F D4 [10:12:58]process_action close_receipt done [10:12:58]requested_data is exist [10:12:58]produce_requested_data [10:12:58]requested_item fm.sn is exist - process it [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 11 00 00 [10:12:58]Write to MH i2c: E2 08 00 9B 25 80 11 00 00 00 00 00 00 3A [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 17 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 17 00 9B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 8C [10:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:12:58]wFMCommunicate OK [10:12:58]requested_item fd.num is exist - process it [10:12:58]SAM_PROTO_GetFieldsCounters [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 13 00 00 [10:12:58]Write to MH i2c: E2 08 00 9C 25 80 13 00 00 00 00 00 00 3D [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 62 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 62 00 9C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [10:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_GetFieldsCounters done [10:12:58]requested_item shift.num is exist - process it [10:12:58]requested_item shift.opened is exist - process it [10:12:58]req_shift_opened [10:12:58]FM_GetShiftState [10:12:58]SAM_PROTO_GetShiftState [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 13 01 00 [10:12:58]Write to MH i2c: E2 08 00 9D 25 80 13 01 00 00 00 00 00 3F [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 9D 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 03 [10:12:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_GetShiftState done [10:12:58]FM_GetShiftState done [10:12:58]req_shift_opened done [10:12:58]requested_item shift.open_date is exist - process it [10:12:58]req_shift_open_date [10:12:58]req_shift_open_date done [10:12:58]produce_requested_data done [10:12:58]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15274,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:12:58]process_action_free close_receipt [10:12:58]json_value_free [10:12:58]json_value_free done [10:12:58]process_json_proto returns [10:12:58]Send response to host [10:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15274,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:12:58]free response buf [10:12:58]execute_script done [10:12:58]execute_script returns [10:12:58]free content buf [10:12:58]Sock 10.Close socket [10:12:58]Sock 10.Thread stoped [10:13:02]OFD Sender: No OFD packet to send [10:13:06]accept exits with 8 [10:13:06]New connection [10:13:06]New thread 3066801508 created [10:13:06]Thread 3066944868 joined [10:13:06]Waiting for new connection... [10:13:06] Sock 8.Parse request [10:13:06]Sock 8.Check first char [10:13:06]Sock 8.First char is OK [10:13:06]request: POST /json_proto HTTP/1.0 [10:13:06]Method: POST [10:13:06]URL: /json_proto [10:13:06]Method is POST - this is cgi request [10:13:06]url: /json_proto [10:13:06]query_string will be loaded in cgi processing [10:13:06]execute_cgi json_proto POST (null) [10:13:06]execute_cgi path=json_proto method=POST [10:13:06]POST find Content-Length [10:13:06]Host: 172.17.44.4:8080 [10:13:06]Content-Length: 793 [10:13:06]Content-Type: application/json [10:13:06] [10:13:06]POST finish read [10:13:06]Found Content-Length = 793 [10:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:06]execute_script... [10:13:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:06]POST & json_proto [10:13:06]process_json_proto [10:13:06]json parsed OK: [10:13:06]protocol is kg_v1.0 [10:13:06]action value=close_receipt [10:13:06]process_action close_receipt [10:13:06]cmd_close_receipt [10:13:06]MH_GetDate [10:13:06]Write to MH i2c: F0 00 00 9E 25 B2 [10:13:06]Write i2c OK [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 09 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 09 00 9E 25 00 B6 60 C8 66 0F 81 47 66 3C [10:13:06]GetLastDocTimeStamp 1724407978 [10:13:06]current date 1724407990 [10:13:06]FM_GetShiftState [10:13:06]SAM_PROTO_GetShiftState [10:13:06]wFMCommunicate request_size=4 [10:13:06]MH_SAM_APDU [10:13:06]CAPDU: 80 13 01 00 [10:13:06]Write to MH i2c: E2 08 00 9F 25 80 13 01 00 00 00 00 00 41 [10:13:06]Write i2c OK [10:13:06]MH_I2C_Read... [10:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:06]Read from MH i2c: E2 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 9F 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 05 [10:13:06]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:13:06]wFMCommunicate OK [10:13:06]SAM_PROTO_GetShiftState done [10:13:06]FM_GetShiftState done [10:13:06]opened in 1724372406 [10:13:06]opened+sec_in_day 1724458806 [10:13:06]quantity*price = 0 [10:13:06]sum+1 = 1 [10:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 69 23.08.2024 10:13 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15275 ФПД: 277242602439170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101310&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15275&fm=277242602439170&tin=02508201610067®Number=0000000000162784&sum=0 [10:13:07]StoreToDocumentArchive [10:13:07]shift 102 fd 15275 [10:13:07]save to /storage/0102/doc_00015275 [10:13:07]save last doc name /storage/0102/doc_00015275 to /storage/kkm_last_doc_name [10:13:07]save OK [10:13:07]Clear old archive folders... [10:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:07]tlvbuf is 004C4760 [10:13:07]SAM_PROTO_ClearQueue [10:13:07]wFMCommunicate request_size=4 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 09 00 00 [10:13:07]Write to MH i2c: E2 08 00 AC 25 80 09 00 00 00 00 00 00 43 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]SAM_PROTO_ClearQueue done [10:13:07]KKMCreateOFDPacket [10:13:07]OFDProtocolAddRootSTLVToBuf [10:13:07]FM_MakeSignedData [10:13:07]FM_MakeSignedData [10:13:07]SAM_PROTO_SignData [10:13:07]wFMCommunicate request_size=4 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 01 02 [10:13:07]Write to MH i2c: E2 08 00 AD 25 80 0D 01 02 00 00 00 00 4B [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]wFMCommunicate request_size=255 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B6 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AB 3B 00 00 35 04 06 00 FC [10:13:07]Write to MH i2c: E2 02 01 AE 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B6 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AB 3B 00 00 35 04 06 00 FC 00 00 95 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]OFD Sender: No OFD packet to send [10:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 AE 25 00 90 00 47 [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]wFMCommunicate request_size=10 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 02 02 05 26 92 D5 C2 02 [10:13:07]Write to MH i2c: E2 0D 00 AF 25 80 0D 02 02 05 00 26 92 D5 C2 02 00 00 A9 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]wFMCommunicate request_size=4 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 03 02 [10:13:07]Write to MH i2c: E2 08 00 B0 25 80 0D 03 02 00 00 00 00 50 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 0B 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 0B 00 B0 25 00 AD 4D 37 C4 5A 94 84 7B 90 00 33 [10:13:08]RAPDU: AD 4D 37 C4 5A 94 84 7B 90 00 [10:13:08]wFMCommunicate OK [10:13:08]SAM_PROTO_SignData done [10:13:08]FM_MakeSignedData done [10:13:08]CreateOFDProtocolMessage [10:13:08]wFMCommunicate request_size=4 [10:13:08]MH_SAM_APDU [10:13:08]CAPDU: 80 11 00 00 [10:13:08]Write to MH i2c: E2 08 00 B1 25 80 11 00 00 00 00 00 00 50 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 17 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 17 00 B1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A2 [10:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:13:08]wFMCommunicate OK [10:13:08]CreateOFDProtocolMessage done [10:13:08]OFDSenderStorePacket 15275 [10:13:08]StoreOFDPacket docnum=15275 [10:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 9A 97 07 01 9A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B6 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AB 3B 00 00 35 04 06 00 FC 26 92 D5 C2 02 AD 4D 37 C4 5A 94 84 7B [10:13:08]CheckFolder [10:13:08]dirname=/storage/ofd_packets [10:13:08]CheckFolder done [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00015275 [10:13:08]NVStorageSaveData ofd_packets/00015275 [10:13:08]File name is /storage/ofd_packets/00015275 [10:13:08]Write 301 bytes [10:13:08]NVStorageSaveData done [10:13:08]OFDSenderStorePacket done [10:13:08]KKMCreateOFDPacket done [10:13:08]NVStorageSaveData kkm_last_timestamp [10:13:08]File name is /storage/kkm_last_timestamp [10:13:08]Write 4 bytes [10:13:08]NVStorageSaveData done [10:13:08]ExternCall_PrintAddStr [10:13:08]wPrintStart [10:13:08]Write to MH i2c: 01 00 00 B2 25 D7 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 B2 25 00 00 00 00 00 FF 0F EC [10:13:08]RasterBufferAndPrint [10:13:08]line Счет N : (1)2078212 [10:13:08]line ИНН: 02508201610067 [10:13:08]line Контрольно-Кассовый Чек [10:13:08]line ПРОДАЖА [10:13:08]line ТРК (МРК, ГНК) : 63 [10:13:08]line Товар: 2710124130 [10:13:08]line Аи-92-К-4 [10:13:08]line 20.000 * 0.00 [10:13:08]line = 0.00 [10:13:08]line НДС 12% НСП 1% [10:13:08]line > о реализуемом товаре [10:13:08]line ИТОГО: 0.00 [10:13:08]line НСП 1% : 0.00 [10:13:08]line НДС 12% : 0.00 [10:13:08]line Наличными: 0.00 [10:13:08]line Безнал.: 0.00 [10:13:08]line Место: АЗС № 135 "Партнер Нефть" [10:13:08]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:13:08]line СНО: Общий режим [10:13:08]line Чек 69 23.08.2024 10:13 [10:13:08]line Смена: 102 ФФД: 1.0 [10:13:08]line ЗНМ: 0300000144 [10:13:08]line РНМ: 0000000000162784 [10:13:08]line Версия ККМ: v1.0 [10:13:08]line Талоны: Топливная Карта [10:13:08]line 92875 [10:13:08]line ФМ: 0000000002094529 [10:13:08]line ФД: 15275 [10:13:08]line ФПД: 277242602439170 [10:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101310&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15275&fm=277242602439170&tin=02508201610067®Number=0000000000162784&sum=0 [10:13:08]written 0, free lines is 4095 [10:13:08]OFD Sender: Processing packet 15275 [packets to send 8, broken 7] [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00015275 [10:13:08]OFD Sender: To server: pG, [10:13:08]CommunicateWithHost lk.salyk.kg:30040 [10:13:08]ConnectInit lk.salyk.kg [10:13:08]Connected sock=10 [10:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 9A 97 07 01 9A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B6 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AB 3B 00 00 35 04 06 00 FC 26 92 D5 C2 02 AD 4D 37 C4 5A 94 84 7B [10:13:08]Write to MH i2c: 01 00 00 DC 25 01 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 F1 0C 05 [10:13:08]RasterBufferAndPrint [10:13:08]line [10:13:08]line [10:13:08]line [10:13:08]line [10:13:08]line [10:13:08]written 0, free lines is 3325 [10:13:08]MH_Cut [10:13:08]Write to MH i2c: D1 01 00 E3 25 01 DA [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: D1 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: D1 01 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: D1 01 00 E3 25 00 D9 [10:13:08]Write to MH i2c: 01 00 00 E4 25 09 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 98 7E 47 00 77 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 32 30 39 34 35 32 39 10 04 04 00 AB 3B 00 00 F4 03 04 00 11 0B C8 66 B6 04 01 00 00 4B 90 89 49 96 7B AC E3 [10:13:08]CommunicateWithHost err = 0 [10:13:08]CheckOFDResponse [10:13:08]1017 (14) - 77093643461234 [10:13:08]1041 (16) - 0000000002094529 [10:13:08]1040 (4) - 15275 [10:13:08]1012 (4) - 23.08.2024 04:07 [10:13:08]1206 (1) - 0 [10:13:08]OFD Sender: Remove packet 15275 [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00015275 [10:13:08]NVStorageDeleteData [10:13:09]OFD Sender: No OFD packet to send [10:13:09]*** Cut start [10:13:09]*** Partial cut [10:13:09]*** CUTSNS_PIN = 1 [10:13:09]*** CUTSNS_PIN = 0 [10:13:09]*** Brake cut motor [10:13:09]Read from MH i2c: 01 [10:13:09]MH_I2C_Read... [10:13:09]*** Stop cut motor [10:13:09]*** Cut end [10:13:09]Read from MH i2c: 01 07 00 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: 01 07 00 E4 25 00 00 00 00 00 FF 0F 1E [10:13:09]process_action close_receipt done [10:13:09]requested_data is exist [10:13:09]produce_requested_data [10:13:09]requested_item fm.sn is exist - process it [10:13:09]wFMCommunicate request_size=4 [10:13:09]MH_SAM_APDU [10:13:09]CAPDU: 80 11 00 00 [10:13:09]Write to MH i2c: E2 08 00 E5 25 80 11 00 00 00 00 00 00 84 [10:13:09]Write i2c OK [10:13:09]MH_I2C_Read... [10:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:09]Read from MH i2c: E2 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: E2 17 00 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: E2 17 00 E5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D6 [10:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:13:09]wFMCommunicate OK [10:13:09]requested_item fd.num is exist - process it [10:13:09]SAM_PROTO_GetFieldsCounters [10:13:09]wFMCommunicate request_size=4 [10:13:09]MH_SAM_APDU [10:13:09]CAPDU: 80 13 00 00 [10:13:09]Write to MH i2c: E2 08 00 E6 25 80 13 00 00 00 00 00 00 87 [10:13:09]Write i2c OK [10:13:09]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 62 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 62 00 E6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [10:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:10]wFMCommunicate OK [10:13:10]SAM_PROTO_GetFieldsCounters done [10:13:10]requested_item shift.num is exist - process it [10:13:10]requested_item shift.opened is exist - process it [10:13:10]req_shift_opened [10:13:10]FM_GetShiftState [10:13:10]SAM_PROTO_GetShiftState [10:13:10]wFMCommunicate request_size=4 [10:13:10]MH_SAM_APDU [10:13:10]CAPDU: 80 13 01 00 [10:13:10]Write to MH i2c: E2 08 00 E7 25 80 13 01 00 00 00 00 00 89 [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 E7 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 4D [10:13:10]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:13:10]wFMCommunicate OK [10:13:10]SAM_PROTO_GetShiftState done [10:13:10]FM_GetShiftState done [10:13:10]req_shift_opened done [10:13:10]requested_item shift.open_date is exist - process it [10:13:10]req_shift_open_date [10:13:10]req_shift_open_date done [10:13:10]produce_requested_data done [10:13:10]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15275,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:13:10]process_action_free close_receipt [10:13:10]json_value_free [10:13:10]json_value_free done [10:13:10]process_json_proto returns [10:13:10]Send response to host [10:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15275,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:13:10]free response buf [10:13:10]execute_script done [10:13:10]execute_script returns [10:13:10]free content buf [10:13:10]Sock 8.Close socket [10:13:10]Sock 8.Thread stoped [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:03]accept exits with 9 [10:14:03]New connection [10:14:03]New thread 3066944868 created [10:14:03]Thread 3066801508 joined [10:14:03]Waiting for new connection... [10:14:03] Sock 9.Parse request [10:14:03]Sock 9.Check first char [10:14:03]Sock 9.First char is OK [10:14:03]request: POST /json_proto HTTP/1.0 [10:14:03]Method: POST [10:14:03]URL: /json_proto [10:14:03]Method is POST - this is cgi request [10:14:03]url: /json_proto [10:14:03]query_string will be loaded in cgi processing [10:14:03]execute_cgi json_proto POST (null) [10:14:03]execute_cgi path=json_proto method=POST [10:14:03]POST find Content-Length [10:14:03]Host: 172.17.44.4:8080 [10:14:03]Content-Length: 790 [10:14:03]Content-Type: application/json [10:14:03] [10:14:03]POST finish read [10:14:03]Found Content-Length = 790 [10:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:03]execute_script... [10:14:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:03]POST & json_proto [10:14:03]process_json_proto [10:14:03]json parsed OK: [10:14:03]protocol is kg_v1.0 [10:14:03]action value=close_receipt [10:14:03]process_action close_receipt [10:14:03]cmd_close_receipt [10:14:03]MH_GetDate [10:14:03]Write to MH i2c: F0 00 00 E8 25 FC [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: F0 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: F0 09 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: F0 09 00 E8 25 00 EF 60 C8 66 0F 81 47 66 BF [10:14:03]GetLastDocTimeStamp 1724407990 [10:14:03]current date 1724408047 [10:14:03]FM_GetShiftState [10:14:03]SAM_PROTO_GetShiftState [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 13 01 00 [10:14:03]Write to MH i2c: E2 08 00 E9 25 80 13 01 00 00 00 00 00 8B [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0E 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0E 00 E9 25 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 4F [10:14:03]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:14:03]wFMCommunicate OK [10:14:03]SAM_PROTO_GetShiftState done [10:14:03]FM_GetShiftState done [10:14:03]opened in 1724372406 [10:14:03]opened+sec_in_day 1724458806 [10:14:03]quantity*price = 0 [10:14:03]sum+1 = 1 [10:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 70 23.08.2024 10:14 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15276 ФПД: 37364741405973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101407&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15276&fm=37364741405973&tin=02508201610067®Number=0000000000162784&sum=0 [10:14:04]StoreToDocumentArchive [10:14:04]shift 102 fd 15276 [10:14:04]save to /storage/0102/doc_00015276 [10:14:04]save last doc name /storage/0102/doc_00015276 to /storage/kkm_last_doc_name [10:14:04]save OK [10:14:04]Clear old archive folders... [10:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:04]tlvbuf is B6F53800 [10:14:04]SAM_PROTO_ClearQueue [10:14:04]wFMCommunicate request_size=4 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 09 00 00 [10:14:04]Write to MH i2c: E2 08 00 F6 25 80 09 00 00 00 00 00 00 8D [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 F6 25 00 90 00 8F [10:14:04]RAPDU: 90 00 [10:14:04]wFMCommunicate OK [10:14:04]SAM_PROTO_ClearQueue done [10:14:04]KKMCreateOFDPacket [10:14:04]OFDProtocolAddRootSTLVToBuf [10:14:04]FM_MakeSignedData [10:14:04]FM_MakeSignedData [10:14:04]SAM_PROTO_SignData [10:14:04]wFMCommunicate request_size=4 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 0D 01 02 [10:14:04]Write to MH i2c: E2 08 00 F7 25 80 0D 01 02 00 00 00 00 95 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 F7 25 00 90 00 90 [10:14:04]RAPDU: 90 00 [10:14:04]wFMCommunicate OK [10:14:04]wFMCommunicate request_size=255 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EF 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AC 3B 00 00 35 04 06 00 21 FB A8 23 [10:14:04]Write to MH i2c: E2 02 01 F8 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EF 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AC 3B 00 00 35 04 06 00 21 FB A8 23 00 00 22 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [10:14:04]RAPDU: 90 00 [10:14:04]wFMCommunicate OK [10:14:04]wFMCommunicate request_size=7 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 0D 02 02 02 7D 15 [10:14:04]Write to MH i2c: E2 0A 00 F9 25 80 0D 02 02 02 00 7D 15 00 00 2E [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [10:14:04]RAPDU: 90 00 [10:14:04]wFMCommunicate OK [10:14:04]wFMCommunicate request_size=4 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 0D 03 02 [10:14:04]Write to MH i2c: E2 08 00 FA 25 80 0D 03 02 00 00 00 00 9A [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 0B 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 0B 00 FA 25 00 54 3D F0 37 D2 0D 48 9A 90 00 14 [10:14:04]RAPDU: 54 3D F0 37 D2 0D 48 9A 90 00 [10:14:04]wFMCommunicate OK [10:14:04]SAM_PROTO_SignData done [10:14:04]FM_MakeSignedData done [10:14:04]CreateOFDProtocolMessage [10:14:04]wFMCommunicate request_size=4 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 11 00 00 [10:14:04]Write to MH i2c: E2 08 00 FB 25 80 11 00 00 00 00 00 00 9A [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 17 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 17 00 FB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 EC [10:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:14:04]wFMCommunicate OK [10:14:04]CreateOFDProtocolMessage done [10:14:04]OFDSenderStorePacket 15276 [10:14:04]StoreOFDPacket docnum=15276 [10:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 C5 A2 04 01 63 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EF 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AC 3B 00 00 35 04 06 00 21 FB A8 23 7D 15 54 3D F0 37 D2 0D 48 9A [10:14:04]CheckFolder [10:14:04]dirname=/storage/ofd_packets [10:14:04]CheckFolder done [10:14:04]ProducePacketName [10:14:04]name=ofd_packets/00015276 [10:14:04]NVStorageSaveData ofd_packets/00015276 [10:14:04]File name is /storage/ofd_packets/00015276 [10:14:04]Write 298 bytes [10:14:04]NVStorageSaveData done [10:14:04]OFDSenderStorePacket done [10:14:04]KKMCreateOFDPacket done [10:14:04]NVStorageSaveData kkm_last_timestamp [10:14:04]File name is /storage/kkm_last_timestamp [10:14:04]Write 4 bytes [10:14:04]NVStorageSaveData done [10:14:04]ExternCall_PrintAddStr [10:14:04]wPrintStart [10:14:04]Write to MH i2c: 01 00 00 FC 25 21 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 07 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: 01 07 00 FC 25 00 00 00 00 00 FF 0F 36 [10:14:04]RasterBufferAndPrint [10:14:04]line Счет N : (1)2078213 [10:14:04]line ИНН: 02508201610067 [10:14:04]line Контрольно-Кассовый Чек [10:14:04]line ПРОДАЖА [10:14:04]line ТРК (МРК, ГНК) : 21 [10:14:04]line Товар: 2710194210 [10:14:04]line ДТ-К-5 [10:14:04]line 10.000 * 0.00 [10:14:04]line = 0.00 [10:14:04]line НДС 12% НСП 1% [10:14:04]line > о реализуемом товаре [10:14:04]line ИТОГО: 0.00 [10:14:04]line НСП 1% : 0.00 [10:14:04]line НДС 12% : 0.00 [10:14:04]line Наличными: 0.00 [10:14:04]line Безнал.: 0.00 [10:14:04]line Место: АЗС № 135 "Партнер Нефть" [10:14:04]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:14:04]line СНО: Общий режим [10:14:04]line Чек 70 23.08.2024 10:14 [10:14:04]line Смена: 102 ФФД: 1.0 [10:14:04]line ЗНМ: 0300000144 [10:14:04]line РНМ: 0000000000162784 [10:14:04]line Версия ККМ: v1.0 [10:14:04]line Талоны: Топливная Карта [10:14:04]line 92875 [10:14:04]line ФМ: 0000000002094529 [10:14:04]line ФД: 15276 [10:14:04]line ФПД: 37364741405973 [10:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101407&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15276&fm=37364741405973&tin=02508201610067®Number=0000000000162784&sum=0 [10:14:05]OFD Sender: Processing packet 15276 [packets to send 8, broken 7] [10:14:05]ProducePacketName [10:14:05]name=ofd_packets/00015276 [10:14:05]OFD Sender: To server: pG, [10:14:05]CommunicateWithHost lk.salyk.kg:30040 [10:14:05]ConnectInit lk.salyk.kg [10:14:05]written 0, free lines is 4095 [10:14:05]Connected sock=11 [10:14:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 C5 A2 04 01 63 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EF 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AC 3B 00 00 35 04 06 00 21 FB A8 23 7D 15 54 3D F0 37 D2 0D 48 9A [10:14:05]Write to MH i2c: 01 00 00 26 26 4C [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: 01 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: 01 07 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 E9 0C 48 [10:14:05]RasterBufferAndPrint [10:14:05]line [10:14:05]line [10:14:05]line [10:14:05]line [10:14:05]line [10:14:05]written 0, free lines is 3312 [10:14:05]MH_Cut [10:14:05]Write to MH i2c: D1 01 00 2D 26 01 25 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: D1 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: D1 01 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: D1 01 00 2D 26 00 24 [10:14:05]Write to MH i2c: 01 00 00 2E 26 54 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 63 A4 47 00 C9 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AC 3B 00 00 F4 03 04 00 4B 0B C8 66 B6 04 01 00 00 CA 44 49 DB 4B 53 EB D8 [10:14:05]CommunicateWithHost err = 0 [10:14:05]CheckOFDResponse [10:14:05]1017 (14) - 77093643461234 [10:14:05]1041 (16) - 0000000002094529 [10:14:05]1040 (4) - 15276 [10:14:05]1012 (4) - 23.08.2024 04:08 [10:14:05]1206 (1) - 0 [10:14:05]OFD Sender: Remove packet 15276 [10:14:05]ProducePacketName [10:14:05]name=ofd_packets/00015276 [10:14:05]NVStorageDeleteData [10:14:06]OFD Sender: No OFD packet to send [10:14:06]*** Cut start [10:14:06]*** Partial cut [10:14:06]*** CUTSNS_PIN = 1 [10:14:06]*** CUTSNS_PIN = 0 [10:14:06]*** Brake cut motor [10:14:07]Read from MH i2c: 01 [10:14:07]MH_I2C_Read... [10:14:07]*** Stop cut motor [10:14:07]*** Cut end [10:14:07]Read from MH i2c: 01 07 00 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: 01 07 00 2E 26 00 00 00 00 00 FF 0F 69 [10:14:07]process_action close_receipt done [10:14:07]requested_data is exist [10:14:07]produce_requested_data [10:14:07]requested_item fm.sn is exist - process it [10:14:07]wFMCommunicate request_size=4 [10:14:07]MH_SAM_APDU [10:14:07]CAPDU: 80 11 00 00 [10:14:07]Write to MH i2c: E2 08 00 2F 26 80 11 00 00 00 00 00 00 CF [10:14:07]Write i2c OK [10:14:07]MH_I2C_Read... [10:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:07]Read from MH i2c: E2 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 17 00 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 17 00 2F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 21 [10:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:14:07]wFMCommunicate OK [10:14:07]requested_item fd.num is exist - process it [10:14:07]SAM_PROTO_GetFieldsCounters [10:14:07]wFMCommunicate request_size=4 [10:14:07]MH_SAM_APDU [10:14:07]CAPDU: 80 13 00 00 [10:14:07]Write to MH i2c: E2 08 00 30 26 80 13 00 00 00 00 00 00 D2 [10:14:07]Write i2c OK [10:14:07]MH_I2C_Read... [10:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:07]Read from MH i2c: E2 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 62 00 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 62 00 30 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [10:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:07]wFMCommunicate OK [10:14:07]SAM_PROTO_GetFieldsCounters done [10:14:07]requested_item shift.num is exist - process it [10:14:07]requested_item shift.opened is exist - process it [10:14:07]req_shift_opened [10:14:07]FM_GetShiftState [10:14:07]SAM_PROTO_GetShiftState [10:14:07]wFMCommunicate request_size=4 [10:14:07]MH_SAM_APDU [10:14:07]CAPDU: 80 13 01 00 [10:14:07]Write to MH i2c: E2 08 00 31 26 80 13 01 00 00 00 00 00 D4 [10:14:07]Write i2c OK [10:14:07]MH_I2C_Read... [10:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:07]Read from MH i2c: E2 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 0E 00 [10:14:07]MH_I2C_Read... [10:14:07]Read from MH i2c: E2 0E 00 31 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 98 [10:14:07]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:14:07]wFMCommunicate OK [10:14:07]SAM_PROTO_GetShiftState done [10:14:07]FM_GetShiftState done [10:14:07]req_shift_opened done [10:14:07]requested_item shift.open_date is exist - process it [10:14:07]req_shift_open_date [10:14:07]req_shift_open_date done [10:14:07]produce_requested_data done [10:14:07]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15276,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:14:07]process_action_free close_receipt [10:14:07]json_value_free [10:14:07]json_value_free done [10:14:07]process_json_proto returns [10:14:07]Send response to host [10:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15276,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:14:07]free response buf [10:14:07]execute_script done [10:14:07]execute_script returns [10:14:07]free content buf [10:14:07]Sock 9.Close socket [10:14:07]Sock 9.Thread stoped [10:14:11]OFD Sender: No OFD packet to send [10:14:13]accept exits with 8 [10:14:13]New connection [10:14:13]New thread 3066801508 created [10:14:13]Thread 3066944868 joined [10:14:13]Waiting for new connection... [10:14:13] Sock 8.Parse request [10:14:13]Sock 8.Check first char [10:14:13]Sock 8.First char is OK [10:14:13]request: POST /json_proto HTTP/1.0 [10:14:13]Method: POST [10:14:13]URL: /json_proto [10:14:13]Method is POST - this is cgi request [10:14:13]url: /json_proto [10:14:13]query_string will be loaded in cgi processing [10:14:13]execute_cgi json_proto POST (null) [10:14:13]execute_cgi path=json_proto method=POST [10:14:13]POST find Content-Length [10:14:13]Host: 172.17.44.4:8080 [10:14:13]Content-Length: 792 [10:14:13]Content-Type: application/json [10:14:13] [10:14:13]POST finish read [10:14:13]Found Content-Length = 792 [10:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:13]execute_script... [10:14:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:13]POST & json_proto [10:14:13]process_json_proto [10:14:13]json parsed OK: [10:14:13]protocol is kg_v1.0 [10:14:13]action value=close_receipt [10:14:13]process_action close_receipt [10:14:13]cmd_close_receipt [10:14:13]MH_GetDate [10:14:13]Write to MH i2c: F0 00 00 32 26 47 [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: F0 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: F0 09 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: F0 09 00 32 26 00 F9 60 C8 66 0F 81 47 66 14 [10:14:13]GetLastDocTimeStamp 1724408047 [10:14:13]current date 1724408057 [10:14:13]FM_GetShiftState [10:14:13]SAM_PROTO_GetShiftState [10:14:13]wFMCommunicate request_size=4 [10:14:13]MH_SAM_APDU [10:14:13]CAPDU: 80 13 01 00 [10:14:13]Write to MH i2c: E2 08 00 33 26 80 13 01 00 00 00 00 00 D6 [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:13]Read from MH i2c: E2 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 0E 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 0E 00 33 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 9A [10:14:13]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:14:13]wFMCommunicate OK [10:14:13]SAM_PROTO_GetShiftState done [10:14:13]FM_GetShiftState done [10:14:13]opened in 1724372406 [10:14:13]opened+sec_in_day 1724458806 [10:14:13]quantity*price = 0 [10:14:13]sum+1 = 1 [10:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 71 23.08.2024 10:14 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15277 ФПД: 93914762492677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101417&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15277&fm=93914762492677&tin=02508201610067®Number=0000000000162784&sum=0 [10:14:14]StoreToDocumentArchive [10:14:14]shift 102 fd 15277 [10:14:14]save to /storage/0102/doc_00015277 [10:14:14]save last doc name /storage/0102/doc_00015277 to /storage/kkm_last_doc_name [10:14:14]save OK [10:14:14]Clear old archive folders... [10:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:14]tlvbuf is 004C46A0 [10:14:14]SAM_PROTO_ClearQueue [10:14:14]wFMCommunicate request_size=4 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 09 00 00 [10:14:14]Write to MH i2c: E2 08 00 40 26 80 09 00 00 00 00 00 00 D8 [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:14]Read from MH i2c: E2 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 03 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 03 00 40 26 00 90 00 DA [10:14:14]RAPDU: 90 00 [10:14:14]wFMCommunicate OK [10:14:14]SAM_PROTO_ClearQueue done [10:14:14]KKMCreateOFDPacket [10:14:14]OFDProtocolAddRootSTLVToBuf [10:14:14]FM_MakeSignedData [10:14:14]FM_MakeSignedData [10:14:14]SAM_PROTO_SignData [10:14:14]wFMCommunicate request_size=4 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 0D 01 02 [10:14:14]Write to MH i2c: E2 08 00 41 26 80 0D 01 02 00 00 00 00 E0 [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:14]Read from MH i2c: E2 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 03 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 03 00 41 26 00 90 00 DB [10:14:14]RAPDU: 90 00 [10:14:14]wFMCommunicate OK [10:14:14]wFMCommunicate request_size=255 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F9 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AD 3B 00 00 35 04 06 00 55 [10:14:14]Write to MH i2c: E2 02 01 42 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F9 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AD 3B 00 00 35 04 06 00 55 00 00 F7 [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 42 26 00 90 00 DC [10:14:15]RAPDU: 90 00 [10:14:15]wFMCommunicate OK [10:14:15]wFMCommunicate request_size=10 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 0D 02 02 05 6A 3C 0E BB 05 [10:14:15]Write to MH i2c: E2 0D 00 43 26 80 0D 02 02 05 00 6A 3C 0E BB 05 00 00 61 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 43 26 00 90 00 DD [10:14:15]RAPDU: 90 00 [10:14:15]wFMCommunicate OK [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 0D 03 02 [10:14:15]Write to MH i2c: E2 08 00 44 26 80 0D 03 02 00 00 00 00 E5 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0B 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0B 00 44 26 00 86 01 50 9F 3F 51 25 B6 90 00 C7 [10:14:15]RAPDU: 86 01 50 9F 3F 51 25 B6 90 00 [10:14:15]wFMCommunicate OK [10:14:15]SAM_PROTO_SignData done [10:14:15]FM_MakeSignedData done [10:14:15]CreateOFDProtocolMessage [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 11 00 00 [10:14:15]Write to MH i2c: E2 08 00 45 26 80 11 00 00 00 00 00 00 E5 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 17 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 17 00 45 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 37 [10:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:14:15]wFMCommunicate OK [10:14:15]CreateOFDProtocolMessage done [10:14:15]OFDSenderStorePacket 15277 [10:14:15]StoreOFDPacket docnum=15277 [10:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 37 69 07 01 AF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F9 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AD 3B 00 00 35 04 06 00 55 6A 3C 0E BB 05 86 01 50 9F 3F 51 25 B6 [10:14:15]CheckFolder [10:14:15]dirname=/storage/ofd_packets [10:14:15]CheckFolder done [10:14:15]ProducePacketName [10:14:15]name=ofd_packets/00015277 [10:14:15]NVStorageSaveData ofd_packets/00015277 [10:14:15]File name is /storage/ofd_packets/00015277 [10:14:15]Write 301 bytes [10:14:15]NVStorageSaveData done [10:14:15]OFDSenderStorePacket done [10:14:15]KKMCreateOFDPacket done [10:14:15]NVStorageSaveData kkm_last_timestamp [10:14:15]File name is /storage/kkm_last_timestamp [10:14:15]Write 4 bytes [10:14:15]NVStorageSaveData done [10:14:15]ExternCall_PrintAddStr [10:14:15]wPrintStart [10:14:15]Write to MH i2c: 01 00 00 46 26 6C [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 07 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 07 00 46 26 00 00 00 00 00 FF 0F 81 [10:14:15]RasterBufferAndPrint [10:14:15]line Счет N : (1)2078214 [10:14:15]line ИНН: 02508201610067 [10:14:15]line Контрольно-Кассовый Чек [10:14:15]line ПРОДАЖА [10:14:15]line ТРК (МРК, ГНК) : 63 [10:14:15]line Товар: 2710124130 [10:14:15]line Аи-92-К-4 [10:14:15]line 5.000 * 0.00 [10:14:15]line = 0.00 [10:14:15]line НДС 12% НСП 1% [10:14:15]line > о реализуемом товаре [10:14:15]line ИТОГО: 0.00 [10:14:15]line НСП 1% : 0.00 [10:14:15]line НДС 12% : 0.00 [10:14:15]line Наличными: 0.00 [10:14:15]line Безнал.: 0.00 [10:14:15]line Место: АЗС № 135 "Партнер Нефть" [10:14:15]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:14:15]line СНО: Общий режим [10:14:15]line Чек 71 23.08.2024 10:14 [10:14:15]line Смена: 102 ФФД: 1.0 [10:14:15]line ЗНМ: 0300000144 [10:14:15]line РНМ: 0000000000162784 [10:14:15]line Версия ККМ: v1.0 [10:14:15]line Талоны: Топливная Карта [10:14:15]line 92875 [10:14:15]line ФМ: 0000000002094529 [10:14:15]line ФД: 15277 [10:14:15]line ФПД: 93914762492677 [10:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101417&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15277&fm=93914762492677&tin=02508201610067®Number=0000000000162784&sum=0 [10:14:15]written 0, free lines is 4095 [10:14:15]OFD Sender: Processing packet 15277 [packets to send 8, broken 7] [10:14:15]ProducePacketName [10:14:15]name=ofd_packets/00015277 [10:14:15]OFD Sender: To server: pG, [10:14:15]CommunicateWithHost lk.salyk.kg:30040 [10:14:15]ConnectInit lk.salyk.kg [10:14:15]Connected sock=10 [10:14:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 37 69 07 01 AF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F9 60 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AD 3B 00 00 35 04 06 00 55 6A 3C 0E BB 05 86 01 50 9F 3F 51 25 B6 [10:14:15]Write to MH i2c: 01 00 00 70 26 96 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 07 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 F9 0C A2 [10:14:15]RasterBufferAndPrint [10:14:15]line [10:14:15]line [10:14:15]line [10:14:15]line [10:14:15]line [10:14:15]written 0, free lines is 3333 [10:14:15]MH_Cut [10:14:15]Write to MH i2c: D1 01 00 77 26 01 6F [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: D1 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: D1 01 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: D1 01 00 77 26 00 6E [10:14:15]Write to MH i2c: 01 00 00 78 26 9E [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 73 63 47 00 16 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AD 3B 00 00 F4 03 04 00 55 0B C8 66 B6 04 01 00 00 70 E6 98 19 AB C2 3F 89 [10:14:15]CommunicateWithHost err = 0 [10:14:15]CheckOFDResponse [10:14:15]1017 (14) - 77093643461234 [10:14:15]1041 (16) - 0000000002094529 [10:14:15]1040 (4) - 15277 [10:14:15]1012 (4) - 23.08.2024 04:08 [10:14:15]1206 (1) - 0 [10:14:15]OFD Sender: Remove packet 15277 [10:14:15]ProducePacketName [10:14:15]name=ofd_packets/00015277 [10:14:15]NVStorageDeleteData [10:14:16]OFD Sender: No OFD packet to send [10:14:16]*** Cut start [10:14:16]*** Partial cut [10:14:16]*** CUTSNS_PIN = 1 [10:14:16]*** CUTSNS_PIN = 0 [10:14:16]*** Brake cut motor [10:14:17]Read from MH i2c: 01 [10:14:17]MH_I2C_Read... [10:14:17]*** Stop cut motor [10:14:17]*** Cut end [10:14:17]Read from MH i2c: 01 07 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 FF 0F B3 [10:14:17]process_action close_receipt done [10:14:17]requested_data is exist [10:14:17]produce_requested_data [10:14:17]requested_item fm.sn is exist - process it [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 11 00 00 [10:14:17]Write to MH i2c: E2 08 00 79 26 80 11 00 00 00 00 00 00 19 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 17 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 17 00 79 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 6B [10:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:14:17]wFMCommunicate OK [10:14:17]requested_item fd.num is exist - process it [10:14:17]SAM_PROTO_GetFieldsCounters [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 13 00 00 [10:14:17]Write to MH i2c: E2 08 00 7A 26 80 13 00 00 00 00 00 00 1C [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 62 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 62 00 7A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [10:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_GetFieldsCounters done [10:14:17]requested_item shift.num is exist - process it [10:14:17]requested_item shift.opened is exist - process it [10:14:17]req_shift_opened [10:14:17]FM_GetShiftState [10:14:17]SAM_PROTO_GetShiftState [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 13 01 00 [10:14:17]Write to MH i2c: E2 08 00 7B 26 80 13 01 00 00 00 00 00 1E [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0E 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0E 00 7B 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E2 [10:14:17]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_GetShiftState done [10:14:17]FM_GetShiftState done [10:14:17]req_shift_opened done [10:14:17]requested_item shift.open_date is exist - process it [10:14:17]req_shift_open_date [10:14:17]req_shift_open_date done [10:14:17]produce_requested_data done [10:14:17]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15277,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:14:17]process_action_free close_receipt [10:14:17]json_value_free [10:14:17]json_value_free done [10:14:17]process_json_proto returns [10:14:17]Send response to host [10:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15277,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:14:17]free response buf [10:14:17]execute_script done [10:14:17]execute_script returns [10:14:17]free content buf [10:14:17]Sock 8.Close socket [10:14:17]Sock 8.Thread stoped [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:22]accept exits with 9 [10:15:22]New connection [10:15:22]New thread 3066944868 created [10:15:22]Thread 3066801508 joined [10:15:22]Waiting for new connection... [10:15:22] Sock 9.Parse request [10:15:22]Sock 9.Check first char [10:15:22]Sock 9.First char is OK [10:15:22]request: POST /json_proto HTTP/1.0 [10:15:22]Method: POST [10:15:22]URL: /json_proto [10:15:22]Method is POST - this is cgi request [10:15:22]url: /json_proto [10:15:22]query_string will be loaded in cgi processing [10:15:22]execute_cgi json_proto POST (null) [10:15:22]execute_cgi path=json_proto method=POST [10:15:22]POST find Content-Length [10:15:22]Host: 172.17.44.4:8080 [10:15:22]Content-Length: 755 [10:15:22]Content-Type: application/json [10:15:22] [10:15:22]POST finish read [10:15:22]Found Content-Length = 755 [10:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103677", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:22]execute_script... [10:15:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103677", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:22]POST & json_proto [10:15:22]process_json_proto [10:15:22]json parsed OK: [10:15:22]protocol is kg_v1.0 [10:15:22]action value=close_receipt [10:15:22]process_action close_receipt [10:15:22]cmd_close_receipt [10:15:22]MH_GetDate [10:15:22]Write to MH i2c: F0 00 00 7C 26 91 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: F0 09 00 7C 26 00 3E 61 C8 66 0F 81 47 66 A4 [10:15:22]GetLastDocTimeStamp 1724408057 [10:15:22]current date 1724408126 [10:15:22]FM_GetShiftState [10:15:22]SAM_PROTO_GetShiftState [10:15:22]wFMCommunicate request_size=4 [10:15:22]MH_SAM_APDU [10:15:22]CAPDU: 80 13 01 00 [10:15:22]Write to MH i2c: E2 08 00 7D 26 80 13 01 00 00 00 00 00 20 [10:15:22]Write i2c OK [10:15:22]MH_I2C_Read... [10:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:22]Read from MH i2c: E2 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 0E 00 [10:15:22]MH_I2C_Read... [10:15:22]Read from MH i2c: E2 0E 00 7D 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E4 [10:15:22]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:15:22]wFMCommunicate OK [10:15:22]SAM_PROTO_GetShiftState done [10:15:22]FM_GetShiftState done [10:15:22]opened in 1724372406 [10:15:22]opened+sec_in_day 1724458806 [10:15:22]quantity*price = 0 [10:15:22]sum+1 = 1 [10:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 72 23.08.2024 10:15 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30103677 ФМ: 0000000002094529 ФД: 15278 ФПД: 232494287989253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101526&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15278&fm=232494287989253&tin=02508201610067®Number=0000000000162784&sum=0 [10:15:23]StoreToDocumentArchive [10:15:23]shift 102 fd 15278 [10:15:23]save to /storage/0102/doc_00015278 [10:15:23]save last doc name /storage/0102/doc_00015278 to /storage/kkm_last_doc_name [10:15:23]save OK [10:15:23]Clear old archive folders... [10:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:23]tlvbuf is 00501D00 [10:15:23]SAM_PROTO_ClearQueue [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 09 00 00 [10:15:23]Write to MH i2c: E2 08 00 8A 26 80 09 00 00 00 00 00 00 22 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 8A 26 00 90 00 24 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]SAM_PROTO_ClearQueue done [10:15:23]KKMCreateOFDPacket [10:15:23]OFDProtocolAddRootSTLVToBuf [10:15:23]FM_MakeSignedData [10:15:23]FM_MakeSignedData [10:15:23]SAM_PROTO_SignData [10:15:23]wFMCommunicate request_size=4 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 01 02 [10:15:23]Write to MH i2c: E2 08 00 8B 26 80 0D 01 02 00 00 00 00 2A [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 8B 26 00 90 00 25 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]wFMCommunicate request_size=255 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AE 3B 00 00 35 04 06 00 D3 [10:15:23]Write to MH i2c: E2 02 01 8C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AE 3B 00 00 35 04 06 00 D3 00 00 A3 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:23]Read from MH i2c: E2 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 [10:15:23]MH_I2C_Read... [10:15:23]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [10:15:23]RAPDU: 90 00 [10:15:23]wFMCommunicate OK [10:15:23]wFMCommunicate request_size=10 [10:15:23]MH_SAM_APDU [10:15:23]CAPDU: 80 0D 02 02 05 73 CB 72 AA 05 [10:15:23]Write to MH i2c: E2 0D 00 8D 26 80 0D 02 02 05 00 73 CB 72 AA 05 00 00 96 [10:15:23]Write i2c OK [10:15:23]MH_I2C_Read... [10:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:24]Read from MH i2c: E2 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 03 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [10:15:24]RAPDU: 90 00 [10:15:24]wFMCommunicate OK [10:15:24]wFMCommunicate request_size=4 [10:15:24]MH_SAM_APDU [10:15:24]CAPDU: 80 0D 03 02 [10:15:24]Write to MH i2c: E2 08 00 8E 26 80 0D 03 02 00 00 00 00 2F [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:24]Read from MH i2c: E2 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 0B 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 0B 00 8E 26 00 35 CD 84 7F 6C FD C5 62 90 00 C5 [10:15:24]RAPDU: 35 CD 84 7F 6C FD C5 62 90 00 [10:15:24]wFMCommunicate OK [10:15:24]SAM_PROTO_SignData done [10:15:24]FM_MakeSignedData done [10:15:24]CreateOFDProtocolMessage [10:15:24]wFMCommunicate request_size=4 [10:15:24]MH_SAM_APDU [10:15:24]CAPDU: 80 11 00 00 [10:15:24]Write to MH i2c: E2 08 00 8F 26 80 11 00 00 00 00 00 00 2F [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:24]Read from MH i2c: E2 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 17 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: E2 17 00 8F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 81 [10:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:15:24]wFMCommunicate OK [10:15:24]CreateOFDProtocolMessage done [10:15:24]OFDSenderStorePacket 15278 [10:15:24]StoreOFDPacket docnum=15278 [10:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 2D 16 07 01 C0 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AE 3B 00 00 35 04 06 00 D3 73 CB 72 AA 05 35 CD 84 7F 6C FD C5 62 [10:15:24]CheckFolder [10:15:24]dirname=/storage/ofd_packets [10:15:24]CheckFolder done [10:15:24]ProducePacketName [10:15:24]name=ofd_packets/00015278 [10:15:24]NVStorageSaveData ofd_packets/00015278 [10:15:24]File name is /storage/ofd_packets/00015278 [10:15:24]Write 301 bytes [10:15:24]NVStorageSaveData done [10:15:24]OFDSenderStorePacket done [10:15:24]KKMCreateOFDPacket done [10:15:24]NVStorageSaveData kkm_last_timestamp [10:15:24]File name is /storage/kkm_last_timestamp [10:15:24]Write 4 bytes [10:15:24]NVStorageSaveData done [10:15:24]ExternCall_PrintAddStr [10:15:24]wPrintStart [10:15:24]Write to MH i2c: 01 00 00 90 26 B6 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 90 26 00 00 00 00 00 FF 0F CB [10:15:24]RasterBufferAndPrint [10:15:24]line Счет N : (1)2078217 [10:15:24]line ИНН: 02508201610067 [10:15:24]line Контрольно-Кассовый Чек [10:15:24]line ПРОДАЖА [10:15:24]line ТРК (МРК, ГНК) : 43 [10:15:24]line Товар: 2710124130 [10:15:24]line Аи-92-К-4 [10:15:24]line 10.000 * 0.00 [10:15:24]line = 0.00 [10:15:24]line НДС 12% НСП 1% [10:15:24]line > о реализуемом товаре [10:15:24]line ИТОГО: 0.00 [10:15:24]line НСП 1% : 0.00 [10:15:24]line НДС 12% : 0.00 [10:15:24]line Наличными: 0.00 [10:15:24]line Безнал.: 0.00 [10:15:24]line Место: АЗС № 135 "Партнер Нефть" [10:15:24]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:15:24]line СНО: Общий режим [10:15:24]line Чек 72 23.08.2024 10:15 [10:15:24]line Смена: 102 ФФД: 1.0 [10:15:24]line ЗНМ: 0300000144 [10:15:24]line РНМ: 0000000000162784 [10:15:24]line Версия ККМ: v1.0 [10:15:24]line Талоны: ТК ГПНА Online [10:15:24]line 30103677 [10:15:24]line ФМ: 0000000002094529 [10:15:24]line ФД: 15278 [10:15:24]line ФПД: 232494287989253 [10:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101526&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15278&fm=232494287989253&tin=02508201610067®Number=0000000000162784&sum=0 [10:15:24]OFD Sender: Processing packet 15278 [packets to send 8, broken 7] [10:15:24]ProducePacketName [10:15:24]name=ofd_packets/00015278 [10:15:24]OFD Sender: To server: pG, [10:15:24]CommunicateWithHost lk.salyk.kg:30040 [10:15:24]ConnectInit lk.salyk.kg [10:15:24]written 0, free lines is 4095 [10:15:24]Connected sock=10 [10:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 2D 16 07 01 C0 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3E 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AE 3B 00 00 35 04 06 00 D3 73 CB 72 AA 05 35 CD 84 7F 6C FD C5 62 [10:15:24]Write to MH i2c: 01 00 00 BA 26 E0 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: 01 07 00 BA 26 00 00 00 00 00 FC 0C EF [10:15:24]RasterBufferAndPrint [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]line [10:15:24]written 0, free lines is 3330 [10:15:24]MH_Cut [10:15:24]Write to MH i2c: D1 01 00 C1 26 01 B9 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 01 00 [10:15:24]MH_I2C_Read... [10:15:24]Read from MH i2c: D1 01 00 C1 26 00 B8 [10:15:24]Write to MH i2c: 01 00 00 C2 26 E8 [10:15:24]Write i2c OK [10:15:24]MH_I2C_Read... [10:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 0A 4C 47 00 86 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AE 3B 00 00 F4 03 04 00 9A 0B C8 66 B6 04 01 00 00 B9 73 61 93 43 CF EE E2 [10:15:25]CommunicateWithHost err = 0 [10:15:25]CheckOFDResponse [10:15:25]1017 (14) - 77093643461234 [10:15:25]1041 (16) - 0000000002094529 [10:15:25]1040 (4) - 15278 [10:15:25]1012 (4) - 23.08.2024 04:10 [10:15:25]1206 (1) - 0 [10:15:25]OFD Sender: Remove packet 15278 [10:15:25]ProducePacketName [10:15:25]name=ofd_packets/00015278 [10:15:25]NVStorageDeleteData [10:15:25]OFD Sender: No OFD packet to send [10:15:25]*** Cut start [10:15:25]*** Partial cut [10:15:25]*** CUTSNS_PIN = 1 [10:15:25]*** CUTSNS_PIN = 0 [10:15:25]*** Brake cut motor [10:15:26]Read from MH i2c: 01 [10:15:26]MH_I2C_Read... [10:15:26]*** Stop cut motor [10:15:26]*** Cut end [10:15:26]Read from MH i2c: 01 07 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: 01 07 00 C2 26 00 00 00 00 00 FF 0F FD [10:15:26]process_action close_receipt done [10:15:26]requested_data is exist [10:15:26]produce_requested_data [10:15:26]requested_item fm.sn is exist - process it [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 11 00 00 [10:15:26]Write to MH i2c: E2 08 00 C3 26 80 11 00 00 00 00 00 00 63 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 17 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 17 00 C3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B5 [10:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:15:26]wFMCommunicate OK [10:15:26]requested_item fd.num is exist - process it [10:15:26]SAM_PROTO_GetFieldsCounters [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 13 00 00 [10:15:26]Write to MH i2c: E2 08 00 C4 26 80 13 00 00 00 00 00 00 66 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 62 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 62 00 C4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_GetFieldsCounters done [10:15:26]requested_item shift.num is exist - process it [10:15:26]requested_item shift.opened is exist - process it [10:15:26]req_shift_opened [10:15:26]FM_GetShiftState [10:15:26]SAM_PROTO_GetShiftState [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 13 01 00 [10:15:26]Write to MH i2c: E2 08 00 C5 26 80 13 01 00 00 00 00 00 68 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:26]Read from MH i2c: E2 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0E 00 [10:15:26]MH_I2C_Read... [10:15:26]Read from MH i2c: E2 0E 00 C5 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2C [10:15:26]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:15:26]wFMCommunicate OK [10:15:26]SAM_PROTO_GetShiftState done [10:15:26]FM_GetShiftState done [10:15:26]req_shift_opened done [10:15:26]requested_item shift.open_date is exist - process it [10:15:26]req_shift_open_date [10:15:26]req_shift_open_date done [10:15:26]produce_requested_data done [10:15:26]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15278,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:15:26]process_action_free close_receipt [10:15:26]json_value_free [10:15:26]json_value_free done [10:15:26]process_json_proto returns [10:15:26]Send response to host [10:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15278,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:15:26]free response buf [10:15:26]execute_script done [10:15:26]execute_script returns [10:15:26]free content buf [10:15:26]Sock 9.Close socket [10:15:26]Sock 9.Thread stoped [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:43]accept exits with 8 [10:17:43]New connection [10:17:43]New thread 3066801508 created [10:17:43]Thread 3066944868 joined [10:17:43]Waiting for new connection... [10:17:43] Sock 8.Parse request [10:17:43]Sock 8.Check first char [10:17:43]Sock 8.First char is OK [10:17:43]request: POST /json_proto HTTP/1.0 [10:17:43]Method: POST [10:17:43]URL: /json_proto [10:17:43]Method is POST - this is cgi request [10:17:43]url: /json_proto [10:17:43]query_string will be loaded in cgi processing [10:17:43]execute_cgi json_proto POST (null) [10:17:43]execute_cgi path=json_proto method=POST [10:17:43]POST find Content-Length [10:17:43]Host: 172.17.44.4:8080 [10:17:43]Content-Length: 790 [10:17:43]Content-Type: application/json [10:17:43] [10:17:43]POST finish read [10:17:43]Found Content-Length = 790 [10:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:43]execute_script... [10:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:43]POST & json_proto [10:17:43]process_json_proto [10:17:43]json parsed OK: [10:17:43]protocol is kg_v1.0 [10:17:43]action value=close_receipt [10:17:43]process_action close_receipt [10:17:43]cmd_close_receipt [10:17:43]MH_GetDate [10:17:43]Write to MH i2c: F0 00 00 C6 26 DB [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 09 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 09 00 C6 26 00 CB 61 C8 66 0F 81 47 66 7B [10:17:43]GetLastDocTimeStamp 1724408126 [10:17:43]current date 1724408267 [10:17:43]FM_GetShiftState [10:17:43]SAM_PROTO_GetShiftState [10:17:43]wFMCommunicate request_size=4 [10:17:43]MH_SAM_APDU [10:17:43]CAPDU: 80 13 01 00 [10:17:43]Write to MH i2c: E2 08 00 C7 26 80 13 01 00 00 00 00 00 6A [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:43]Read from MH i2c: E2 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 0E 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 0E 00 C7 26 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2E [10:17:43]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:17:43]wFMCommunicate OK [10:17:43]SAM_PROTO_GetShiftState done [10:17:43]FM_GetShiftState done [10:17:43]opened in 1724372406 [10:17:43]opened+sec_in_day 1724458806 [10:17:43]quantity*price = 0 [10:17:43]sum+1 = 1 [10:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 73 23.08.2024 10:17 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15279 ФПД: 187219591031935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101747&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15279&fm=187219591031935&tin=02508201610067®Number=0000000000162784&sum=0 [10:17:44]StoreToDocumentArchive [10:17:44]shift 102 fd 15279 [10:17:44]save to /storage/0102/doc_00015279 [10:17:44]save last doc name /storage/0102/doc_00015279 to /storage/kkm_last_doc_name [10:17:44]save OK [10:17:44]Clear old archive folders... [10:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:44]tlvbuf is 004559F0 [10:17:44]SAM_PROTO_ClearQueue [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 09 00 00 [10:17:44]Write to MH i2c: E2 08 00 D4 26 80 09 00 00 00 00 00 00 6C [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D4 26 00 90 00 6E [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_ClearQueue done [10:17:44]KKMCreateOFDPacket [10:17:44]OFDProtocolAddRootSTLVToBuf [10:17:44]FM_MakeSignedData [10:17:44]FM_MakeSignedData [10:17:44]SAM_PROTO_SignData [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 01 02 [10:17:44]Write to MH i2c: E2 08 00 D5 26 80 0D 01 02 00 00 00 00 74 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 D5 26 00 90 00 6F [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=255 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CB 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AF 3B 00 00 35 04 06 00 AA 46 75 37 [10:17:45]Write to MH i2c: E2 02 01 D6 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CB 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AF 3B 00 00 35 04 06 00 AA 46 75 37 00 00 3E [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 D6 26 00 90 00 70 [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=7 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 02 02 02 EC 7F [10:17:45]Write to MH i2c: E2 0A 00 D7 26 80 0D 02 02 02 00 EC 7F 00 00 E6 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 D7 26 00 90 00 71 [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 03 02 [10:17:45]Write to MH i2c: E2 08 00 D8 26 80 0D 03 02 00 00 00 00 79 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 D8 26 00 61 CB 5B BD D2 B0 99 A0 90 00 79 [10:17:45]RAPDU: 61 CB 5B BD D2 B0 99 A0 90 00 [10:17:45]wFMCommunicate OK [10:17:45]SAM_PROTO_SignData done [10:17:45]FM_MakeSignedData done [10:17:45]CreateOFDProtocolMessage [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 11 00 00 [10:17:45]Write to MH i2c: E2 08 00 D9 26 80 11 00 00 00 00 00 00 79 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 D9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CB [10:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:17:45]wFMCommunicate OK [10:17:45]CreateOFDProtocolMessage done [10:17:45]OFDSenderStorePacket 15279 [10:17:45]StoreOFDPacket docnum=15279 [10:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 9D 82 04 01 2C A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CB 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AF 3B 00 00 35 04 06 00 AA 46 75 37 EC 7F 61 CB 5B BD D2 B0 99 A0 [10:17:45]CheckFolder [10:17:45]dirname=/storage/ofd_packets [10:17:45]CheckFolder done [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00015279 [10:17:45]NVStorageSaveData ofd_packets/00015279 [10:17:45]File name is /storage/ofd_packets/00015279 [10:17:45]Write 298 bytes [10:17:45]NVStorageSaveData done [10:17:45]OFDSenderStorePacket done [10:17:45]KKMCreateOFDPacket done [10:17:45]NVStorageSaveData kkm_last_timestamp [10:17:45]File name is /storage/kkm_last_timestamp [10:17:45]Write 4 bytes [10:17:45]NVStorageSaveData done [10:17:45]ExternCall_PrintAddStr [10:17:45]wPrintStart [10:17:45]Write to MH i2c: 01 00 00 DA 26 00 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 DA 26 00 00 00 00 00 FF 0F 15 [10:17:45]RasterBufferAndPrint [10:17:45]line Счет N : (1)2078216 [10:17:45]line ИНН: 02508201610067 [10:17:45]line Контрольно-Кассовый Чек [10:17:45]line ПРОДАЖА [10:17:45]line ТРК (МРК, ГНК) : 21 [10:17:45]line Товар: 2710194210 [10:17:45]line ДТ-К-5 [10:17:45]line 40.000 * 0.00 [10:17:45]line = 0.00 [10:17:45]line НДС 12% НСП 1% [10:17:45]line > о реализуемом товаре [10:17:45]line ИТОГО: 0.00 [10:17:45]line НСП 1% : 0.00 [10:17:45]line НДС 12% : 0.00 [10:17:45]line Наличными: 0.00 [10:17:45]line Безнал.: 0.00 [10:17:45]line Место: АЗС № 135 "Партнер Нефть" [10:17:45]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:17:45]line СНО: Общий режим [10:17:45]line Чек 73 23.08.2024 10:17 [10:17:45]line Смена: 102 ФФД: 1.0 [10:17:45]line ЗНМ: 0300000144 [10:17:45]line РНМ: 0000000000162784 [10:17:45]line Версия ККМ: v1.0 [10:17:45]line Талоны: Топливная Карта [10:17:45]line 92875 [10:17:45]line ФМ: 0000000002094529 [10:17:45]line ФД: 15279 [10:17:45]line ФПД: 187219591031935 [10:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101747&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15279&fm=187219591031935&tin=02508201610067®Number=0000000000162784&sum=0 [10:17:45]OFD Sender: Processing packet 15279 [packets to send 8, broken 7] [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00015279 [10:17:45]OFD Sender: To server: pG, [10:17:45]CommunicateWithHost lk.salyk.kg:30040 [10:17:45]ConnectInit lk.salyk.kg [10:17:45]written 0, free lines is 4095 [10:17:45]Connected sock=10 [10:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 9D 82 04 01 2C A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CB 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AF 3B 00 00 35 04 06 00 AA 46 75 37 EC 7F 61 CB 5B BD D2 B0 99 A0 [10:17:46]Write to MH i2c: 01 00 00 04 27 2B [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 07 00 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 07 00 04 27 00 00 00 00 00 F0 0C 2E [10:17:46]RasterBufferAndPrint [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]written 0, free lines is 3318 [10:17:46]MH_Cut [10:17:46]Write to MH i2c: D1 01 00 0B 27 01 04 [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 01 00 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 01 00 0B 27 00 03 [10:17:46]Write to MH i2c: 01 00 00 0C 27 33 [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 8F C6 47 00 F5 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 AF 3B 00 00 F4 03 04 00 27 0C C8 66 B6 04 01 00 00 C6 4E 1A 37 1B 1A 3D B3 [10:17:46]CommunicateWithHost err = 0 [10:17:46]CheckOFDResponse [10:17:46]1017 (14) - 77093643461234 [10:17:46]1041 (16) - 0000000002094529 [10:17:46]1040 (4) - 15279 [10:17:46]1012 (4) - 23.08.2024 04:12 [10:17:46]1206 (1) - 0 [10:17:46]OFD Sender: Remove packet 15279 [10:17:46]ProducePacketName [10:17:46]name=ofd_packets/00015279 [10:17:46]NVStorageDeleteData [10:17:46]OFD Sender: No OFD packet to send [10:17:46]*** Cut start [10:17:46]*** Partial cut [10:17:46]*** CUTSNS_PIN = 1 [10:17:47]*** CUTSNS_PIN = 0 [10:17:47]*** Brake cut motor [10:17:47]Read from MH i2c: 01 [10:17:47]MH_I2C_Read... [10:17:47]*** Stop cut motor [10:17:47]*** Cut end [10:17:47]Read from MH i2c: 01 07 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: 01 07 00 0C 27 00 00 00 00 00 FF 0F 48 [10:17:47]process_action close_receipt done [10:17:47]requested_data is exist [10:17:47]produce_requested_data [10:17:47]requested_item fm.sn is exist - process it [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 11 00 00 [10:17:47]Write to MH i2c: E2 08 00 0D 27 80 11 00 00 00 00 00 00 AE [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 0D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 00 [10:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:17:47]wFMCommunicate OK [10:17:47]requested_item fd.num is exist - process it [10:17:47]SAM_PROTO_GetFieldsCounters [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 00 00 [10:17:47]Write to MH i2c: E2 08 00 0E 27 80 13 00 00 00 00 00 00 B1 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 0E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [10:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 AF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetFieldsCounters done [10:17:47]requested_item shift.num is exist - process it [10:17:47]requested_item shift.opened is exist - process it [10:17:47]req_shift_opened [10:17:47]FM_GetShiftState [10:17:47]SAM_PROTO_GetShiftState [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 01 00 [10:17:47]Write to MH i2c: E2 08 00 0F 27 80 13 01 00 00 00 00 00 B3 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 0F 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 77 [10:17:47]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetShiftState done [10:17:47]FM_GetShiftState done [10:17:47]req_shift_opened done [10:17:47]requested_item shift.open_date is exist - process it [10:17:47]req_shift_open_date [10:17:47]req_shift_open_date done [10:17:47]produce_requested_data done [10:17:47]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15279,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:17:47]process_action_free close_receipt [10:17:47]json_value_free [10:17:47]json_value_free done [10:17:47]process_json_proto returns [10:17:47]Send response to host [10:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15279,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:17:47]free response buf [10:17:47]execute_script done [10:17:47]execute_script returns [10:17:47]free content buf [10:17:47]Sock 8.Close socket [10:17:47]Sock 8.Thread stoped [10:17:51]accept exits with 9 [10:17:51]New connection [10:17:51]New thread 3066944868 created [10:17:51]Thread 3066801508 joined [10:17:51]Waiting for new connection... [10:17:51] Sock 9.Parse request [10:17:51]Sock 9.Check first char [10:17:51]Sock 9.First char is OK [10:17:51]request: POST /json_proto HTTP/1.0 [10:17:51]Method: POST [10:17:51]URL: /json_proto [10:17:51]Method is POST - this is cgi request [10:17:51]url: /json_proto [10:17:51]query_string will be loaded in cgi processing [10:17:51]execute_cgi json_proto POST (null) [10:17:51]execute_cgi path=json_proto method=POST [10:17:51]POST find Content-Length [10:17:51]Host: 172.17.44.4:8080 [10:17:51]Content-Length: 792 [10:17:51]Content-Type: application/json [10:17:51] [10:17:51]POST finish read [10:17:51]Found Content-Length = 792 [10:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:51]execute_script... [10:17:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:51]POST & json_proto [10:17:51]process_json_proto [10:17:51]json parsed OK: [10:17:51]protocol is kg_v1.0 [10:17:51]action value=close_receipt [10:17:51]process_action close_receipt [10:17:51]cmd_close_receipt [10:17:51]MH_GetDate [10:17:51]Write to MH i2c: F0 00 00 10 27 26 [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: F0 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: F0 09 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: F0 09 00 10 27 00 D3 61 C8 66 0F 81 47 66 CE [10:17:51]GetLastDocTimeStamp 1724408267 [10:17:51]current date 1724408275 [10:17:51]FM_GetShiftState [10:17:51]SAM_PROTO_GetShiftState [10:17:51]wFMCommunicate request_size=4 [10:17:51]MH_SAM_APDU [10:17:51]CAPDU: 80 13 01 00 [10:17:51]Write to MH i2c: E2 08 00 11 27 80 13 01 00 00 00 00 00 B5 [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:51]Read from MH i2c: E2 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 0E 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 0E 00 11 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 79 [10:17:51]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:17:51]wFMCommunicate OK [10:17:51]SAM_PROTO_GetShiftState done [10:17:51]FM_GetShiftState done [10:17:51]opened in 1724372406 [10:17:51]opened+sec_in_day 1724458806 [10:17:51]quantity*price = 0 [10:17:51]sum+1 = 1 [10:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 74 23.08.2024 10:17 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливные Талоны 1 ФМ: 0000000002094529 ФД: 15280 ФПД: 187782390445924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101755&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15280&fm=187782390445924&tin=02508201610067®Number=0000000000162784&sum=0 [10:17:52]StoreToDocumentArchive [10:17:52]shift 102 fd 15280 [10:17:52]save to /storage/0102/doc_00015280 [10:17:52]save last doc name /storage/0102/doc_00015280 to /storage/kkm_last_doc_name [10:17:52]save OK [10:17:52]Clear old archive folders... [10:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:52]tlvbuf is 004BA290 [10:17:52]SAM_PROTO_ClearQueue [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 09 00 00 [10:17:52]Write to MH i2c: E2 08 00 1E 27 80 09 00 00 00 00 00 00 B7 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 1E 27 00 90 00 B9 [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]SAM_PROTO_ClearQueue done [10:17:52]KKMCreateOFDPacket [10:17:52]OFDProtocolAddRootSTLVToBuf [10:17:52]FM_MakeSignedData [10:17:52]FM_MakeSignedData [10:17:52]SAM_PROTO_SignData [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 01 02 [10:17:52]Write to MH i2c: E2 08 00 1F 27 80 0D 01 02 00 00 00 00 BF [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 1F 27 00 90 00 BA [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=255 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D3 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B0 3B 00 00 35 04 06 00 AA C9 7E AD [10:17:52]Write to MH i2c: E2 02 01 20 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D3 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B0 3B 00 00 35 04 06 00 AA C9 7E AD 00 00 CC [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 20 27 00 90 00 BB [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=7 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 02 02 02 77 64 [10:17:52]Write to MH i2c: E2 0A 00 21 27 80 0D 02 02 02 00 77 64 00 00 A1 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 03 00 21 27 00 90 00 BC [10:17:52]RAPDU: 90 00 [10:17:52]wFMCommunicate OK [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 0D 03 02 [10:17:52]Write to MH i2c: E2 08 00 22 27 80 0D 03 02 00 00 00 00 C4 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 0B 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 0B 00 22 27 00 DC 51 D1 04 B7 3C 24 F3 90 00 D1 [10:17:52]RAPDU: DC 51 D1 04 B7 3C 24 F3 90 00 [10:17:52]wFMCommunicate OK [10:17:52]SAM_PROTO_SignData done [10:17:52]FM_MakeSignedData done [10:17:52]CreateOFDProtocolMessage [10:17:52]wFMCommunicate request_size=4 [10:17:52]MH_SAM_APDU [10:17:52]CAPDU: 80 11 00 00 [10:17:52]Write to MH i2c: E2 08 00 23 27 80 11 00 00 00 00 00 00 C4 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:52]Read from MH i2c: E2 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: E2 17 00 23 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 16 [10:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:17:52]wFMCommunicate OK [10:17:52]CreateOFDProtocolMessage done [10:17:52]OFDSenderStorePacket 15280 [10:17:52]StoreOFDPacket docnum=15280 [10:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 26 8B 04 01 1A 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D3 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B0 3B 00 00 35 04 06 00 AA C9 7E AD 77 64 DC 51 D1 04 B7 3C 24 F3 [10:17:52]CheckFolder [10:17:52]dirname=/storage/ofd_packets [10:17:52]CheckFolder done [10:17:52]ProducePacketName [10:17:52]name=ofd_packets/00015280 [10:17:52]NVStorageSaveData ofd_packets/00015280 [10:17:52]File name is /storage/ofd_packets/00015280 [10:17:52]Write 298 bytes [10:17:52]NVStorageSaveData done [10:17:52]OFDSenderStorePacket done [10:17:52]KKMCreateOFDPacket done [10:17:52]NVStorageSaveData kkm_last_timestamp [10:17:52]File name is /storage/kkm_last_timestamp [10:17:52]Write 4 bytes [10:17:52]NVStorageSaveData done [10:17:52]ExternCall_PrintAddStr [10:17:52]wPrintStart [10:17:52]Write to MH i2c: 01 00 00 24 27 4B [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 07 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: 01 07 00 24 27 00 00 00 00 00 FF 0F 60 [10:17:52]RasterBufferAndPrint [10:17:52]line Счет N : (1)2078215 [10:17:52]line ИНН: 02508201610067 [10:17:52]line Контрольно-Кассовый Чек [10:17:52]line ПРОДАЖА [10:17:52]line ТРК (МРК, ГНК) : 11 [10:17:52]line Товар: 2710194210 [10:17:52]line ДТ-К-5 [10:17:52]line 50.000 * 0.00 [10:17:52]line = 0.00 [10:17:52]line НДС 12% НСП 1% [10:17:52]line > о реализуемом товаре [10:17:52]line ИТОГО: 0.00 [10:17:52]line НСП 1% : 0.00 [10:17:52]line НДС 12% : 0.00 [10:17:52]line Наличными: 0.00 [10:17:52]line Безнал.: 0.00 [10:17:52]line Место: АЗС № 135 "Партнер Нефть" [10:17:52]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:17:52]line СНО: Общий режим [10:17:52]line Чек 74 23.08.2024 10:17 [10:17:52]line Смена: 102 ФФД: 1.0 [10:17:52]line ЗНМ: 0300000144 [10:17:52]line РНМ: 0000000000162784 [10:17:52]line Версия ККМ: v1.0 [10:17:52]line Талоны: Топливные Талоны [10:17:52]line 1 [10:17:52]line ФМ: 0000000002094529 [10:17:52]line ФД: 15280 [10:17:52]line ФПД: 187782390445924 [10:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T101755&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15280&fm=187782390445924&tin=02508201610067®Number=0000000000162784&sum=0 [10:17:52]written 0, free lines is 4095 [10:17:52]OFD Sender: Processing packet 15280 [packets to send 8, broken 7] [10:17:52]ProducePacketName [10:17:52]name=ofd_packets/00015280 [10:17:52]OFD Sender: To server: pG, [10:17:52]CommunicateWithHost lk.salyk.kg:30040 [10:17:52]ConnectInit lk.salyk.kg [10:17:53]Connected sock=10 [10:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 26 8B 04 01 1A 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D3 61 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B0 3B 00 00 35 04 06 00 AA C9 7E AD 77 64 DC 51 D1 04 B7 3C 24 F3 [10:17:53]Write to MH i2c: 01 00 00 4E 27 75 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 07 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 E4 0C 6C [10:17:53]RasterBufferAndPrint [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]line [10:17:53]written 0, free lines is 3312 [10:17:53]MH_Cut [10:17:53]Write to MH i2c: D1 01 00 55 27 01 4E [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: D1 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: D1 01 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: D1 01 00 55 27 00 4D [10:17:53]Write to MH i2c: 01 00 00 56 27 7D [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 54 81 47 00 CB 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B0 3B 00 00 F4 03 04 00 2E 0C C8 66 B6 04 01 00 00 3E 98 70 AC 1B 08 C6 BF [10:17:53]CommunicateWithHost err = 0 [10:17:53]CheckOFDResponse [10:17:53]1017 (14) - 77093643461234 [10:17:53]1041 (16) - 0000000002094529 [10:17:53]1040 (4) - 15280 [10:17:53]1012 (4) - 23.08.2024 04:12 [10:17:53]1206 (1) - 0 [10:17:53]OFD Sender: Remove packet 15280 [10:17:53]ProducePacketName [10:17:53]name=ofd_packets/00015280 [10:17:53]NVStorageDeleteData [10:17:53]OFD Sender: No OFD packet to send [10:17:54]*** Cut start [10:17:54]*** Partial cut [10:17:54]*** CUTSNS_PIN = 1 [10:17:54]*** CUTSNS_PIN = 0 [10:17:54]*** Brake cut motor [10:17:54]Read from MH i2c: 01 [10:17:54]MH_I2C_Read... [10:17:54]*** Stop cut motor [10:17:54]*** Cut end [10:17:54]Read from MH i2c: 01 07 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: 01 07 00 56 27 00 00 00 00 00 FF 0F 92 [10:17:54]process_action close_receipt done [10:17:54]requested_data is exist [10:17:54]produce_requested_data [10:17:54]requested_item fm.sn is exist - process it [10:17:54]wFMCommunicate request_size=4 [10:17:54]MH_SAM_APDU [10:17:54]CAPDU: 80 11 00 00 [10:17:54]Write to MH i2c: E2 08 00 57 27 80 11 00 00 00 00 00 00 F8 [10:17:54]Write i2c OK [10:17:54]MH_I2C_Read... [10:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:54]Read from MH i2c: E2 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 17 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 17 00 57 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 4A [10:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:17:54]wFMCommunicate OK [10:17:54]requested_item fd.num is exist - process it [10:17:54]SAM_PROTO_GetFieldsCounters [10:17:54]wFMCommunicate request_size=4 [10:17:54]MH_SAM_APDU [10:17:54]CAPDU: 80 13 00 00 [10:17:54]Write to MH i2c: E2 08 00 58 27 80 13 00 00 00 00 00 00 FB [10:17:54]Write i2c OK [10:17:54]MH_I2C_Read... [10:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:54]Read from MH i2c: E2 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 62 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 62 00 58 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:54]wFMCommunicate OK [10:17:54]SAM_PROTO_GetFieldsCounters done [10:17:54]requested_item shift.num is exist - process it [10:17:54]requested_item shift.opened is exist - process it [10:17:54]req_shift_opened [10:17:54]FM_GetShiftState [10:17:54]SAM_PROTO_GetShiftState [10:17:54]wFMCommunicate request_size=4 [10:17:54]MH_SAM_APDU [10:17:54]CAPDU: 80 13 01 00 [10:17:54]Write to MH i2c: E2 08 00 59 27 80 13 01 00 00 00 00 00 FD [10:17:54]Write i2c OK [10:17:54]MH_I2C_Read... [10:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:54]Read from MH i2c: E2 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 0E 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 0E 00 59 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 C1 [10:17:54]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:17:54]wFMCommunicate OK [10:17:54]SAM_PROTO_GetShiftState done [10:17:54]FM_GetShiftState done [10:17:54]req_shift_opened done [10:17:54]requested_item shift.open_date is exist - process it [10:17:54]req_shift_open_date [10:17:54]req_shift_open_date done [10:17:54]produce_requested_data done [10:17:54]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15280,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:17:54]process_action_free close_receipt [10:17:54]json_value_free [10:17:54]json_value_free done [10:17:54]process_json_proto returns [10:17:54]Send response to host [10:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15280,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:17:54]free response buf [10:17:54]execute_script done [10:17:54]execute_script returns [10:17:54]free content buf [10:17:54]Sock 9.Close socket [10:17:54]Sock 9.Thread stoped [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:52]accept exits with 8 [10:24:52]New connection [10:24:52]New thread 3066801508 created [10:24:52]Thread 3066944868 joined [10:24:52]Waiting for new connection... [10:24:52] Sock 8.Parse request [10:24:52]Sock 8.Check first char [10:24:52]Sock 8.First char is OK [10:24:52]request: POST /json_proto HTTP/1.0 [10:24:52]Method: POST [10:24:52]URL: /json_proto [10:24:52]Method is POST - this is cgi request [10:24:52]url: /json_proto [10:24:52]query_string will be loaded in cgi processing [10:24:52]execute_cgi json_proto POST (null) [10:24:52]execute_cgi path=json_proto method=POST [10:24:52]POST find Content-Length [10:24:52]Host: 172.17.44.4:8080 [10:24:52]Content-Length: 670 [10:24:52]Content-Type: application/json [10:24:52] [10:24:52]POST finish read [10:24:52]Found Content-Length = 670 [10:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151273", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:52]execute_script... [10:24: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)151273", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:52]POST & json_proto [10:24:52]process_json_proto [10:24:52]json parsed OK: [10:24:52]protocol is kg_v1.0 [10:24:52]action value=close_receipt [10:24:52]process_action close_receipt [10:24:52]cmd_close_receipt [10:24:52]MH_GetDate [10:24:52]Write to MH i2c: F0 00 00 5A 27 70 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 09 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 09 00 5A 27 00 79 63 C8 66 0F 81 47 66 C0 [10:24:52]GetLastDocTimeStamp 1724408275 [10:24:52]current date 1724408697 [10:24:52]FM_GetShiftState [10:24:52]SAM_PROTO_GetShiftState [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 13 01 00 [10:24:52]Write to MH i2c: E2 08 00 5B 27 80 13 01 00 00 00 00 00 FF [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:53]Read from MH i2c: E2 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: E2 0E 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: E2 0E 00 5B 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 C3 [10:24:53]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:24:53]wFMCommunicate OK [10:24:53]SAM_PROTO_GetShiftState done [10:24:53]FM_GetShiftState done [10:24:53]opened in 1724372406 [10:24:53]opened+sec_in_day 1724458806 [10:24:53]quantity*price = 11800 [10:24:53]sum+1 = 11801 [10:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 75 23.08.2024 10:24 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15281 ФПД: 186412776692288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T102457&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15281&fm=186412776692288&tin=02508201610067®Number=0000000000162784&sum=11800 0 [10:24:54]StoreToDocumentArchive [10:24:54]shift 102 fd 15281 [10:24:54]save to /storage/0102/doc_00015281 [10:24:54]save last doc name /storage/0102/doc_00015281 to /storage/kkm_last_doc_name [10:24:54]save OK [10:24:54]Clear old archive folders... [10:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=283 [10:24:54]tlvbuf is 0047F350 [10:24:54]SAM_PROTO_ClearQueue [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 09 00 00 [10:24:54]Write to MH i2c: E2 08 00 68 27 80 09 00 00 00 00 00 00 01 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 68 27 00 90 00 03 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_ClearQueue done [10:24:54]KKMCreateOFDPacket [10:24:54]OFDProtocolAddRootSTLVToBuf [10:24:54]FM_MakeSignedData [10:24:54]FM_MakeSignedData [10:24:54]SAM_PROTO_SignData [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 01 02 [10:24:54]Write to MH i2c: E2 08 00 69 27 80 0D 01 02 00 00 00 00 09 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 69 27 00 90 00 04 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=255 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 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 4B 00 00 00 F4 03 04 00 79 63 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 [10:24:54]Write to MH i2c: E2 02 01 6A 27 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 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 4B 00 00 00 F4 03 04 00 79 63 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 00 00 23 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]OFD Sender: No OFD packet to send [10:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 6A 27 00 90 00 05 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=42 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B1 3B 00 00 35 04 06 00 A9 8A 9B 56 1A 40 [10:24:54]Write to MH i2c: E2 2D 00 6B 27 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B1 3B 00 00 35 04 06 00 A9 8A 9B 56 1A 40 00 00 4A [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 6B 27 00 90 00 06 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 03 02 [10:24:54]Write to MH i2c: E2 08 00 6C 27 80 0D 03 02 00 00 00 00 0E [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0B 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0B 00 6C 27 00 E0 B2 A2 2B 33 00 8E 41 90 00 70 [10:24:54]RAPDU: E0 B2 A2 2B 33 00 8E 41 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_SignData done [10:24:54]FM_MakeSignedData done [10:24:54]CreateOFDProtocolMessage [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 11 00 00 [10:24:54]Write to MH i2c: E2 08 00 6D 27 80 11 00 00 00 00 00 00 0E [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 6D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 60 [10:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:24:54]wFMCommunicate OK [10:24:54]CreateOFDProtocolMessage done [10:24:54]OFDSenderStorePacket 15281 [10:24:54]StoreOFDPacket docnum=15281 [10:24:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2F 01 00 00 9C C6 27 01 AC 31 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 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 4B 00 00 00 F4 03 04 00 79 63 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B1 3B 00 00 35 04 06 00 A9 8A 9B 56 1A 40 E0 B2 A2 2B 33 00 8E 41 [10:24:54]CheckFolder [10:24:54]dirname=/storage/ofd_packets [10:24:54]CheckFolder done [10:24:54]ProducePacketName [10:24:54]name=ofd_packets/00015281 [10:24:54]NVStorageSaveData ofd_packets/00015281 [10:24:54]File name is /storage/ofd_packets/00015281 [10:24:54]Write 333 bytes [10:24:54]NVStorageSaveData done [10:24:54]OFDSenderStorePacket done [10:24:54]KKMCreateOFDPacket done [10:24:54]NVStorageSaveData kkm_last_timestamp [10:24:54]File name is /storage/kkm_last_timestamp [10:24:54]Write 4 bytes [10:24:54]NVStorageSaveData done [10:24:54]ExternCall_PrintAddStr [10:24:54]wPrintStart [10:24:54]Write to MH i2c: 01 00 00 6E 27 95 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 FF 0F AA [10:24:54]RasterBufferAndPrint [10:24:54]line Счет N : (3)151273 [10:24:54]line ИНН: 02508201610067 [10:24:54]line Контрольно-Кассовый Чек [10:24:54]line ПРОДАЖА [10:24:54]line Товар: 4011100977624 [10:24:54]line Шок Батончик Баунти 55г [10:24:54]line 2.000 * 59.00 [10:24:54]line = 118.00 [10:24:54]line НДС 12% НСП 1% [10:24:54]line > о реализуемом товаре [10:24:54]line ИТОГО: 118.00 [10:24:54]line НСП 1% : 1.04 [10:24:54]line НДС 12% : 12.53 [10:24:54]line Наличными: 118.00 [10:24:54]line Безнал.: 0.00 [10:24:54]line Место: АЗС № 135 "Партнер Нефть" [10:24:54]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:24:54]line СНО: Общий режим [10:24:54]line Чек 75 23.08.2024 10:24 [10:24:54]line Смена: 102 ФФД: 1.0 [10:24:54]line ЗНМ: 0300000144 [10:24:54]line РНМ: 0000000000162784 [10:24:54]line Версия ККМ: v1.0 [10:24:54]line ФМ: 0000000002094529 [10:24:54]line ФД: 15281 [10:24:54]line ФПД: 186412776692288 [10:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T102457&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15281&fm=186412776692288&tin=02508201610067®Number=0000000000162784&sum=11800 [10:24:55]line 0 [10:24:55]OFD Sender: Processing packet 15281 [packets to send 8, broken 7] [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00015281 [10:24:55]OFD Sender: To server: pG, [10:24:55]CommunicateWithHost lk.salyk.kg:30040 [10:24:55]ConnectInit lk.salyk.kg [10:24:55]written 0, free lines is 4095 [10:24:55]Connected sock=10 [10:24:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2F 01 00 00 9C C6 27 01 AC 31 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 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 4B 00 00 00 F4 03 04 00 79 63 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B1 3B 00 00 35 04 06 00 A9 8A 9B 56 1A 40 E0 B2 A2 2B 33 00 8E 41 [10:24:55]Write to MH i2c: 01 00 00 96 27 BD [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 96 27 00 00 00 00 00 12 0D E3 [10:24:55]RasterBufferAndPrint [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]written 0, free lines is 3352 [10:24:55]MH_Cut [10:24:55]Write to MH i2c: D1 01 00 9D 27 01 96 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 9D 27 00 95 [10:24:55]Write to MH i2c: 01 00 00 9E 27 C5 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 DE D3 47 00 6E 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 32 30 39 34 35 32 39 10 04 04 00 B1 3B 00 00 F4 03 04 00 D4 0D C8 66 B6 04 01 00 00 AB 79 A1 9E 46 C1 1D 2E [10:24:55]CommunicateWithHost err = 0 [10:24:55]CheckOFDResponse [10:24:55]1017 (14) - 77093643461234 [10:24:55]1041 (16) - 0000000002094529 [10:24:55]1040 (4) - 15281 [10:24:55]1012 (4) - 23.08.2024 04:19 [10:24:55]1206 (1) - 0 [10:24:55]OFD Sender: Remove packet 15281 [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00015281 [10:24:55]NVStorageDeleteData [10:24:56]OFD Sender: No OFD packet to send [10:24:56]*** Cut start [10:24:56]*** Partial cut [10:24:56]*** CUTSNS_PIN = 1 [10:24:56]*** CUTSNS_PIN = 0 [10:24:56]*** Brake cut motor [10:24:56]Read from MH i2c: 01 [10:24:56]MH_I2C_Read... [10:24:56]*** Stop cut motor [10:24:56]*** Cut end [10:24:56]Read from MH i2c: 01 07 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: 01 07 00 9E 27 00 00 00 00 00 FF 0F DA [10:24:56]process_action close_receipt done [10:24:56]requested_data is exist [10:24:56]produce_requested_data [10:24:56]requested_item fm.sn is exist - process it [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 11 00 00 [10:24:56]Write to MH i2c: E2 08 00 9F 27 80 11 00 00 00 00 00 00 40 [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:56]Read from MH i2c: E2 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 17 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 17 00 9F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 92 [10:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:24:56]wFMCommunicate OK [10:24:56]requested_item fd.num is exist - process it [10:24:56]SAM_PROTO_GetFieldsCounters [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 13 00 00 [10:24:56]Write to MH i2c: E2 08 00 A0 27 80 13 00 00 00 00 00 00 43 [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 62 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 62 00 A0 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:57]wFMCommunicate OK [10:24:57]SAM_PROTO_GetFieldsCounters done [10:24:57]requested_item shift.num is exist - process it [10:24:57]requested_item shift.opened is exist - process it [10:24:57]req_shift_opened [10:24:57]FM_GetShiftState [10:24:57]SAM_PROTO_GetShiftState [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 13 01 00 [10:24:57]Write to MH i2c: E2 08 00 A1 27 80 13 01 00 00 00 00 00 45 [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 A1 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 09 [10:24:57]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:24:57]wFMCommunicate OK [10:24:57]SAM_PROTO_GetShiftState done [10:24:57]FM_GetShiftState done [10:24:57]req_shift_opened done [10:24:57]requested_item shift.open_date is exist - process it [10:24:57]req_shift_open_date [10:24:57]req_shift_open_date done [10:24:57]produce_requested_data done [10:24:57]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15281,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:24:57]process_action_free close_receipt [10:24:57]json_value_free [10:24:57]json_value_free done [10:24:57]process_json_proto returns [10:24:57]Send response to host [10:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15281,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:24:57]free response buf [10:24:57]execute_script done [10:24:57]execute_script returns [10:24:57]free content buf [10:24:57]Sock 8.Close socket [10:24:57]Sock 8.Thread stoped [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]accept exits with 9 [10:28:41]New connection [10:28:41]New thread 3066944868 created [10:28:41]Thread 3066801508 joined [10:28:41]Waiting for new connection... [10:28:41] Sock 9.Parse request [10:28:41]Sock 9.Check first char [10:28:41]Sock 9.First char is OK [10:28:41]request: POST /json_proto HTTP/1.0 [10:28:41]Method: POST [10:28:41]URL: /json_proto [10:28:41]Method is POST - this is cgi request [10:28:41]url: /json_proto [10:28:41]query_string will be loaded in cgi processing [10:28:41]execute_cgi json_proto POST (null) [10:28:41]execute_cgi path=json_proto method=POST [10:28:41]POST find Content-Length [10:28:41]Host: 172.17.44.4:8080 [10:28:41]Content-Length: 793 [10:28:41]Content-Type: application/json [10:28:41] [10:28:41]POST finish read [10:28:41]Found Content-Length = 793 [10:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:41]execute_script... [10:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:41]POST & json_proto [10:28:41]process_json_proto [10:28:41]json parsed OK: [10:28:41]protocol is kg_v1.0 [10:28:41]action value=close_receipt [10:28:41]process_action close_receipt [10:28:41]cmd_close_receipt [10:28:41]MH_GetDate [10:28:41]Write to MH i2c: F0 00 00 A2 27 B8 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: F0 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: F0 09 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: F0 09 00 A2 27 00 5D 64 C8 66 0F 81 47 66 ED [10:28:41]GetLastDocTimeStamp 1724408697 [10:28:41]current date 1724408925 [10:28:41]FM_GetShiftState [10:28:41]SAM_PROTO_GetShiftState [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 13 01 00 [10:28:41]Write to MH i2c: E2 08 00 A3 27 80 13 01 00 00 00 00 00 47 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 0E 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 0E 00 A3 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 0B [10:28:41]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:28:41]wFMCommunicate OK [10:28:41]SAM_PROTO_GetShiftState done [10:28:41]FM_GetShiftState done [10:28:41]opened in 1724372406 [10:28:41]opened+sec_in_day 1724458806 [10:28:41]quantity*price = 0 [10:28:41]sum+1 = 1 [10:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 76 23.08.2024 10:28 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15282 ФПД: 230994118117161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T102845&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15282&fm=230994118117161&tin=02508201610067®Number=0000000000162784&sum=0 [10:28:42]StoreToDocumentArchive [10:28:42]shift 102 fd 15282 [10:28:42]save to /storage/0102/doc_00015282 [10:28:42]save last doc name /storage/0102/doc_00015282 to /storage/kkm_last_doc_name [10:28:42]save OK [10:28:42]Clear old archive folders... [10:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:42]tlvbuf is 00514010 [10:28:42]SAM_PROTO_ClearQueue [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 09 00 00 [10:28:42]Write to MH i2c: E2 08 00 B0 27 80 09 00 00 00 00 00 00 49 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 B0 27 00 90 00 4B [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_ClearQueue done [10:28:42]KKMCreateOFDPacket [10:28:42]OFDProtocolAddRootSTLVToBuf [10:28:42]FM_MakeSignedData [10:28:42]FM_MakeSignedData [10:28:42]SAM_PROTO_SignData [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 01 02 [10:28:42]Write to MH i2c: E2 08 00 B1 27 80 0D 01 02 00 00 00 00 51 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 B1 27 00 90 00 4C [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=255 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5D 64 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B2 3B 00 00 35 04 06 00 D2 [10:28:42]Write to MH i2c: E2 02 01 B2 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5D 64 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B2 3B 00 00 35 04 06 00 D2 00 00 F3 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 B2 27 00 90 00 4D [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=10 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 02 02 05 16 82 5B 07 29 [10:28:42]Write to MH i2c: E2 0D 00 B3 27 80 0D 02 02 05 00 16 82 5B 07 29 00 00 81 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 B3 27 00 90 00 4E [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 03 02 [10:28:42]Write to MH i2c: E2 08 00 B4 27 80 0D 03 02 00 00 00 00 56 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 B4 27 00 FE 67 1B 21 B0 6F E0 59 90 00 50 [10:28:42]RAPDU: FE 67 1B 21 B0 6F E0 59 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_SignData done [10:28:42]FM_MakeSignedData done [10:28:42]CreateOFDProtocolMessage [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 B5 27 80 11 00 00 00 00 00 00 56 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 B5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A8 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:28:42]wFMCommunicate OK [10:28:42]CreateOFDProtocolMessage done [10:28:42]OFDSenderStorePacket 15282 [10:28:42]StoreOFDPacket docnum=15282 [10:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 75 06 07 01 36 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5D 64 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B2 3B 00 00 35 04 06 00 D2 16 82 5B 07 29 FE 67 1B 21 B0 6F E0 59 [10:28:42]CheckFolder [10:28:42]dirname=/storage/ofd_packets [10:28:42]CheckFolder done [10:28:42]ProducePacketName [10:28:42]name=ofd_packets/00015282 [10:28:42]NVStorageSaveData ofd_packets/00015282 [10:28:42]File name is /storage/ofd_packets/00015282 [10:28:42]Write 301 bytes [10:28:42]NVStorageSaveData done [10:28:42]OFDSenderStorePacket done [10:28:42]KKMCreateOFDPacket done [10:28:42]NVStorageSaveData kkm_last_timestamp [10:28:42]File name is /storage/kkm_last_timestamp [10:28:42]Write 4 bytes [10:28:42]NVStorageSaveData done [10:28:42]ExternCall_PrintAddStr [10:28:42]wPrintStart [10:28:42]Write to MH i2c: 01 00 00 B6 27 DD [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 B6 27 00 00 00 00 00 FF 0F F2 [10:28:42]RasterBufferAndPrint [10:28:42]line Счет N : (1)2078229 [10:28:42]line ИНН: 02508201610067 [10:28:42]line Контрольно-Кассовый Чек [10:28:42]line ПРОДАЖА [10:28:42]line ТРК (МРК, ГНК) : 63 [10:28:42]line Товар: 2710124130 [10:28:42]line Аи-92-К-4 [10:28:42]line 10.000 * 0.00 [10:28:42]line = 0.00 [10:28:42]line НДС 12% НСП 1% [10:28:42]line > о реализуемом товаре [10:28:42]line ИТОГО: 0.00 [10:28:42]line НСП 1% : 0.00 [10:28:42]line НДС 12% : 0.00 [10:28:42]line Наличными: 0.00 [10:28:42]line Безнал.: 0.00 [10:28:42]line Место: АЗС № 135 "Партнер Нефть" [10:28:42]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:28:42]line СНО: Общий режим [10:28:42]line Чек 76 23.08.2024 10:28 [10:28:42]line Смена: 102 ФФД: 1.0 [10:28:42]line ЗНМ: 0300000144 [10:28:42]line РНМ: 0000000000162784 [10:28:42]line Версия ККМ: v1.0 [10:28:42]line Талоны: Топливная Карта [10:28:42]line 92875 [10:28:42]line ФМ: 0000000002094529 [10:28:42]line ФД: 15282 [10:28:42]line ФПД: 230994118117161 [10:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T102845&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15282&fm=230994118117161&tin=02508201610067®Number=0000000000162784&sum=0 [10:28:43]OFD Sender: Processing packet 15282 [packets to send 8, broken 7] [10:28:43]ProducePacketName [10:28:43]name=ofd_packets/00015282 [10:28:43]OFD Sender: To server: pG, [10:28:43]CommunicateWithHost lk.salyk.kg:30040 [10:28:43]ConnectInit lk.salyk.kg [10:28:43]written 0, free lines is 4095 [10:28:43]Connected sock=10 [10:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 75 06 07 01 36 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 5D 64 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B2 3B 00 00 35 04 06 00 D2 16 82 5B 07 29 FE 67 1B 21 B0 6F E0 59 [10:28:43]Write to MH i2c: 01 00 00 E0 27 07 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 07 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 F2 0C 0C [10:28:43]RasterBufferAndPrint [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]written 0, free lines is 3323 [10:28:43]MH_Cut [10:28:43]Write to MH i2c: D1 01 00 E7 27 01 E0 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 01 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 01 00 E7 27 00 DF [10:28:43]Write to MH i2c: 01 00 00 E8 27 0F [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 DE 0E 47 00 91 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B2 3B 00 00 F4 03 04 00 B8 0E C8 66 B6 04 01 00 00 A4 F8 D0 BD AC C9 DB 86 [10:28:43]CommunicateWithHost err = 0 [10:28:43]CheckOFDResponse [10:28:43]1017 (14) - 77093643461234 [10:28:43]1041 (16) - 0000000002094529 [10:28:43]1040 (4) - 15282 [10:28:43]1012 (4) - 23.08.2024 04:23 [10:28:43]1206 (1) - 0 [10:28:43]OFD Sender: Remove packet 15282 [10:28:43]ProducePacketName [10:28:43]name=ofd_packets/00015282 [10:28:43]NVStorageDeleteData [10:28:44]OFD Sender: No OFD packet to send [10:28:44]*** Cut start [10:28:44]*** Partial cut [10:28:44]*** CUTSNS_PIN = 1 [10:28:44]*** CUTSNS_PIN = 0 [10:28:44]*** Brake cut motor [10:28:45]Read from MH i2c: 01 [10:28:45]MH_I2C_Read... [10:28:45]*** Stop cut motor [10:28:45]*** Cut end [10:28:45]Read from MH i2c: 01 07 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 FF 0F 24 [10:28:45]process_action close_receipt done [10:28:45]requested_data is exist [10:28:45]produce_requested_data [10:28:45]requested_item fm.sn is exist - process it [10:28:45]wFMCommunicate request_size=4 [10:28:45]MH_SAM_APDU [10:28:45]CAPDU: 80 11 00 00 [10:28:45]Write to MH i2c: E2 08 00 E9 27 80 11 00 00 00 00 00 00 8A [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 17 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 17 00 E9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 DC [10:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:28:45]wFMCommunicate OK [10:28:45]requested_item fd.num is exist - process it [10:28:45]SAM_PROTO_GetFieldsCounters [10:28:45]wFMCommunicate request_size=4 [10:28:45]MH_SAM_APDU [10:28:45]CAPDU: 80 13 00 00 [10:28:45]Write to MH i2c: E2 08 00 EA 27 80 13 00 00 00 00 00 00 8D [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 62 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 62 00 EA 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:45]wFMCommunicate OK [10:28:45]SAM_PROTO_GetFieldsCounters done [10:28:45]requested_item shift.num is exist - process it [10:28:45]requested_item shift.opened is exist - process it [10:28:45]req_shift_opened [10:28:45]FM_GetShiftState [10:28:45]SAM_PROTO_GetShiftState [10:28:45]wFMCommunicate request_size=4 [10:28:45]MH_SAM_APDU [10:28:45]CAPDU: 80 13 01 00 [10:28:45]Write to MH i2c: E2 08 00 EB 27 80 13 01 00 00 00 00 00 8F [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 EB 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 53 [10:28:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:28:45]wFMCommunicate OK [10:28:45]SAM_PROTO_GetShiftState done [10:28:45]FM_GetShiftState done [10:28:45]req_shift_opened done [10:28:45]requested_item shift.open_date is exist - process it [10:28:45]req_shift_open_date [10:28:45]req_shift_open_date done [10:28:45]produce_requested_data done [10:28:45]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15282,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:28:45]process_action_free close_receipt [10:28:45]json_value_free [10:28:45]json_value_free done [10:28:45]process_json_proto returns [10:28:45]Send response to host [10:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15282,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:28:45]free response buf [10:28:45]execute_script done [10:28:45]execute_script returns [10:28:45]free content buf [10:28:45]Sock 9.Close socket [10:28:45]Sock 9.Thread stoped [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:36]accept exits with 8 [10:35:36]New connection [10:35:36]New thread 3066801508 created [10:35:36]Thread 3066944868 joined [10:35:36]Waiting for new connection... [10:35:36] Sock 8.Parse request [10:35:36]Sock 8.Check first char [10:35:36]Sock 8.First char is OK [10:35:36]request: POST /json_proto HTTP/1.0 [10:35:36]Method: POST [10:35:36]URL: /json_proto [10:35:36]Method is POST - this is cgi request [10:35:36]url: /json_proto [10:35:36]query_string will be loaded in cgi processing [10:35:36]execute_cgi json_proto POST (null) [10:35:36]execute_cgi path=json_proto method=POST [10:35:36]POST find Content-Length [10:35:36]Host: 172.17.44.4:8080 [10:35:36]Content-Length: 801 [10:35:36]Content-Type: application/json [10:35:36] [10:35:36]POST finish read [10:35:36]Found Content-Length = 801 [10:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]execute_script... [10:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]POST & json_proto [10:35:36]process_json_proto [10:35:36]json parsed OK: [10:35:36]protocol is kg_v1.0 [10:35:36]action value=close_receipt [10:35:36]process_action close_receipt [10:35:36]cmd_close_receipt [10:35:36]MH_GetDate [10:35:36]Write to MH i2c: F0 00 00 EC 27 02 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 EC 27 00 FC 65 C8 66 0F 81 47 66 D7 [10:35:36]GetLastDocTimeStamp 1724408925 [10:35:36]current date 1724409340 [10:35:36]FM_GetShiftState [10:35:36]SAM_PROTO_GetShiftState [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 13 01 00 [10:35:36]Write to MH i2c: E2 08 00 ED 27 80 13 01 00 00 00 00 00 91 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 ED 27 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 55 [10:35:36]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_GetShiftState done [10:35:36]FM_GetShiftState done [10:35:36]opened in 1724372406 [10:35:36]opened+sec_in_day 1724458806 [10:35:36]quantity*price = 100050 [10:35:36]sum+1 = 100052 [10:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 77 23.08.2024 10:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15283 ФПД: 149090411353983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103540&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15283&fm=149090411353983&tin=02508201610067®Number=0000000000162784&sum=100051 [10:35:37]StoreToDocumentArchive [10:35:37]shift 102 fd 15283 [10:35:37]save to /storage/0102/doc_00015283 [10:35:37]save last doc name /storage/0102/doc_00015283 to /storage/kkm_last_doc_name [10:35:37]save OK [10:35:37]Clear old archive folders... [10:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:37]tlvbuf is 004BC2D0 [10:35:37]SAM_PROTO_ClearQueue [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 09 00 00 [10:35:37]Write to MH i2c: E2 08 00 FA 27 80 09 00 00 00 00 00 00 93 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_ClearQueue done [10:35:37]KKMCreateOFDPacket [10:35:37]OFDProtocolAddRootSTLVToBuf [10:35:37]FM_MakeSignedData [10:35:37]FM_MakeSignedData [10:35:37]SAM_PROTO_SignData [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 01 02 [10:35:37]Write to MH i2c: E2 08 00 FB 27 80 0D 01 02 00 00 00 00 9B [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=255 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FC 65 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B3 3B 00 00 35 04 06 00 87 98 D1 02 [10:35:37]Write to MH i2c: E2 02 01 FC 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FC 65 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B3 3B 00 00 35 04 06 00 87 98 D1 02 00 00 AA [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 FC 27 00 90 00 97 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=7 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 02 02 02 17 7F [10:35:37]Write to MH i2c: E2 0A 00 FD 27 80 0D 02 02 02 00 17 7F 00 00 38 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 FD 27 00 90 00 98 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 03 02 [10:35:37]Write to MH i2c: E2 08 00 FE 27 80 0D 03 02 00 00 00 00 A0 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0B 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0B 00 FE 27 00 AD 74 ED 02 FB 9B 51 14 90 00 AC [10:35:37]RAPDU: AD 74 ED 02 FB 9B 51 14 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_SignData done [10:35:37]FM_MakeSignedData done [10:35:37]CreateOFDProtocolMessage [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 11 00 00 [10:35:37]Write to MH i2c: E2 08 00 FF 27 80 11 00 00 00 00 00 00 A0 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 FF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F2 [10:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:35:38]wFMCommunicate OK [10:35:38]CreateOFDProtocolMessage done [10:35:38]OFDSenderStorePacket 15283 [10:35:38]StoreOFDPacket docnum=15283 [10:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 B9 93 04 01 03 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FC 65 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B3 3B 00 00 35 04 06 00 87 98 D1 02 17 7F AD 74 ED 02 FB 9B 51 14 [10:35:38]CheckFolder [10:35:38]dirname=/storage/ofd_packets [10:35:38]CheckFolder done [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00015283 [10:35:38]NVStorageSaveData ofd_packets/00015283 [10:35:38]File name is /storage/ofd_packets/00015283 [10:35:38]Write 298 bytes [10:35:38]NVStorageSaveData done [10:35:38]OFDSenderStorePacket done [10:35:38]KKMCreateOFDPacket done [10:35:38]NVStorageSaveData kkm_last_timestamp [10:35:38]File name is /storage/kkm_last_timestamp [10:35:38]Write 4 bytes [10:35:38]NVStorageSaveData done [10:35:38]ExternCall_PrintAddStr [10:35:38]wPrintStart [10:35:38]Write to MH i2c: 01 00 00 00 28 28 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 FF 0F 3D [10:35:38]RasterBufferAndPrint [10:35:38]line Счет N : (1)2078237 [10:35:38]line ИНН: 02508201610067 [10:35:38]line Контрольно-Кассовый Чек [10:35:38]line ПРОДАЖА [10:35:38]line ТРК (МРК, ГНК) : 21 [10:35:38]line Товар: 2710194210 [10:35:38]line ДТ-К-5 [10:35:38]line 13.130 * 76.20 [10:35:38]line = 1000.51 [10:35:38]line НДС 12% НСП 1% [10:35:38]line > о реализуемом товаре [10:35:38]line ИТОГО: 1000.51 [10:35:38]line НСП 1% : 8.85 [10:35:38]line НДС 12% : 106.25 [10:35:38]line Наличными: 0.00 [10:35:38]line Безнал.: 1000.51 [10:35:38]line Место: АЗС № 135 "Партнер Нефть" [10:35:38]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:35:38]line СНО: Общий режим [10:35:38]line Чек 77 23.08.2024 10:35 [10:35:38]line Смена: 102 ФФД: 1.0 [10:35:38]line ЗНМ: 0300000144 [10:35:38]line РНМ: 0000000000162784 [10:35:38]line Версия ККМ: v1.0 [10:35:38]line Платежная система: O! деньги [10:35:38]line ФМ: 0000000002094529 [10:35:38]line ФД: 15283 [10:35:38]line ФПД: 149090411353983 [10:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103540&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15283&fm=149090411353983&tin=02508201610067®Number=0000000000162784&sum=100051 [10:35:38]OFD Sender: Processing packet 15283 [packets to send 8, broken 7] [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00015283 [10:35:38]OFD Sender: To server: pG, [10:35:38]CommunicateWithHost lk.salyk.kg:30040 [10:35:38]ConnectInit lk.salyk.kg [10:35:38]written 0, free lines is 4095 [10:35:38]Connected sock=9 [10:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 B9 93 04 01 03 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 FC 65 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B3 3B 00 00 35 04 06 00 87 98 D1 02 17 7F AD 74 ED 02 FB 9B 51 14 [10:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 23 48 47 00 1D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B3 3B 00 00 F4 03 04 00 57 10 C8 66 B6 04 01 00 00 F5 23 B5 53 95 8C FC 6D [10:35:38]CommunicateWithHost err = 0 [10:35:38]CheckOFDResponse [10:35:38]1017 (14) - 77093643461234 [10:35:38]1041 (16) - 0000000002094529 [10:35:38]1040 (4) - 15283 [10:35:38]1012 (4) - 23.08.2024 04:30 [10:35:38]1206 (1) - 0 [10:35:38]OFD Sender: Remove packet 15283 [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00015283 [10:35:38]NVStorageDeleteData [10:35:38]Write to MH i2c: 01 00 00 2A 28 52 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 2A 28 00 00 00 00 00 F4 0C 59 [10:35:38]RasterBufferAndPrint [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]written 0, free lines is 3323 [10:35:38]MH_Cut [10:35:38]Write to MH i2c: D1 01 00 31 28 01 2B [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 01 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 01 00 31 28 00 2A [10:35:38]Write to MH i2c: 01 00 00 32 28 5A [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:39]OFD Sender: No OFD packet to send [10:35:39]*** Cut start [10:35:39]*** Partial cut [10:35:39]*** CUTSNS_PIN = 1 [10:35:39]*** CUTSNS_PIN = 0 [10:35:39]*** Brake cut motor [10:35:40]Read from MH i2c: 01 [10:35:40]MH_I2C_Read... [10:35:40]*** Stop cut motor [10:35:40]*** Cut end [10:35:40]Read from MH i2c: 01 07 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 FF 0F 6F [10:35:40]process_action close_receipt done [10:35:40]requested_data is exist [10:35:40]produce_requested_data [10:35:40]requested_item fm.sn is exist - process it [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 11 00 00 [10:35:40]Write to MH i2c: E2 08 00 33 28 80 11 00 00 00 00 00 00 D5 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 33 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 27 [10:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:35:40]wFMCommunicate OK [10:35:40]requested_item fd.num is exist - process it [10:35:40]SAM_PROTO_GetFieldsCounters [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 00 00 [10:35:40]Write to MH i2c: E2 08 00 34 28 80 13 00 00 00 00 00 00 D8 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 34 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetFieldsCounters done [10:35:40]requested_item shift.num is exist - process it [10:35:40]requested_item shift.opened is exist - process it [10:35:40]req_shift_opened [10:35:40]FM_GetShiftState [10:35:40]SAM_PROTO_GetShiftState [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 01 00 [10:35:40]Write to MH i2c: E2 08 00 35 28 80 13 01 00 00 00 00 00 DA [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 35 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 9E [10:35:40]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetShiftState done [10:35:40]FM_GetShiftState done [10:35:40]req_shift_opened done [10:35:40]requested_item shift.open_date is exist - process it [10:35:40]req_shift_open_date [10:35:40]req_shift_open_date done [10:35:40]produce_requested_data done [10:35:40]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15283,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:35:40]process_action_free close_receipt [10:35:40]json_value_free [10:35:40]json_value_free done [10:35:40]process_json_proto returns [10:35:40]Send response to host [10:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15283,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:35:40]free response buf [10:35:40]execute_script done [10:35:40]execute_script returns [10:35:40]free content buf [10:35:40]Sock 8.Close socket [10:35:40]Sock 8.Thread stoped [10:35:44]OFD Sender: No OFD packet to send [10:35:45]accept exits with 10 [10:35:45]New connection [10:35:45]New thread 3066944868 created [10:35:45]Thread 3066801508 joined [10:35:45]Waiting for new connection... [10:35:45] Sock 10.Parse request [10:35:45]Sock 10.Check first char [10:35:45]Sock 10.First char is OK [10:35:45]request: POST /json_proto HTTP/1.0 [10:35:45]Method: POST [10:35:45]URL: /json_proto [10:35:45]Method is POST - this is cgi request [10:35:45]url: /json_proto [10:35:45]query_string will be loaded in cgi processing [10:35:45]execute_cgi json_proto POST (null) [10:35:45]execute_cgi path=json_proto method=POST [10:35:45]POST find Content-Length [10:35:45]Host: 172.17.44.4:8080 [10:35:45]Content-Length: 792 [10:35:45]Content-Type: application/json [10:35:45] [10:35:45]POST finish read [10:35:45]Found Content-Length = 792 [10:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:45]execute_script... [10:35:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:45]POST & json_proto [10:35:45]process_json_proto [10:35:45]json parsed OK: [10:35:45]protocol is kg_v1.0 [10:35:45]action value=close_receipt [10:35:45]process_action close_receipt [10:35:45]cmd_close_receipt [10:35:45]MH_GetDate [10:35:45]Write to MH i2c: F0 00 00 36 28 4D [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: F0 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: F0 09 00 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: F0 09 00 36 28 00 06 66 C8 66 0F 81 47 66 2D [10:35:45]GetLastDocTimeStamp 1724409340 [10:35:45]current date 1724409350 [10:35:45]FM_GetShiftState [10:35:45]SAM_PROTO_GetShiftState [10:35:45]wFMCommunicate request_size=4 [10:35:45]MH_SAM_APDU [10:35:45]CAPDU: 80 13 01 00 [10:35:45]Write to MH i2c: E2 08 00 37 28 80 13 01 00 00 00 00 00 DC [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 0E 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 0E 00 37 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 A0 [10:35:46]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:35:46]wFMCommunicate OK [10:35:46]SAM_PROTO_GetShiftState done [10:35:46]FM_GetShiftState done [10:35:46]opened in 1724372406 [10:35:46]opened+sec_in_day 1724458806 [10:35:46]quantity*price = 0 [10:35:46]sum+1 = 1 [10:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 78 23.08.2024 10:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливные Талоны 1 ФМ: 0000000002094529 ФД: 15284 ФПД: 17534084434091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103550&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15284&fm=17534084434091&tin=02508201610067®Number=0000000000162784&sum=0 [10:35:47]StoreToDocumentArchive [10:35:47]shift 102 fd 15284 [10:35:47]save to /storage/0102/doc_00015284 [10:35:47]save last doc name /storage/0102/doc_00015284 to /storage/kkm_last_doc_name [10:35:47]save OK [10:35:47]Clear old archive folders... [10:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:47]tlvbuf is 00475B70 [10:35:47]SAM_PROTO_ClearQueue [10:35:47]wFMCommunicate request_size=4 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 09 00 00 [10:35:47]Write to MH i2c: E2 08 00 44 28 80 09 00 00 00 00 00 00 DE [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [10:35:47]RAPDU: 90 00 [10:35:47]wFMCommunicate OK [10:35:47]SAM_PROTO_ClearQueue done [10:35:47]KKMCreateOFDPacket [10:35:47]OFDProtocolAddRootSTLVToBuf [10:35:47]FM_MakeSignedData [10:35:47]FM_MakeSignedData [10:35:47]SAM_PROTO_SignData [10:35:47]wFMCommunicate request_size=4 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 0D 01 02 [10:35:47]Write to MH i2c: E2 08 00 45 28 80 0D 01 02 00 00 00 00 E6 [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 45 28 00 90 00 E1 [10:35:47]RAPDU: 90 00 [10:35:47]wFMCommunicate OK [10:35:47]wFMCommunicate request_size=255 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B4 3B 00 00 35 04 06 00 0F F2 78 DF [10:35:47]Write to MH i2c: E2 02 01 46 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B4 3B 00 00 35 04 06 00 0F F2 78 DF 00 00 CA [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 46 28 00 90 00 E2 [10:35:47]RAPDU: 90 00 [10:35:47]wFMCommunicate OK [10:35:47]wFMCommunicate request_size=7 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 0D 02 02 02 C8 AB [10:35:47]Write to MH i2c: E2 0A 00 47 28 80 0D 02 02 02 00 C8 AB 00 00 60 [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [10:35:47]RAPDU: 90 00 [10:35:47]wFMCommunicate OK [10:35:47]wFMCommunicate request_size=4 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 0D 03 02 [10:35:47]Write to MH i2c: E2 08 00 48 28 80 0D 03 02 00 00 00 00 EB [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 0B 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 0B 00 48 28 00 A4 AB 01 F5 E9 1B 25 E3 90 00 3D [10:35:47]RAPDU: A4 AB 01 F5 E9 1B 25 E3 90 00 [10:35:47]wFMCommunicate OK [10:35:47]SAM_PROTO_SignData done [10:35:47]FM_MakeSignedData done [10:35:47]CreateOFDProtocolMessage [10:35:47]wFMCommunicate request_size=4 [10:35:47]MH_SAM_APDU [10:35:47]CAPDU: 80 11 00 00 [10:35:47]Write to MH i2c: E2 08 00 49 28 80 11 00 00 00 00 00 00 EB [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:47]Read from MH i2c: E2 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 17 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: E2 17 00 49 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 3D [10:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:35:47]wFMCommunicate OK [10:35:47]CreateOFDProtocolMessage done [10:35:47]OFDSenderStorePacket 15284 [10:35:47]StoreOFDPacket docnum=15284 [10:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 73 FC 04 01 2D FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B4 3B 00 00 35 04 06 00 0F F2 78 DF C8 AB A4 AB 01 F5 E9 1B 25 E3 [10:35:47]CheckFolder [10:35:47]dirname=/storage/ofd_packets [10:35:47]CheckFolder done [10:35:47]ProducePacketName [10:35:47]name=ofd_packets/00015284 [10:35:47]NVStorageSaveData ofd_packets/00015284 [10:35:47]File name is /storage/ofd_packets/00015284 [10:35:47]Write 298 bytes [10:35:47]NVStorageSaveData done [10:35:47]OFDSenderStorePacket done [10:35:47]KKMCreateOFDPacket done [10:35:47]NVStorageSaveData kkm_last_timestamp [10:35:47]File name is /storage/kkm_last_timestamp [10:35:47]Write 4 bytes [10:35:47]NVStorageSaveData done [10:35:47]ExternCall_PrintAddStr [10:35:47]wPrintStart [10:35:47]Write to MH i2c: 01 00 00 4A 28 72 [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 07 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 FF 0F 87 [10:35:47]RasterBufferAndPrint [10:35:47]line Счет N : (1)2078235 [10:35:47]line ИНН: 02508201610067 [10:35:47]line Контрольно-Кассовый Чек [10:35:47]line ПРОДАЖА [10:35:47]line ТРК (МРК, ГНК) : 11 [10:35:47]line Товар: 2710194210 [10:35:47]line ДТ-К-5 [10:35:47]line 26.250 * 0.00 [10:35:47]line = 0.00 [10:35:47]line НДС 12% НСП 1% [10:35:47]line > о реализуемом товаре [10:35:47]line ИТОГО: 0.00 [10:35:47]line НСП 1% : 0.00 [10:35:47]line НДС 12% : 0.00 [10:35:47]line Наличными: 0.00 [10:35:47]line Безнал.: 0.00 [10:35:47]line Место: АЗС № 135 "Партнер Нефть" [10:35:47]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:35:47]line СНО: Общий режим [10:35:47]line Чек 78 23.08.2024 10:35 [10:35:47]line Смена: 102 ФФД: 1.0 [10:35:47]line ЗНМ: 0300000144 [10:35:47]line РНМ: 0000000000162784 [10:35:47]line Версия ККМ: v1.0 [10:35:47]line Талоны: Топливные Талоны [10:35:47]line 1 [10:35:47]line ФМ: 0000000002094529 [10:35:47]line ФД: 15284 [10:35:47]line ФПД: 17534084434091 [10:35:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103550&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15284&fm=17534084434091&tin=02508201610067®Number=0000000000162784&sum=0 [10:35:47]written 0, free lines is 4095 [10:35:47]OFD Sender: Processing packet 15284 [packets to send 8, broken 7] [10:35:47]ProducePacketName [10:35:47]name=ofd_packets/00015284 [10:35:47]OFD Sender: To server: pG, [10:35:47]CommunicateWithHost lk.salyk.kg:30040 [10:35:47]ConnectInit lk.salyk.kg [10:35:47]Connected sock=9 [10:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 73 FC 04 01 2D FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 06 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B4 3B 00 00 35 04 06 00 0F F2 78 DF C8 AB A4 AB 01 F5 E9 1B 25 E3 [10:35:48]Write to MH i2c: 01 00 00 74 28 9C [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 74 28 00 00 00 00 00 DC 0C 8B [10:35:48]RasterBufferAndPrint [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]written 0, free lines is 3304 [10:35:48]MH_Cut [10:35:48]Write to MH i2c: D1 01 00 7B 28 01 75 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 01 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 01 00 7B 28 00 74 [10:35:48]Write to MH i2c: 01 00 00 7C 28 A4 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 E8 5E 47 00 75 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 32 30 39 34 35 32 39 10 04 04 00 B4 3B 00 00 F4 03 04 00 61 10 C8 66 B6 04 01 00 00 53 4B 14 FD 8C 6D 91 9E [10:35:48]CommunicateWithHost err = 0 [10:35:48]CheckOFDResponse [10:35:48]1017 (14) - 77093643461234 [10:35:48]1041 (16) - 0000000002094529 [10:35:48]1040 (4) - 15284 [10:35:48]1012 (4) - 23.08.2024 04:30 [10:35:48]1206 (1) - 0 [10:35:48]OFD Sender: Remove packet 15284 [10:35:48]ProducePacketName [10:35:48]name=ofd_packets/00015284 [10:35:48]NVStorageDeleteData [10:35:48]OFD Sender: No OFD packet to send [10:35:48]*** Cut start [10:35:48]*** Partial cut [10:35:48]*** CUTSNS_PIN = 1 [10:35:48]*** CUTSNS_PIN = 0 [10:35:49]*** Brake cut motor [10:35:49]Read from MH i2c: 01 [10:35:49]MH_I2C_Read... [10:35:49]*** Stop cut motor [10:35:49]*** Cut end [10:35:49]Read from MH i2c: 01 07 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: 01 07 00 7C 28 00 00 00 00 00 FF 0F B9 [10:35:49]process_action close_receipt done [10:35:49]requested_data is exist [10:35:49]produce_requested_data [10:35:49]requested_item fm.sn is exist - process it [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 11 00 00 [10:35:49]Write to MH i2c: E2 08 00 7D 28 80 11 00 00 00 00 00 00 1F [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 17 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 17 00 7D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 71 [10:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:35:49]wFMCommunicate OK [10:35:49]requested_item fd.num is exist - process it [10:35:49]SAM_PROTO_GetFieldsCounters [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 13 00 00 [10:35:49]Write to MH i2c: E2 08 00 7E 28 80 13 00 00 00 00 00 00 22 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 62 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 62 00 7E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:49]wFMCommunicate OK [10:35:49]SAM_PROTO_GetFieldsCounters done [10:35:49]requested_item shift.num is exist - process it [10:35:49]requested_item shift.opened is exist - process it [10:35:49]req_shift_opened [10:35:49]FM_GetShiftState [10:35:49]SAM_PROTO_GetShiftState [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 13 01 00 [10:35:49]Write to MH i2c: E2 08 00 7F 28 80 13 01 00 00 00 00 00 24 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 0E 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 0E 00 7F 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 E8 [10:35:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:35:49]wFMCommunicate OK [10:35:49]SAM_PROTO_GetShiftState done [10:35:49]FM_GetShiftState done [10:35:49]req_shift_opened done [10:35:49]requested_item shift.open_date is exist - process it [10:35:49]req_shift_open_date [10:35:49]req_shift_open_date done [10:35:49]produce_requested_data done [10:35:49]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15284,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:35:49]process_action_free close_receipt [10:35:49]json_value_free [10:35:49]json_value_free done [10:35:49]process_json_proto returns [10:35:49]Send response to host [10:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15284,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:35:49]free response buf [10:35:49]execute_script done [10:35:49]execute_script returns [10:35:49]free content buf [10:35:49]Sock 10.Close socket [10:35:49]Sock 10.Thread stoped [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:02]accept exits with 8 [10:37:02]New connection [10:37:02]New thread 3066801508 created [10:37:02]Thread 3066944868 joined [10:37:02]Waiting for new connection... [10:37:02] Sock 8.Parse request [10:37:02]Sock 8.Check first char [10:37:02]Sock 8.First char is OK [10:37:02]request: POST /json_proto HTTP/1.0 [10:37:02]Method: POST [10:37:02]URL: /json_proto [10:37:02]Method is POST - this is cgi request [10:37:02]url: /json_proto [10:37:02]query_string will be loaded in cgi processing [10:37:02]execute_cgi json_proto POST (null) [10:37:02]execute_cgi path=json_proto method=POST [10:37:02]POST find Content-Length [10:37:02]Host: 172.17.44.4:8080 [10:37:02]Content-Length: 682 [10:37:02]Content-Type: application/json [10:37:02] [10:37:02]POST finish read [10:37:02]Found Content-Length = 682 [10:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:02]execute_script... [10:37:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:02]POST & json_proto [10:37:02]process_json_proto [10:37:02]json parsed OK: [10:37:02]protocol is kg_v1.0 [10:37:02]action value=close_receipt [10:37:02]process_action close_receipt [10:37:02]cmd_close_receipt [10:37:02]MH_GetDate [10:37:02]Write to MH i2c: F0 00 00 80 28 97 [10:37:02]Write i2c OK [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: F0 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: F0 09 00 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: F0 09 00 80 28 00 52 66 C8 66 0F 81 47 66 C3 [10:37:02]GetLastDocTimeStamp 1724409350 [10:37:02]current date 1724409426 [10:37:02]FM_GetShiftState [10:37:02]SAM_PROTO_GetShiftState [10:37:02]wFMCommunicate request_size=4 [10:37:02]MH_SAM_APDU [10:37:02]CAPDU: 80 13 01 00 [10:37:02]Write to MH i2c: E2 08 00 81 28 80 13 01 00 00 00 00 00 26 [10:37:02]Write i2c OK [10:37:02]MH_I2C_Read... [10:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:02]Read from MH i2c: E2 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 0E 00 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 0E 00 81 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 EA [10:37:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:37:02]wFMCommunicate OK [10:37:02]SAM_PROTO_GetShiftState done [10:37:02]FM_GetShiftState done [10:37:02]opened in 1724372406 [10:37:02]opened+sec_in_day 1724458806 [10:37:02]quantity*price = 50003 [10:37:02]sum+1 = 50005 [10:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 79 23.08.2024 10:37 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15285 ФПД: 126755992437439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103706&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15285&fm=126755992437439&tin=02508201610067®Number=0000000000162784&sum=50000 [10:37:03]StoreToDocumentArchive [10:37:03]shift 102 fd 15285 [10:37:03]save to /storage/0102/doc_00015285 [10:37:03]save last doc name /storage/0102/doc_00015285 to /storage/kkm_last_doc_name [10:37:03]save OK [10:37:03]Clear old archive folders... [10:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:37:03]tlvbuf is 00475180 [10:37:03]SAM_PROTO_ClearQueue [10:37:03]wFMCommunicate request_size=4 [10:37:03]MH_SAM_APDU [10:37:03]CAPDU: 80 09 00 00 [10:37:03]Write to MH i2c: E2 08 00 8E 28 80 09 00 00 00 00 00 00 28 [10:37:03]Write i2c OK [10:37:03]MH_I2C_Read... [10:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:03]Read from MH i2c: E2 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 8E 28 00 90 00 2A [10:37:03]RAPDU: 90 00 [10:37:03]wFMCommunicate OK [10:37:03]SAM_PROTO_ClearQueue done [10:37:03]KKMCreateOFDPacket [10:37:03]OFDProtocolAddRootSTLVToBuf [10:37:03]FM_MakeSignedData [10:37:03]FM_MakeSignedData [10:37:03]SAM_PROTO_SignData [10:37:03]wFMCommunicate request_size=4 [10:37:03]MH_SAM_APDU [10:37:03]CAPDU: 80 0D 01 02 [10:37:03]Write to MH i2c: E2 08 00 8F 28 80 0D 01 02 00 00 00 00 30 [10:37:03]Write i2c OK [10:37:03]MH_I2C_Read... [10:37:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:03]Read from MH i2c: E2 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 8F 28 00 90 00 2B [10:37:03]RAPDU: 90 00 [10:37:03]wFMCommunicate OK [10:37:03]wFMCommunicate request_size=255 [10:37:03]MH_SAM_APDU [10:37:03]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 52 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B5 3B 00 00 35 04 06 00 73 48 [10:37:03]Write to MH i2c: E2 02 01 90 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 52 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B5 3B 00 00 35 04 06 00 73 48 00 00 0B [10:37:03]Write i2c OK [10:37:03]MH_I2C_Read... [10:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:03]Read from MH i2c: E2 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 90 28 00 90 00 2C [10:37:03]RAPDU: 90 00 [10:37:03]wFMCommunicate OK [10:37:03]wFMCommunicate request_size=9 [10:37:03]MH_SAM_APDU [10:37:03]CAPDU: 80 0D 02 02 04 AD E7 02 BF [10:37:03]Write to MH i2c: E2 0C 00 91 28 80 0D 02 02 04 00 AD E7 02 BF 00 00 90 [10:37:03]Write i2c OK [10:37:03]MH_I2C_Read... [10:37:03]OFD Sender: No OFD packet to send [10:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:03]Read from MH i2c: E2 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 [10:37:03]MH_I2C_Read... [10:37:03]Read from MH i2c: E2 03 00 91 28 00 90 00 2D [10:37:03]RAPDU: 90 00 [10:37:03]wFMCommunicate OK [10:37:03]wFMCommunicate request_size=4 [10:37:03]MH_SAM_APDU [10:37:03]CAPDU: 80 0D 03 02 [10:37:03]Write to MH i2c: E2 08 00 92 28 80 0D 03 02 00 00 00 00 35 [10:37:03]Write i2c OK [10:37:03]MH_I2C_Read... [10:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:04]Read from MH i2c: E2 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 0B 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 0B 00 92 28 00 D8 16 57 92 95 DF C1 85 90 00 C7 [10:37:04]RAPDU: D8 16 57 92 95 DF C1 85 90 00 [10:37:04]wFMCommunicate OK [10:37:04]SAM_PROTO_SignData done [10:37:04]FM_MakeSignedData done [10:37:04]CreateOFDProtocolMessage [10:37:04]wFMCommunicate request_size=4 [10:37:04]MH_SAM_APDU [10:37:04]CAPDU: 80 11 00 00 [10:37:04]Write to MH i2c: E2 08 00 93 28 80 11 00 00 00 00 00 00 35 [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:04]Read from MH i2c: E2 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 17 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: E2 17 00 93 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 87 [10:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:37:04]wFMCommunicate OK [10:37:04]CreateOFDProtocolMessage done [10:37:04]OFDSenderStorePacket 15285 [10:37:04]StoreOFDPacket docnum=15285 [10:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0E 01 00 00 37 64 06 01 5B FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 52 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B5 3B 00 00 35 04 06 00 73 48 AD E7 02 BF D8 16 57 92 95 DF C1 85 [10:37:04]CheckFolder [10:37:04]dirname=/storage/ofd_packets [10:37:04]CheckFolder done [10:37:04]ProducePacketName [10:37:04]name=ofd_packets/00015285 [10:37:04]NVStorageSaveData ofd_packets/00015285 [10:37:04]File name is /storage/ofd_packets/00015285 [10:37:04]Write 300 bytes [10:37:04]NVStorageSaveData done [10:37:04]OFDSenderStorePacket done [10:37:04]KKMCreateOFDPacket done [10:37:04]NVStorageSaveData kkm_last_timestamp [10:37:04]File name is /storage/kkm_last_timestamp [10:37:04]Write 4 bytes [10:37:04]NVStorageSaveData done [10:37:04]ExternCall_PrintAddStr [10:37:04]wPrintStart [10:37:04]Write to MH i2c: 01 00 00 94 28 BC [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 07 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [10:37:04]RasterBufferAndPrint [10:37:04]line Счет N : (1)2078236 [10:37:04]line ИНН: 02508201610067 [10:37:04]line Контрольно-Кассовый Чек [10:37:04]line ПРОДАЖА [10:37:04]line ТРК (МРК, ГНК) : 81 [10:37:04]line Товар: 2711190000 [10:37:04]line ГАЗ-К-5 [10:37:04]line 13.370 * 37.40 [10:37:04]line = 500.04 [10:37:04]line НДС 12% НСП 1% [10:37:04]line > о реализуемом товаре [10:37:04]line ОКРУГЛЕНИЕ: -0.04 [10:37:04]line ИТОГО: 500.00 [10:37:04]line Внесено: 500.00 [10:37:04]line СДАЧА: 0.00 [10:37:04]line НСП 1% : 4.42 [10:37:04]line НДС 12% : 53.10 [10:37:04]line Наличными: 500.00 [10:37:04]line Безнал.: 0.00 [10:37:04]line Место: АЗС № 135 "Партнер Нефть" [10:37:04]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:37:04]line СНО: Общий режим [10:37:04]line Чек 79 23.08.2024 10:37 [10:37:04]line Смена: 102 ФФД: 1.0 [10:37:04]line ЗНМ: 0300000144 [10:37:04]line РНМ: 0000000000162784 [10:37:04]line Версия ККМ: v1.0 [10:37:04]line ФМ: 0000000002094529 [10:37:04]line ФД: 15285 [10:37:04]line ФПД: 126755992437439 [10:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103706&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15285&fm=126755992437439&tin=02508201610067®Number=0000000000162784&sum=50000 [10:37:04]OFD Sender: Processing packet 15285 [packets to send 8, broken 7] [10:37:04]ProducePacketName [10:37:04]name=ofd_packets/00015285 [10:37:04]OFD Sender: To server: pG, [10:37:04]CommunicateWithHost lk.salyk.kg:30040 [10:37:04]ConnectInit lk.salyk.kg [10:37:04]written 0, free lines is 4095 [10:37:04]Connected sock=10 [10:37:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0E 01 00 00 37 64 06 01 5B FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 52 66 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B5 3B 00 00 35 04 06 00 73 48 AD E7 02 BF D8 16 57 92 95 DF C1 85 [10:37:04]Write to MH i2c: 01 00 00 BF 28 E7 [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 07 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 D1 0C CB [10:37:04]RasterBufferAndPrint [10:37:04]line [10:37:04]line [10:37:04]line [10:37:04]line [10:37:04]line [10:37:04]written 0, free lines is 3286 [10:37:04]MH_Cut [10:37:04]Write to MH i2c: D1 01 00 C6 28 01 C0 [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: D1 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: D1 01 00 [10:37:04]MH_I2C_Read... [10:37:04]Read from MH i2c: D1 01 00 C6 28 00 BF [10:37:04]Write to MH i2c: 01 00 00 C7 28 EF [10:37:04]Write i2c OK [10:37:04]MH_I2C_Read... [10:37:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 70 0C 47 00 E0 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B5 3B 00 00 F4 03 04 00 AE 10 C8 66 B6 04 01 00 00 35 3F AE DE E1 D2 18 20 [10:37:04]CommunicateWithHost err = 0 [10:37:04]CheckOFDResponse [10:37:04]1017 (14) - 77093643461234 [10:37:04]1041 (16) - 0000000002094529 [10:37:04]1040 (4) - 15285 [10:37:04]1012 (4) - 23.08.2024 04:31 [10:37:04]1206 (1) - 0 [10:37:04]OFD Sender: Remove packet 15285 [10:37:04]ProducePacketName [10:37:04]name=ofd_packets/00015285 [10:37:04]NVStorageDeleteData [10:37:05]OFD Sender: No OFD packet to send [10:37:05]*** Cut start [10:37:05]*** Partial cut [10:37:05]*** CUTSNS_PIN = 1 [10:37:05]*** CUTSNS_PIN = 0 [10:37:05]*** Brake cut motor [10:37:06]Read from MH i2c: 01 [10:37:06]MH_I2C_Read... [10:37:06]*** Stop cut motor [10:37:06]*** Cut end [10:37:06]Read from MH i2c: 01 07 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: 01 07 00 C7 28 00 00 00 00 00 FF 0F 04 [10:37:06]process_action close_receipt done [10:37:06]requested_data is exist [10:37:06]produce_requested_data [10:37:06]requested_item fm.sn is exist - process it [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 11 00 00 [10:37:06]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 17 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BC [10:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:37:06]wFMCommunicate OK [10:37:06]requested_item fd.num is exist - process it [10:37:06]SAM_PROTO_GetFieldsCounters [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 13 00 00 [10:37:06]Write to MH i2c: E2 08 00 C9 28 80 13 00 00 00 00 00 00 6D [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 62 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 62 00 C9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:37:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:06]wFMCommunicate OK [10:37:06]SAM_PROTO_GetFieldsCounters done [10:37:06]requested_item shift.num is exist - process it [10:37:06]requested_item shift.opened is exist - process it [10:37:06]req_shift_opened [10:37:06]FM_GetShiftState [10:37:06]SAM_PROTO_GetShiftState [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 13 01 00 [10:37:06]Write to MH i2c: E2 08 00 CA 28 80 13 01 00 00 00 00 00 6F [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0E 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0E 00 CA 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 33 [10:37:06]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:37:06]wFMCommunicate OK [10:37:06]SAM_PROTO_GetShiftState done [10:37:06]FM_GetShiftState done [10:37:06]req_shift_opened done [10:37:06]requested_item shift.open_date is exist - process it [10:37:06]req_shift_open_date [10:37:06]req_shift_open_date done [10:37:06]produce_requested_data done [10:37:06]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15285,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:37:06]process_action_free close_receipt [10:37:06]json_value_free [10:37:06]json_value_free done [10:37:06]process_json_proto returns [10:37:06]Send response to host [10:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15285,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:37:06]free response buf [10:37:06]execute_script done [10:37:06]execute_script returns [10:37:06]free content buf [10:37:06]Sock 8.Close socket [10:37:06]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:32]accept exits with 9 [10:51:32]New connection [10:51:32]New thread 3066944868 created [10:51:32]Thread 3066801508 joined [10:51:32]Waiting for new connection... [10:51:32] Sock 9.Parse request [10:51:32]Sock 9.Check first char [10:51:32]Sock 9.First char is OK [10:51:32]request: POST /json_proto HTTP/1.0 [10:51:32]Method: POST [10:51:32]URL: /json_proto [10:51:32]Method is POST - this is cgi request [10:51:32]url: /json_proto [10:51:32]query_string will be loaded in cgi processing [10:51:32]execute_cgi json_proto POST (null) [10:51:32]execute_cgi path=json_proto method=POST [10:51:32]POST find Content-Length [10:51:32]Host: 172.17.44.4:8080 [10:51:32]Content-Length: 682 [10:51:32]Content-Type: application/json [10:51:32] [10:51:32]POST finish read [10:51:32]Found Content-Length = 682 [10:51:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151274", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \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 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:32]execute_script... [10:51: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)151274", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \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 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:32]POST & json_proto [10:51:32]process_json_proto [10:51:32]json parsed OK: [10:51:32]protocol is kg_v1.0 [10:51:32]action value=close_receipt [10:51:32]process_action close_receipt [10:51:32]cmd_close_receipt [10:51:32]MH_GetDate [10:51:32]Write to MH i2c: F0 00 00 CB 28 E2 [10:51:32]Write i2c OK [10:51:32]MH_I2C_Read... [10:51:32]Read from MH i2c: F0 [10:51:32]MH_I2C_Read... [10:51:32]Read from MH i2c: F0 09 00 [10:51:32]MH_I2C_Read... [10:51:32]Read from MH i2c: F0 09 00 CB 28 00 B9 69 C8 66 0F 81 47 66 78 [10:51:32]GetLastDocTimeStamp 1724409426 [10:51:32]current date 1724410297 [10:51:32]FM_GetShiftState [10:51:32]SAM_PROTO_GetShiftState [10:51:32]wFMCommunicate request_size=4 [10:51:32]MH_SAM_APDU [10:51:32]CAPDU: 80 13 01 00 [10:51:32]Write to MH i2c: E2 08 00 CC 28 80 13 01 00 00 00 00 00 71 [10:51:32]Write i2c OK [10:51:32]MH_I2C_Read... [10:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:33]Read from MH i2c: E2 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: E2 0E 00 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: E2 0E 00 CC 28 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 35 [10:51:33]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:51:33]wFMCommunicate OK [10:51:33]SAM_PROTO_GetShiftState done [10:51:33]FM_GetShiftState done [10:51:33]opened in 1724372406 [10:51:33]opened+sec_in_day 1724458806 [10:51:33]quantity*price = 6500 [10:51:33]sum+1 = 6501 [10:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 80 23.08.2024 10:51 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15286 ФПД: 63743937591391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T105137&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15286&fm=63743937591391&tin=02508201610067®Number=0000000000162784&sum=6500 0 [10:51:34]StoreToDocumentArchive [10:51:34]shift 102 fd 15286 [10:51:34]save to /storage/0102/doc_00015286 [10:51:34]save last doc name /storage/0102/doc_00015286 to /storage/kkm_last_doc_name [10:51:34]save OK [10:51:34]Clear old archive folders... [10:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:51:34]tlvbuf is 0047EFF0 [10:51:34]SAM_PROTO_ClearQueue [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 09 00 00 [10:51:34]Write to MH i2c: E2 08 00 D9 28 80 09 00 00 00 00 00 00 73 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]SAM_PROTO_ClearQueue done [10:51:34]KKMCreateOFDPacket [10:51:34]OFDProtocolAddRootSTLVToBuf [10:51:34]FM_MakeSignedData [10:51:34]FM_MakeSignedData [10:51:34]SAM_PROTO_SignData [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 01 02 [10:51:34]Write to MH i2c: E2 08 00 DA 28 80 0D 01 02 00 00 00 00 7B [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=255 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 B9 69 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:51:34]Write to MH i2c: E2 02 01 DB 28 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 B9 69 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 22 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=52 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B6 3B 00 00 35 04 06 00 39 F9 8A C1 B8 5F [10:51:34]Write to MH i2c: E2 37 00 DC 28 80 0D 02 02 2F 00 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B6 3B 00 00 35 04 06 00 39 F9 8A C1 B8 5F 00 00 C8 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 03 02 [10:51:34]Write to MH i2c: E2 08 00 DD 28 80 0D 03 02 00 00 00 00 80 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 0B 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 0B 00 DD 28 00 E4 11 5A 13 11 AA 04 5E 90 00 00 [10:51:34]RAPDU: E4 11 5A 13 11 AA 04 5E 90 00 [10:51:34]wFMCommunicate OK [10:51:34]SAM_PROTO_SignData done [10:51:34]FM_MakeSignedData done [10:51:34]CreateOFDProtocolMessage [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 11 00 00 [10:51:34]Write to MH i2c: E2 08 00 DE 28 80 11 00 00 00 00 00 00 80 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 17 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 17 00 DE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D2 [10:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:51:34]wFMCommunicate OK [10:51:34]CreateOFDProtocolMessage done [10:51:34]OFDSenderStorePacket 15286 [10:51:34]StoreOFDPacket docnum=15286 [10:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 4A 53 31 01 DE 5C 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 B9 69 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B6 3B 00 00 35 04 06 00 39 F9 8A C1 B8 5F E4 11 5A 13 11 AA 04 5E [10:51:34]CheckFolder [10:51:34]dirname=/storage/ofd_packets [10:51:34]CheckFolder done [10:51:34]ProducePacketName [10:51:34]name=ofd_packets/00015286 [10:51:34]NVStorageSaveData ofd_packets/00015286 [10:51:34]File name is /storage/ofd_packets/00015286 [10:51:34]Write 343 bytes [10:51:34]NVStorageSaveData done [10:51:34]OFDSenderStorePacket done [10:51:34]KKMCreateOFDPacket done [10:51:34]NVStorageSaveData kkm_last_timestamp [10:51:34]File name is /storage/kkm_last_timestamp [10:51:34]Write 4 bytes [10:51:34]NVStorageSaveData done [10:51:34]ExternCall_PrintAddStr [10:51:34]wPrintStart [10:51:34]Write to MH i2c: 01 00 00 DF 28 07 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 07 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [10:51:34]RasterBufferAndPrint [10:51:34]line Счет N : (3)151274 [10:51:34]line ИНН: 02508201610067 [10:51:34]line Контрольно-Кассовый Чек [10:51:34]line ПРОДАЖА [10:51:34]line Товар: 4870002328404 [10:51:34]line Вода ASU пит н.газ мята ПЭТ 0,5л [10:51:34]line 1.000 * 65.00 [10:51:34]line = 65.00 [10:51:34]line НДС 12% НСП 1% [10:51:34]line > о реализуемом товаре [10:51:34]line ИТОГО: 65.00 [10:51:34]line НСП 1% : 0.57 [10:51:34]line НДС 12% : 6.90 [10:51:34]line Наличными: 65.00 [10:51:34]line Безнал.: 0.00 [10:51:34]line Место: АЗС № 135 "Партнер Нефть" [10:51:34]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:51:34]line СНО: Общий режим [10:51:34]line Чек 80 23.08.2024 10:51 [10:51:34]line Смена: 102 ФФД: 1.0 [10:51:34]line ЗНМ: 0300000144 [10:51:34]line РНМ: 0000000000162784 [10:51:34]line Версия ККМ: v1.0 [10:51:34]line ФМ: 0000000002094529 [10:51:34]line ФД: 15286 [10:51:34]line ФПД: 63743937591391 [10:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T105137&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15286&fm=63743937591391&tin=02508201610067®Number=0000000000162784&sum=6500 [10:51:35]line 0 [10:51:35]OFD Sender: Processing packet 15286 [packets to send 8, broken 7] [10:51:35]ProducePacketName [10:51:35]name=ofd_packets/00015286 [10:51:35]OFD Sender: To server: pG, [10:51:35]CommunicateWithHost lk.salyk.kg:30040 [10:51:35]ConnectInit lk.salyk.kg [10:51:35]written 0, free lines is 4095 [10:51:35]Connected sock=10 [10:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 4A 53 31 01 DE 5C 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 30 32 33 32 38 34 30 34 06 04 33 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 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 B9 69 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B6 3B 00 00 35 04 06 00 39 F9 8A C1 B8 5F E4 11 5A 13 11 AA 04 5E [10:51:35]Write to MH i2c: 01 00 00 08 29 31 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 08 29 00 00 00 00 00 EF 0C 33 [10:51:35]RasterBufferAndPrint [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]written 0, free lines is 3318 [10:51:35]MH_Cut [10:51:35]Write to MH i2c: D1 01 00 0F 29 01 0A [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 01 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 01 00 0F 29 00 09 [10:51:35]Write to MH i2c: 01 00 00 10 29 39 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 68 47 47 00 5C 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 32 30 39 34 35 32 39 10 04 04 00 B6 3B 00 00 F4 03 04 00 14 14 C8 66 B6 04 01 00 00 44 B9 86 1F 3E DA 25 6C [10:51:35]CommunicateWithHost err = 0 [10:51:35]CheckOFDResponse [10:51:35]1017 (14) - 77093643461234 [10:51:35]1041 (16) - 0000000002094529 [10:51:35]1040 (4) - 15286 [10:51:35]1012 (4) - 23.08.2024 04:46 [10:51:35]1206 (1) - 0 [10:51:35]OFD Sender: Remove packet 15286 [10:51:35]ProducePacketName [10:51:35]name=ofd_packets/00015286 [10:51:35]NVStorageDeleteData [10:51:36]*** Cut start [10:51:36]*** Partial cut [10:51:36]*** CUTSNS_PIN = 1 [10:51:36]OFD Sender: No OFD packet to send [10:51:36]*** CUTSNS_PIN = 0 [10:51:36]*** Brake cut motor [10:51:36]Read from MH i2c: 01 [10:51:36]MH_I2C_Read... [10:51:36]*** Stop cut motor [10:51:36]*** Cut end [10:51:36]Read from MH i2c: 01 07 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 10 29 00 00 00 00 00 FF 0F 4E [10:51:36]process_action close_receipt done [10:51:36]requested_data is exist [10:51:36]produce_requested_data [10:51:36]requested_item fm.sn is exist - process it [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 11 00 00 [10:51:36]Write to MH i2c: E2 08 00 11 29 80 11 00 00 00 00 00 00 B4 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 11 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 06 [10:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [10:51:36]wFMCommunicate OK [10:51:36]requested_item fd.num is exist - process it [10:51:36]SAM_PROTO_GetFieldsCounters [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 13 00 00 [10:51:36]Write to MH i2c: E2 08 00 12 29 80 13 00 00 00 00 00 00 B7 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 12 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetFieldsCounters done [10:51:37]requested_item shift.num is exist - process it [10:51:37]requested_item shift.opened is exist - process it [10:51:37]req_shift_opened [10:51:37]FM_GetShiftState [10:51:37]SAM_PROTO_GetShiftState [10:51:37]wFMCommunicate request_size=4 [10:51:37]MH_SAM_APDU [10:51:37]CAPDU: 80 13 01 00 [10:51:37]Write to MH i2c: E2 08 00 13 29 80 13 01 00 00 00 00 00 B9 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 13 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 7D [10:51:37]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetShiftState done [10:51:37]FM_GetShiftState done [10:51:37]req_shift_opened done [10:51:37]requested_item shift.open_date is exist - process it [10:51:37]req_shift_open_date [10:51:37]req_shift_open_date done [10:51:37]produce_requested_data done [10:51:37]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15286,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [10:51:37]process_action_free close_receipt [10:51:37]json_value_free [10:51:37]json_value_free done [10:51:37]process_json_proto returns [10:51:37]Send response to host [10:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15286,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [10:51:37]free response buf [10:51:37]execute_script done [10:51:37]execute_script returns [10:51:37]free content buf [10:51:37]Sock 9.Close socket [10:51:37]Sock 9.Thread stoped [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:18]accept exits with 8 [11:06:18]New connection [11:06:18]New thread 3066801508 created [11:06:18]Thread 3066944868 joined [11:06:18]Waiting for new connection... [11:06:18] Sock 8.Parse request [11:06:18]Sock 8.Check first char [11:06:18]Sock 8.First char is OK [11:06:18]request: POST /json_proto HTTP/1.0 [11:06:18]Method: POST [11:06:18]URL: /json_proto [11:06:18]Method is POST - this is cgi request [11:06:18]url: /json_proto [11:06:18]query_string will be loaded in cgi processing [11:06:18]execute_cgi json_proto POST (null) [11:06:18]execute_cgi path=json_proto method=POST [11:06:18]POST find Content-Length [11:06:18]Host: 172.17.44.4:8080 [11:06:18]Content-Length: 1242 [11:06:18]Content-Type: application/json [11:06:18] [11:06:18]POST finish read [11:06:18]Found Content-Length = 1242 [11:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151275", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:18]execute_script... [11:06:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151275", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 293.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:18]POST & json_proto [11:06:18]process_json_proto [11:06:18]json parsed OK: [11:06:18]protocol is kg_v1.0 [11:06:18]action value=close_receipt [11:06:18]process_action close_receipt [11:06:18]cmd_close_receipt [11:06:18]MH_GetDate [11:06:18]Write to MH i2c: F0 00 00 14 29 2C [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: F0 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: F0 09 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: F0 09 00 14 29 00 2E 6D C8 66 0F 81 47 66 3B [11:06:18]GetLastDocTimeStamp 1724410297 [11:06:18]current date 1724411182 [11:06:18]FM_GetShiftState [11:06:18]SAM_PROTO_GetShiftState [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 13 01 00 [11:06:18]Write to MH i2c: E2 08 00 15 29 80 13 01 00 00 00 00 00 BB [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 15 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 7F [11:06:18]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_GetShiftState done [11:06:18]FM_GetShiftState done [11:06:18]opened in 1724372406 [11:06:18]opened+sec_in_day 1724458806 [11:06:18]quantity*price = 15600 [11:06:18]sum+1 = 15601 [11:06:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521179 Чай холодный MAXI черный персик ПЭТ 0,45 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 293.00 НСП 1% : 2.59 НДС 12% : 31.11 Наличными: 293.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 81 23.08.2024 11:06 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15287 ФПД: 40233192682955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110623&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15287&fm=40233192682955&tin=02508201610067®Number=0000000000162784&sum=29300 0 [11:06:19]StoreToDocumentArchive [11:06:19]shift 102 fd 15287 [11:06:19]save to /storage/0102/doc_00015287 [11:06:19]save last doc name /storage/0102/doc_00015287 to /storage/kkm_last_doc_name [11:06:19]save OK [11:06:19]Clear old archive folders... [11:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=526 [11:06:19]tlvbuf is 00455700 [11:06:19]SAM_PROTO_ClearQueue [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 09 00 00 [11:06:19]Write to MH i2c: E2 08 00 22 29 80 09 00 00 00 00 00 00 BD [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 03 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [11:06:19]RAPDU: 90 00 [11:06:19]wFMCommunicate OK [11:06:19]SAM_PROTO_ClearQueue done [11:06:19]KKMCreateOFDPacket [11:06:19]OFDProtocolAddRootSTLVToBuf [11:06:19]FM_MakeSignedData [11:06:19]FM_MakeSignedData [11:06:19]SAM_PROTO_SignData [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 0D 01 02 [11:06:19]Write to MH i2c: E2 08 00 23 29 80 0D 01 02 00 00 00 00 C5 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 03 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [11:06:19]RAPDU: 90 00 [11:06:19]wFMCommunicate OK [11:06:19]wFMCommunicate request_size=255 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 [11:06:20]Write to MH i2c: E2 02 01 24 29 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 00 00 F3 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [11:06:20]RAPDU: 90 00 [11:06:20]wFMCommunicate OK [11:06:20]wFMCommunicate request_size=255 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 0D 02 02 FA 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 2F 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 [11:06:20]Write to MH i2c: E2 02 01 25 29 80 0D 02 02 FA 00 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 2F 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 00 00 EF [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [11:06:20]RAPDU: 90 00 [11:06:20]wFMCommunicate OK [11:06:20]wFMCommunicate request_size=35 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B7 3B 00 00 35 04 06 00 24 97 85 28 75 CB [11:06:20]Write to MH i2c: E2 26 00 26 29 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B7 3B 00 00 35 04 06 00 24 97 85 28 75 CB 00 00 55 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [11:06:20]RAPDU: 90 00 [11:06:20]wFMCommunicate OK [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 0D 03 02 [11:06:20]Write to MH i2c: E2 08 00 27 29 80 0D 03 02 00 00 00 00 CB [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 0B 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 0B 00 27 29 00 88 9F 9A AF 2E BC E9 DB 90 00 EA [11:06:20]RAPDU: 88 9F 9A AF 2E BC E9 DB 90 00 [11:06:20]wFMCommunicate OK [11:06:20]SAM_PROTO_SignData done [11:06:20]FM_MakeSignedData done [11:06:20]CreateOFDProtocolMessage [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 11 00 00 [11:06:20]Write to MH i2c: E2 08 00 28 29 80 11 00 00 00 00 00 00 CB [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 17 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 17 00 28 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 1D [11:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:06:20]wFMCommunicate OK [11:06:20]CreateOFDProtocolMessage done [11:06:20]OFDSenderStorePacket 15287 [11:06:20]StoreOFDPacket docnum=15287 [11:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 22 02 00 00 63 52 1A 02 5F F7 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 2F 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B7 3B 00 00 35 04 06 00 24 97 85 28 75 CB 88 9F 9A AF 2E BC E9 DB [11:06:20]CheckFolder [11:06:20]dirname=/storage/ofd_packets [11:06:20]CheckFolder done [11:06:20]ProducePacketName [11:06:20]name=ofd_packets/00015287 [11:06:20]NVStorageSaveData ofd_packets/00015287 [11:06:20]File name is /storage/ofd_packets/00015287 [11:06:20]Write 576 bytes [11:06:20]NVStorageSaveData done [11:06:20]OFDSenderStorePacket done [11:06:20]KKMCreateOFDPacket done [11:06:20]NVStorageSaveData kkm_last_timestamp [11:06:20]File name is /storage/kkm_last_timestamp [11:06:20]Write 4 bytes [11:06:20]NVStorageSaveData done [11:06:20]ExternCall_PrintAddStr [11:06:20]wPrintStart [11:06:20]Write to MH i2c: 01 00 00 29 29 52 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 07 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [11:06:20]RasterBufferAndPrint [11:06:20]line Счет N : (3)151275 [11:06:20]line ИНН: 02508201610067 [11:06:20]line Контрольно-Кассовый Чек [11:06:20]line ПРОДАЖА [11:06:20]line Товар: 48741958 [11:06:20]line Сигареты Parliament Aqua Blue [11:06:20]line 1.000 * 156.00 [11:06:20]line = 156.00 [11:06:20]line НДС 12% НСП 1% [11:06:20]line > о реализуемом товаре [11:06:20]line Товар: 6931280300549 [11:06:20]line Зажигалка Cricket ПН пьезо [11:06:20]line 1.000 * 67.00 [11:06:20]line = 67.00 [11:06:20]line НДС 12% НСП 1% [11:06:20]line > о реализуемом товаре [11:06:20]line Товар: 4870202521179 [11:06:20]line Чай холодный MAXI черный персик ПЭТ 0,45 [11:06:20]line 1.000 * 70.00 [11:06:20]line = 70.00 [11:06:20]line НДС 12% НСП 1% [11:06:20]line > о реализуемом товаре [11:06:20]line ИТОГО: 293.00 [11:06:20]line НСП 1% : 2.59 [11:06:20]line НДС 12% : 31.11 [11:06:20]line Наличными: 293.00 [11:06:20]line Безнал.: 0.00 [11:06:20]line Место: АЗС № 135 "Партнер Нефть" [11:06:20]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:06:20]line СНО: Общий режим [11:06:20]line Чек 81 23.08.2024 11:06 [11:06:20]line Смена: 102 ФФД: 1.0 [11:06:20]line ЗНМ: 0300000144 [11:06:20]line РНМ: 0000000000162784 [11:06:20]line Версия ККМ: v1.0 [11:06:20]line ФМ: 0000000002094529 [11:06:20]line ФД: 15287 [11:06:20]line ФПД: 40233192682955 [11:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110623&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15287&fm=40233192682955&tin=02508201610067®Number=0000000000162784&sum=29300 [11:06:21]line 0 [11:06:21]OFD Sender: Processing packet 15287 [packets to send 8, broken 7] [11:06:21]ProducePacketName [11:06:21]name=ofd_packets/00015287 [11:06:21]OFD Sender: To server: pG, [11:06:21]CommunicateWithHost lk.salyk.kg:30040 [11:06:21]ConnectInit lk.salyk.kg [11:06:21]written 0, free lines is 4095 [11:06:21]Connected sock=10 [11:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 22 02 00 00 63 52 1A 02 5F F7 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 74 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 0C 00 00 00 00 07 04 06 00 74 72 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 2F 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B7 3B 00 00 35 04 06 00 24 97 85 28 75 CB 88 9F 9A AF 2E BC E9 DB [11:06:21]Write to MH i2c: 01 00 00 5F 29 88 [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 5F 29 00 00 00 00 00 15 0C B0 [11:06:21]RasterBufferAndPrint [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]written 0, free lines is 3098 [11:06:21]MH_Cut [11:06:21]Write to MH i2c: D1 01 00 66 29 01 61 [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 01 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 01 00 66 29 00 60 [11:06:21]Write to MH i2c: 01 00 00 67 29 90 [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 6B 03 47 00 42 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B7 3B 00 00 F4 03 04 00 8B 17 C8 66 B6 04 01 00 00 48 DA 8B 53 1B 92 7E F8 [11:06:21]CommunicateWithHost err = 0 [11:06:21]CheckOFDResponse [11:06:21]1017 (14) - 77093643461234 [11:06:21]1041 (16) - 0000000002094529 [11:06:21]1040 (4) - 15287 [11:06:21]1012 (4) - 23.08.2024 05:00 [11:06:21]1206 (1) - 0 [11:06:21]OFD Sender: Remove packet 15287 [11:06:21]ProducePacketName [11:06:21]name=ofd_packets/00015287 [11:06:21]NVStorageDeleteData [11:06:22]OFD Sender: No OFD packet to send [11:06:22]*** Cut start [11:06:22]*** Partial cut [11:06:22]*** CUTSNS_PIN = 1 [11:06:22]*** CUTSNS_PIN = 0 [11:06:22]*** Brake cut motor [11:06:23]Read from MH i2c: 01 [11:06:23]MH_I2C_Read... [11:06:23]*** Stop cut motor [11:06:23]*** Cut end [11:06:23]Read from MH i2c: 01 07 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 FF 0F A5 [11:06:23]process_action close_receipt done [11:06:23]requested_data is exist [11:06:23]produce_requested_data [11:06:23]requested_item fm.sn is exist - process it [11:06:23]wFMCommunicate request_size=4 [11:06:23]MH_SAM_APDU [11:06:23]CAPDU: 80 11 00 00 [11:06:23]Write to MH i2c: E2 08 00 68 29 80 11 00 00 00 00 00 00 0B [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 17 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 17 00 68 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5D [11:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:06:23]wFMCommunicate OK [11:06:23]requested_item fd.num is exist - process it [11:06:23]SAM_PROTO_GetFieldsCounters [11:06:23]wFMCommunicate request_size=4 [11:06:23]MH_SAM_APDU [11:06:23]CAPDU: 80 13 00 00 [11:06:23]Write to MH i2c: E2 08 00 69 29 80 13 00 00 00 00 00 00 0E [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 62 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 62 00 69 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:23]wFMCommunicate OK [11:06:23]SAM_PROTO_GetFieldsCounters done [11:06:23]requested_item shift.num is exist - process it [11:06:23]requested_item shift.opened is exist - process it [11:06:23]req_shift_opened [11:06:23]FM_GetShiftState [11:06:23]SAM_PROTO_GetShiftState [11:06:23]wFMCommunicate request_size=4 [11:06:23]MH_SAM_APDU [11:06:23]CAPDU: 80 13 01 00 [11:06:23]Write to MH i2c: E2 08 00 6A 29 80 13 01 00 00 00 00 00 10 [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 0E 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 0E 00 6A 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D4 [11:06:23]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:06:23]wFMCommunicate OK [11:06:23]SAM_PROTO_GetShiftState done [11:06:23]FM_GetShiftState done [11:06:23]req_shift_opened done [11:06:23]requested_item shift.open_date is exist - process it [11:06:23]req_shift_open_date [11:06:23]req_shift_open_date done [11:06:23]produce_requested_data done [11:06:23]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15287,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:06:23]process_action_free close_receipt [11:06:23]json_value_free [11:06:23]json_value_free done [11:06:23]process_json_proto returns [11:06:23]Send response to host [11:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15287,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:06:23]free response buf [11:06:23]execute_script done [11:06:23]execute_script returns [11:06:23]free content buf [11:06:23]Sock 8.Close socket [11:06:23]Sock 8.Thread stoped [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]accept exits with 9 [11:08:12]New connection [11:08:12]New thread 3066944868 created [11:08:12]Thread 3066801508 joined [11:08:12]Waiting for new connection... [11:08:12] Sock 9.Parse request [11:08:12]Sock 9.Check first char [11:08:12]Sock 9.First char is OK [11:08:12]request: POST /json_proto HTTP/1.0 [11:08:12]Method: POST [11:08:12]URL: /json_proto [11:08:12]Method is POST - this is cgi request [11:08:12]url: /json_proto [11:08:12]query_string will be loaded in cgi processing [11:08:12]execute_cgi json_proto POST (null) [11:08:12]execute_cgi path=json_proto method=POST [11:08:12]POST find Content-Length [11:08:12]Host: 172.17.44.4:8080 [11:08:12]Content-Length: 790 [11:08:12]Content-Type: application/json [11:08:12] [11:08:12]POST finish read [11:08:12]Found Content-Length = 790 [11:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]execute_script... [11:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]POST & json_proto [11:08:12]process_json_proto [11:08:12]json parsed OK: [11:08:12]protocol is kg_v1.0 [11:08:12]action value=close_receipt [11:08:12]process_action close_receipt [11:08:12]cmd_close_receipt [11:08:12]MH_GetDate [11:08:12]Write to MH i2c: F0 00 00 6B 29 83 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 09 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 09 00 6B 29 00 A0 6D C8 66 0F 81 47 66 04 [11:08:12]GetLastDocTimeStamp 1724411183 [11:08:12]current date 1724411296 [11:08:12]FM_GetShiftState [11:08:12]SAM_PROTO_GetShiftState [11:08:12]wFMCommunicate request_size=4 [11:08:12]MH_SAM_APDU [11:08:12]CAPDU: 80 13 01 00 [11:08:12]Write to MH i2c: E2 08 00 6C 29 80 13 01 00 00 00 00 00 12 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:12]Read from MH i2c: E2 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 6C 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D6 [11:08:12]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:08:12]wFMCommunicate OK [11:08:12]SAM_PROTO_GetShiftState done [11:08:12]FM_GetShiftState done [11:08:12]opened in 1724372406 [11:08:12]opened+sec_in_day 1724458806 [11:08:12]quantity*price = 0 [11:08:12]sum+1 = 1 [11:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 82 23.08.2024 11:08 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15288 ФПД: 187274007361603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110816&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15288&fm=187274007361603&tin=02508201610067®Number=0000000000162784&sum=0 [11:08:13]StoreToDocumentArchive [11:08:13]shift 102 fd 15288 [11:08:13]save to /storage/0102/doc_00015288 [11:08:13]save last doc name /storage/0102/doc_00015288 to /storage/kkm_last_doc_name [11:08:13]save OK [11:08:13]Clear old archive folders... [11:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:13]tlvbuf is 00475480 [11:08:13]SAM_PROTO_ClearQueue [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 09 00 00 [11:08:13]Write to MH i2c: E2 08 00 79 29 80 09 00 00 00 00 00 00 14 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]SAM_PROTO_ClearQueue done [11:08:13]KKMCreateOFDPacket [11:08:13]OFDProtocolAddRootSTLVToBuf [11:08:13]FM_MakeSignedData [11:08:13]FM_MakeSignedData [11:08:13]SAM_PROTO_SignData [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 01 02 [11:08:13]Write to MH i2c: E2 08 00 7A 29 80 0D 01 02 00 00 00 00 1C [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]wFMCommunicate request_size=255 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B8 3B 00 00 35 04 06 00 AA 53 20 AF [11:08:13]Write to MH i2c: E2 02 01 7B 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B8 3B 00 00 35 04 06 00 AA 53 20 AF 00 00 1D [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]wFMCommunicate request_size=7 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 02 02 02 38 43 [11:08:13]Write to MH i2c: E2 0A 00 7C 29 80 0D 02 02 02 00 38 43 00 00 9E [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 03 02 [11:08:13]Write to MH i2c: E2 08 00 7D 29 80 0D 03 02 00 00 00 00 21 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 0B 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 0B 00 7D 29 00 06 77 E4 8A 6F 4F 8E 1F 90 00 78 [11:08:13]RAPDU: 06 77 E4 8A 6F 4F 8E 1F 90 00 [11:08:13]wFMCommunicate OK [11:08:13]SAM_PROTO_SignData done [11:08:13]FM_MakeSignedData done [11:08:13]CreateOFDProtocolMessage [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 11 00 00 [11:08:13]Write to MH i2c: E2 08 00 7E 29 80 11 00 00 00 00 00 00 21 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 17 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 17 00 7E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 73 [11:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:08:13]wFMCommunicate OK [11:08:13]CreateOFDProtocolMessage done [11:08:13]OFDSenderStorePacket 15288 [11:08:13]StoreOFDPacket docnum=15288 [11:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 2D F4 04 01 9C EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B8 3B 00 00 35 04 06 00 AA 53 20 AF 38 43 06 77 E4 8A 6F 4F 8E 1F [11:08:13]CheckFolder [11:08:13]dirname=/storage/ofd_packets [11:08:13]CheckFolder done [11:08:13]ProducePacketName [11:08:13]name=ofd_packets/00015288 [11:08:13]NVStorageSaveData ofd_packets/00015288 [11:08:13]File name is /storage/ofd_packets/00015288 [11:08:13]Write 298 bytes [11:08:13]NVStorageSaveData done [11:08:13]OFDSenderStorePacket done [11:08:13]KKMCreateOFDPacket done [11:08:13]NVStorageSaveData kkm_last_timestamp [11:08:13]File name is /storage/kkm_last_timestamp [11:08:13]Write 4 bytes [11:08:13]NVStorageSaveData done [11:08:13]ExternCall_PrintAddStr [11:08:13]wPrintStart [11:08:13]Write to MH i2c: 01 00 00 7F 29 A8 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: 01 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: 01 07 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: 01 07 00 7F 29 00 00 00 00 00 FF 0F BD [11:08:13]RasterBufferAndPrint [11:08:13]line Счет N : (1)2078267 [11:08:13]line ИНН: 02508201610067 [11:08:13]line Контрольно-Кассовый Чек [11:08:13]line ПРОДАЖА [11:08:13]line ТРК (МРК, ГНК) : 21 [11:08:13]line Товар: 2710194210 [11:08:13]line ДТ-К-5 [11:08:13]line 26.250 * 0.00 [11:08:13]line = 0.00 [11:08:13]line НДС 12% НСП 1% [11:08:13]line > о реализуемом товаре [11:08:13]line ИТОГО: 0.00 [11:08:13]line НСП 1% : 0.00 [11:08:13]line НДС 12% : 0.00 [11:08:13]line Наличными: 0.00 [11:08:13]line Безнал.: 0.00 [11:08:13]line Место: АЗС № 135 "Партнер Нефть" [11:08:13]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:08:13]line СНО: Общий режим [11:08:13]line Чек 82 23.08.2024 11:08 [11:08:13]line Смена: 102 ФФД: 1.0 [11:08:13]line ЗНМ: 0300000144 [11:08:13]line РНМ: 0000000000162784 [11:08:13]line Версия ККМ: v1.0 [11:08:13]line Талоны: Топливная Карта [11:08:13]line 92875 [11:08:13]line ФМ: 0000000002094529 [11:08:13]line ФД: 15288 [11:08:13]line ФПД: 187274007361603 [11:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110816&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15288&fm=187274007361603&tin=02508201610067®Number=0000000000162784&sum=0 [11:08:14]OFD Sender: Processing packet 15288 [packets to send 8, broken 7] [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00015288 [11:08:14]OFD Sender: To server: pG, [11:08:14]CommunicateWithHost lk.salyk.kg:30040 [11:08:14]ConnectInit lk.salyk.kg [11:08:14]written 0, free lines is 4095 [11:08:14]Connected sock=10 [11:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 2D F4 04 01 9C EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 6D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B8 3B 00 00 35 04 06 00 AA 53 20 AF 38 43 06 77 E4 8A 6F 4F 8E 1F [11:08:14]Write to MH i2c: 01 00 00 A9 29 D2 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 ED 0C D2 [11:08:14]RasterBufferAndPrint [11:08:14]line [11:08:14]line [11:08:14]line [11:08:14]line [11:08:14]line [11:08:14]written 0, free lines is 3314 [11:08:14]MH_Cut [11:08:14]Write to MH i2c: D1 01 00 B0 29 01 AB [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: D1 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: D1 01 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: D1 01 00 B0 29 00 AA [11:08:14]Write to MH i2c: 01 00 00 B1 29 DA [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 96 FB 47 00 5B 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B8 3B 00 00 F4 03 04 00 FC 17 C8 66 B6 04 01 00 00 69 EE C6 CB 27 56 08 96 [11:08:14]CommunicateWithHost err = 0 [11:08:14]CheckOFDResponse [11:08:14]1017 (14) - 77093643461234 [11:08:14]1041 (16) - 0000000002094529 [11:08:14]1040 (4) - 15288 [11:08:14]1012 (4) - 23.08.2024 05:02 [11:08:14]1206 (1) - 0 [11:08:14]OFD Sender: Remove packet 15288 [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00015288 [11:08:14]NVStorageDeleteData [11:08:15]OFD Sender: No OFD packet to send [11:08:15]*** Cut start [11:08:15]*** Partial cut [11:08:15]*** CUTSNS_PIN = 1 [11:08:15]*** CUTSNS_PIN = 0 [11:08:15]*** Brake cut motor [11:08:16]Read from MH i2c: 01 [11:08:16]MH_I2C_Read... [11:08:16]*** Stop cut motor [11:08:16]*** Cut end [11:08:16]Read from MH i2c: 01 07 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 FF 0F EF [11:08:16]process_action close_receipt done [11:08:16]requested_data is exist [11:08:16]produce_requested_data [11:08:16]requested_item fm.sn is exist - process it [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 11 00 00 [11:08:16]Write to MH i2c: E2 08 00 B2 29 80 11 00 00 00 00 00 00 55 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 B2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A7 [11:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:08:16]wFMCommunicate OK [11:08:16]requested_item fd.num is exist - process it [11:08:16]SAM_PROTO_GetFieldsCounters [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 13 00 00 [11:08:16]Write to MH i2c: E2 08 00 B3 29 80 13 00 00 00 00 00 00 58 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 62 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 62 00 B3 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [11:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_GetFieldsCounters done [11:08:16]requested_item shift.num is exist - process it [11:08:16]requested_item shift.opened is exist - process it [11:08:16]req_shift_opened [11:08:16]FM_GetShiftState [11:08:16]SAM_PROTO_GetShiftState [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 13 01 00 [11:08:16]Write to MH i2c: E2 08 00 B4 29 80 13 01 00 00 00 00 00 5A [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 B4 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1E [11:08:16]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_GetShiftState done [11:08:16]FM_GetShiftState done [11:08:16]req_shift_opened done [11:08:16]requested_item shift.open_date is exist - process it [11:08:16]req_shift_open_date [11:08:16]req_shift_open_date done [11:08:16]produce_requested_data done [11:08:16]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15288,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:08:16]process_action_free close_receipt [11:08:16]json_value_free [11:08:16]json_value_free done [11:08:16]process_json_proto returns [11:08:16]Send response to host [11:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15288,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:08:16]free response buf [11:08:16]execute_script done [11:08:16]execute_script returns [11:08:16]free content buf [11:08:16]Sock 9.Close socket [11:08:16]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:19]accept exits with 8 [11:13:19]New connection [11:13:19]New thread 3066801508 created [11:13:19]Thread 3066944868 joined [11:13:19]Waiting for new connection... [11:13:19] Sock 8.Parse request [11:13:19]Sock 8.Check first char [11:13:19]Sock 8.First char is OK [11:13:19]request: POST /json_proto HTTP/1.0 [11:13:19]Method: POST [11:13:19]URL: /json_proto [11:13:19]Method is POST - this is cgi request [11:13:19]url: /json_proto [11:13:19]query_string will be loaded in cgi processing [11:13:19]execute_cgi json_proto POST (null) [11:13:19]execute_cgi path=json_proto method=POST [11:13:19]POST find Content-Length [11:13:19]Host: 172.17.44.4:8080 [11:13:19]Content-Length: 790 [11:13:19]Content-Type: application/json [11:13:19] [11:13:19]POST finish read [11:13:19]Found Content-Length = 790 [11:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:19]execute_script... [11:13:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:19]POST & json_proto [11:13:19]process_json_proto [11:13:19]json parsed OK: [11:13:19]protocol is kg_v1.0 [11:13:19]action value=close_receipt [11:13:19]process_action close_receipt [11:13:19]cmd_close_receipt [11:13:19]MH_GetDate [11:13:19]Write to MH i2c: F0 00 00 B5 29 CD [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: F0 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: F0 09 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: F0 09 00 B5 29 00 D3 6E C8 66 0F 81 47 66 82 [11:13:19]GetLastDocTimeStamp 1724411296 [11:13:19]current date 1724411603 [11:13:19]FM_GetShiftState [11:13:19]SAM_PROTO_GetShiftState [11:13:19]wFMCommunicate request_size=4 [11:13:19]MH_SAM_APDU [11:13:19]CAPDU: 80 13 01 00 [11:13:19]Write to MH i2c: E2 08 00 B6 29 80 13 01 00 00 00 00 00 5C [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:19]Read from MH i2c: E2 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: E2 0E 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: E2 0E 00 B6 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 20 [11:13:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:13:19]wFMCommunicate OK [11:13:19]SAM_PROTO_GetShiftState done [11:13:19]FM_GetShiftState done [11:13:19]opened in 1724372406 [11:13:19]opened+sec_in_day 1724458806 [11:13:19]quantity*price = 0 [11:13:19]sum+1 = 1 [11:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 83 23.08.2024 11:13 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Талоны: Топливная Карта 92875 ФМ: 0000000002094529 ФД: 15289 ФПД: 57494605577168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T111323&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15289&fm=57494605577168&tin=02508201610067®Number=0000000000162784&sum=0 [11:13:20]StoreToDocumentArchive [11:13:20]shift 102 fd 15289 [11:13:20]save to /storage/0102/doc_00015289 [11:13:20]save last doc name /storage/0102/doc_00015289 to /storage/kkm_last_doc_name [11:13:20]save OK [11:13:20]Clear old archive folders... [11:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:13:20]tlvbuf is 0047ECC0 [11:13:20]SAM_PROTO_ClearQueue [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 09 00 00 [11:13:20]Write to MH i2c: E2 08 00 C3 29 80 09 00 00 00 00 00 00 5E [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [11:13:20]RAPDU: 90 00 [11:13:20]wFMCommunicate OK [11:13:20]SAM_PROTO_ClearQueue done [11:13:20]KKMCreateOFDPacket [11:13:20]OFDProtocolAddRootSTLVToBuf [11:13:20]FM_MakeSignedData [11:13:20]FM_MakeSignedData [11:13:20]SAM_PROTO_SignData [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 0D 01 02 [11:13:20]Write to MH i2c: E2 08 00 C4 29 80 0D 01 02 00 00 00 00 66 [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [11:13:20]RAPDU: 90 00 [11:13:20]wFMCommunicate OK [11:13:20]wFMCommunicate request_size=255 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D3 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B9 3B 00 00 35 04 06 00 34 4A 81 8A [11:13:20]Write to MH i2c: E2 02 01 C5 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D3 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B9 3B 00 00 35 04 06 00 34 4A 81 8A 00 00 5A [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]OFD Sender: No OFD packet to send [11:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [11:13:20]RAPDU: 90 00 [11:13:20]wFMCommunicate OK [11:13:20]wFMCommunicate request_size=7 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 0D 02 02 02 BB D0 [11:13:20]Write to MH i2c: E2 0A 00 C6 29 80 0D 02 02 02 00 BB D0 00 00 F8 [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [11:13:20]RAPDU: 90 00 [11:13:20]wFMCommunicate OK [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 0D 03 02 [11:13:20]Write to MH i2c: E2 08 00 C7 29 80 0D 03 02 00 00 00 00 6B [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 0B 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 0B 00 C7 29 00 78 49 6A D0 6B 3F B9 A1 90 00 6B [11:13:20]RAPDU: 78 49 6A D0 6B 3F B9 A1 90 00 [11:13:20]wFMCommunicate OK [11:13:20]SAM_PROTO_SignData done [11:13:20]FM_MakeSignedData done [11:13:20]CreateOFDProtocolMessage [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 11 00 00 [11:13:20]Write to MH i2c: E2 08 00 C8 29 80 11 00 00 00 00 00 00 6B [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 17 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 17 00 C8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BD [11:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:13:20]wFMCommunicate OK [11:13:20]CreateOFDProtocolMessage done [11:13:20]OFDSenderStorePacket 15289 [11:13:20]StoreOFDPacket docnum=15289 [11:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 36 A4 04 01 CF 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D3 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B9 3B 00 00 35 04 06 00 34 4A 81 8A BB D0 78 49 6A D0 6B 3F B9 A1 [11:13:20]CheckFolder [11:13:20]dirname=/storage/ofd_packets [11:13:20]CheckFolder done [11:13:20]ProducePacketName [11:13:20]name=ofd_packets/00015289 [11:13:20]NVStorageSaveData ofd_packets/00015289 [11:13:20]File name is /storage/ofd_packets/00015289 [11:13:20]Write 298 bytes [11:13:20]NVStorageSaveData done [11:13:20]OFDSenderStorePacket done [11:13:20]KKMCreateOFDPacket done [11:13:20]NVStorageSaveData kkm_last_timestamp [11:13:20]File name is /storage/kkm_last_timestamp [11:13:20]Write 4 bytes [11:13:20]NVStorageSaveData done [11:13:20]ExternCall_PrintAddStr [11:13:20]wPrintStart [11:13:20]Write to MH i2c: 01 00 00 C9 29 F2 [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 07 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 07 00 C9 29 00 00 00 00 00 FF 0F 07 [11:13:20]RasterBufferAndPrint [11:13:20]line Счет N : (1)2078271 [11:13:20]line ИНН: 02508201610067 [11:13:20]line Контрольно-Кассовый Чек [11:13:20]line ПРОДАЖА [11:13:20]line ТРК (МРК, ГНК) : 21 [11:13:20]line Товар: 2710194210 [11:13:20]line ДТ-К-5 [11:13:20]line 26.250 * 0.00 [11:13:20]line = 0.00 [11:13:20]line НДС 12% НСП 1% [11:13:20]line > о реализуемом товаре [11:13:20]line ИТОГО: 0.00 [11:13:20]line НСП 1% : 0.00 [11:13:20]line НДС 12% : 0.00 [11:13:20]line Наличными: 0.00 [11:13:20]line Безнал.: 0.00 [11:13:20]line Место: АЗС № 135 "Партнер Нефть" [11:13:20]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:13:20]line СНО: Общий режим [11:13:20]line Чек 83 23.08.2024 11:13 [11:13:20]line Смена: 102 ФФД: 1.0 [11:13:20]line ЗНМ: 0300000144 [11:13:20]line РНМ: 0000000000162784 [11:13:20]line Версия ККМ: v1.0 [11:13:20]line Талоны: Топливная Карта [11:13:20]line 92875 [11:13:20]line ФМ: 0000000002094529 [11:13:20]line ФД: 15289 [11:13:20]line ФПД: 57494605577168 [11:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T111323&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15289&fm=57494605577168&tin=02508201610067®Number=0000000000162784&sum=0 [11:13:21]OFD Sender: Processing packet 15289 [packets to send 8, broken 7] [11:13:21]ProducePacketName [11:13:21]name=ofd_packets/00015289 [11:13:21]OFD Sender: To server: pG, [11:13:21]CommunicateWithHost lk.salyk.kg:30040 [11:13:21]ConnectInit lk.salyk.kg [11:13:21]written 0, free lines is 4095 [11:13:21]Connected sock=11 [11:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0C 01 00 00 36 A4 04 01 CF 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D3 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B9 3B 00 00 35 04 06 00 34 4A 81 8A BB D0 78 49 6A D0 6B 3F B9 A1 [11:13:21]Write to MH i2c: 01 00 00 F3 29 1C [11:13:21]Write i2c OK [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: 01 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: 01 07 00 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: 01 07 00 F3 29 00 00 00 00 00 EC 0C 1B [11:13:21]RasterBufferAndPrint [11:13:21]line [11:13:21]line [11:13:21]line [11:13:21]line [11:13:21]line [11:13:21]written 0, free lines is 3315 [11:13:21]MH_Cut [11:13:21]Write to MH i2c: D1 01 00 FA 29 01 F5 [11:13:21]Write i2c OK [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: D1 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: D1 01 00 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: D1 01 00 FA 29 00 F4 [11:13:21]Write to MH i2c: 01 00 00 FB 29 24 [11:13:21]Write i2c OK [11:13:21]MH_I2C_Read... [11:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 46 FA 47 00 E1 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 B9 3B 00 00 F4 03 04 00 2F 19 C8 66 B6 04 01 00 00 FE C2 7D 1E DA 69 32 A4 [11:13:21]CommunicateWithHost err = 0 [11:13:21]CheckOFDResponse [11:13:21]1017 (14) - 77093643461234 [11:13:21]1041 (16) - 0000000002094529 [11:13:21]1040 (4) - 15289 [11:13:21]1012 (4) - 23.08.2024 05:07 [11:13:21]1206 (1) - 0 [11:13:21]OFD Sender: Remove packet 15289 [11:13:21]ProducePacketName [11:13:21]name=ofd_packets/00015289 [11:13:21]NVStorageDeleteData [11:13:22]OFD Sender: No OFD packet to send [11:13:22]*** Cut start [11:13:22]*** Partial cut [11:13:22]*** CUTSNS_PIN = 1 [11:13:22]*** CUTSNS_PIN = 0 [11:13:22]*** Brake cut motor [11:13:23]Read from MH i2c: 01 [11:13:23]MH_I2C_Read... [11:13:23]*** Stop cut motor [11:13:23]*** Cut end [11:13:23]Read from MH i2c: 01 07 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [11:13:23]process_action close_receipt done [11:13:23]requested_data is exist [11:13:23]produce_requested_data [11:13:23]requested_item fm.sn is exist - process it [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 11 00 00 [11:13:23]Write to MH i2c: E2 08 00 FC 29 80 11 00 00 00 00 00 00 9F [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:23]Read from MH i2c: E2 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 17 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 17 00 FC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 F1 [11:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:13:23]wFMCommunicate OK [11:13:23]requested_item fd.num is exist - process it [11:13:23]SAM_PROTO_GetFieldsCounters [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 13 00 00 [11:13:23]Write to MH i2c: E2 08 00 FD 29 80 13 00 00 00 00 00 00 A2 [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:23]Read from MH i2c: E2 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 62 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 62 00 FD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [11:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 B9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:23]wFMCommunicate OK [11:13:23]SAM_PROTO_GetFieldsCounters done [11:13:23]requested_item shift.num is exist - process it [11:13:23]requested_item shift.opened is exist - process it [11:13:23]req_shift_opened [11:13:23]FM_GetShiftState [11:13:23]SAM_PROTO_GetShiftState [11:13:23]wFMCommunicate request_size=4 [11:13:23]MH_SAM_APDU [11:13:23]CAPDU: 80 13 01 00 [11:13:23]Write to MH i2c: E2 08 00 FE 29 80 13 01 00 00 00 00 00 A4 [11:13:23]Write i2c OK [11:13:23]MH_I2C_Read... [11:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:23]Read from MH i2c: E2 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 0E 00 [11:13:23]MH_I2C_Read... [11:13:23]Read from MH i2c: E2 0E 00 FE 29 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 68 [11:13:23]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:13:23]wFMCommunicate OK [11:13:23]SAM_PROTO_GetShiftState done [11:13:23]FM_GetShiftState done [11:13:23]req_shift_opened done [11:13:23]requested_item shift.open_date is exist - process it [11:13:23]req_shift_open_date [11:13:23]req_shift_open_date done [11:13:23]produce_requested_data done [11:13:23]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15289,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:13:23]process_action_free close_receipt [11:13:23]json_value_free [11:13:23]json_value_free done [11:13:23]process_json_proto returns [11:13:23]Send response to host [11:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15289,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:13:23]free response buf [11:13:23]execute_script done [11:13:23]execute_script returns [11:13:23]free content buf [11:13:23]Sock 8.Close socket [11:13:23]Sock 8.Thread stoped [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:53]accept exits with 9 [11:13:53]New connection [11:13:53]New thread 3066944868 created [11:13:53]Thread 3066801508 joined [11:13:53]Waiting for new connection... [11:13:53] Sock 9.Parse request [11:13:53]Sock 9.Check first char [11:13:53]Sock 9.First char is OK [11:13:53]request: POST /json_proto HTTP/1.0 [11:13:53]Method: POST [11:13:53]URL: /json_proto [11:13:53]Method is POST - this is cgi request [11:13:53]url: /json_proto [11:13:53]query_string will be loaded in cgi processing [11:13:53]execute_cgi json_proto POST (null) [11:13:53]execute_cgi path=json_proto method=POST [11:13:53]POST find Content-Length [11:13:53]Host: 172.17.44.4:8080 [11:13:53]Content-Length: 632 [11:13:53]Content-Type: application/json [11:13:53] [11:13:53]POST finish read [11:13:53]Found Content-Length = 632 [11:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151276", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:53]execute_script... [11:13: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)151276", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:53]POST & json_proto [11:13:53]process_json_proto [11:13:53]json parsed OK: [11:13:53]protocol is kg_v1.0 [11:13:53]action value=close_receipt [11:13:53]process_action close_receipt [11:13:53]cmd_close_receipt [11:13:53]MH_GetDate [11:13:53]Write to MH i2c: F0 00 00 FF 29 17 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 09 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: F0 09 00 FF 29 00 F6 6E C8 66 0F 81 47 66 EF [11:13:53]GetLastDocTimeStamp 1724411603 [11:13:53]current date 1724411638 [11:13:53]FM_GetShiftState [11:13:53]SAM_PROTO_GetShiftState [11:13:53]wFMCommunicate request_size=4 [11:13:53]MH_SAM_APDU [11:13:53]CAPDU: 80 13 01 00 [11:13:53]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:53]Read from MH i2c: E2 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 6B [11:13:53]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:13:53]wFMCommunicate OK [11:13:53]SAM_PROTO_GetShiftState done [11:13:53]FM_GetShiftState done [11:13:53]opened in 1724372406 [11:13:53]opened+sec_in_day 1724458806 [11:13:53]quantity*price = 14000 [11:13:53]sum+1 = 14001 [11:13:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 84 23.08.2024 11:13 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15290 ФПД: 199681429594972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T111358&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15290&fm=199681429594972&tin=02508201610067®Number=0000000000162784&sum=14000 0 [11:13:55]StoreToDocumentArchive [11:13:55]shift 102 fd 15290 [11:13:55]save to /storage/0102/doc_00015290 [11:13:55]save last doc name /storage/0102/doc_00015290 to /storage/kkm_last_doc_name [11:13:55]save OK [11:13:55]Clear old archive folders... [11:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:13:55]tlvbuf is B6F56BE0 [11:13:55]SAM_PROTO_ClearQueue [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 09 00 00 [11:13:55]Write to MH i2c: E2 08 00 0D 2A 80 09 00 00 00 00 00 00 A9 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_ClearQueue done [11:13:55]KKMCreateOFDPacket [11:13:55]OFDProtocolAddRootSTLVToBuf [11:13:55]FM_MakeSignedData [11:13:55]FM_MakeSignedData [11:13:55]SAM_PROTO_SignData [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 01 02 [11:13:55]Write to MH i2c: E2 08 00 0E 2A 80 0D 01 02 00 00 00 00 B1 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=255 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F6 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 [11:13:55]Write to MH i2c: E2 02 01 0F 2A 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F6 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 00 00 E9 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=43 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BA 3B 00 00 35 04 06 00 B5 9B F4 AD E3 5C [11:13:55]Write to MH i2c: E2 2E 00 10 2A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BA 3B 00 00 35 04 06 00 B5 9B F4 AD E3 5C 00 00 C0 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [11:13:55]RAPDU: 90 00 [11:13:55]wFMCommunicate OK [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 0D 03 02 [11:13:55]Write to MH i2c: E2 08 00 11 2A 80 0D 03 02 00 00 00 00 B6 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0B 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0B 00 11 2A 00 F9 49 A6 81 66 8C A5 B7 90 00 6E [11:13:55]RAPDU: F9 49 A6 81 66 8C A5 B7 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_SignData done [11:13:55]FM_MakeSignedData done [11:13:55]CreateOFDProtocolMessage [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 11 00 00 [11:13:55]Write to MH i2c: E2 08 00 12 2A 80 11 00 00 00 00 00 00 B6 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 12 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 08 [11:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:13:55]wFMCommunicate OK [11:13:55]CreateOFDProtocolMessage done [11:13:55]OFDSenderStorePacket 15290 [11:13:55]StoreOFDPacket docnum=15290 [11:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 BC 39 28 01 D6 60 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F6 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BA 3B 00 00 35 04 06 00 B5 9B F4 AD E3 5C F9 49 A6 81 66 8C A5 B7 [11:13:55]CheckFolder [11:13:55]dirname=/storage/ofd_packets [11:13:55]CheckFolder done [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00015290 [11:13:55]NVStorageSaveData ofd_packets/00015290 [11:13:55]File name is /storage/ofd_packets/00015290 [11:13:55]Write 334 bytes [11:13:55]NVStorageSaveData done [11:13:55]OFDSenderStorePacket done [11:13:55]KKMCreateOFDPacket done [11:13:55]NVStorageSaveData kkm_last_timestamp [11:13:55]File name is /storage/kkm_last_timestamp [11:13:55]Write 4 bytes [11:13:55]NVStorageSaveData done [11:13:55]ExternCall_PrintAddStr [11:13:55]wPrintStart [11:13:55]Write to MH i2c: 01 00 00 13 2A 3D [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 13 2A 00 00 00 00 00 FF 0F 52 [11:13:55]RasterBufferAndPrint [11:13:55]line Счет N : (3)151276 [11:13:55]line ИНН: 02508201610067 [11:13:55]line Контрольно-Кассовый Чек [11:13:55]line ПРОДАЖА [11:13:55]line Товар: 48745031 [11:13:55]line Сигареты Winston Superslims Expand Blue [11:13:55]line 1.000 * 140.00 [11:13:55]line = 140.00 [11:13:55]line НДС 12% НСП 1% [11:13:55]line > о реализуемом товаре [11:13:55]line ИТОГО: 140.00 [11:13:55]line НСП 1% : 1.24 [11:13:55]line НДС 12% : 14.87 [11:13:55]line Наличными: 140.00 [11:13:55]line Безнал.: 0.00 [11:13:55]line Место: АЗС № 135 "Партнер Нефть" [11:13:55]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:13:55]line СНО: Общий режим [11:13:55]line Чек 84 23.08.2024 11:13 [11:13:55]line Смена: 102 ФФД: 1.0 [11:13:55]line ЗНМ: 0300000144 [11:13:55]line РНМ: 0000000000162784 [11:13:55]line Версия ККМ: v1.0 [11:13:55]line ФМ: 0000000002094529 [11:13:55]line ФД: 15290 [11:13:55]line ФПД: 199681429594972 [11:13:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T111358&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15290&fm=199681429594972&tin=02508201610067®Number=0000000000162784&sum=14000 [11:13:55]line 0 [11:13:55]OFD Sender: Processing packet 15290 [packets to send 8, broken 7] [11:13:55]ProducePacketName [11:13:55]name=ofd_packets/00015290 [11:13:55]OFD Sender: To server: pG, [11:13:55]CommunicateWithHost lk.salyk.kg:30040 [11:13:55]ConnectInit lk.salyk.kg [11:13:55]written 0, free lines is 4095 [11:13:56]Connected sock=8 [11:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 30 01 00 00 BC 39 28 01 D6 60 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F6 6E C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BA 3B 00 00 35 04 06 00 B5 9B F4 AD E3 5C F9 49 A6 81 66 8C A5 B7 [11:13:56]Write to MH i2c: 01 00 00 3C 2A 66 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 3C 2A 00 00 00 00 00 EF 0C 68 [11:13:56]RasterBufferAndPrint [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]line [11:13:56]written 0, free lines is 3318 [11:13:56]MH_Cut [11:13:56]Write to MH i2c: D1 01 00 43 2A 01 3F [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 01 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: D1 01 00 43 2A 00 3E [11:13:56]Write to MH i2c: 01 00 00 44 2A 6E [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 0D 00 47 00 60 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BA 3B 00 00 F4 03 04 00 51 19 C8 66 B6 04 01 00 00 F1 9F 69 CD 74 A9 2B 57 [11:13:56]CommunicateWithHost err = 0 [11:13:56]CheckOFDResponse [11:13:56]1017 (14) - 77093643461234 [11:13:56]1041 (16) - 0000000002094529 [11:13:56]1040 (4) - 15290 [11:13:56]1012 (4) - 23.08.2024 05:08 [11:13:56]1206 (1) - 0 [11:13:56]OFD Sender: Remove packet 15290 [11:13:56]ProducePacketName [11:13:56]name=ofd_packets/00015290 [11:13:56]NVStorageDeleteData [11:13:56]OFD Sender: No OFD packet to send [11:13:57]*** Cut start [11:13:57]*** Partial cut [11:13:57]*** CUTSNS_PIN = 1 [11:13:57]*** CUTSNS_PIN = 0 [11:13:57]*** Brake cut motor [11:13:57]Read from MH i2c: 01 [11:13:57]MH_I2C_Read... [11:13:57]*** Stop cut motor [11:13:57]*** Cut end [11:13:57]Read from MH i2c: 01 07 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: 01 07 00 44 2A 00 00 00 00 00 FF 0F 83 [11:13:57]process_action close_receipt done [11:13:57]requested_data is exist [11:13:57]produce_requested_data [11:13:57]requested_item fm.sn is exist - process it [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 11 00 00 [11:13:57]Write to MH i2c: E2 08 00 45 2A 80 11 00 00 00 00 00 00 E9 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 17 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 17 00 45 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 3B [11:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:13:57]wFMCommunicate OK [11:13:57]requested_item fd.num is exist - process it [11:13:57]SAM_PROTO_GetFieldsCounters [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 00 00 [11:13:57]Write to MH i2c: E2 08 00 46 2A 80 13 00 00 00 00 00 00 EC [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 62 00 46 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetFieldsCounters done [11:13:57]requested_item shift.num is exist - process it [11:13:57]requested_item shift.opened is exist - process it [11:13:57]req_shift_opened [11:13:57]FM_GetShiftState [11:13:57]SAM_PROTO_GetShiftState [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 01 00 [11:13:57]Write to MH i2c: E2 08 00 47 2A 80 13 01 00 00 00 00 00 EE [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 47 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B2 [11:13:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:13:58]wFMCommunicate OK [11:13:58]SAM_PROTO_GetShiftState done [11:13:58]FM_GetShiftState done [11:13:58]req_shift_opened done [11:13:58]requested_item shift.open_date is exist - process it [11:13:58]req_shift_open_date [11:13:58]req_shift_open_date done [11:13:58]produce_requested_data done [11:13:58]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15290,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:13:58]process_action_free close_receipt [11:13:58]json_value_free [11:13:58]json_value_free done [11:13:58]process_json_proto returns [11:13:58]Send response to host [11:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15290,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:13:58]free response buf [11:13:58]execute_script done [11:13:58]execute_script returns [11:13:58]free content buf [11:13:58]Sock 9.Close socket [11:13:58]Sock 9.Thread stoped [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:09]accept exits with 10 [11:20:09]New connection [11:20:09]New thread 3066801508 created [11:20:09]Thread 3066944868 joined [11:20:09]Waiting for new connection... [11:20:09] Sock 10.Parse request [11:20:09]Sock 10.Check first char [11:20:09]Sock 10.First char is OK [11:20:09]request: POST /json_proto HTTP/1.0 [11:20:09]Method: POST [11:20:09]URL: /json_proto [11:20:09]Method is POST - this is cgi request [11:20:09]url: /json_proto [11:20:09]query_string will be loaded in cgi processing [11:20:09]execute_cgi json_proto POST (null) [11:20:09]execute_cgi path=json_proto method=POST [11:20:09]POST find Content-Length [11:20:09]Host: 172.17.44.4:8080 [11:20:09]Content-Length: 614 [11:20:09]Content-Type: application/json [11:20:09] [11:20:09]POST finish read [11:20:09]Found Content-Length = 614 [11:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151277", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:09]execute_script... [11:20: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)151277", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:09]POST & json_proto [11:20:09]process_json_proto [11:20:09]json parsed OK: [11:20:09]protocol is kg_v1.0 [11:20:09]action value=close_receipt [11:20:09]process_action close_receipt [11:20:09]cmd_close_receipt [11:20:09]MH_GetDate [11:20:09]Write to MH i2c: F0 00 00 48 2A 61 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: F0 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: F0 09 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: F0 09 00 48 2A 00 6E 70 C8 66 0F 81 47 66 B3 [11:20:09]GetLastDocTimeStamp 1724411638 [11:20:09]current date 1724412014 [11:20:09]FM_GetShiftState [11:20:09]SAM_PROTO_GetShiftState [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 13 01 00 [11:20:09]Write to MH i2c: E2 08 00 49 2A 80 13 01 00 00 00 00 00 F0 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 49 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B4 [11:20:10]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:20:10]wFMCommunicate OK [11:20:10]SAM_PROTO_GetShiftState done [11:20:10]FM_GetShiftState done [11:20:10]opened in 1724372406 [11:20:10]opened+sec_in_day 1724458806 [11:20:10]quantity*price = 21000 [11:20:10]sum+1 = 21001 [11:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 85 23.08.2024 11:20 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15291 ФПД: 206290442001062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112014&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15291&fm=206290442001062&tin=02508201610067®Number=0000000000162784&sum=21000 0 [11:20:11]StoreToDocumentArchive [11:20:11]shift 102 fd 15291 [11:20:11]save to /storage/0102/doc_00015291 [11:20:11]save last doc name /storage/0102/doc_00015291 to /storage/kkm_last_doc_name [11:20:11]save OK [11:20:11]Clear old archive folders... [11:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:20:11]tlvbuf is 004DA3B0 [11:20:11]SAM_PROTO_ClearQueue [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 09 00 00 [11:20:11]Write to MH i2c: E2 08 00 56 2A 80 09 00 00 00 00 00 00 F2 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 56 2A 00 90 00 F4 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_ClearQueue done [11:20:11]KKMCreateOFDPacket [11:20:11]OFDProtocolAddRootSTLVToBuf [11:20:11]FM_MakeSignedData [11:20:11]FM_MakeSignedData [11:20:11]SAM_PROTO_SignData [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 01 02 [11:20:11]Write to MH i2c: E2 08 00 57 2A 80 0D 01 02 00 00 00 00 FA [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 57 2A 00 90 00 F5 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=255 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 6E 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 [11:20:11]Write to MH i2c: E2 02 01 58 2A 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 6E 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 00 00 A1 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=25 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 02 02 14 32 39 10 04 04 00 BB 3B 00 00 35 04 06 00 BB 9E BC 84 1A A6 [11:20:11]Write to MH i2c: E2 1C 00 59 2A 80 0D 02 02 14 00 32 39 10 04 04 00 BB 3B 00 00 35 04 06 00 BB 9E BC 84 1A A6 00 00 36 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 03 02 [11:20:11]Write to MH i2c: E2 08 00 5A 2A 80 0D 03 02 00 00 00 00 FF [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 0B 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 0B 00 5A 2A 00 D7 7D FA 42 98 37 E3 32 90 00 74 [11:20:11]RAPDU: D7 7D FA 42 98 37 E3 32 90 00 [11:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_SignData done [11:20:11]FM_MakeSignedData done [11:20:11]CreateOFDProtocolMessage [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 11 00 00 [11:20:11]Write to MH i2c: E2 08 00 5B 2A 80 11 00 00 00 00 00 00 FF [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 17 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 17 00 5B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 51 [11:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:20:11]wFMCommunicate OK [11:20:11]CreateOFDProtocolMessage done [11:20:11]OFDSenderStorePacket 15291 [11:20:11]StoreOFDPacket docnum=15291 [11:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1E 01 00 00 8E 1F 16 01 03 01 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 6E 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BB 3B 00 00 35 04 06 00 BB 9E BC 84 1A A6 D7 7D FA 42 98 37 E3 32 [11:20:11]CheckFolder [11:20:11]dirname=/storage/ofd_packets [11:20:11]CheckFolder done [11:20:11]ProducePacketName [11:20:11]name=ofd_packets/00015291 [11:20:11]NVStorageSaveData ofd_packets/00015291 [11:20:11]File name is /storage/ofd_packets/00015291 [11:20:11]Write 316 bytes [11:20:11]NVStorageSaveData done [11:20:11]OFDSenderStorePacket done [11:20:11]KKMCreateOFDPacket done [11:20:11]NVStorageSaveData kkm_last_timestamp [11:20:11]File name is /storage/kkm_last_timestamp [11:20:11]Write 4 bytes [11:20:11]NVStorageSaveData done [11:20:11]ExternCall_PrintAddStr [11:20:11]wPrintStart [11:20:11]Write to MH i2c: 01 00 00 5C 2A 86 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: 01 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: 01 07 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: 01 07 00 5C 2A 00 00 00 00 00 FF 0F 9B [11:20:11]RasterBufferAndPrint [11:20:11]line Счет N : (3)151277 [11:20:11]line ИНН: 02508201610067 [11:20:11]line Контрольно-Кассовый Чек [11:20:11]line ПРОДАЖА [11:20:11]line Товар: 4870001570095 [11:20:11]line Напиток Pepsi 2л [11:20:11]line 1.000 * 210.00 [11:20:11]line = 210.00 [11:20:11]line НДС 12% НСП 1% [11:20:11]line > о реализуемом товаре [11:20:11]line ИТОГО: 210.00 [11:20:11]line НСП 1% : 1.86 [11:20:11]line НДС 12% : 22.30 [11:20:11]line Наличными: 210.00 [11:20:11]line Безнал.: 0.00 [11:20:11]line Место: АЗС № 135 "Партнер Нефть" [11:20:11]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:20:11]line СНО: Общий режим [11:20:11]line Чек 85 23.08.2024 11:20 [11:20:11]line Смена: 102 ФФД: 1.0 [11:20:11]line ЗНМ: 0300000144 [11:20:11]line РНМ: 0000000000162784 [11:20:11]line Версия ККМ: v1.0 [11:20:11]line ФМ: 0000000002094529 [11:20:11]line ФД: 15291 [11:20:11]line ФПД: 206290442001062 [11:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112014&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15291&fm=206290442001062&tin=02508201610067®Number=0000000000162784&sum=21000 [11:20:11]line 0 [11:20:11]OFD Sender: Processing packet 15291 [packets to send 8, broken 7] [11:20:11]ProducePacketName [11:20:11]name=ofd_packets/00015291 [11:20:11]OFD Sender: To server: pG, [11:20:11]CommunicateWithHost lk.salyk.kg:30040 [11:20:11]ConnectInit lk.salyk.kg [11:20:11]written 0, free lines is 4095 [11:20:12]Connected sock=9 [11:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1E 01 00 00 8E 1F 16 01 03 01 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 6E 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BB 3B 00 00 35 04 06 00 BB 9E BC 84 1A A6 D7 7D FA 42 98 37 E3 32 [11:20:12]Write to MH i2c: 01 00 00 84 2A AE [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 84 2A 00 00 00 00 00 FB 0C BC [11:20:12]RasterBufferAndPrint [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]written 0, free lines is 3329 [11:20:12]MH_Cut [11:20:12]Write to MH i2c: D1 01 00 8B 2A 01 87 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 8B 2A 00 86 [11:20:12]Write to MH i2c: 01 00 00 8C 2A B6 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 69 F8 47 00 BF 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 32 30 39 34 35 32 39 10 04 04 00 BB 3B 00 00 F4 03 04 00 C9 1A C8 66 B6 04 01 00 00 63 62 CD 2B AC E6 5E 59 [11:20:12]CommunicateWithHost err = 0 [11:20:12]CheckOFDResponse [11:20:12]1017 (14) - 77093643461234 [11:20:12]1041 (16) - 0000000002094529 [11:20:12]1040 (4) - 15291 [11:20:12]1012 (4) - 23.08.2024 05:14 [11:20:12]1206 (1) - 0 [11:20:12]OFD Sender: Remove packet 15291 [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00015291 [11:20:12]NVStorageDeleteData [11:20:12]OFD Sender: No OFD packet to send [11:20:13]*** Cut start [11:20:13]*** Partial cut [11:20:13]*** CUTSNS_PIN = 1 [11:20:13]*** CUTSNS_PIN = 0 [11:20:13]*** Brake cut motor [11:20:13]Read from MH i2c: 01 [11:20:13]MH_I2C_Read... [11:20:13]*** Stop cut motor [11:20:13]*** Cut end [11:20:13]Read from MH i2c: 01 07 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: 01 07 00 8C 2A 00 00 00 00 00 FF 0F CB [11:20:13]process_action close_receipt done [11:20:13]requested_data is exist [11:20:13]produce_requested_data [11:20:13]requested_item fm.sn is exist - process it [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 11 00 00 [11:20:13]Write to MH i2c: E2 08 00 8D 2A 80 11 00 00 00 00 00 00 31 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 17 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 17 00 8D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 83 [11:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:20:13]wFMCommunicate OK [11:20:13]requested_item fd.num is exist - process it [11:20:13]SAM_PROTO_GetFieldsCounters [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 00 00 [11:20:13]Write to MH i2c: E2 08 00 8E 2A 80 13 00 00 00 00 00 00 34 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 8E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [11:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetFieldsCounters done [11:20:13]requested_item shift.num is exist - process it [11:20:13]requested_item shift.opened is exist - process it [11:20:13]req_shift_opened [11:20:13]FM_GetShiftState [11:20:13]SAM_PROTO_GetShiftState [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 01 00 [11:20:13]Write to MH i2c: E2 08 00 8F 2A 80 13 01 00 00 00 00 00 36 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 8F 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FA [11:20:13]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetShiftState done [11:20:13]FM_GetShiftState done [11:20:13]req_shift_opened done [11:20:13]requested_item shift.open_date is exist - process it [11:20:13]req_shift_open_date [11:20:13]req_shift_open_date done [11:20:13]produce_requested_data done [11:20:13]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15291,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:20:13]process_action_free close_receipt [11:20:13]json_value_free [11:20:13]json_value_free done [11:20:13]process_json_proto returns [11:20:13]Send response to host [11:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15291,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:20:13]free response buf [11:20:13]execute_script done [11:20:13]execute_script returns [11:20:13]free content buf [11:20:13]Sock 10.Close socket [11:20:13]Sock 10.Thread stoped [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:26]accept exits with 8 [11:20:26]New connection [11:20:26]New thread 3066944868 created [11:20:26]Thread 3066801508 joined [11:20:26]Waiting for new connection... [11:20:26] Sock 8.Parse request [11:20:26]Sock 8.Check first char [11:20:26]Sock 8.First char is OK [11:20:26]request: POST /json_proto HTTP/1.0 [11:20:26]Method: POST [11:20:26]URL: /json_proto [11:20:26]Method is POST - this is cgi request [11:20:26]url: /json_proto [11:20:26]query_string will be loaded in cgi processing [11:20:26]execute_cgi json_proto POST (null) [11:20:26]execute_cgi path=json_proto method=POST [11:20:26]POST find Content-Length [11:20:26]Host: 172.17.44.4:8080 [11:20:26]Content-Length: 644 [11:20:26]Content-Type: application/json [11:20:26] [11:20:26]POST finish read [11:20:26]Found Content-Length = 644 [11:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151278", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:26]execute_script... [11:20: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)151278", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:26]POST & json_proto [11:20:26]process_json_proto [11:20:26]json parsed OK: [11:20:26]protocol is kg_v1.0 [11:20:26]action value=close_receipt [11:20:26]process_action close_receipt [11:20:26]cmd_close_receipt [11:20:26]MH_GetDate [11:20:26]Write to MH i2c: F0 00 00 90 2A A9 [11:20:26]Write i2c OK [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: F0 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: F0 09 00 [11:20:26]MH_I2C_Read... [11:20:26]Read from MH i2c: F0 09 00 90 2A 00 7F 70 C8 66 0F 81 47 66 0C [11:20:26]GetLastDocTimeStamp 1724412014 [11:20:26]current date 1724412031 [11:20:26]FM_GetShiftState [11:20:26]SAM_PROTO_GetShiftState [11:20:26]wFMCommunicate request_size=4 [11:20:26]MH_SAM_APDU [11:20:26]CAPDU: 80 13 01 00 [11:20:26]Write to MH i2c: E2 08 00 91 2A 80 13 01 00 00 00 00 00 38 [11:20:26]Write i2c OK [11:20:26]MH_I2C_Read... [11:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:27]Read from MH i2c: E2 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 91 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 FC [11:20:27]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:20:27]wFMCommunicate OK [11:20:27]SAM_PROTO_GetShiftState done [11:20:27]FM_GetShiftState done [11:20:27]opened in 1724372406 [11:20:27]opened+sec_in_day 1724458806 [11:20:27]quantity*price = 4200 [11:20:27]sum+1 = 4201 [11:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 86 23.08.2024 11:20 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15292 ФПД: 85578397901481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112031&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15292&fm=85578397901481&tin=02508201610067®Number=0000000000162784&sum=4200 0 [11:20:28]StoreToDocumentArchive [11:20:28]shift 102 fd 15292 [11:20:28]save to /storage/0102/doc_00015292 [11:20:28]save last doc name /storage/0102/doc_00015292 to /storage/kkm_last_doc_name [11:20:28]save OK [11:20:28]Clear old archive folders... [11:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:20:28]tlvbuf is 004A1720 [11:20:28]SAM_PROTO_ClearQueue [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 09 00 00 [11:20:28]Write to MH i2c: E2 08 00 9E 2A 80 09 00 00 00 00 00 00 3A [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]SAM_PROTO_ClearQueue done [11:20:28]KKMCreateOFDPacket [11:20:28]OFDProtocolAddRootSTLVToBuf [11:20:28]FM_MakeSignedData [11:20:28]FM_MakeSignedData [11:20:28]SAM_PROTO_SignData [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 01 02 [11:20:28]Write to MH i2c: E2 08 00 9F 2A 80 0D 01 02 00 00 00 00 42 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 9F 2A 00 90 00 3D [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]wFMCommunicate request_size=255 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7F 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 [11:20:28]Write to MH i2c: E2 02 01 A0 2A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7F 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 00 00 96 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 A0 2A 00 90 00 3E [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]wFMCommunicate request_size=34 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BC 3B 00 00 35 04 06 00 4D D5 46 01 E2 A9 [11:20:28]Write to MH i2c: E2 25 00 A1 2A 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BC 3B 00 00 35 04 06 00 4D D5 46 01 E2 A9 00 00 F0 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 A1 2A 00 90 00 3F [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 03 02 [11:20:28]Write to MH i2c: E2 08 00 A2 2A 80 0D 03 02 00 00 00 00 47 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 0B 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 0B 00 A2 2A 00 C0 27 6E CF A5 3E C6 2F 90 00 44 [11:20:28]RAPDU: C0 27 6E CF A5 3E C6 2F 90 00 [11:20:28]wFMCommunicate OK [11:20:28]SAM_PROTO_SignData done [11:20:28]FM_MakeSignedData done [11:20:28]CreateOFDProtocolMessage [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 11 00 00 [11:20:28]Write to MH i2c: E2 08 00 A3 2A 80 11 00 00 00 00 00 00 47 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 17 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 17 00 A3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 99 [11:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:20:28]wFMCommunicate OK [11:20:28]CreateOFDProtocolMessage done [11:20:28]OFDSenderStorePacket 15292 [11:20:28]StoreOFDPacket docnum=15292 [11:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 27 01 00 00 E7 FB 1F 01 AC B7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7F 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BC 3B 00 00 35 04 06 00 4D D5 46 01 E2 A9 C0 27 6E CF A5 3E C6 2F [11:20:28]CheckFolder [11:20:28]dirname=/storage/ofd_packets [11:20:28]CheckFolder done [11:20:28]ProducePacketName [11:20:28]name=ofd_packets/00015292 [11:20:28]NVStorageSaveData ofd_packets/00015292 [11:20:28]File name is /storage/ofd_packets/00015292 [11:20:28]Write 325 bytes [11:20:28]NVStorageSaveData done [11:20:28]OFDSenderStorePacket done [11:20:28]KKMCreateOFDPacket done [11:20:28]NVStorageSaveData kkm_last_timestamp [11:20:28]File name is /storage/kkm_last_timestamp [11:20:28]Write 4 bytes [11:20:28]NVStorageSaveData done [11:20:28]ExternCall_PrintAddStr [11:20:28]wPrintStart [11:20:28]Write to MH i2c: 01 00 00 A4 2A CE [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: 01 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: 01 07 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: 01 07 00 A4 2A 00 00 00 00 00 FF 0F E3 [11:20:28]RasterBufferAndPrint [11:20:28]line Счет N : (3)151278 [11:20:28]line ИНН: 02508201610067 [11:20:28]line Контрольно-Кассовый Чек [11:20:28]line ПРОДАЖА [11:20:28]line Товар: 5449000005489 [11:20:28]line Вода Бонаква 1л б/г [11:20:28]line 1.000 * 42.00 [11:20:28]line = 42.00 [11:20:28]line НДС 12% НСП 1% [11:20:28]line > о реализуемом товаре [11:20:28]line ИТОГО: 42.00 [11:20:28]line НСП 1% : 0.37 [11:20:28]line НДС 12% : 4.46 [11:20:28]line Наличными: 42.00 [11:20:28]line Безнал.: 0.00 [11:20:28]line Место: АЗС № 135 "Партнер Нефть" [11:20:28]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:20:28]line СНО: Общий режим [11:20:28]line Чек 86 23.08.2024 11:20 [11:20:28]line Смена: 102 ФФД: 1.0 [11:20:28]line ЗНМ: 0300000144 [11:20:28]line РНМ: 0000000000162784 [11:20:28]line Версия ККМ: v1.0 [11:20:28]line ФМ: 0000000002094529 [11:20:28]line ФД: 15292 [11:20:28]line ФПД: 85578397901481 [11:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112031&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15292&fm=85578397901481&tin=02508201610067®Number=0000000000162784&sum=4200 [11:20:29]line 0 [11:20:29]OFD Sender: Processing packet 15292 [packets to send 8, broken 7] [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00015292 [11:20:29]OFD Sender: To server: pG, [11:20:29]CommunicateWithHost lk.salyk.kg:30040 [11:20:29]ConnectInit lk.salyk.kg [11:20:29]written 0, free lines is 4095 [11:20:29]Connected sock=10 [11:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 27 01 00 00 E7 FB 1F 01 AC B7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 7F 70 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BC 3B 00 00 35 04 06 00 4D D5 46 01 E2 A9 C0 27 6E CF A5 3E C6 2F [11:20:29]Write to MH i2c: 01 00 00 CC 2A F6 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 CC 2A 00 00 00 00 00 0F 0D 19 [11:20:29]RasterBufferAndPrint [11:20:29]line [11:20:29]line [11:20:29]line [11:20:29]line [11:20:29]line [11:20:29]written 0, free lines is 3349 [11:20:29]MH_Cut [11:20:29]Write to MH i2c: D1 01 00 D3 2A 01 CF [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: D1 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: D1 01 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: D1 01 00 D3 2A 00 CE [11:20:29]Write to MH i2c: 01 00 00 D4 2A FE [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 EB 83 47 00 2E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BC 3B 00 00 F4 03 04 00 DA 1A C8 66 B6 04 01 00 00 83 42 55 D2 FD 76 D8 48 [11:20:29]CommunicateWithHost err = 0 [11:20:29]CheckOFDResponse [11:20:29]1017 (14) - 77093643461234 [11:20:29]1041 (16) - 0000000002094529 [11:20:29]1040 (4) - 15292 [11:20:29]1012 (4) - 23.08.2024 05:15 [11:20:29]1206 (1) - 0 [11:20:29]OFD Sender: Remove packet 15292 [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00015292 [11:20:29]NVStorageDeleteData [11:20:30]OFD Sender: No OFD packet to send [11:20:30]*** Cut start [11:20:30]*** Partial cut [11:20:30]*** CUTSNS_PIN = 1 [11:20:30]*** CUTSNS_PIN = 0 [11:20:30]*** Brake cut motor [11:20:30]Read from MH i2c: 01 [11:20:30]MH_I2C_Read... [11:20:30]*** Stop cut motor [11:20:30]*** Cut end [11:20:30]Read from MH i2c: 01 07 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [11:20:30]process_action close_receipt done [11:20:30]requested_data is exist [11:20:30]produce_requested_data [11:20:30]requested_item fm.sn is exist - process it [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 11 00 00 [11:20:30]Write to MH i2c: E2 08 00 D5 2A 80 11 00 00 00 00 00 00 79 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:30]Read from MH i2c: E2 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 17 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: E2 17 00 D5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CB [11:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:20:30]wFMCommunicate OK [11:20:30]requested_item fd.num is exist - process it [11:20:30]SAM_PROTO_GetFieldsCounters [11:20:30]wFMCommunicate request_size=4 [11:20:30]MH_SAM_APDU [11:20:30]CAPDU: 80 13 00 00 [11:20:30]Write to MH i2c: E2 08 00 D6 2A 80 13 00 00 00 00 00 00 7C [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 D6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetFieldsCounters done [11:20:31]requested_item shift.num is exist - process it [11:20:31]requested_item shift.opened is exist - process it [11:20:31]req_shift_opened [11:20:31]FM_GetShiftState [11:20:31]SAM_PROTO_GetShiftState [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 01 00 [11:20:31]Write to MH i2c: E2 08 00 D7 2A 80 13 01 00 00 00 00 00 7E [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 D7 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 42 [11:20:31]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetShiftState done [11:20:31]FM_GetShiftState done [11:20:31]req_shift_opened done [11:20:31]requested_item shift.open_date is exist - process it [11:20:31]req_shift_open_date [11:20:31]req_shift_open_date done [11:20:31]produce_requested_data done [11:20:31]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15292,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:20:31]process_action_free close_receipt [11:20:31]json_value_free [11:20:31]json_value_free done [11:20:31]process_json_proto returns [11:20:31]Send response to host [11:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15292,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:20:31]free response buf [11:20:31]execute_script done [11:20:31]execute_script returns [11:20:31]free content buf [11:20:31]Sock 8.Close socket [11:20:31]Sock 8.Thread stoped [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:09]accept exits with 9 [11:25:09]New connection [11:25:09]New thread 3066801508 created [11:25:09]Thread 3066944868 joined [11:25:09]Waiting for new connection... [11:25:09] Sock 9.Parse request [11:25:09]Sock 9.Check first char [11:25:09]Sock 9.First char is OK [11:25:09]request: POST /json_proto HTTP/1.0 [11:25:09]Method: POST [11:25:09]URL: /json_proto [11:25:09]Method is POST - this is cgi request [11:25:09]url: /json_proto [11:25:09]query_string will be loaded in cgi processing [11:25:09]execute_cgi json_proto POST (null) [11:25:09]execute_cgi path=json_proto method=POST [11:25:09]POST find Content-Length [11:25:09]Host: 172.17.44.4:8080 [11:25:09]Content-Length: 738 [11:25:09]Content-Type: application/json [11:25:09] [11:25:09]POST finish read [11:25:09]Found Content-Length = 738 [11:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151279", "tax_sys" : 0, "items" : [ { "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]execute_script... [11:25: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)151279", "tax_sys" : 0, "items" : [ { "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:09]POST & json_proto [11:25:09]process_json_proto [11:25:09]json parsed OK: [11:25:09]protocol is kg_v1.0 [11:25:09]action value=close_receipt [11:25:09]process_action close_receipt [11:25:09]cmd_close_receipt [11:25:09]MH_GetDate [11:25:09]Write to MH i2c: F0 00 00 D8 2A F1 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: F0 09 00 D8 2A 00 99 71 C8 66 0F 81 47 66 6F [11:25:09]GetLastDocTimeStamp 1724412031 [11:25:09]current date 1724412313 [11:25:09]FM_GetShiftState [11:25:09]SAM_PROTO_GetShiftState [11:25:09]wFMCommunicate request_size=4 [11:25:09]MH_SAM_APDU [11:25:09]CAPDU: 80 13 01 00 [11:25:09]Write to MH i2c: E2 08 00 D9 2A 80 13 01 00 00 00 00 00 80 [11:25:09]Write i2c OK [11:25:09]MH_I2C_Read... [11:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:09]Read from MH i2c: E2 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 [11:25:09]MH_I2C_Read... [11:25:09]Read from MH i2c: E2 0E 00 D9 2A 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 44 [11:25:09]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:25:09]wFMCommunicate OK [11:25:09]SAM_PROTO_GetShiftState done [11:25:09]FM_GetShiftState done [11:25:09]opened in 1724372406 [11:25:09]opened+sec_in_day 1724458806 [11:25:09]quantity*price = 16000 [11:25:09]sum+1 = 16001 [11:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 87 23.08.2024 11:25 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15293 ФПД: 131409310147537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112513&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15293&fm=131409310147537&tin=02508201610067®Number=0000000000162784&sum=16000 0 [11:25:10]StoreToDocumentArchive [11:25:10]shift 102 fd 15293 [11:25:10]save to /storage/0102/doc_00015293 [11:25:10]save last doc name /storage/0102/doc_00015293 to /storage/kkm_last_doc_name [11:25:10]save OK [11:25:10]Clear old archive folders... [11:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=307 [11:25:10]tlvbuf is 0047A9E0 [11:25:10]SAM_PROTO_ClearQueue [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 09 00 00 [11:25:10]Write to MH i2c: E2 08 00 E6 2A 80 09 00 00 00 00 00 00 82 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 E6 2A 00 90 00 84 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_ClearQueue done [11:25:10]KKMCreateOFDPacket [11:25:10]OFDProtocolAddRootSTLVToBuf [11:25:10]FM_MakeSignedData [11:25:10]FM_MakeSignedData [11:25:10]SAM_PROTO_SignData [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 01 02 [11:25:10]Write to MH i2c: E2 08 00 E7 2A 80 0D 01 02 00 00 00 00 8A [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [11:25:10]RAPDU: 90 00 [11:25:10]wFMCommunicate OK [11:25:10]wFMCommunicate request_size=255 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 71 C8 66 0E 04 04 00 66 00 00 00 B9 04 [11:25:10]Write to MH i2c: E2 02 01 E8 2A 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 71 C8 66 0E 04 04 00 66 00 00 00 B9 04 00 00 CE [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]wFMCommunicate request_size=66 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BD 3B 00 00 35 04 06 00 77 84 1D 40 63 D1 [11:25:11]Write to MH i2c: E2 45 00 E9 2A 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BD 3B 00 00 35 04 06 00 77 84 1D 40 63 D1 00 00 65 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 E9 2A 00 90 00 87 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 0D 03 02 [11:25:11]Write to MH i2c: E2 08 00 EA 2A 80 0D 03 02 00 00 00 00 8F [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0B 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0B 00 EA 2A 00 46 9A CF 63 59 21 51 77 90 00 E4 [11:25:11]RAPDU: 46 9A CF 63 59 21 51 77 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_SignData done [11:25:11]FM_MakeSignedData done [11:25:11]CreateOFDProtocolMessage [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 11 00 00 [11:25:11]Write to MH i2c: E2 08 00 EB 2A 80 11 00 00 00 00 00 00 8F [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 17 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 17 00 EB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E1 [11:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:25:11]wFMCommunicate OK [11:25:11]CreateOFDProtocolMessage done [11:25:11]OFDSenderStorePacket 15293 [11:25:11]StoreOFDPacket docnum=15293 [11:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 47 01 00 00 06 46 3F 01 A1 A8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 71 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BD 3B 00 00 35 04 06 00 77 84 1D 40 63 D1 46 9A CF 63 59 21 51 77 [11:25:11]CheckFolder [11:25:11]dirname=/storage/ofd_packets [11:25:11]CheckFolder done [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00015293 [11:25:11]NVStorageSaveData ofd_packets/00015293 [11:25:11]File name is /storage/ofd_packets/00015293 [11:25:11]Write 357 bytes [11:25:11]NVStorageSaveData done [11:25:11]OFDSenderStorePacket done [11:25:11]KKMCreateOFDPacket done [11:25:11]NVStorageSaveData kkm_last_timestamp [11:25:11]File name is /storage/kkm_last_timestamp [11:25:11]Write 4 bytes [11:25:11]NVStorageSaveData done [11:25:11]ExternCall_PrintAddStr [11:25:11]wPrintStart [11:25:11]Write to MH i2c: 01 00 00 EC 2A 16 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 FF 0F 2B [11:25:11]RasterBufferAndPrint [11:25:11]line Счет N : (3)151279 [11:25:11]line ИНН: 02508201610067 [11:25:11]line Контрольно-Кассовый Чек [11:25:11]line ПРОДАЖА [11:25:11]line Товар: 4601025117788 [11:25:11]line Напиток Фрутмотив арбуз клубника 0,5 [11:25:11]line 2.000 * 80.00 [11:25:11]line = 160.00 [11:25:11]line НДС 12% НСП 1% [11:25:11]line > о реализуемом товаре [11:25:11]line ИТОГО: 160.00 [11:25:11]line НСП 1% : 1.42 [11:25:11]line НДС 12% : 16.99 [11:25:11]line Наличными: 160.00 [11:25:11]line Безнал.: 0.00 [11:25:11]line Место: АЗС № 135 "Партнер Нефть" [11:25:11]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:25:11]line СНО: Общий режим [11:25:11]line Чек 87 23.08.2024 11:25 [11:25:11]line Смена: 102 ФФД: 1.0 [11:25:11]line ЗНМ: 0300000144 [11:25:11]line РНМ: 0000000000162784 [11:25:11]line Версия ККМ: v1.0 [11:25:11]line ФМ: 0000000002094529 [11:25:11]line ФД: 15293 [11:25:11]line ФПД: 131409310147537 [11:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T112513&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15293&fm=131409310147537&tin=02508201610067®Number=0000000000162784&sum=16000 [11:25:11]line 0 [11:25:11]OFD Sender: Processing packet 15293 [packets to send 8, broken 7] [11:25:11]ProducePacketName [11:25:11]name=ofd_packets/00015293 [11:25:11]OFD Sender: To server: pG, [11:25:11]CommunicateWithHost lk.salyk.kg:30040 [11:25:11]ConnectInit lk.salyk.kg [11:25:11]written 0, free lines is 4095 [11:25:11]Connected sock=10 [11:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 47 01 00 00 06 46 3F 01 A1 A8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 71 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BD 3B 00 00 35 04 06 00 77 84 1D 40 63 D1 46 9A CF 63 59 21 51 77 [11:25:11]Write to MH i2c: 01 00 00 15 2B 40 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: 01 07 00 15 2B 00 00 00 00 00 E7 0C 3A [11:25:11]RasterBufferAndPrint [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]line [11:25:11]written 0, free lines is 3309 [11:25:12]MH_Cut [11:25:12]Write to MH i2c: D1 01 00 1C 2B 01 19 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 01 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 01 00 1C 2B 00 18 [11:25:12]Write to MH i2c: 01 00 00 1D 2B 48 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 8C 18 47 00 3F 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 32 30 39 34 35 32 39 10 04 04 00 BD 3B 00 00 F4 03 04 00 F5 1B C8 66 B6 04 01 00 00 FC 69 BD 2C FA F8 14 85 [11:25:12]CommunicateWithHost err = 0 [11:25:12]CheckOFDResponse [11:25:12]1017 (14) - 77093643461234 [11:25:12]1041 (16) - 0000000002094529 [11:25:12]1040 (4) - 15293 [11:25:12]1012 (4) - 23.08.2024 05:19 [11:25:12]1206 (1) - 0 [11:25:12]OFD Sender: Remove packet 15293 [11:25:12]ProducePacketName [11:25:12]name=ofd_packets/00015293 [11:25:12]NVStorageDeleteData [11:25:12]OFD Sender: No OFD packet to send [11:25:12]*** Cut start [11:25:12]*** Partial cut [11:25:12]*** CUTSNS_PIN = 1 [11:25:12]*** CUTSNS_PIN = 0 [11:25:13]*** Brake cut motor [11:25:13]Read from MH i2c: 01 [11:25:13]*** Stop cut motor [11:25:13]*** Cut end [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 1D 2B 00 00 00 00 00 FF 0F 5D [11:25:13]process_action close_receipt done [11:25:13]requested_data is exist [11:25:13]produce_requested_data [11:25:13]requested_item fm.sn is exist - process it [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 11 00 00 [11:25:13]Write to MH i2c: E2 08 00 1E 2B 80 11 00 00 00 00 00 00 C3 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 1E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 15 [11:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:25:13]wFMCommunicate OK [11:25:13]requested_item fd.num is exist - process it [11:25:13]SAM_PROTO_GetFieldsCounters [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 00 00 [11:25:13]Write to MH i2c: E2 08 00 1F 2B 80 13 00 00 00 00 00 00 C6 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 62 00 1F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:25:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetFieldsCounters done [11:25:13]requested_item shift.num is exist - process it [11:25:13]requested_item shift.opened is exist - process it [11:25:13]req_shift_opened [11:25:13]FM_GetShiftState [11:25:13]SAM_PROTO_GetShiftState [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 01 00 [11:25:13]Write to MH i2c: E2 08 00 20 2B 80 13 01 00 00 00 00 00 C8 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 20 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 8C [11:25:13]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetShiftState done [11:25:13]FM_GetShiftState done [11:25:13]req_shift_opened done [11:25:13]requested_item shift.open_date is exist - process it [11:25:13]req_shift_open_date [11:25:13]req_shift_open_date done [11:25:13]produce_requested_data done [11:25:13]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15293,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:25:13]process_action_free close_receipt [11:25:13]json_value_free [11:25:13]json_value_free done [11:25:13]process_json_proto returns [11:25:13]Send response to host [11:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15293,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:25:13]free response buf [11:25:13]execute_script done [11:25:13]execute_script returns [11:25:13]free content buf [11:25:13]Sock 9.Close socket [11:25:13]Sock 9.Thread stoped [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:21]accept exits with 8 [11:44:21]New connection [11:44:21]New thread 3066944868 created [11:44:21]Thread 3066801508 joined [11:44:21]Waiting for new connection... [11:44:21] Sock 8.Parse request [11:44:21]Sock 8.Check first char [11:44:21]Sock 8.First char is OK [11:44:21]request: POST /json_proto HTTP/1.0 [11:44:21]Method: POST [11:44:21]URL: /json_proto [11:44:21]Method is POST - this is cgi request [11:44:21]url: /json_proto [11:44:21]query_string will be loaded in cgi processing [11:44:21]execute_cgi json_proto POST (null) [11:44:21]execute_cgi path=json_proto method=POST [11:44:21]POST find Content-Length [11:44:21]Host: 172.17.44.4:8080 [11:44:21]Content-Length: 663 [11:44:21]Content-Type: application/json [11:44:21] [11:44:21]POST finish read [11:44:21]Found Content-Length = 663 [11:44:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151280", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\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" ] } } [11:44:21]execute_script... [11:44:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151280", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\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" ] } } [11:44:21]POST & json_proto [11:44:21]process_json_proto [11:44:21]json parsed OK: [11:44:21]protocol is kg_v1.0 [11:44:21]action value=close_receipt [11:44:21]process_action close_receipt [11:44:21]cmd_close_receipt [11:44:21]MH_GetDate [11:44:21]Write to MH i2c: F0 00 00 21 2B 3B [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 09 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 09 00 21 2B 00 1A 76 C8 66 0F 81 47 66 3F [11:44:21]GetLastDocTimeStamp 1724412313 [11:44:21]current date 1724413466 [11:44:21]FM_GetShiftState [11:44:21]SAM_PROTO_GetShiftState [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 13 01 00 [11:44:21]Write to MH i2c: E2 08 00 22 2B 80 13 01 00 00 00 00 00 CA [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 22 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 8E [11:44:21]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:44:21]wFMCommunicate OK [11:44:21]SAM_PROTO_GetShiftState done [11:44:21]FM_GetShiftState done [11:44:21]opened in 1724372406 [11:44:21]opened+sec_in_day 1724458806 [11:44:21]quantity*price = 15500 [11:44:21]sum+1 = 15501 [11:44:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 88 23.08.2024 11:44 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15294 ФПД: 11760365423439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114426&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15294&fm=11760365423439&tin=02508201610067®Number=0000000000162784&sum=15500 0 [11:44:22]StoreToDocumentArchive [11:44:22]shift 102 fd 15294 [11:44:22]save to /storage/0102/doc_00015294 [11:44:22]save last doc name /storage/0102/doc_00015294 to /storage/kkm_last_doc_name [11:44:22]save OK [11:44:22]Clear old archive folders... [11:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=287 [11:44:22]tlvbuf is B6F56CE0 [11:44:22]SAM_PROTO_ClearQueue [11:44:22]wFMCommunicate request_size=4 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 09 00 00 [11:44:22]Write to MH i2c: E2 08 00 2F 2B 80 09 00 00 00 00 00 00 CC [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:22]Read from MH i2c: E2 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 2F 2B 00 90 00 CE [11:44:22]RAPDU: 90 00 [11:44:22]wFMCommunicate OK [11:44:22]SAM_PROTO_ClearQueue done [11:44:22]KKMCreateOFDPacket [11:44:22]OFDProtocolAddRootSTLVToBuf [11:44:22]FM_MakeSignedData [11:44:22]FM_MakeSignedData [11:44:22]SAM_PROTO_SignData [11:44:22]wFMCommunicate request_size=4 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 0D 01 02 [11:44:22]Write to MH i2c: E2 08 00 30 2B 80 0D 01 02 00 00 00 00 D4 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [11:44:23]RAPDU: 90 00 [11:44:23]wFMCommunicate OK [11:44:23]wFMCommunicate request_size=255 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 1A 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 [11:44:23]Write to MH i2c: E2 02 01 31 2B 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 1A 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 00 00 9C [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 31 2B 00 90 00 D0 [11:44:23]RAPDU: 90 00 [11:44:23]wFMCommunicate OK [11:44:23]wFMCommunicate request_size=46 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 0D 02 02 29 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BE 3B 00 00 35 04 06 00 0A B2 2C 67 4B 4F [11:44:23]Write to MH i2c: E2 31 00 32 2B 80 0D 02 02 29 00 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BE 3B 00 00 35 04 06 00 0A B2 2C 67 4B 4F 00 00 49 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [11:44:23]RAPDU: 90 00 [11:44:23]wFMCommunicate OK [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 0D 03 02 [11:44:23]Write to MH i2c: E2 08 00 33 2B 80 0D 03 02 00 00 00 00 D9 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0B 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0B 00 33 2B 00 0C D2 A8 0A 57 03 8E C3 90 00 15 [11:44:23]RAPDU: 0C D2 A8 0A 57 03 8E C3 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_SignData done [11:44:23]FM_MakeSignedData done [11:44:23]CreateOFDProtocolMessage [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 11 00 00 [11:44:23]Write to MH i2c: E2 08 00 34 2B 80 11 00 00 00 00 00 00 D9 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 34 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 2B [11:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:44:23]wFMCommunicate OK [11:44:23]CreateOFDProtocolMessage done [11:44:23]OFDSenderStorePacket 15294 [11:44:23]StoreOFDPacket docnum=15294 [11:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 33 01 00 00 CD 60 2B 01 30 7B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 1A 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BE 3B 00 00 35 04 06 00 0A B2 2C 67 4B 4F 0C D2 A8 0A 57 03 8E C3 [11:44:23]CheckFolder [11:44:23]dirname=/storage/ofd_packets [11:44:23]CheckFolder done [11:44:23]ProducePacketName [11:44:23]name=ofd_packets/00015294 [11:44:23]NVStorageSaveData ofd_packets/00015294 [11:44:23]File name is /storage/ofd_packets/00015294 [11:44:23]Write 337 bytes [11:44:23]NVStorageSaveData done [11:44:23]OFDSenderStorePacket done [11:44:23]KKMCreateOFDPacket done [11:44:23]NVStorageSaveData kkm_last_timestamp [11:44:23]File name is /storage/kkm_last_timestamp [11:44:23]Write 4 bytes [11:44:23]NVStorageSaveData done [11:44:23]ExternCall_PrintAddStr [11:44:23]wPrintStart [11:44:23]Write to MH i2c: 01 00 00 35 2B 60 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 07 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 07 00 35 2B 00 00 00 00 00 FF 0F 75 [11:44:23]RasterBufferAndPrint [11:44:23]line Счет N : (3)151280 [11:44:23]line ИНН: 02508201610067 [11:44:23]line Контрольно-Кассовый Чек [11:44:23]line ПРОДАЖА [11:44:23]line Товар: 5449000176448 [11:44:23]line Сок Piko Pulpy апельсин ПЭТ 1л [11:44:23]line 1.000 * 155.00 [11:44:23]line = 155.00 [11:44:23]line НДС 12% НСП 1% [11:44:23]line > о реализуемом товаре [11:44:23]line ИТОГО: 155.00 [11:44:23]line НСП 1% : 1.37 [11:44:23]line НДС 12% : 16.46 [11:44:23]line Наличными: 155.00 [11:44:23]line Безнал.: 0.00 [11:44:23]line Место: АЗС № 135 "Партнер Нефть" [11:44:23]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:44:23]line СНО: Общий режим [11:44:23]line Чек 88 23.08.2024 11:44 [11:44:23]line Смена: 102 ФФД: 1.0 [11:44:23]line ЗНМ: 0300000144 [11:44:23]line РНМ: 0000000000162784 [11:44:23]line Версия ККМ: v1.0 [11:44:23]line ФМ: 0000000002094529 [11:44:23]line ФД: 15294 [11:44:23]line ФПД: 11760365423439 [11:44:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114426&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15294&fm=11760365423439&tin=02508201610067®Number=0000000000162784&sum=15500 [11:44:23]line 0 [11:44:23]OFD Sender: Processing packet 15294 [packets to send 8, broken 7] [11:44:23]ProducePacketName [11:44:23]name=ofd_packets/00015294 [11:44:23]OFD Sender: To server: pG, [11:44:23]CommunicateWithHost lk.salyk.kg:30040 [11:44:23]ConnectInit lk.salyk.kg [11:44:23]written 0, free lines is 4095 [11:44:23]Connected sock=10 [11:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 33 01 00 00 CD 60 2B 01 30 7B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 1A 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BE 3B 00 00 35 04 06 00 0A B2 2C 67 4B 4F 0C D2 A8 0A 57 03 8E C3 [11:44:24]Write to MH i2c: 01 00 00 5E 2B 89 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 5E 2B 00 00 00 00 00 FA 0C 96 [11:44:24]RasterBufferAndPrint [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]written 0, free lines is 3327 [11:44:24]MH_Cut [11:44:24]Write to MH i2c: D1 01 00 65 2B 01 62 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 01 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 01 00 65 2B 00 61 [11:44:24]Write to MH i2c: 01 00 00 66 2B 91 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 D6 74 47 00 80 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BE 3B 00 00 F4 03 04 00 75 20 C8 66 B6 04 01 00 00 DE 12 BE 6E 13 2D 87 1B [11:44:24]CommunicateWithHost err = 0 [11:44:24]CheckOFDResponse [11:44:24]1017 (14) - 77093643461234 [11:44:24]1041 (16) - 0000000002094529 [11:44:24]1040 (4) - 15294 [11:44:24]1012 (4) - 23.08.2024 05:39 [11:44:24]1206 (1) - 0 [11:44:24]OFD Sender: Remove packet 15294 [11:44:24]ProducePacketName [11:44:24]name=ofd_packets/00015294 [11:44:24]NVStorageDeleteData [11:44:24]OFD Sender: No OFD packet to send [11:44:25]*** Cut start [11:44:25]*** Partial cut [11:44:25]*** CUTSNS_PIN = 1 [11:44:25]*** CUTSNS_PIN = 0 [11:44:25]*** Brake cut motor [11:44:25]Read from MH i2c: 01 [11:44:25]MH_I2C_Read... [11:44:25]*** Stop cut motor [11:44:25]*** Cut end [11:44:25]Read from MH i2c: 01 07 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 66 2B 00 00 00 00 00 FF 0F A6 [11:44:25]process_action close_receipt done [11:44:25]requested_data is exist [11:44:25]produce_requested_data [11:44:25]requested_item fm.sn is exist - process it [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 11 00 00 [11:44:25]Write to MH i2c: E2 08 00 67 2B 80 11 00 00 00 00 00 00 0C [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 67 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5E [11:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:44:25]wFMCommunicate OK [11:44:25]requested_item fd.num is exist - process it [11:44:25]SAM_PROTO_GetFieldsCounters [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 13 00 00 [11:44:25]Write to MH i2c: E2 08 00 68 2B 80 13 00 00 00 00 00 00 0F [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 62 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 62 00 68 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [11:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:25]wFMCommunicate OK [11:44:25]SAM_PROTO_GetFieldsCounters done [11:44:25]requested_item shift.num is exist - process it [11:44:25]requested_item shift.opened is exist - process it [11:44:25]req_shift_opened [11:44:25]FM_GetShiftState [11:44:25]SAM_PROTO_GetShiftState [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 13 01 00 [11:44:25]Write to MH i2c: E2 08 00 69 2B 80 13 01 00 00 00 00 00 11 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 0E 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 0E 00 69 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D5 [11:44:25]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:44:25]wFMCommunicate OK [11:44:25]SAM_PROTO_GetShiftState done [11:44:25]FM_GetShiftState done [11:44:25]req_shift_opened done [11:44:25]requested_item shift.open_date is exist - process it [11:44:25]req_shift_open_date [11:44:25]req_shift_open_date done [11:44:25]produce_requested_data done [11:44:25]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15294,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:44:25]process_action_free close_receipt [11:44:25]json_value_free [11:44:25]json_value_free done [11:44:25]process_json_proto returns [11:44:25]Send response to host [11:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15294,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:44:25]free response buf [11:44:25]execute_script done [11:44:25]execute_script returns [11:44:25]free content buf [11:44:25]Sock 8.Close socket [11:44:25]Sock 8.Thread stoped [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:03]accept exits with 9 [11:46:03]New connection [11:46:03]New thread 3066801508 created [11:46:03]Thread 3066944868 joined [11:46:03]Waiting for new connection... [11:46:03] Sock 9.Parse request [11:46:03]Sock 9.Check first char [11:46:03]Sock 9.First char is OK [11:46:03]request: POST /json_proto HTTP/1.0 [11:46:03]Method: POST [11:46:03]URL: /json_proto [11:46:03]Method is POST - this is cgi request [11:46:03]url: /json_proto [11:46:03]query_string will be loaded in cgi processing [11:46:03]execute_cgi json_proto POST (null) [11:46:03]execute_cgi path=json_proto method=POST [11:46:03]POST find Content-Length [11:46:03]Host: 172.17.44.4:8080 [11:46:03]Content-Length: 1225 [11:46:03]Content-Type: application/json [11:46:03] [11:46:03]POST finish read [11:46:03]Found Content-Length = 1225 [11:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151281", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:03]execute_script... [11:46: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)151281", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 307.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:03]POST & json_proto [11:46:03]process_json_proto [11:46:03]json parsed OK: [11:46:03]protocol is kg_v1.0 [11:46:03]action value=close_receipt [11:46:03]process_action close_receipt [11:46:03]cmd_close_receipt [11:46:03]MH_GetDate [11:46:03]Write to MH i2c: F0 00 00 6A 2B 84 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: F0 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: F0 09 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: F0 09 00 6A 2B 00 7F 76 C8 66 0F 81 47 66 ED [11:46:03]GetLastDocTimeStamp 1724413466 [11:46:03]current date 1724413567 [11:46:03]FM_GetShiftState [11:46:03]SAM_PROTO_GetShiftState [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 13 01 00 [11:46:03]Write to MH i2c: E2 08 00 6B 2B 80 13 01 00 00 00 00 00 13 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0E 00 6B 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 D7 [11:46:03]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_GetShiftState done [11:46:03]FM_GetShiftState done [11:46:03]opened in 1724372406 [11:46:03]opened+sec_in_day 1724458806 [11:46:03]quantity*price = 6700 [11:46:03]sum+1 = 6701 [11:46:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 307.00 НСП 1% : 2.72 НДС 12% : 32.60 Наличными: 307.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 89 23.08.2024 11:46 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15295 ФПД: 236669304672052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114607&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15295&fm=236669304672052&tin=02508201610067®Number=0000000000162784&sum=30700 0 [11:46:04]StoreToDocumentArchive [11:46:04]shift 102 fd 15295 [11:46:04]save to /storage/0102/doc_00015295 [11:46:04]save last doc name /storage/0102/doc_00015295 to /storage/kkm_last_doc_name [11:46:04]save OK [11:46:04]Clear old archive folders... [11:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=521 [11:46:04]tlvbuf is 0047F2D0 [11:46:04]SAM_PROTO_ClearQueue [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 09 00 00 [11:46:04]Write to MH i2c: E2 08 00 78 2B 80 09 00 00 00 00 00 00 15 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 78 2B 00 90 00 17 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_ClearQueue done [11:46:04]KKMCreateOFDPacket [11:46:04]OFDProtocolAddRootSTLVToBuf [11:46:04]FM_MakeSignedData [11:46:04]FM_MakeSignedData [11:46:04]SAM_PROTO_SignData [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 01 02 [11:46:04]Write to MH i2c: E2 08 00 79 2B 80 0D 01 02 00 00 00 00 1D [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 79 2B 00 90 00 18 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=255 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 [11:46:04]Write to MH i2c: E2 02 01 7A 2B 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 00 00 D8 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]OFD Sender: No OFD packet to send [11:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 7A 2B 00 90 00 19 [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=255 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 02 02 FA D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 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 59 00 00 00 F4 03 04 00 7F 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:46:05]Write to MH i2c: E2 02 01 7B 2B 80 0D 02 02 FA 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 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 59 00 00 00 F4 03 04 00 7F 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E0 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=30 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 02 02 19 32 30 39 34 35 32 39 10 04 04 00 BF 3B 00 00 35 04 06 00 D7 3F DD D5 8F 34 [11:46:05]Write to MH i2c: E2 21 00 7C 2B 80 0D 02 02 19 00 32 30 39 34 35 32 39 10 04 04 00 BF 3B 00 00 35 04 06 00 D7 3F DD D5 8F 34 00 00 9E [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 7C 2B 00 90 00 1B [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 03 02 [11:46:05]Write to MH i2c: E2 08 00 7D 2B 80 0D 03 02 00 00 00 00 23 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0B 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0B 00 7D 2B 00 C2 F4 19 52 12 6D BA DC 90 00 5A [11:46:05]RAPDU: C2 F4 19 52 12 6D BA DC 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_SignData done [11:46:05]FM_MakeSignedData done [11:46:05]CreateOFDProtocolMessage [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 11 00 00 [11:46:05]Write to MH i2c: E2 08 00 7E 2B 80 11 00 00 00 00 00 00 23 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 7E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 75 [11:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:46:05]wFMCommunicate OK [11:46:05]CreateOFDProtocolMessage done [11:46:05]OFDSenderStorePacket 15295 [11:46:05]StoreOFDPacket docnum=15295 [11:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1D 02 00 00 01 6F 15 02 0F E3 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 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 59 00 00 00 F4 03 04 00 7F 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BF 3B 00 00 35 04 06 00 D7 3F DD D5 8F 34 C2 F4 19 52 12 6D BA DC [11:46:05]CheckFolder [11:46:05]dirname=/storage/ofd_packets [11:46:05]CheckFolder done [11:46:05]ProducePacketName [11:46:05]name=ofd_packets/00015295 [11:46:05]NVStorageSaveData ofd_packets/00015295 [11:46:05]File name is /storage/ofd_packets/00015295 [11:46:05]Write 571 bytes [11:46:05]NVStorageSaveData done [11:46:05]OFDSenderStorePacket done [11:46:05]KKMCreateOFDPacket done [11:46:05]NVStorageSaveData kkm_last_timestamp [11:46:05]File name is /storage/kkm_last_timestamp [11:46:05]Write 4 bytes [11:46:05]NVStorageSaveData done [11:46:05]ExternCall_PrintAddStr [11:46:05]wPrintStart [11:46:05]Write to MH i2c: 01 00 00 7F 2B AA [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 7F 2B 00 00 00 00 00 FF 0F BF [11:46:05]RasterBufferAndPrint [11:46:05]line Счет N : (3)151281 [11:46:05]line ИНН: 02508201610067 [11:46:05]line Контрольно-Кассовый Чек [11:46:05]line ПРОДАЖА [11:46:05]line Товар: 6931280300549 [11:46:05]line Зажигалка Cricket ПН пьезо [11:46:05]line 1.000 * 67.00 [11:46:05]line = 67.00 [11:46:05]line НДС 12% НСП 1% [11:46:05]line > о реализуемом товаре [11:46:05]line Товар: 4640030091607 [11:46:05]line Сигареты ESSE Exchange [11:46:05]line 1.000 * 150.00 [11:46:05]line = 150.00 [11:46:05]line НДС 12% НСП 1% [11:46:05]line > о реализуемом товаре [11:46:05]line Товар: 4650243870968 [11:46:05]line Напиток Gorilla ж/б 0,45л Персик Абрикос [11:46:05]line 1.000 * 90.00 [11:46:05]line = 90.00 [11:46:05]line НДС 12% НСП 1% [11:46:05]line > о реализуемом товаре [11:46:05]line ИТОГО: 307.00 [11:46:05]line НСП 1% : 2.72 [11:46:05]line НДС 12% : 32.60 [11:46:05]line Наличными: 307.00 [11:46:05]line Безнал.: 0.00 [11:46:05]line Место: АЗС № 135 "Партнер Нефть" [11:46:05]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:46:05]line СНО: Общий режим [11:46:05]line Чек 89 23.08.2024 11:46 [11:46:05]line Смена: 102 ФФД: 1.0 [11:46:05]line ЗНМ: 0300000144 [11:46:05]line РНМ: 0000000000162784 [11:46:05]line Версия ККМ: v1.0 [11:46:05]line ФМ: 0000000002094529 [11:46:05]line ФД: 15295 [11:46:05]line ФПД: 236669304672052 [11:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114607&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15295&fm=236669304672052&tin=02508201610067®Number=0000000000162784&sum=30700 [11:46:05]line 0 [11:46:05]OFD Sender: Processing packet 15295 [packets to send 8, broken 7] [11:46:05]ProducePacketName [11:46:05]name=ofd_packets/00015295 [11:46:05]OFD Sender: To server: pG, [11:46:05]CommunicateWithHost lk.salyk.kg:30040 [11:46:05]ConnectInit lk.salyk.kg [11:46:05]written 0, free lines is 4095 [11:46:06]Connected sock=10 [11:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1D 02 00 00 01 6F 15 02 0F E3 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0C 00 00 00 00 07 04 06 00 EC 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 59 00 00 00 F4 03 04 00 7F 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 BF 3B 00 00 35 04 06 00 D7 3F DD D5 8F 34 C2 F4 19 52 12 6D BA DC [11:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 85 A5 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 32 30 39 34 35 32 39 10 04 04 00 BF 3B 00 00 F4 03 04 00 DB 20 C8 66 B6 04 01 00 00 51 35 FE 53 00 38 2A A8 [11:46:06]CommunicateWithHost err = 0 [11:46:06]CheckOFDResponse [11:46:06]1017 (14) - 77093643461234 [11:46:06]1041 (16) - 0000000002094529 [11:46:06]1040 (4) - 15295 [11:46:06]1012 (4) - 23.08.2024 05:40 [11:46:06]1206 (1) - 0 [11:46:06]OFD Sender: Remove packet 15295 [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00015295 [11:46:06]NVStorageDeleteData [11:46:06]Write to MH i2c: 01 00 00 B4 2B DF [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 68 0C 5A [11:46:06]RasterBufferAndPrint [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]line [11:46:06]written 0, free lines is 3185 [11:46:06]MH_Cut [11:46:06]Write to MH i2c: D1 01 00 BB 2B 01 B8 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 01 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: D1 01 00 BB 2B 00 B7 [11:46:06]Write to MH i2c: 01 00 00 BC 2B E7 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]OFD Sender: No OFD packet to send [11:46:07]*** Cut start [11:46:07]*** Partial cut [11:46:07]*** CUTSNS_PIN = 1 [11:46:07]*** CUTSNS_PIN = 0 [11:46:07]*** Brake cut motor [11:46:07]Read from MH i2c: 01 [11:46:07]MH_I2C_Read... [11:46:07]*** Stop cut motor [11:46:07]*** Cut end [11:46:07]Read from MH i2c: 01 07 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 FF 0F FC [11:46:07]process_action close_receipt done [11:46:07]requested_data is exist [11:46:07]produce_requested_data [11:46:07]requested_item fm.sn is exist - process it [11:46:07]wFMCommunicate request_size=4 [11:46:07]MH_SAM_APDU [11:46:07]CAPDU: 80 11 00 00 [11:46:07]Write to MH i2c: E2 08 00 BD 2B 80 11 00 00 00 00 00 00 62 [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:07]Read from MH i2c: E2 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: E2 17 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: E2 17 00 BD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B4 [11:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:46:07]wFMCommunicate OK [11:46:07]requested_item fd.num is exist - process it [11:46:07]SAM_PROTO_GetFieldsCounters [11:46:07]wFMCommunicate request_size=4 [11:46:07]MH_SAM_APDU [11:46:07]CAPDU: 80 13 00 00 [11:46:07]Write to MH i2c: E2 08 00 BE 2B 80 13 00 00 00 00 00 00 65 [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 62 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 62 00 BE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 BF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:08]wFMCommunicate OK [11:46:08]SAM_PROTO_GetFieldsCounters done [11:46:08]requested_item shift.num is exist - process it [11:46:08]requested_item shift.opened is exist - process it [11:46:08]req_shift_opened [11:46:08]FM_GetShiftState [11:46:08]SAM_PROTO_GetShiftState [11:46:08]wFMCommunicate request_size=4 [11:46:08]MH_SAM_APDU [11:46:08]CAPDU: 80 13 01 00 [11:46:08]Write to MH i2c: E2 08 00 BF 2B 80 13 01 00 00 00 00 00 67 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:08]Read from MH i2c: E2 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: E2 0E 00 BF 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2B [11:46:08]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:46:08]wFMCommunicate OK [11:46:08]SAM_PROTO_GetShiftState done [11:46:08]FM_GetShiftState done [11:46:08]req_shift_opened done [11:46:08]requested_item shift.open_date is exist - process it [11:46:08]req_shift_open_date [11:46:08]req_shift_open_date done [11:46:08]produce_requested_data done [11:46:08]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15295,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:46:08]process_action_free close_receipt [11:46:08]json_value_free [11:46:08]json_value_free done [11:46:08]process_json_proto returns [11:46:08]Send response to host [11:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15295,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:46:08]free response buf [11:46:08]execute_script done [11:46:08]execute_script returns [11:46:08]free content buf [11:46:08]Sock 9.Close socket [11:46:08]Sock 9.Thread stoped [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:33]accept exits with 8 [11:47:33]New connection [11:47:33]New thread 3066944868 created [11:47:33]Thread 3066801508 joined [11:47:33]Waiting for new connection... [11:47:33] Sock 8.Parse request [11:47:33]Sock 8.Check first char [11:47:33]Sock 8.First char is OK [11:47:33]request: POST /json_proto HTTP/1.0 [11:47:33]Method: POST [11:47:33]URL: /json_proto [11:47:33]Method is POST - this is cgi request [11:47:33]url: /json_proto [11:47:33]query_string will be loaded in cgi processing [11:47:33]execute_cgi json_proto POST (null) [11:47:33]execute_cgi path=json_proto method=POST [11:47:33]POST find Content-Length [11:47:33]Host: 172.17.44.4:8080 [11:47:33]Content-Length: 613 [11:47:33]Content-Type: application/json [11:47:33] [11:47:33]POST finish read [11:47:33]Found Content-Length = 613 [11:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151282", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "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" ] } } [11:47:33]execute_script... [11:47: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)151282", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "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" ] } } [11:47:33]POST & json_proto [11:47:33]process_json_proto [11:47:33]json parsed OK: [11:47:33]protocol is kg_v1.0 [11:47:33]action value=close_receipt [11:47:33]process_action close_receipt [11:47:33]cmd_close_receipt [11:47:33]MH_GetDate [11:47:33]Write to MH i2c: F0 00 00 C0 2B DA [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 C0 2B 00 DA 76 C8 66 0F 81 47 66 9E [11:47:33]GetLastDocTimeStamp 1724413567 [11:47:33]current date 1724413658 [11:47:33]FM_GetShiftState [11:47:33]SAM_PROTO_GetShiftState [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 01 00 [11:47:33]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 2D [11:47:33]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetShiftState done [11:47:33]FM_GetShiftState done [11:47:33]opened in 1724372406 [11:47:33]opened+sec_in_day 1724458806 [11:47:33]quantity*price = 15500 [11:47:33]sum+1 = 15501 [11:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 90 23.08.2024 11:47 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15296 ФПД: 149213033920402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114738&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15296&fm=149213033920402&tin=02508201610067®Number=0000000000162784&sum=15500 0 [11:47:35]StoreToDocumentArchive [11:47:35]shift 102 fd 15296 [11:47:35]save to /storage/0102/doc_00015296 [11:47:35]save last doc name /storage/0102/doc_00015296 to /storage/kkm_last_doc_name [11:47:35]save OK [11:47:35]Clear old archive folders... [11:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=265 [11:47:35]tlvbuf is 004488E0 [11:47:35]SAM_PROTO_ClearQueue [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 09 00 00 [11:47:35]Write to MH i2c: E2 08 00 CE 2B 80 09 00 00 00 00 00 00 6B [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_ClearQueue done [11:47:35]KKMCreateOFDPacket [11:47:35]OFDProtocolAddRootSTLVToBuf [11:47:35]FM_MakeSignedData [11:47:35]FM_MakeSignedData [11:47:35]SAM_PROTO_SignData [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 01 02 [11:47:35]Write to MH i2c: E2 08 00 CF 2B 80 0D 01 02 00 00 00 00 73 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=255 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 5A 00 00 00 F4 03 04 00 DA 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 [11:47:35]Write to MH i2c: E2 02 01 D0 2B 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 5A 00 00 00 F4 03 04 00 DA 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 00 00 66 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=24 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 02 02 13 39 10 04 04 00 C0 3B 00 00 35 04 06 00 87 B5 5D E1 F7 92 [11:47:35]Write to MH i2c: E2 1B 00 D1 2B 80 0D 02 02 13 00 39 10 04 04 00 C0 3B 00 00 35 04 06 00 87 B5 5D E1 F7 92 00 00 2A [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 03 02 [11:47:35]Write to MH i2c: E2 08 00 D2 2B 80 0D 03 02 00 00 00 00 78 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0B 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0B 00 D2 2B 00 4F B5 94 65 C5 D4 8F E5 90 00 83 [11:47:35]RAPDU: 4F B5 94 65 C5 D4 8F E5 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_SignData done [11:47:35]FM_MakeSignedData done [11:47:35]CreateOFDProtocolMessage [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 11 00 00 [11:47:35]Write to MH i2c: E2 08 00 D3 2B 80 11 00 00 00 00 00 00 78 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 17 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 17 00 D3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CA [11:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:47:35]wFMCommunicate OK [11:47:35]CreateOFDProtocolMessage done [11:47:35]OFDSenderStorePacket 15296 [11:47:35]StoreOFDPacket docnum=15296 [11:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1D 01 00 00 E6 D1 15 01 D9 EE 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 5A 00 00 00 F4 03 04 00 DA 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C0 3B 00 00 35 04 06 00 87 B5 5D E1 F7 92 4F B5 94 65 C5 D4 8F E5 [11:47:35]CheckFolder [11:47:35]dirname=/storage/ofd_packets [11:47:35]CheckFolder done [11:47:35]ProducePacketName [11:47:35]name=ofd_packets/00015296 [11:47:35]NVStorageSaveData ofd_packets/00015296 [11:47:35]File name is /storage/ofd_packets/00015296 [11:47:35]Write 315 bytes [11:47:35]NVStorageSaveData done [11:47:35]OFDSenderStorePacket done [11:47:35]KKMCreateOFDPacket done [11:47:35]NVStorageSaveData kkm_last_timestamp [11:47:35]File name is /storage/kkm_last_timestamp [11:47:35]Write 4 bytes [11:47:35]NVStorageSaveData done [11:47:35]ExternCall_PrintAddStr [11:47:35]wPrintStart [11:47:35]Write to MH i2c: 01 00 00 D4 2B FF [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 07 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 07 00 D4 2B 00 00 00 00 00 FF 0F 14 [11:47:35]RasterBufferAndPrint [11:47:35]line Счет N : (3)151282 [11:47:35]line ИНН: 02508201610067 [11:47:35]line Контрольно-Кассовый Чек [11:47:35]line ПРОДАЖА [11:47:35]line Товар: 47803152 [11:47:35]line Сигареты Mevius Revo [11:47:35]line 1.000 * 155.00 [11:47:35]line = 155.00 [11:47:35]line НДС 12% НСП 1% [11:47:35]line > о реализуемом товаре [11:47:35]line ИТОГО: 155.00 [11:47:35]line НСП 1% : 1.37 [11:47:35]line НДС 12% : 16.46 [11:47:35]line Наличными: 155.00 [11:47:35]line Безнал.: 0.00 [11:47:35]line Место: АЗС № 135 "Партнер Нефть" [11:47:35]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:47:35]line СНО: Общий режим [11:47:35]line Чек 90 23.08.2024 11:47 [11:47:35]line Смена: 102 ФФД: 1.0 [11:47:35]line ЗНМ: 0300000144 [11:47:35]line РНМ: 0000000000162784 [11:47:35]line Версия ККМ: v1.0 [11:47:35]line ФМ: 0000000002094529 [11:47:35]line ФД: 15296 [11:47:35]line ФПД: 149213033920402 [11:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114738&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15296&fm=149213033920402&tin=02508201610067®Number=0000000000162784&sum=15500 [11:47:35]line 0 [11:47:35]OFD Sender: Processing packet 15296 [packets to send 8, broken 7] [11:47:35]ProducePacketName [11:47:35]name=ofd_packets/00015296 [11:47:35]OFD Sender: To server: pG, [11:47:35]CommunicateWithHost lk.salyk.kg:30040 [11:47:35]ConnectInit lk.salyk.kg [11:47:35]written 0, free lines is 4095 [11:47:36]Connected sock=11 [11:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 1D 01 00 00 E6 D1 15 01 D9 EE 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 5A 00 00 00 F4 03 04 00 DA 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C0 3B 00 00 35 04 06 00 87 B5 5D E1 F7 92 4F B5 94 65 C5 D4 8F E5 [11:47:36]Write to MH i2c: 01 00 00 FC 2B 27 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 FC 2B 00 00 00 00 00 00 0D 3B [11:47:36]RasterBufferAndPrint [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]written 0, free lines is 3333 [11:47:36]MH_Cut [11:47:36]Write to MH i2c: D1 01 00 03 2C 01 01 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 03 2C 00 00 [11:47:36]Write to MH i2c: 01 00 00 04 2C 30 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 B4 86 47 00 A2 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C0 3B 00 00 F4 03 04 00 35 21 C8 66 B6 04 01 00 00 AE 8D D7 1A 86 AF EA 73 [11:47:36]CommunicateWithHost err = 0 [11:47:36]CheckOFDResponse [11:47:36]1017 (14) - 77093643461234 [11:47:36]1041 (16) - 0000000002094529 [11:47:36]1040 (4) - 15296 [11:47:36]1012 (4) - 23.08.2024 05:42 [11:47:36]1206 (1) - 0 [11:47:36]OFD Sender: Remove packet 15296 [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00015296 [11:47:36]NVStorageDeleteData [11:47:36]OFD Sender: No OFD packet to send [11:47:37]*** Cut start [11:47:37]*** Partial cut [11:47:37]*** CUTSNS_PIN = 1 [11:47:37]*** CUTSNS_PIN = 0 [11:47:37]*** Brake cut motor [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]*** Stop cut motor [11:47:37]*** Cut end [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 04 2C 00 00 00 00 00 FF 0F 45 [11:47:37]process_action close_receipt done [11:47:37]requested_data is exist [11:47:37]produce_requested_data [11:47:37]requested_item fm.sn is exist - process it [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 11 00 00 [11:47:37]Write to MH i2c: E2 08 00 05 2C 80 11 00 00 00 00 00 00 AB [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 05 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 FD [11:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:47:37]wFMCommunicate OK [11:47:37]requested_item fd.num is exist - process it [11:47:37]SAM_PROTO_GetFieldsCounters [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 00 00 [11:47:37]Write to MH i2c: E2 08 00 06 2C 80 13 00 00 00 00 00 00 AE [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 06 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C0 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_GetFieldsCounters done [11:47:37]requested_item shift.num is exist - process it [11:47:37]requested_item shift.opened is exist - process it [11:47:37]req_shift_opened [11:47:37]FM_GetShiftState [11:47:37]SAM_PROTO_GetShiftState [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 01 00 [11:47:37]Write to MH i2c: E2 08 00 07 2C 80 13 01 00 00 00 00 00 B0 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0E 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0E 00 07 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 74 [11:47:37]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_GetShiftState done [11:47:37]FM_GetShiftState done [11:47:37]req_shift_opened done [11:47:37]requested_item shift.open_date is exist - process it [11:47:37]req_shift_open_date [11:47:37]req_shift_open_date done [11:47:37]produce_requested_data done [11:47:37]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15296,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:47:37]process_action_free close_receipt [11:47:37]json_value_free [11:47:37]json_value_free done [11:47:37]process_json_proto returns [11:47:37]Send response to host [11:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15296,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:47:37]free response buf [11:47:37]execute_script done [11:47:37]execute_script returns [11:47:37]free content buf [11:47:37]Sock 8.Close socket [11:47:37]Sock 8.Thread stoped [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:02]accept exits with 9 [11:48:02]New connection [11:48:02]New thread 3066801508 created [11:48:02]Thread 3066944868 joined [11:48:02]Waiting for new connection... [11:48:02] Sock 9.Parse request [11:48:02]Sock 9.Check first char [11:48:02]Sock 9.First char is OK [11:48:02]request: POST /json_proto HTTP/1.0 [11:48:02]Method: POST [11:48:02]URL: /json_proto [11:48:02]Method is POST - this is cgi request [11:48:02]url: /json_proto [11:48:02]query_string will be loaded in cgi processing [11:48:02]execute_cgi json_proto POST (null) [11:48:02]execute_cgi path=json_proto method=POST [11:48:02]POST find Content-Length [11:48:02]Host: 172.17.44.4:8080 [11:48:02]Content-Length: 654 [11:48:02]Content-Type: application/json [11:48:02] [11:48:02]POST finish read [11:48:02]Found Content-Length = 654 [11:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151283", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:02]execute_script... [11:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151283", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:02]POST & json_proto [11:48:02]process_json_proto [11:48:02]json parsed OK: [11:48:02]protocol is kg_v1.0 [11:48:02]action value=close_receipt [11:48:02]process_action close_receipt [11:48:02]cmd_close_receipt [11:48:02]MH_GetDate [11:48:02]Write to MH i2c: F0 00 00 08 2C 23 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 09 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: F0 09 00 08 2C 00 F7 76 C8 66 0F 81 47 66 04 [11:48:02]GetLastDocTimeStamp 1724413658 [11:48:02]current date 1724413687 [11:48:02]FM_GetShiftState [11:48:02]SAM_PROTO_GetShiftState [11:48:02]wFMCommunicate request_size=4 [11:48:02]MH_SAM_APDU [11:48:02]CAPDU: 80 13 01 00 [11:48:02]Write to MH i2c: E2 08 00 09 2C 80 13 01 00 00 00 00 00 B2 [11:48:02]Write i2c OK [11:48:02]MH_I2C_Read... [11:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:02]Read from MH i2c: E2 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 0E 00 [11:48:02]MH_I2C_Read... [11:48:02]Read from MH i2c: E2 0E 00 09 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 76 [11:48:02]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:48:02]wFMCommunicate OK [11:48:02]SAM_PROTO_GetShiftState done [11:48:02]FM_GetShiftState done [11:48:02]opened in 1724372406 [11:48:02]opened+sec_in_day 1724458806 [11:48:02]quantity*price = 9500 [11:48:02]sum+1 = 9501 [11:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 91 23.08.2024 11:48 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15297 ФПД: 76936662952350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114807&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15297&fm=76936662952350&tin=02508201610067®Number=0000000000162784&sum=9500 0 [11:48:04]StoreToDocumentArchive [11:48:04]shift 102 fd 15297 [11:48:04]save to /storage/0102/doc_00015297 [11:48:04]save last doc name /storage/0102/doc_00015297 to /storage/kkm_last_doc_name [11:48:04]save OK [11:48:04]Clear old archive folders... [11:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:48:04]tlvbuf is B6DA6190 [11:48:04]SAM_PROTO_ClearQueue [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 09 00 00 [11:48:04]Write to MH i2c: E2 08 00 16 2C 80 09 00 00 00 00 00 00 B4 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_ClearQueue done [11:48:04]KKMCreateOFDPacket [11:48:04]OFDProtocolAddRootSTLVToBuf [11:48:04]FM_MakeSignedData [11:48:04]FM_MakeSignedData [11:48:04]SAM_PROTO_SignData [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 01 02 [11:48:04]Write to MH i2c: E2 08 00 17 2C 80 0D 01 02 00 00 00 00 BC [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=255 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F7 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:48:04]Write to MH i2c: E2 02 01 18 2C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F7 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 B8 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 18 2C 00 90 00 B8 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=52 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C1 3B 00 00 35 04 06 00 45 F9 36 77 29 9E [11:48:04]Write to MH i2c: E2 37 00 19 2C 80 0D 02 02 2F 00 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C1 3B 00 00 35 04 06 00 45 F9 36 77 29 9E 00 00 32 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 03 02 [11:48:04]Write to MH i2c: E2 08 00 1A 2C 80 0D 03 02 00 00 00 00 C1 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 0B 00 1A 2C 00 6E 87 2E CA 15 5D F5 75 90 00 8B [11:48:04]RAPDU: 6E 87 2E CA 15 5D F5 75 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_SignData done [11:48:04]FM_MakeSignedData done [11:48:04]CreateOFDProtocolMessage [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 11 00 00 [11:48:04]Write to MH i2c: E2 08 00 1B 2C 80 11 00 00 00 00 00 00 C1 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 17 00 1B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 13 [11:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:48:04]wFMCommunicate OK [11:48:04]CreateOFDProtocolMessage done [11:48:04]OFDSenderStorePacket 15297 [11:48:04]StoreOFDPacket docnum=15297 [11:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 4B A2 31 01 04 13 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F7 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C1 3B 00 00 35 04 06 00 45 F9 36 77 29 9E 6E 87 2E CA 15 5D F5 75 [11:48:04]CheckFolder [11:48:04]dirname=/storage/ofd_packets [11:48:04]CheckFolder done [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00015297 [11:48:04]NVStorageSaveData ofd_packets/00015297 [11:48:04]File name is /storage/ofd_packets/00015297 [11:48:04]Write 343 bytes [11:48:04]NVStorageSaveData done [11:48:04]OFDSenderStorePacket done [11:48:04]KKMCreateOFDPacket done [11:48:04]NVStorageSaveData kkm_last_timestamp [11:48:04]File name is /storage/kkm_last_timestamp [11:48:04]Write 4 bytes [11:48:04]NVStorageSaveData done [11:48:04]ExternCall_PrintAddStr [11:48:04]wPrintStart [11:48:04]Write to MH i2c: 01 00 00 1C 2C 48 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: 01 07 00 1C 2C 00 00 00 00 00 FF 0F 5D [11:48:04]RasterBufferAndPrint [11:48:04]line Счет N : (3)151283 [11:48:04]line ИНН: 02508201610067 [11:48:04]line Контрольно-Кассовый Чек [11:48:04]line ПРОДАЖА [11:48:04]line Товар: 4700000480050 [11:48:04]line Напиток Nitro Energy эн green ж/б 0,45л [11:48:04]line 1.000 * 95.00 [11:48:04]line = 95.00 [11:48:04]line НДС 12% НСП 1% [11:48:04]line > о реализуемом товаре [11:48:04]line ИТОГО: 95.00 [11:48:04]line НСП 1% : 0.84 [11:48:04]line НДС 12% : 10.09 [11:48:04]line Наличными: 95.00 [11:48:04]line Безнал.: 0.00 [11:48:04]line Место: АЗС № 135 "Партнер Нефть" [11:48:04]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:48:04]line СНО: Общий режим [11:48:04]line Чек 91 23.08.2024 11:48 [11:48:04]line Смена: 102 ФФД: 1.0 [11:48:04]line ЗНМ: 0300000144 [11:48:04]line РНМ: 0000000000162784 [11:48:04]line Версия ККМ: v1.0 [11:48:04]line ФМ: 0000000002094529 [11:48:04]line ФД: 15297 [11:48:04]line ФПД: 76936662952350 [11:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114807&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15297&fm=76936662952350&tin=02508201610067®Number=0000000000162784&sum=9500 [11:48:04]line 0 [11:48:04]OFD Sender: Processing packet 15297 [packets to send 8, broken 7] [11:48:04]ProducePacketName [11:48:04]name=ofd_packets/00015297 [11:48:04]OFD Sender: To server: pG, [11:48:04]CommunicateWithHost lk.salyk.kg:30040 [11:48:04]ConnectInit lk.salyk.kg [11:48:04]written 0, free lines is 4095 [11:48:05]Connected sock=8 [11:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 4B A2 31 01 04 13 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F7 76 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C1 3B 00 00 35 04 06 00 45 F9 36 77 29 9E 6E 87 2E CA 15 5D F5 75 [11:48:05]Write to MH i2c: 01 00 00 45 2C 71 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 45 2C 00 00 00 00 00 F1 0C 75 [11:48:05]RasterBufferAndPrint [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]written 0, free lines is 3322 [11:48:05]MH_Cut [11:48:05]Write to MH i2c: D1 01 00 4C 2C 01 4A [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 4C 2C 00 49 [11:48:05]Write to MH i2c: 01 00 00 4D 2C 79 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 CA B5 47 00 26 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 32 30 39 34 35 32 39 10 04 04 00 C1 3B 00 00 F4 03 04 00 52 21 C8 66 B6 04 01 00 00 28 0C A0 D8 CB 49 A0 51 [11:48:05]CommunicateWithHost err = 0 [11:48:05]CheckOFDResponse [11:48:05]1017 (14) - 77093643461234 [11:48:05]1041 (16) - 0000000002094529 [11:48:05]1040 (4) - 15297 [11:48:05]1012 (4) - 23.08.2024 05:42 [11:48:05]1206 (1) - 0 [11:48:05]OFD Sender: Remove packet 15297 [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00015297 [11:48:05]NVStorageDeleteData [11:48:06]OFD Sender: No OFD packet to send [11:48:06]*** Cut start [11:48:06]*** Partial cut [11:48:06]*** CUTSNS_PIN = 1 [11:48:06]*** CUTSNS_PIN = 0 [11:48:06]*** Brake cut motor [11:48:06]Read from MH i2c: 01 [11:48:06]MH_I2C_Read... [11:48:06]*** Stop cut motor [11:48:06]*** Cut end [11:48:06]Read from MH i2c: 01 07 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: 01 07 00 4D 2C 00 00 00 00 00 FF 0F 8E [11:48:06]process_action close_receipt done [11:48:06]requested_data is exist [11:48:06]produce_requested_data [11:48:06]requested_item fm.sn is exist - process it [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 11 00 00 [11:48:06]Write to MH i2c: E2 08 00 4E 2C 80 11 00 00 00 00 00 00 F4 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 17 00 4E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 46 [11:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:48:06]wFMCommunicate OK [11:48:06]requested_item fd.num is exist - process it [11:48:06]SAM_PROTO_GetFieldsCounters [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 00 00 [11:48:06]Write to MH i2c: E2 08 00 4F 2C 80 13 00 00 00 00 00 00 F7 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:06]Read from MH i2c: E2 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: E2 62 00 4F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C1 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:06]wFMCommunicate OK [11:48:06]SAM_PROTO_GetFieldsCounters done [11:48:06]requested_item shift.num is exist - process it [11:48:06]requested_item shift.opened is exist - process it [11:48:06]req_shift_opened [11:48:06]FM_GetShiftState [11:48:06]SAM_PROTO_GetShiftState [11:48:06]wFMCommunicate request_size=4 [11:48:06]MH_SAM_APDU [11:48:06]CAPDU: 80 13 01 00 [11:48:06]Write to MH i2c: E2 08 00 50 2C 80 13 01 00 00 00 00 00 F9 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:07]Read from MH i2c: E2 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 50 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 BD [11:48:07]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:48:07]wFMCommunicate OK [11:48:07]SAM_PROTO_GetShiftState done [11:48:07]FM_GetShiftState done [11:48:07]req_shift_opened done [11:48:07]requested_item shift.open_date is exist - process it [11:48:07]req_shift_open_date [11:48:07]req_shift_open_date done [11:48:07]produce_requested_data done [11:48:07]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15297,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:48:07]process_action_free close_receipt [11:48:07]json_value_free [11:48:07]json_value_free done [11:48:07]process_json_proto returns [11:48:07]Send response to host [11:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15297,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:48:07]free response buf [11:48:07]execute_script done [11:48:07]execute_script returns [11:48:07]free content buf [11:48:07]Sock 9.Close socket [11:48:07]Sock 9.Thread stoped [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:39]accept exits with 10 [11:48:39]New connection [11:48:39]New thread 3066944868 created [11:48:39]Thread 3066801508 joined [11:48:39]Waiting for new connection... [11:48:39] Sock 10.Parse request [11:48:39]Sock 10.Check first char [11:48:39]Sock 10.First char is OK [11:48:39]request: POST /json_proto HTTP/1.0 [11:48:39]Method: POST [11:48:39]URL: /json_proto [11:48:39]Method is POST - this is cgi request [11:48:39]url: /json_proto [11:48:39]query_string will be loaded in cgi processing [11:48:39]execute_cgi json_proto POST (null) [11:48:39]execute_cgi path=json_proto method=POST [11:48:39]POST find Content-Length [11:48:39]Host: 172.17.44.4:8080 [11:48:39]Content-Length: 1264 [11:48:39]Content-Type: application/json [11:48:39] [11:48:39]POST finish read [11:48:39]Found Content-Length = 1264 [11:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151284", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [11:48:39]execute_script... [11:48: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)151284", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [11:48:39]POST & json_proto [11:48:39]process_json_proto [11:48:39]json parsed OK: [11:48:39]protocol is kg_v1.0 [11:48:39]action value=close_receipt [11:48:39]process_action close_receipt [11:48:39]cmd_close_receipt [11:48:39]MH_GetDate [11:48:39]Write to MH i2c: F0 00 00 51 2C 6C [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 51 2C 00 1B 77 C8 66 0F 81 47 66 72 [11:48:39]GetLastDocTimeStamp 1724413687 [11:48:39]current date 1724413723 [11:48:39]FM_GetShiftState [11:48:39]SAM_PROTO_GetShiftState [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 01 00 [11:48:39]Write to MH i2c: E2 08 00 52 2C 80 13 01 00 00 00 00 00 FB [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 52 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 BF [11:48:39]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:48:39]wFMCommunicate OK [11:48:39]SAM_PROTO_GetShiftState done [11:48:39]FM_GetShiftState done [11:48:39]opened in 1724372406 [11:48:39]opened+sec_in_day 1724458806 [11:48:39]quantity*price = 18000 [11:48:39]sum+1 = 18001 [11:48:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521230 Напиток MAXI чай 1,2 черн.лимон 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 92 23.08.2024 11:48 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15298 ФПД: 44427528118918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114843&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15298&fm=44427528118918&tin=02508201610067®Number=0000000000162784&sum=34000 0 [11:48:40]StoreToDocumentArchive [11:48:40]shift 102 fd 15298 [11:48:40]save to /storage/0102/doc_00015298 [11:48:40]save last doc name /storage/0102/doc_00015298 to /storage/kkm_last_doc_name [11:48:40]save OK [11:48:40]Clear old archive folders... [11:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=527 [11:48:40]tlvbuf is 005071B0 [11:48:40]SAM_PROTO_ClearQueue [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 09 00 00 [11:48:40]Write to MH i2c: E2 08 00 5F 2C 80 09 00 00 00 00 00 00 FD [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [11:48:40]RAPDU: 90 00 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_ClearQueue done [11:48:40]KKMCreateOFDPacket [11:48:40]OFDProtocolAddRootSTLVToBuf [11:48:40]FM_MakeSignedData [11:48:40]FM_MakeSignedData [11:48:40]SAM_PROTO_SignData [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 0D 01 02 [11:48:40]Write to MH i2c: E2 08 00 60 2C 80 0D 01 02 00 00 00 00 05 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [11:48:40]RAPDU: 90 00 [11:48:40]wFMCommunicate OK [11:48:40]wFMCommunicate request_size=255 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 0D 02 02 FA 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 [11:48:40]Write to MH i2c: E2 02 01 61 2C 80 0D 02 02 FA 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 00 00 E5 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=255 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 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 5C 00 00 00 F4 03 04 00 1B 77 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 [11:48:41]Write to MH i2c: E2 02 01 62 2C 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 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 5C 00 00 00 F4 03 04 00 1B 77 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 00 00 8E [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]OFD Sender: No OFD packet to send [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 62 2C 00 90 00 02 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=36 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C2 3B 00 00 35 04 06 00 28 68 17 08 22 86 [11:48:41]Write to MH i2c: E2 27 00 63 2C 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C2 3B 00 00 35 04 06 00 28 68 17 08 22 86 00 00 81 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 63 2C 00 90 00 03 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 03 02 [11:48:41]Write to MH i2c: E2 08 00 64 2C 80 0D 03 02 00 00 00 00 0B [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 64 2C 00 F1 36 DB 02 3D 8F 30 7F 90 00 8B [11:48:41]RAPDU: F1 36 DB 02 3D 8F 30 7F 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_SignData done [11:48:41]FM_MakeSignedData done [11:48:41]CreateOFDProtocolMessage [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 11 00 00 [11:48:41]Write to MH i2c: E2 08 00 65 2C 80 11 00 00 00 00 00 00 0B [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 17 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 17 00 65 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 5D [11:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:48:41]wFMCommunicate OK [11:48:41]CreateOFDProtocolMessage done [11:48:41]OFDSenderStorePacket 15298 [11:48:41]StoreOFDPacket docnum=15298 [11:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 23 02 00 00 E3 0E 1B 02 B9 82 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 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 5C 00 00 00 F4 03 04 00 1B 77 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C2 3B 00 00 35 04 06 00 28 68 17 08 22 86 F1 36 DB 02 3D 8F 30 7F [11:48:41]CheckFolder [11:48:41]dirname=/storage/ofd_packets [11:48:41]CheckFolder done [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00015298 [11:48:41]NVStorageSaveData ofd_packets/00015298 [11:48:41]File name is /storage/ofd_packets/00015298 [11:48:41]Write 577 bytes [11:48:41]NVStorageSaveData done [11:48:41]OFDSenderStorePacket done [11:48:41]KKMCreateOFDPacket done [11:48:41]NVStorageSaveData kkm_last_timestamp [11:48:41]File name is /storage/kkm_last_timestamp [11:48:41]Write 4 bytes [11:48:41]NVStorageSaveData done [11:48:41]ExternCall_PrintAddStr [11:48:41]wPrintStart [11:48:41]Write to MH i2c: 01 00 00 66 2C 92 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 66 2C 00 00 00 00 00 FF 0F A7 [11:48:41]RasterBufferAndPrint [11:48:41]line Счет N : (3)151284 [11:48:41]line ИНН: 02508201610067 [11:48:41]line Контрольно-Кассовый Чек [11:48:41]line ПРОДАЖА [11:48:41]line Товар: 4870235681079 [11:48:41]line Grizzly волнистые Сладкий чили 55 гр [11:48:41]line 2.000 * 90.00 [11:48:41]line = 180.00 [11:48:41]line НДС 12% НСП 1% [11:48:41]line > о реализуемом товаре [11:48:41]line Товар: 4870202521230 [11:48:41]line Напиток MAXI чай 1,2 черн.лимон [11:48:41]line 1.000 * 125.00 [11:48:41]line = 125.00 [11:48:41]line НДС 12% НСП 1% [11:48:41]line > о реализуемом товаре [11:48:41]line Товар: 4700000310326 [11:48:41]line Вода Адыгене 1л б/г [11:48:41]line 1.000 * 35.00 [11:48:41]line = 35.00 [11:48:41]line НДС 12% НСП 1% [11:48:41]line > о реализуемом товаре [11:48:41]line ИТОГО: 340.00 [11:48:41]line НСП 1% : 3.01 [11:48:41]line НДС 12% : 36.10 [11:48:41]line Наличными: 340.00 [11:48:41]line Безнал.: 0.00 [11:48:41]line Место: АЗС № 135 "Партнер Нефть" [11:48:41]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:48:41]line СНО: Общий режим [11:48:41]line Чек 92 23.08.2024 11:48 [11:48:41]line Смена: 102 ФФД: 1.0 [11:48:41]line ЗНМ: 0300000144 [11:48:41]line РНМ: 0000000000162784 [11:48:41]line Версия ККМ: v1.0 [11:48:41]line ФМ: 0000000002094529 [11:48:41]line ФД: 15298 [11:48:41]line ФПД: 44427528118918 [11:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T114843&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15298&fm=44427528118918&tin=02508201610067®Number=0000000000162784&sum=34000 [11:48:41]line 0 [11:48:41]written 0, free lines is 4095 [11:48:41]OFD Sender: Processing packet 15298 [packets to send 8, broken 7] [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00015298 [11:48:41]OFD Sender: To server: pG, [11:48:41]CommunicateWithHost lk.salyk.kg:30040 [11:48:41]ConnectInit lk.salyk.kg [11:48:41]Connected sock=9 [11:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 23 02 00 00 E3 0E 1B 02 B9 82 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 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 5C 00 00 00 F4 03 04 00 1B 77 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C2 3B 00 00 35 04 06 00 28 68 17 08 22 86 F1 36 DB 02 3D 8F 30 7F [11:48:42]Write to MH i2c: 01 00 00 9C 2C C8 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 [11:48:42]MH_I2C_Read... [11:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 45 03 47 00 D8 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C2 3B 00 00 F4 03 04 00 77 21 C8 66 B6 04 01 00 00 32 72 0A 9E 20 8C 25 07 [11:48:42]CommunicateWithHost err = 0 [11:48:42]CheckOFDResponse [11:48:42]1017 (14) - 77093643461234 [11:48:42]1041 (16) - 0000000002094529 [11:48:42]1040 (4) - 15298 [11:48:42]1012 (4) - 23.08.2024 05:43 [11:48:42]1206 (1) - 0 [11:48:42]OFD Sender: Remove packet 15298 [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00015298 [11:48:42]NVStorageDeleteData [11:48:42]Read from MH i2c: 01 07 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 9C 2C 00 00 00 00 00 24 0C FF [11:48:42]RasterBufferAndPrint [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]written 0, free lines is 3127 [11:48:42]MH_Cut [11:48:42]Write to MH i2c: D1 01 00 A3 2C 01 A1 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 A3 2C 00 A0 [11:48:42]Write to MH i2c: 01 00 00 A4 2C D0 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]OFD Sender: No OFD packet to send [11:48:42]*** Cut start [11:48:42]*** Partial cut [11:48:42]*** CUTSNS_PIN = 1 [11:48:43]*** CUTSNS_PIN = 0 [11:48:43]*** Brake cut motor [11:48:43]Read from MH i2c: 01 [11:48:43]MH_I2C_Read... [11:48:43]*** Stop cut motor [11:48:43]*** Cut end [11:48:43]Read from MH i2c: 01 07 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 A4 2C 00 00 00 00 00 FF 0F E5 [11:48:43]process_action close_receipt done [11:48:43]requested_data is exist [11:48:43]produce_requested_data [11:48:43]requested_item fm.sn is exist - process it [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 11 00 00 [11:48:43]Write to MH i2c: E2 08 00 A5 2C 80 11 00 00 00 00 00 00 4B [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 A5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 9D [11:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [11:48:43]wFMCommunicate OK [11:48:43]requested_item fd.num is exist - process it [11:48:43]SAM_PROTO_GetFieldsCounters [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 00 00 [11:48:43]Write to MH i2c: E2 08 00 A6 2C 80 13 00 00 00 00 00 00 4E [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 62 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 62 00 A6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [11:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C2 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetFieldsCounters done [11:48:43]requested_item shift.num is exist - process it [11:48:43]requested_item shift.opened is exist - process it [11:48:43]req_shift_opened [11:48:43]FM_GetShiftState [11:48:43]SAM_PROTO_GetShiftState [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 01 00 [11:48:43]Write to MH i2c: E2 08 00 A7 2C 80 13 01 00 00 00 00 00 50 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 A7 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 14 [11:48:43]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetShiftState done [11:48:43]FM_GetShiftState done [11:48:43]req_shift_opened done [11:48:43]requested_item shift.open_date is exist - process it [11:48:43]req_shift_open_date [11:48:43]req_shift_open_date done [11:48:43]produce_requested_data done [11:48:43]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15298,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [11:48:43]process_action_free close_receipt [11:48:43]json_value_free [11:48:43]json_value_free done [11:48:43]process_json_proto returns [11:48:43]Send response to host [11:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15298,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [11:48:43]free response buf [11:48:43]execute_script done [11:48:43]execute_script returns [11:48:43]free content buf [11:48:43]Sock 10.Close socket [11:48:43]Sock 10.Thread stoped [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56: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:43]OFD Sender: No OFD packet to send [12:00:45]accept exits with 8 [12:00:45]New connection [12:00:45]New thread 3066801508 created [12:00:45]Thread 3066944868 joined [12:00:45]Waiting for new connection... [12:00:45] Sock 8.Parse request [12:00:45]Sock 8.Check first char [12:00:45]Sock 8.First char is OK [12:00:45]request: POST /json_proto HTTP/1.0 [12:00:45]Method: POST [12:00:45]URL: /json_proto [12:00:45]Method is POST - this is cgi request [12:00:45]url: /json_proto [12:00:45]query_string will be loaded in cgi processing [12:00:45]execute_cgi json_proto POST (null) [12:00:45]execute_cgi path=json_proto method=POST [12:00:45]POST find Content-Length [12:00:45]Host: 172.17.44.4:8080 [12:00:45]Content-Length: 782 [12:00:45]Content-Type: application/json [12:00:45] [12:00:45]POST finish read [12:00:45]Found Content-Length = 782 [12:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:45]execute_script... [12:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:45]POST & json_proto [12:00:45]process_json_proto [12:00:45]json parsed OK: [12:00:45]protocol is kg_v1.0 [12:00:45]action value=close_receipt [12:00:45]process_action close_receipt [12:00:45]cmd_close_receipt [12:00:45]MH_GetDate [12:00:45]Write to MH i2c: F0 00 00 A8 2C C3 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: F0 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: F0 09 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: F0 09 00 A8 2C 00 F1 79 C8 66 0F 81 47 66 A1 [12:00:45]GetLastDocTimeStamp 1724413723 [12:00:45]current date 1724414449 [12:00:45]FM_GetShiftState [12:00:45]SAM_PROTO_GetShiftState [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 13 01 00 [12:00:45]Write to MH i2c: E2 08 00 A9 2C 80 13 01 00 00 00 00 00 52 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0E 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0E 00 A9 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 16 [12:00:45]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_GetShiftState done [12:00:45]FM_GetShiftState done [12:00:45]opened in 1724372406 [12:00:45]opened+sec_in_day 1724458806 [12:00:45]quantity*price = 35019 [12:00:45]sum+1 = 35020 [12:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.19 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 0.00 Безнал.: 350.19 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 93 23.08.2024 12:00 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15299 ФПД: 249549272307851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120049&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15299&fm=249549272307851&tin=02508201610067®Number=0000000000162784&sum=35019 [12:00:46]StoreToDocumentArchive [12:00:46]shift 102 fd 15299 [12:00:46]save to /storage/0102/doc_00015299 [12:00:46]save last doc name /storage/0102/doc_00015299 to /storage/kkm_last_doc_name [12:00:46]save OK [12:00:46]Clear old archive folders... [12:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:00:46]tlvbuf is 0045E530 [12:00:46]SAM_PROTO_ClearQueue [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 09 00 00 [12:00:46]Write to MH i2c: E2 08 00 B6 2C 80 09 00 00 00 00 00 00 54 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 B6 2C 00 90 00 56 [12:00:46]RAPDU: 90 00 [12:00:46]wFMCommunicate OK [12:00:46]SAM_PROTO_ClearQueue done [12:00:46]KKMCreateOFDPacket [12:00:46]OFDProtocolAddRootSTLVToBuf [12:00:46]FM_MakeSignedData [12:00:46]FM_MakeSignedData [12:00:46]SAM_PROTO_SignData [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 0D 01 02 [12:00:46]Write to MH i2c: E2 08 00 B7 2C 80 0D 01 02 00 00 00 00 5C [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 B7 2C 00 90 00 57 [12:00:46]RAPDU: 90 00 [12:00:46]wFMCommunicate OK [12:00:46]wFMCommunicate request_size=253 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F1 79 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C3 3B 00 00 35 04 06 00 E2 F6 B7 BA D8 8B [12:00:46]Write to MH i2c: E2 00 01 B8 2C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F1 79 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C3 3B 00 00 35 04 06 00 E2 F6 B7 BA D8 8B 00 00 CF [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 B8 2C 00 90 00 58 [12:00:46]RAPDU: 90 00 [12:00:46]wFMCommunicate OK [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 0D 03 02 [12:00:46]Write to MH i2c: E2 08 00 B9 2C 80 0D 03 02 00 00 00 00 60 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0B 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0B 00 B9 2C 00 60 D1 AF F1 39 64 0A 72 90 00 4B [12:00:46]RAPDU: 60 D1 AF F1 39 64 0A 72 90 00 [12:00:46]wFMCommunicate OK [12:00:46]SAM_PROTO_SignData done [12:00:46]FM_MakeSignedData done [12:00:46]CreateOFDProtocolMessage [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 11 00 00 [12:00:46]Write to MH i2c: E2 08 00 BA 2C 80 11 00 00 00 00 00 00 60 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 17 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 17 00 BA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 B2 [12:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:00:46]wFMCommunicate OK [12:00:46]CreateOFDProtocolMessage done [12:00:46]OFDSenderStorePacket 15299 [12:00:46]StoreOFDPacket docnum=15299 [12:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 CB 43 00 01 03 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F1 79 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C3 3B 00 00 35 04 06 00 E2 F6 B7 BA D8 8B 60 D1 AF F1 39 64 0A 72 [12:00:46]CheckFolder [12:00:46]dirname=/storage/ofd_packets [12:00:46]CheckFolder done [12:00:46]ProducePacketName [12:00:46]name=ofd_packets/00015299 [12:00:46]NVStorageSaveData ofd_packets/00015299 [12:00:46]File name is /storage/ofd_packets/00015299 [12:00:46]Write 294 bytes [12:00:46]NVStorageSaveData done [12:00:46]OFDSenderStorePacket done [12:00:46]KKMCreateOFDPacket done [12:00:46]NVStorageSaveData kkm_last_timestamp [12:00:46]File name is /storage/kkm_last_timestamp [12:00:46]Write 4 bytes [12:00:46]NVStorageSaveData done [12:00:46]ExternCall_PrintAddStr [12:00:46]wPrintStart [12:00:46]Write to MH i2c: 01 00 00 BB 2C E7 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 BB 2C 00 00 00 00 00 FF 0F FC [12:00:46]RasterBufferAndPrint [12:00:46]line Счет N : (1)2078304 [12:00:46]line ИНН: 02508201610067 [12:00:46]line Контрольно-Кассовый Чек [12:00:46]line ПРОДАЖА [12:00:46]line ТРК (МРК, ГНК) : 54 [12:00:46]line Товар: 2710124130 [12:00:46]line SU-92 [12:00:46]line 5.090 * 68.80 [12:00:46]line = 350.19 [12:00:46]line НДС 12% НСП 1% [12:00:46]line > о реализуемом товаре [12:00:46]line ИТОГО: 350.19 [12:00:46]line НСП 1% : 3.10 [12:00:46]line НДС 12% : 37.19 [12:00:46]line Наличными: 0.00 [12:00:46]line Безнал.: 350.19 [12:00:46]line Место: АЗС № 135 "Партнер Нефть" [12:00:46]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:00:46]line СНО: Общий режим [12:00:46]line Чек 93 23.08.2024 12:00 [12:00:46]line Смена: 102 ФФД: 1.0 [12:00:46]line ЗНМ: 0300000144 [12:00:46]line РНМ: 0000000000162784 [12:00:46]line Версия ККМ: v1.0 [12:00:46]line Платежная система: O! деньги [12:00:46]line ФМ: 0000000002094529 [12:00:46]line ФД: 15299 [12:00:46]line ФПД: 249549272307851 [12:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120049&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15299&fm=249549272307851&tin=02508201610067®Number=0000000000162784&sum=35019 [12:00:47]OFD Sender: Processing packet 15299 [packets to send 8, broken 7] [12:00:47]ProducePacketName [12:00:47]name=ofd_packets/00015299 [12:00:47]OFD Sender: To server: pG, [12:00:47]CommunicateWithHost lk.salyk.kg:30040 [12:00:47]ConnectInit lk.salyk.kg [12:00:47]written 0, free lines is 4095 [12:00:47]Connected sock=10 [12:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 08 01 00 00 CB 43 00 01 03 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F1 79 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C3 3B 00 00 35 04 06 00 E2 F6 B7 BA D8 8B 60 D1 AF F1 39 64 0A 72 [12:00:47]Write to MH i2c: 01 00 00 E5 2C 11 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 07 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 07 00 E5 2C 00 00 00 00 00 F7 0C 1B [12:00:47]RasterBufferAndPrint [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]written 0, free lines is 3327 [12:00:47]MH_Cut [12:00:47]Write to MH i2c: D1 01 00 EC 2C 01 EA [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 01 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 01 00 EC 2C 00 E9 [12:00:47]Write to MH i2c: 01 00 00 ED 2C 19 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 CB C0 47 00 A5 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C3 3B 00 00 F4 03 04 00 4C 24 C8 66 B6 04 01 00 00 53 4C C1 FB 8B 5C FC D5 [12:00:47]CommunicateWithHost err = 0 [12:00:47]CheckOFDResponse [12:00:47]1017 (14) - 77093643461234 [12:00:47]1041 (16) - 0000000002094529 [12:00:47]1040 (4) - 15299 [12:00:47]1012 (4) - 23.08.2024 05:55 [12:00:47]1206 (1) - 0 [12:00:47]OFD Sender: Remove packet 15299 [12:00:47]ProducePacketName [12:00:47]name=ofd_packets/00015299 [12:00:47]NVStorageDeleteData [12:00:48]OFD Sender: No OFD packet to send [12:00:48]*** Cut start [12:00:48]*** Partial cut [12:00:48]*** CUTSNS_PIN = 1 [12:00:48]*** CUTSNS_PIN = 0 [12:00:48]*** Brake cut motor [12:00:48]Read from MH i2c: 01 [12:00:48]MH_I2C_Read... [12:00:48]*** Stop cut motor [12:00:48]*** Cut end [12:00:48]Read from MH i2c: 01 07 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 ED 2C 00 00 00 00 00 FF 0F 2E [12:00:48]process_action close_receipt done [12:00:48]requested_data is exist [12:00:48]produce_requested_data [12:00:48]requested_item fm.sn is exist - process it [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 11 00 00 [12:00:48]Write to MH i2c: E2 08 00 EE 2C 80 11 00 00 00 00 00 00 94 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 EE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E6 [12:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:00:48]wFMCommunicate OK [12:00:48]requested_item fd.num is exist - process it [12:00:48]SAM_PROTO_GetFieldsCounters [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 00 00 [12:00:48]Write to MH i2c: E2 08 00 EF 2C 80 13 00 00 00 00 00 00 97 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 62 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 62 00 EF 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C3 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:49]wFMCommunicate OK [12:00:49]SAM_PROTO_GetFieldsCounters done [12:00:49]requested_item shift.num is exist - process it [12:00:49]requested_item shift.opened is exist - process it [12:00:49]req_shift_opened [12:00:49]FM_GetShiftState [12:00:49]SAM_PROTO_GetShiftState [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 13 01 00 [12:00:49]Write to MH i2c: E2 08 00 F0 2C 80 13 01 00 00 00 00 00 99 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 0E 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 0E 00 F0 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 5D [12:00:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:00:49]wFMCommunicate OK [12:00:49]SAM_PROTO_GetShiftState done [12:00:49]FM_GetShiftState done [12:00:49]req_shift_opened done [12:00:49]requested_item shift.open_date is exist - process it [12:00:49]req_shift_open_date [12:00:49]req_shift_open_date done [12:00:49]produce_requested_data done [12:00:49]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15299,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:00:49]process_action_free close_receipt [12:00:49]json_value_free [12:00:49]json_value_free done [12:00:49]process_json_proto returns [12:00:49]Send response to host [12:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15299,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:00:49]free response buf [12:00:49]execute_script done [12:00:49]execute_script returns [12:00:49]free content buf [12:00:49]Sock 8.Close socket [12:00:49]Sock 8.Thread stoped [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12: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:15]accept exits with 9 [12:07:15]New connection [12:07:15]New thread 3066944868 created [12:07:15]Thread 3066801508 joined [12:07:15]Waiting for new connection... [12:07:15] Sock 9.Parse request [12:07:15]Sock 9.Check first char [12:07:15]Sock 9.First char is OK [12:07:15]request: POST /json_proto HTTP/1.0 [12:07:15]Method: POST [12:07:15]URL: /json_proto [12:07:15]Method is POST - this is cgi request [12:07:15]url: /json_proto [12:07:15]query_string will be loaded in cgi processing [12:07:15]execute_cgi json_proto POST (null) [12:07:15]execute_cgi path=json_proto method=POST [12:07:15]POST find Content-Length [12:07:15]Host: 172.17.44.4:8080 [12:07:15]Content-Length: 670 [12:07:15]Content-Type: application/json [12:07:15] [12:07:15]POST finish read [12:07:15]Found Content-Length = 670 [12:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151285", "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" ] } } [12:07:15]execute_script... [12:07: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)151285", "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" ] } } [12:07:15]POST & json_proto [12:07:15]process_json_proto [12:07:15]json parsed OK: [12:07:15]protocol is kg_v1.0 [12:07:15]action value=close_receipt [12:07:15]process_action close_receipt [12:07:15]cmd_close_receipt [12:07:15]MH_GetDate [12:07:15]Write to MH i2c: F0 00 00 F1 2C 0C [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: F0 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: F0 09 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: F0 09 00 F1 2C 00 78 7B C8 66 0F 81 47 66 73 [12:07:15]GetLastDocTimeStamp 1724414449 [12:07:15]current date 1724414840 [12:07:15]FM_GetShiftState [12:07:15]SAM_PROTO_GetShiftState [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 13 01 00 [12:07:15]Write to MH i2c: E2 08 00 F2 2C 80 13 01 00 00 00 00 00 9B [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 F2 2C 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 5F [12:07:15]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_GetShiftState done [12:07:15]FM_GetShiftState done [12:07:15]opened in 1724372406 [12:07:15]opened+sec_in_day 1724458806 [12:07:15]quantity*price = 7500 [12:07:15]sum+1 = 7501 [12:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 94 23.08.2024 12:07 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15300 ФПД: 4211528620298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120720&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15300&fm=4211528620298&tin=02508201610067®Number=0000000000162784&sum=7500 0 [12:07:17]StoreToDocumentArchive [12:07:17]shift 102 fd 15300 [12:07:17]save to /storage/0102/doc_00015300 [12:07:17]save last doc name /storage/0102/doc_00015300 to /storage/kkm_last_doc_name [12:07:17]save OK [12:07:17]Clear old archive folders... [12:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=297 [12:07:17]tlvbuf is 00507620 [12:07:17]SAM_PROTO_ClearQueue [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 09 00 00 [12:07:17]Write to MH i2c: E2 08 00 FF 2C 80 09 00 00 00 00 00 00 9D [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 FF 2C 00 90 00 9F [12:07:17]RAPDU: 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_ClearQueue done [12:07:17]KKMCreateOFDPacket [12:07:17]OFDProtocolAddRootSTLVToBuf [12:07:17]FM_MakeSignedData [12:07:17]FM_MakeSignedData [12:07:17]SAM_PROTO_SignData [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 0D 01 02 [12:07:17]Write to MH i2c: E2 08 00 00 2D 80 0D 01 02 00 00 00 00 A6 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 00 2D 00 90 00 A1 [12:07:17]RAPDU: 90 00 [12:07:17]wFMCommunicate OK [12:07:17]wFMCommunicate request_size=255 [12:07:17]MH_SAM_APDU [12:07:17]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 5E 00 00 00 F4 03 04 00 78 7B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [12:07:17]Write to MH i2c: E2 02 01 01 2D 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 5E 00 00 00 F4 03 04 00 78 7B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 31 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 01 2D 00 90 00 A2 [12:07:17]RAPDU: 90 00 [12:07:17]wFMCommunicate OK [12:07:17]wFMCommunicate request_size=56 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C4 3B 00 00 35 04 06 00 03 D4 92 AA D9 0A [12:07:17]Write to MH i2c: E2 3B 00 02 2D 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C4 3B 00 00 35 04 06 00 03 D4 92 AA D9 0A 00 00 2B [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 03 00 02 2D 00 90 00 A3 [12:07:17]RAPDU: 90 00 [12:07:17]wFMCommunicate OK [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 0D 03 02 [12:07:17]Write to MH i2c: E2 08 00 03 2D 80 0D 03 02 00 00 00 00 AB [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0B 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0B 00 03 2D 00 73 A3 18 53 F3 C6 AE FF 90 00 93 [12:07:17]RAPDU: 73 A3 18 53 F3 C6 AE FF 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_SignData done [12:07:17]FM_MakeSignedData done [12:07:17]CreateOFDProtocolMessage [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 11 00 00 [12:07:17]Write to MH i2c: E2 08 00 04 2D 80 11 00 00 00 00 00 00 AB [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 04 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 FD [12:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:07:17]wFMCommunicate OK [12:07:17]CreateOFDProtocolMessage done [12:07:17]OFDSenderStorePacket 15300 [12:07:17]StoreOFDPacket docnum=15300 [12:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3D 01 00 00 E5 9E 35 01 54 8F 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 5E 00 00 00 F4 03 04 00 78 7B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C4 3B 00 00 35 04 06 00 03 D4 92 AA D9 0A 73 A3 18 53 F3 C6 AE FF [12:07:17]CheckFolder [12:07:17]dirname=/storage/ofd_packets [12:07:17]CheckFolder done [12:07:17]ProducePacketName [12:07:17]name=ofd_packets/00015300 [12:07:17]NVStorageSaveData ofd_packets/00015300 [12:07:17]File name is /storage/ofd_packets/00015300 [12:07:17]Write 347 bytes [12:07:17]NVStorageSaveData done [12:07:17]OFDSenderStorePacket done [12:07:17]KKMCreateOFDPacket done [12:07:17]NVStorageSaveData kkm_last_timestamp [12:07:17]File name is /storage/kkm_last_timestamp [12:07:17]Write 4 bytes [12:07:17]NVStorageSaveData done [12:07:17]ExternCall_PrintAddStr [12:07:17]wPrintStart [12:07:17]Write to MH i2c: 01 00 00 05 2D 32 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: 01 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: 01 07 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: 01 07 00 05 2D 00 00 00 00 00 FF 0F 47 [12:07:17]RasterBufferAndPrint [12:07:17]line Счет N : (3)151285 [12:07:17]line ИНН: 02508201610067 [12:07:17]line Контрольно-Кассовый Чек [12:07:17]line ПРОДАЖА [12:07:17]line Товар: 4602606010924 [12:07:17]line Конф Fruit-tella стик ассорти 16*20*42,5 [12:07:17]line 1.000 * 75.00 [12:07:17]line = 75.00 [12:07:17]line НДС 12% НСП 1% [12:07:17]line > о реализуемом товаре [12:07:17]line ИТОГО: 75.00 [12:07:17]line НСП 1% : 0.66 [12:07:17]line НДС 12% : 7.96 [12:07:17]line Наличными: 75.00 [12:07:17]line Безнал.: 0.00 [12:07:17]line Место: АЗС № 135 "Партнер Нефть" [12:07:17]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:07:17]line СНО: Общий режим [12:07:17]line Чек 94 23.08.2024 12:07 [12:07:17]line Смена: 102 ФФД: 1.0 [12:07:17]line ЗНМ: 0300000144 [12:07:17]line РНМ: 0000000000162784 [12:07:17]line Версия ККМ: v1.0 [12:07:17]line ФМ: 0000000002094529 [12:07:17]line ФД: 15300 [12:07:17]line ФПД: 4211528620298 [12:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120720&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15300&fm=4211528620298&tin=02508201610067®Number=0000000000162784&sum=7500 [12:07:17]line 0 [12:07:17]OFD Sender: Processing packet 15300 [packets to send 8, broken 7] [12:07:17]ProducePacketName [12:07:17]name=ofd_packets/00015300 [12:07:17]OFD Sender: To server: pG, [12:07:17]CommunicateWithHost lk.salyk.kg:30040 [12:07:17]ConnectInit lk.salyk.kg [12:07:17]written 0, free lines is 4095 [12:07:18]Connected sock=11 [12:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 3D 01 00 00 E5 9E 35 01 54 8F 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 5E 00 00 00 F4 03 04 00 78 7B C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C4 3B 00 00 35 04 06 00 03 D4 92 AA D9 0A 73 A3 18 53 F3 C6 AE FF [12:07:18]Write to MH i2c: 01 00 00 2E 2D 5B [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 07 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: 01 07 00 2E 2D 00 00 00 00 00 E1 0C 4F [12:07:18]RasterBufferAndPrint [12:07:18]line [12:07:18]line [12:07:18]line [12:07:18]line [12:07:18]line [12:07:18]written 0, free lines is 3302 [12:07:18]MH_Cut [12:07:18]Write to MH i2c: D1 01 00 35 2D 01 34 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: D1 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: D1 01 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: D1 01 00 35 2D 00 33 [12:07:18]Write to MH i2c: 01 00 00 36 2D 63 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1F 8E 47 00 EF 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C4 3B 00 00 F4 03 04 00 D3 25 C8 66 B6 04 01 00 00 90 BB 35 FC F7 83 C4 A9 [12:07:18]CommunicateWithHost err = 0 [12:07:18]CheckOFDResponse [12:07:18]1017 (14) - 77093643461234 [12:07:18]1041 (16) - 0000000002094529 [12:07:18]1040 (4) - 15300 [12:07:18]1012 (4) - 23.08.2024 06:01 [12:07:18]1206 (1) - 0 [12:07:18]OFD Sender: Remove packet 15300 [12:07:18]ProducePacketName [12:07:18]name=ofd_packets/00015300 [12:07:18]NVStorageDeleteData [12:07:19]*** Cut start [12:07:19]*** Partial cut [12:07:19]*** CUTSNS_PIN = 1 [12:07:19]OFD Sender: No OFD packet to send [12:07:19]*** CUTSNS_PIN = 0 [12:07:19]*** Brake cut motor [12:07:19]Read from MH i2c: 01 [12:07:19]MH_I2C_Read... [12:07:19]*** Stop cut motor [12:07:19]*** Cut end [12:07:19]Read from MH i2c: 01 07 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 36 2D 00 00 00 00 00 FF 0F 78 [12:07:19]process_action close_receipt done [12:07:19]requested_data is exist [12:07:19]produce_requested_data [12:07:19]requested_item fm.sn is exist - process it [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 11 00 00 [12:07:19]Write to MH i2c: E2 08 00 37 2D 80 11 00 00 00 00 00 00 DE [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 37 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 30 [12:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:07:19]wFMCommunicate OK [12:07:19]requested_item fd.num is exist - process it [12:07:19]SAM_PROTO_GetFieldsCounters [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 13 00 00 [12:07:19]Write to MH i2c: E2 08 00 38 2D 80 13 00 00 00 00 00 00 E1 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 62 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 62 00 38 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C4 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:19]wFMCommunicate OK [12:07:19]SAM_PROTO_GetFieldsCounters done [12:07:19]requested_item shift.num is exist - process it [12:07:19]requested_item shift.opened is exist - process it [12:07:19]req_shift_opened [12:07:19]FM_GetShiftState [12:07:19]SAM_PROTO_GetShiftState [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 13 01 00 [12:07:19]Write to MH i2c: E2 08 00 39 2D 80 13 01 00 00 00 00 00 E3 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0E 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0E 00 39 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 A7 [12:07:19]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:07:19]wFMCommunicate OK [12:07:19]SAM_PROTO_GetShiftState done [12:07:19]FM_GetShiftState done [12:07:19]req_shift_opened done [12:07:19]requested_item shift.open_date is exist - process it [12:07:19]req_shift_open_date [12:07:19]req_shift_open_date done [12:07:19]produce_requested_data done [12:07:19]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15300,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:07:19]process_action_free close_receipt [12:07:19]json_value_free [12:07:19]json_value_free done [12:07:19]process_json_proto returns [12:07:19]Send response to host [12:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15300,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:07:19]free response buf [12:07:19]execute_script done [12:07:19]execute_script returns [12:07:19]free content buf [12:07:19]Sock 9.Close socket [12:07:19]Sock 9.Thread stoped [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:44]accept exits with 8 [12:11:44]New connection [12:11:44]New thread 3066801508 created [12:11:44]Thread 3066944868 joined [12:11:44]Waiting for new connection... [12:11:44] Sock 8.Parse request [12:11:44]Sock 8.Check first char [12:11:44]Sock 8.First char is OK [12:11:44]request: POST /json_proto HTTP/1.0 [12:11:44]Method: POST [12:11:44]URL: /json_proto [12:11:44]Method is POST - this is cgi request [12:11:44]url: /json_proto [12:11:44]query_string will be loaded in cgi processing [12:11:44]execute_cgi json_proto POST (null) [12:11:44]execute_cgi path=json_proto method=POST [12:11:44]POST find Content-Length [12:11:44]Host: 172.17.44.4:8080 [12:11:44]Content-Length: 706 [12:11:44]Content-Type: application/json [12:11:44] [12:11:44]POST finish read [12:11:44]Found Content-Length = 706 [12:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151286", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\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:11:44]execute_script... [12:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151286", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\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:11:44]POST & json_proto [12:11:44]process_json_proto [12:11:44]json parsed OK: [12:11:44]protocol is kg_v1.0 [12:11:44]action value=close_receipt [12:11:44]process_action close_receipt [12:11:44]cmd_close_receipt [12:11:44]MH_GetDate [12:11:44]Write to MH i2c: F0 00 00 3A 2D 56 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 3A 2D 00 85 7C C8 66 0F 81 47 66 CB [12:11:44]GetLastDocTimeStamp 1724414840 [12:11:44]current date 1724415109 [12:11:44]FM_GetShiftState [12:11:44]SAM_PROTO_GetShiftState [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 13 01 00 [12:11:44]Write to MH i2c: E2 08 00 3B 2D 80 13 01 00 00 00 00 00 E5 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 3B 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 A9 [12:11:44]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetShiftState done [12:11:44]FM_GetShiftState done [12:11:44]opened in 1724372406 [12:11:44]opened+sec_in_day 1724458806 [12:11:44]quantity*price = 15500 [12:11:44]sum+1 = 15501 [12:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 95 23.08.2024 12:11 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15301 ФПД: 149332087547423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T121149&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15301&fm=149332087547423&tin=02508201610067®Number=0000000000162784&sum=15500 0 [12:11:45]StoreToDocumentArchive [12:11:45]shift 102 fd 15301 [12:11:45]save to /storage/0102/doc_00015301 [12:11:45]save last doc name /storage/0102/doc_00015301 to /storage/kkm_last_doc_name [12:11:46]save OK [12:11:46]Clear old archive folders... [12:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=302 [12:11:46]tlvbuf is 004B3930 [12:11:46]SAM_PROTO_ClearQueue [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 09 00 00 [12:11:46]Write to MH i2c: E2 08 00 48 2D 80 09 00 00 00 00 00 00 E7 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 48 2D 00 90 00 E9 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_ClearQueue done [12:11:46]KKMCreateOFDPacket [12:11:46]OFDProtocolAddRootSTLVToBuf [12:11:46]FM_MakeSignedData [12:11:46]FM_MakeSignedData [12:11:46]SAM_PROTO_SignData [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 01 02 [12:11:46]Write to MH i2c: E2 08 00 49 2D 80 0D 01 02 00 00 00 00 EF [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 49 2D 00 90 00 EA [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=255 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 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 5F 00 00 00 F4 03 04 00 85 7C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 [12:11:46]Write to MH i2c: E2 02 01 4A 2D 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 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 5F 00 00 00 F4 03 04 00 85 7C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 00 00 2A [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 4A 2D 00 90 00 EB [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=61 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C5 3B 00 00 35 04 06 00 87 D1 16 08 26 1F [12:11:46]Write to MH i2c: E2 40 00 4B 2D 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C5 3B 00 00 35 04 06 00 87 D1 16 08 26 1F 00 00 E4 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 4B 2D 00 90 00 EC [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 03 02 [12:11:46]Write to MH i2c: E2 08 00 4C 2D 80 0D 03 02 00 00 00 00 F4 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 4C 2D 00 E5 72 55 B6 1B F7 46 EC 90 00 9B [12:11:46]RAPDU: E5 72 55 B6 1B F7 46 EC 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_SignData done [12:11:46]FM_MakeSignedData done [12:11:46]CreateOFDProtocolMessage [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 4D 2D 80 11 00 00 00 00 00 00 F4 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 4D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 46 [12:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:11:46]wFMCommunicate OK [12:11:46]CreateOFDProtocolMessage done [12:11:46]OFDSenderStorePacket 15301 [12:11:46]StoreOFDPacket docnum=15301 [12:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 42 01 00 00 10 09 3A 01 D6 A7 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 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 5F 00 00 00 F4 03 04 00 85 7C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C5 3B 00 00 35 04 06 00 87 D1 16 08 26 1F E5 72 55 B6 1B F7 46 EC [12:11:46]CheckFolder [12:11:46]dirname=/storage/ofd_packets [12:11:46]CheckFolder done [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00015301 [12:11:46]NVStorageSaveData ofd_packets/00015301 [12:11:46]File name is /storage/ofd_packets/00015301 [12:11:46]Write 352 bytes [12:11:46]NVStorageSaveData done [12:11:46]OFDSenderStorePacket done [12:11:46]KKMCreateOFDPacket done [12:11:46]NVStorageSaveData kkm_last_timestamp [12:11:46]File name is /storage/kkm_last_timestamp [12:11:46]Write 4 bytes [12:11:46]NVStorageSaveData done [12:11:46]ExternCall_PrintAddStr [12:11:46]wPrintStart [12:11:46]Write to MH i2c: 01 00 00 4E 2D 7B [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 4E 2D 00 00 00 00 00 FF 0F 90 [12:11:46]RasterBufferAndPrint [12:11:46]line Счет N : (3)151286 [12:11:46]line ИНН: 02508201610067 [12:11:46]line Контрольно-Кассовый Чек [12:11:46]line ПРОДАЖА [12:11:46]line Товар: 5449000273673 [12:11:46]line Сок Piko Pulpy красный виноград ПЭТ 1л [12:11:46]line 1.000 * 155.00 [12:11:46]line = 155.00 [12:11:46]line НДС 12% НСП 1% [12:11:46]line > о реализуемом товаре [12:11:46]line ИТОГО: 155.00 [12:11:46]line НСП 1% : 1.37 [12:11:46]line НДС 12% : 16.46 [12:11:46]line Наличными: 155.00 [12:11:46]line Безнал.: 0.00 [12:11:46]line Место: АЗС № 135 "Партнер Нефть" [12:11:46]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:11:46]line СНО: Общий режим [12:11:46]line Чек 95 23.08.2024 12:11 [12:11:46]line Смена: 102 ФФД: 1.0 [12:11:46]line ЗНМ: 0300000144 [12:11:46]line РНМ: 0000000000162784 [12:11:46]line Версия ККМ: v1.0 [12:11:46]line ФМ: 0000000002094529 [12:11:46]line ФД: 15301 [12:11:46]line ФПД: 149332087547423 [12:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T121149&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15301&fm=149332087547423&tin=02508201610067®Number=0000000000162784&sum=15500 [12:11:46]line 0 [12:11:46]OFD Sender: Processing packet 15301 [packets to send 8, broken 7] [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00015301 [12:11:46]OFD Sender: To server: pG, [12:11:46]CommunicateWithHost lk.salyk.kg:30040 [12:11:46]ConnectInit lk.salyk.kg [12:11:46]written 0, free lines is 4095 [12:11:47]Connected sock=10 [12:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 42 01 00 00 10 09 3A 01 D6 A7 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 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 5F 00 00 00 F4 03 04 00 85 7C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C5 3B 00 00 35 04 06 00 87 D1 16 08 26 1F E5 72 55 B6 1B F7 46 EC [12:11:47]Write to MH i2c: 01 00 00 77 2D A4 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 77 2D 00 00 00 00 00 EE 0C A5 [12:11:47]RasterBufferAndPrint [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]line [12:11:47]written 0, free lines is 3316 [12:11:47]MH_Cut [12:11:47]Write to MH i2c: D1 01 00 7E 2D 01 7D [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 01 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: D1 01 00 7E 2D 00 7C [12:11:47]Write to MH i2c: 01 00 00 7F 2D AC [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 75 DB 47 00 00 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 32 30 39 34 35 32 39 10 04 04 00 C5 3B 00 00 F4 03 04 00 E0 26 C8 66 B6 04 01 00 00 62 57 CD 30 4E 84 E9 FD [12:11:47]CommunicateWithHost err = 0 [12:11:47]CheckOFDResponse [12:11:47]1017 (14) - 77093643461234 [12:11:47]1041 (16) - 0000000002094529 [12:11:47]1040 (4) - 15301 [12:11:47]1012 (4) - 23.08.2024 06:06 [12:11:47]1206 (1) - 0 [12:11:47]OFD Sender: Remove packet 15301 [12:11:47]ProducePacketName [12:11:47]name=ofd_packets/00015301 [12:11:47]NVStorageDeleteData [12:11:47]OFD Sender: No OFD packet to send [12:11:48]*** Cut start [12:11:48]*** Partial cut [12:11:48]*** CUTSNS_PIN = 1 [12:11:48]*** CUTSNS_PIN = 0 [12:11:48]*** Brake cut motor [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]*** Stop cut motor [12:11:48]*** Cut end [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 FF 0F C1 [12:11:48]process_action close_receipt done [12:11:48]requested_data is exist [12:11:48]produce_requested_data [12:11:48]requested_item fm.sn is exist - process it [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 11 00 00 [12:11:48]Write to MH i2c: E2 08 00 80 2D 80 11 00 00 00 00 00 00 27 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 80 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 79 [12:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:11:48]wFMCommunicate OK [12:11:48]requested_item fd.num is exist - process it [12:11:48]SAM_PROTO_GetFieldsCounters [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 00 00 [12:11:48]Write to MH i2c: E2 08 00 81 2D 80 13 00 00 00 00 00 00 2A [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 81 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C5 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetFieldsCounters done [12:11:48]requested_item shift.num is exist - process it [12:11:48]requested_item shift.opened is exist - process it [12:11:48]req_shift_opened [12:11:48]FM_GetShiftState [12:11:48]SAM_PROTO_GetShiftState [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 01 00 [12:11:48]Write to MH i2c: E2 08 00 82 2D 80 13 01 00 00 00 00 00 2C [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 82 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F0 [12:11:48]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetShiftState done [12:11:48]FM_GetShiftState done [12:11:48]req_shift_opened done [12:11:48]requested_item shift.open_date is exist - process it [12:11:48]req_shift_open_date [12:11:48]req_shift_open_date done [12:11:48]produce_requested_data done [12:11:48]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15301,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:11:48]process_action_free close_receipt [12:11:48]json_value_free [12:11:48]json_value_free done [12:11:48]process_json_proto returns [12:11:48]Send response to host [12:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15301,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:11:48]free response buf [12:11:48]execute_script done [12:11:48]execute_script returns [12:11:48]free content buf [12:11:48]Sock 8.Close socket [12:11:48]Sock 8.Thread stoped [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:27]accept exits with 9 [12:15:27]New connection [12:15:27]New thread 3066944868 created [12:15:27]Thread 3066801508 joined [12:15:27]Waiting for new connection... [12:15:27] Sock 9.Parse request [12:15:27]Sock 9.Check first char [12:15:27]Sock 9.First char is OK [12:15:27]request: POST /json_proto HTTP/1.0 [12:15:27]Method: POST [12:15:27]URL: /json_proto [12:15:27]Method is POST - this is cgi request [12:15:27]url: /json_proto [12:15:27]query_string will be loaded in cgi processing [12:15:27]execute_cgi json_proto POST (null) [12:15:27]execute_cgi path=json_proto method=POST [12:15:27]POST find Content-Length [12:15:27]Host: 172.17.44.4:8080 [12:15:27]Content-Length: 616 [12:15:27]Content-Type: application/json [12:15:27] [12:15:27]POST finish read [12:15:27]Found Content-Length = 616 [12:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151287", "tax_sys" : 0, "items" : [ { "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:27]execute_script... [12:15: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)151287", "tax_sys" : 0, "items" : [ { "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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:27]POST & json_proto [12:15:27]process_json_proto [12:15:27]json parsed OK: [12:15:27]protocol is kg_v1.0 [12:15:27]action value=close_receipt [12:15:27]process_action close_receipt [12:15:27]cmd_close_receipt [12:15:27]MH_GetDate [12:15:27]Write to MH i2c: F0 00 00 83 2D 9F [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 83 2D 00 64 7D C8 66 0F 81 47 66 F4 [12:15:27]GetLastDocTimeStamp 1724415109 [12:15:27]current date 1724415332 [12:15:27]FM_GetShiftState [12:15:27]SAM_PROTO_GetShiftState [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 01 00 [12:15:27]Write to MH i2c: E2 08 00 84 2D 80 13 01 00 00 00 00 00 2E [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 84 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F2 [12:15:27]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetShiftState done [12:15:27]FM_GetShiftState done [12:15:27]opened in 1724372406 [12:15:27]opened+sec_in_day 1724458806 [12:15:27]quantity*price = 15500 [12:15:27]sum+1 = 15501 [12:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 96 23.08.2024 12:15 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15302 ФПД: 184751860989688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T121532&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15302&fm=184751860989688&tin=02508201610067®Number=0000000000162784&sum=15500 0 [12:15:28]StoreToDocumentArchive [12:15:28]shift 102 fd 15302 [12:15:28]save to /storage/0102/doc_00015302 [12:15:28]save last doc name /storage/0102/doc_00015302 to /storage/kkm_last_doc_name [12:15:28]save OK [12:15:28]Clear old archive folders... [12:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:15:28]tlvbuf is 0054F790 [12:15:28]SAM_PROTO_ClearQueue [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 09 00 00 [12:15:28]Write to MH i2c: E2 08 00 91 2D 80 09 00 00 00 00 00 00 30 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 91 2D 00 90 00 32 [12:15:28]RAPDU: 90 00 [12:15:28]wFMCommunicate OK [12:15:28]SAM_PROTO_ClearQueue done [12:15:28]KKMCreateOFDPacket [12:15:28]OFDProtocolAddRootSTLVToBuf [12:15:28]FM_MakeSignedData [12:15:28]FM_MakeSignedData [12:15:28]SAM_PROTO_SignData [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 0D 01 02 [12:15:28]Write to MH i2c: E2 08 00 92 2D 80 0D 01 02 00 00 00 00 38 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 92 2D 00 90 00 33 [12:15:29]RAPDU: 90 00 [12:15:29]wFMCommunicate OK [12:15:29]wFMCommunicate request_size=255 [12:15:29]MH_SAM_APDU [12:15:29]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 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 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 60 00 00 00 F4 03 04 00 64 7D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [12:15:29]Write to MH i2c: E2 02 01 93 2D 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 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 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 60 00 00 00 F4 03 04 00 64 7D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 2F [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 93 2D 00 90 00 34 [12:15:29]RAPDU: 90 00 [12:15:29]wFMCommunicate OK [12:15:29]wFMCommunicate request_size=27 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 0D 02 02 16 34 35 32 39 10 04 04 00 C6 3B 00 00 35 04 06 00 A8 07 E5 0B BE F8 [12:15:29]Write to MH i2c: E2 1E 00 94 2D 80 0D 02 02 16 00 34 35 32 39 10 04 04 00 C6 3B 00 00 35 04 06 00 A8 07 E5 0B BE F8 00 00 E8 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 03 00 94 2D 00 90 00 35 [12:15:29]RAPDU: 90 00 [12:15:29]wFMCommunicate OK [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 0D 03 02 [12:15:29]Write to MH i2c: E2 08 00 95 2D 80 0D 03 02 00 00 00 00 3D [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0B 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0B 00 95 2D 00 AB 79 EA DA 44 D8 6C 86 90 00 34 [12:15:29]RAPDU: AB 79 EA DA 44 D8 6C 86 90 00 [12:15:29]wFMCommunicate OK [12:15:29]SAM_PROTO_SignData done [12:15:29]FM_MakeSignedData done [12:15:29]CreateOFDProtocolMessage [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 11 00 00 [12:15:29]Write to MH i2c: E2 08 00 96 2D 80 11 00 00 00 00 00 00 3D [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 96 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 8F [12:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:15:29]wFMCommunicate OK [12:15:29]CreateOFDProtocolMessage done [12:15:29]OFDSenderStorePacket 15302 [12:15:29]StoreOFDPacket docnum=15302 [12:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 20 01 00 00 E3 4A 18 01 0D C5 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 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 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 60 00 00 00 F4 03 04 00 64 7D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C6 3B 00 00 35 04 06 00 A8 07 E5 0B BE F8 AB 79 EA DA 44 D8 6C 86 [12:15:29]CheckFolder [12:15:29]dirname=/storage/ofd_packets [12:15:29]CheckFolder done [12:15:29]ProducePacketName [12:15:29]name=ofd_packets/00015302 [12:15:29]NVStorageSaveData ofd_packets/00015302 [12:15:29]File name is /storage/ofd_packets/00015302 [12:15:29]Write 318 bytes [12:15:29]NVStorageSaveData done [12:15:29]OFDSenderStorePacket done [12:15:29]KKMCreateOFDPacket done [12:15:29]NVStorageSaveData kkm_last_timestamp [12:15:29]File name is /storage/kkm_last_timestamp [12:15:29]Write 4 bytes [12:15:29]NVStorageSaveData done [12:15:29]ExternCall_PrintAddStr [12:15:29]wPrintStart [12:15:29]Write to MH i2c: 01 00 00 97 2D C4 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 97 2D 00 00 00 00 00 FF 0F D9 [12:15:29]RasterBufferAndPrint [12:15:29]line Счет N : (3)151287 [12:15:29]line ИНН: 02508201610067 [12:15:29]line Контрольно-Кассовый Чек [12:15:29]line ПРОДАЖА [12:15:29]line Товар: 4640030091584 [12:15:29]line Сигареты Esse Gold [12:15:29]line 1.000 * 155.00 [12:15:29]line = 155.00 [12:15:29]line НДС 12% НСП 1% [12:15:29]line > о реализуемом товаре [12:15:29]line ИТОГО: 155.00 [12:15:29]line НСП 1% : 1.37 [12:15:29]line НДС 12% : 16.46 [12:15:29]line Наличными: 155.00 [12:15:29]line Безнал.: 0.00 [12:15:29]line Место: АЗС № 135 "Партнер Нефть" [12:15:29]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:15:29]line СНО: Общий режим [12:15:29]line Чек 96 23.08.2024 12:15 [12:15:29]line Смена: 102 ФФД: 1.0 [12:15:29]line ЗНМ: 0300000144 [12:15:29]line РНМ: 0000000000162784 [12:15:29]line Версия ККМ: v1.0 [12:15:29]line ФМ: 0000000002094529 [12:15:29]line ФД: 15302 [12:15:29]line ФПД: 184751860989688 [12:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T121532&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15302&fm=184751860989688&tin=02508201610067®Number=0000000000162784&sum=15500 [12:15:29]OFD Sender: Processing packet 15302 [packets to send 8, broken 7] [12:15:29]ProducePacketName [12:15:29]name=ofd_packets/00015302 [12:15:29]OFD Sender: To server: pG, [12:15:29]CommunicateWithHost lk.salyk.kg:30040 [12:15:29]ConnectInit lk.salyk.kg [12:15:29]line 0 [12:15:29]written 0, free lines is 4095 [12:15:30]Write to MH i2c: 01 00 00 BF 2D EC [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: 01 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: 01 07 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: 01 07 00 BF 2D 00 00 00 00 00 04 0D 04 [12:15:30]RasterBufferAndPrint [12:15:30]line [12:15:30]line [12:15:30]line [12:15:30]line [12:15:30]line [12:15:30]written 0, free lines is 3337 [12:15:30]MH_Cut [12:15:30]Write to MH i2c: D1 01 00 C6 2D 01 C5 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: D1 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: D1 01 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: D1 01 00 C6 2D 00 C4 [12:15:30]Write to MH i2c: 01 00 00 C7 2D F4 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** Cut start [12:15:30]*** Partial cut [12:15:30]*** CUTSNS_PIN = 1 [12:15:31]*** CUTSNS_PIN = 0 [12:15:31]*** Brake cut motor [12:15:31]Read from MH i2c: 01 [12:15:31]MH_I2C_Read... [12:15:31]*** Stop cut motor [12:15:31]*** Cut end [12:15:31]Read from MH i2c: 01 07 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 FF 0F 09 [12:15:31]process_action close_receipt done [12:15:31]requested_data is exist [12:15:31]produce_requested_data [12:15:31]requested_item fm.sn is exist - process it [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 11 00 00 [12:15:31]Write to MH i2c: E2 08 00 C8 2D 80 11 00 00 00 00 00 00 6F [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 C8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 C1 [12:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:15:31]wFMCommunicate OK [12:15:31]requested_item fd.num is exist - process it [12:15:31]SAM_PROTO_GetFieldsCounters [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 13 00 00 [12:15:31]Write to MH i2c: E2 08 00 C9 2D 80 13 00 00 00 00 00 00 72 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 62 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 62 00 C9 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C6 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_GetFieldsCounters done [12:15:31]requested_item shift.num is exist - process it [12:15:31]requested_item shift.opened is exist - process it [12:15:31]req_shift_opened [12:15:31]FM_GetShiftState [12:15:31]SAM_PROTO_GetShiftState [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 13 01 00 [12:15:31]Write to MH i2c: E2 08 00 CA 2D 80 13 01 00 00 00 00 00 74 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0E 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0E 00 CA 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 38 [12:15:31]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_GetShiftState done [12:15:31]FM_GetShiftState done [12:15:31]req_shift_opened done [12:15:31]requested_item shift.open_date is exist - process it [12:15:31]req_shift_open_date [12:15:31]req_shift_open_date done [12:15:31]produce_requested_data done [12:15:31]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15302,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:15:31]process_action_free close_receipt [12:15:31]json_value_free [12:15:31]json_value_free done [12:15:31]process_json_proto returns [12:15:31]Send response to host [12:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15302,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:15:31]free response buf [12:15:31]execute_script done [12:15:31]execute_script returns [12:15:31]free content buf [12:15:31]Sock 9.Close socket [12:15:31]Sock 9.Thread stoped [12:17:42]ConnectInit Can't connect to host [12:17:42]CommunicateWithHost connect error [12:17:42]CommunicateWithHost err = -1 [12:17:42]OFD Sender: Server communicate error [12:17:47]OFD Sender: Processing packet 15302 [packets to send 8, broken 7] [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00015302 [12:17:47]OFD Sender: To server: pG, [12:17:47]CommunicateWithHost lk.salyk.kg:30040 [12:17:47]ConnectInit lk.salyk.kg [12:17:47]Connected sock=9 [12:17:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 20 01 00 00 E3 4A 18 01 0D C5 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 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 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 60 00 00 00 F4 03 04 00 64 7D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C6 3B 00 00 35 04 06 00 A8 07 E5 0B BE F8 AB 79 EA DA 44 D8 6C 86 [12:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 CD F6 47 00 4A 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 32 30 39 34 35 32 39 10 04 04 00 C6 3B 00 00 F4 03 04 00 49 28 C8 66 B6 04 01 00 00 44 47 49 B2 F2 0B F2 C5 [12:17:48]CommunicateWithHost err = 0 [12:17:48]CheckOFDResponse [12:17:48]1017 (14) - 77093643461234 [12:17:48]1041 (16) - 0000000002094529 [12:17:48]1040 (4) - 15302 [12:17:48]1012 (4) - 23.08.2024 06:12 [12:17:48]1206 (1) - 0 [12:17:48]OFD Sender: Remove packet 15302 [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00015302 [12:17:48]NVStorageDeleteData [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23: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:04]accept exits with 8 [12:25:04]New connection [12:25:04]New thread 3066801508 created [12:25:04]Thread 3066944868 joined [12:25:04]Waiting for new connection... [12:25:04] Sock 8.Parse request [12:25:04]Sock 8.Check first char [12:25:04]Sock 8.First char is OK [12:25:04]request: POST /json_proto HTTP/1.0 [12:25:04]Method: POST [12:25:04]URL: /json_proto [12:25:04]Method is POST - this is cgi request [12:25:04]url: /json_proto [12:25:04]query_string will be loaded in cgi processing [12:25:04]execute_cgi json_proto POST (null) [12:25:04]execute_cgi path=json_proto method=POST [12:25:04]POST find Content-Length [12:25:04]Host: 172.17.44.4:8080 [12:25:04]Content-Length: 801 [12:25:04]Content-Type: application/json [12:25:04] [12:25:04]POST finish read [12:25:04]Found Content-Length = 801 [12:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:04]execute_script... [12:25:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2078324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:04]POST & json_proto [12:25:04]process_json_proto [12:25:04]json parsed OK: [12:25:04]protocol is kg_v1.0 [12:25:04]action value=close_receipt [12:25:04]process_action close_receipt [12:25:04]cmd_close_receipt [12:25:04]MH_GetDate [12:25:04]Write to MH i2c: F0 00 00 CB 2D E7 [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 09 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: F0 09 00 CB 2D 00 A5 7F C8 66 0F 81 47 66 7F [12:25:04]GetLastDocTimeStamp 1724415332 [12:25:04]current date 1724415909 [12:25:04]FM_GetShiftState [12:25:04]SAM_PROTO_GetShiftState [12:25:04]wFMCommunicate request_size=4 [12:25:04]MH_SAM_APDU [12:25:04]CAPDU: 80 13 01 00 [12:25:04]Write to MH i2c: E2 08 00 CC 2D 80 13 01 00 00 00 00 00 76 [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:04]Read from MH i2c: E2 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 0E 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 0E 00 CC 2D 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 3A [12:25:04]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:25:04]wFMCommunicate OK [12:25:04]SAM_PROTO_GetShiftState done [12:25:04]FM_GetShiftState done [12:25:04]opened in 1724372406 [12:25:04]opened+sec_in_day 1724458806 [12:25:04]quantity*price = 70044 [12:25:04]sum+1 = 70046 [12:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 97 23.08.2024 12:25 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094529 ФД: 15303 ФПД: 211328344365531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T122509&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15303&fm=211328344365531&tin=02508201610067®Number=0000000000162784&sum=70045 [12:25:06]StoreToDocumentArchive [12:25:06]shift 102 fd 15303 [12:25:06]save to /storage/0102/doc_00015303 [12:25:06]save last doc name /storage/0102/doc_00015303 to /storage/kkm_last_doc_name [12:25:06]save OK [12:25:06]Clear old archive folders... [12:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:06]tlvbuf is 0054F3E0 [12:25:06]SAM_PROTO_ClearQueue [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 09 00 00 [12:25:06]Write to MH i2c: E2 08 00 D9 2D 80 09 00 00 00 00 00 00 78 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 D9 2D 00 90 00 7A [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]SAM_PROTO_ClearQueue done [12:25:06]KKMCreateOFDPacket [12:25:06]OFDProtocolAddRootSTLVToBuf [12:25:06]FM_MakeSignedData [12:25:06]FM_MakeSignedData [12:25:06]SAM_PROTO_SignData [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 01 02 [12:25:06]Write to MH i2c: E2 08 00 DA 2D 80 0D 01 02 00 00 00 00 80 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 DA 2D 00 90 00 7B [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]wFMCommunicate request_size=255 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A5 7F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C7 3B 00 00 35 04 06 00 C0 [12:25:06]Write to MH i2c: E2 02 01 DB 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A5 7F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C7 3B 00 00 35 04 06 00 C0 00 00 2D [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 DB 2D 00 90 00 7C [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]wFMCommunicate request_size=10 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 02 02 05 33 B6 E5 99 DB [12:25:06]Write to MH i2c: E2 0D 00 DC 2D 80 0D 02 02 05 00 33 B6 E5 99 DB 00 00 CF [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 03 00 DC 2D 00 90 00 7D [12:25:06]RAPDU: 90 00 [12:25:06]wFMCommunicate OK [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 0D 03 02 [12:25:06]Write to MH i2c: E2 08 00 DD 2D 80 0D 03 02 00 00 00 00 85 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0B 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 0B 00 DD 2D 00 07 08 5B A5 71 85 9B 0F 90 00 35 [12:25:06]RAPDU: 07 08 5B A5 71 85 9B 0F 90 00 [12:25:06]wFMCommunicate OK [12:25:06]SAM_PROTO_SignData done [12:25:06]FM_MakeSignedData done [12:25:06]CreateOFDProtocolMessage [12:25:06]wFMCommunicate request_size=4 [12:25:06]MH_SAM_APDU [12:25:06]CAPDU: 80 11 00 00 [12:25:06]Write to MH i2c: E2 08 00 DE 2D 80 11 00 00 00 00 00 00 85 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:06]Read from MH i2c: E2 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 17 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: E2 17 00 DE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D7 [12:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:25:06]wFMCommunicate OK [12:25:06]CreateOFDProtocolMessage done [12:25:06]OFDSenderStorePacket 15303 [12:25:06]StoreOFDPacket docnum=15303 [12:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 35 A2 07 01 B4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A5 7F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C7 3B 00 00 35 04 06 00 C0 33 B6 E5 99 DB 07 08 5B A5 71 85 9B 0F [12:25:06]CheckFolder [12:25:06]dirname=/storage/ofd_packets [12:25:06]CheckFolder done [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00015303 [12:25:06]NVStorageSaveData ofd_packets/00015303 [12:25:06]File name is /storage/ofd_packets/00015303 [12:25:06]Write 301 bytes [12:25:06]NVStorageSaveData done [12:25:06]OFDSenderStorePacket done [12:25:06]KKMCreateOFDPacket done [12:25:06]NVStorageSaveData kkm_last_timestamp [12:25:06]File name is /storage/kkm_last_timestamp [12:25:06]Write 4 bytes [12:25:06]NVStorageSaveData done [12:25:06]ExternCall_PrintAddStr [12:25:06]wPrintStart [12:25:06]Write to MH i2c: 01 00 00 DF 2D 0C [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 DF 2D 00 00 00 00 00 FF 0F 21 [12:25:06]RasterBufferAndPrint [12:25:06]line Счет N : (1)2078324 [12:25:06]line ИНН: 02508201610067 [12:25:06]line Контрольно-Кассовый Чек [12:25:06]line ПРОДАЖА [12:25:06]line ТРК (МРК, ГНК) : 42 [12:25:06]line Товар: 2710124500 [12:25:06]line Аи-95-К-5 [12:25:06]line 9.440 * 74.20 [12:25:06]line = 700.45 [12:25:06]line НДС 12% НСП 1% [12:25:06]line > о реализуемом товаре [12:25:06]line ИТОГО: 700.45 [12:25:06]line НСП 1% : 6.20 [12:25:06]line НДС 12% : 74.38 [12:25:06]line Наличными: 0.00 [12:25:06]line Безнал.: 700.45 [12:25:06]line Место: АЗС № 135 "Партнер Нефть" [12:25:06]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:25:06]line СНО: Общий режим [12:25:06]line Чек 97 23.08.2024 12:25 [12:25:06]line Смена: 102 ФФД: 1.0 [12:25:06]line ЗНМ: 0300000144 [12:25:06]line РНМ: 0000000000162784 [12:25:06]line Версия ККМ: v1.0 [12:25:06]line Платежная система: O! деньги [12:25:06]line ФМ: 0000000002094529 [12:25:06]line ФД: 15303 [12:25:06]line ФПД: 211328344365531 [12:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T122509&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15303&fm=211328344365531&tin=02508201610067®Number=0000000000162784&sum=70045 [12:25:06]OFD Sender: Processing packet 15303 [packets to send 8, broken 7] [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00015303 [12:25:06]OFD Sender: To server: pG, [12:25:06]CommunicateWithHost lk.salyk.kg:30040 [12:25:06]ConnectInit lk.salyk.kg [12:25:06]written 0, free lines is 4095 [12:25:07]Connected sock=9 [12:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0F 01 00 00 35 A2 07 01 B4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A5 7F C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C7 3B 00 00 35 04 06 00 C0 33 B6 E5 99 DB 07 08 5B A5 71 85 9B 0F [12:25:07]Write to MH i2c: 01 00 00 09 2E 37 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 09 2E 00 00 00 00 00 E9 0C 33 [12:25:07]RasterBufferAndPrint [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]line [12:25:07]written 0, free lines is 3311 [12:25:07]MH_Cut [12:25:07]Write to MH i2c: D1 01 00 10 2E 01 10 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: D1 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: D1 01 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: D1 01 00 10 2E 00 0F [12:25:07]Write to MH i2c: 01 00 00 11 2E 3F [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 0A 70 47 00 B7 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 32 30 39 34 35 32 39 10 04 04 00 C7 3B 00 00 F4 03 04 00 00 2A C8 66 B6 04 01 00 00 84 17 42 93 93 E6 EA 20 [12:25:07]CommunicateWithHost err = 0 [12:25:07]CheckOFDResponse [12:25:07]1017 (14) - 77093643461234 [12:25:07]1041 (16) - 0000000002094529 [12:25:07]1040 (4) - 15303 [12:25:07]1012 (4) - 23.08.2024 06:19 [12:25:07]1206 (1) - 0 [12:25:07]OFD Sender: Remove packet 15303 [12:25:07]ProducePacketName [12:25:07]name=ofd_packets/00015303 [12:25:07]NVStorageDeleteData [12:25:07]OFD Sender: No OFD packet to send [12:25:08]*** Cut start [12:25:08]*** Partial cut [12:25:08]*** CUTSNS_PIN = 1 [12:25:08]*** CUTSNS_PIN = 0 [12:25:08]*** Brake cut motor [12:25:08]Read from MH i2c: 01 [12:25:08]MH_I2C_Read... [12:25:08]*** Stop cut motor [12:25:08]*** Cut end [12:25:08]Read from MH i2c: 01 07 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: 01 07 00 11 2E 00 00 00 00 00 FF 0F 54 [12:25:08]process_action close_receipt done [12:25:08]requested_data is exist [12:25:08]produce_requested_data [12:25:08]requested_item fm.sn is exist - process it [12:25:08]wFMCommunicate request_size=4 [12:25:08]MH_SAM_APDU [12:25:08]CAPDU: 80 11 00 00 [12:25:08]Write to MH i2c: E2 08 00 12 2E 80 11 00 00 00 00 00 00 BA [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:08]Read from MH i2c: E2 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 17 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 17 00 12 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 0C [12:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:25:08]wFMCommunicate OK [12:25:08]requested_item fd.num is exist - process it [12:25:08]SAM_PROTO_GetFieldsCounters [12:25:08]wFMCommunicate request_size=4 [12:25:08]MH_SAM_APDU [12:25:08]CAPDU: 80 13 00 00 [12:25:08]Write to MH i2c: E2 08 00 13 2E 80 13 00 00 00 00 00 00 BD [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:08]Read from MH i2c: E2 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 62 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 62 00 13 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [12:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C7 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:08]wFMCommunicate OK [12:25:08]SAM_PROTO_GetFieldsCounters done [12:25:08]requested_item shift.num is exist - process it [12:25:08]requested_item shift.opened is exist - process it [12:25:08]req_shift_opened [12:25:08]FM_GetShiftState [12:25:08]SAM_PROTO_GetShiftState [12:25:08]wFMCommunicate request_size=4 [12:25:08]MH_SAM_APDU [12:25:08]CAPDU: 80 13 01 00 [12:25:08]Write to MH i2c: E2 08 00 14 2E 80 13 01 00 00 00 00 00 BF [12:25:08]Write i2c OK [12:25:08]MH_I2C_Read... [12:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:08]Read from MH i2c: E2 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 0E 00 [12:25:08]MH_I2C_Read... [12:25:08]Read from MH i2c: E2 0E 00 14 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 83 [12:25:08]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:25:08]wFMCommunicate OK [12:25:08]SAM_PROTO_GetShiftState done [12:25:08]FM_GetShiftState done [12:25:08]req_shift_opened done [12:25:08]requested_item shift.open_date is exist - process it [12:25:08]req_shift_open_date [12:25:08]req_shift_open_date done [12:25:08]produce_requested_data done [12:25:08]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15303,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:25:08]process_action_free close_receipt [12:25:08]json_value_free [12:25:08]json_value_free done [12:25:08]process_json_proto returns [12:25:08]Send response to host [12:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15303,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:25:08]free response buf [12:25:08]execute_script done [12:25:08]execute_script returns [12:25:08]free content buf [12:25:08]Sock 8.Close socket [12:25:08]Sock 8.Thread stoped [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:24]accept exits with 10 [12:32:24]New connection [12:32:24]New thread 3066944868 created [12:32:24]Thread 3066801508 joined [12:32:24]Waiting for new connection... [12:32:24] Sock 10.Parse request [12:32:24]Sock 10.Check first char [12:32:24]Sock 10.First char is OK [12:32:24]request: POST /json_proto HTTP/1.0 [12:32:24]Method: POST [12:32:24]URL: /json_proto [12:32:24]Method is POST - this is cgi request [12:32:24]url: /json_proto [12:32:24]query_string will be loaded in cgi processing [12:32:24]execute_cgi json_proto POST (null) [12:32:24]execute_cgi path=json_proto method=POST [12:32:24]POST find Content-Length [12:32:24]Host: 172.17.44.4:8080 [12:32:24]Content-Length: 646 [12:32:24]Content-Type: application/json [12:32:24] [12:32:24]POST finish read [12:32:24]Found Content-Length = 646 [12:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151288", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:24]execute_script... [12:32: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)151288", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:24]POST & json_proto [12:32:24]process_json_proto [12:32:24]json parsed OK: [12:32:24]protocol is kg_v1.0 [12:32:24]action value=close_receipt [12:32:24]process_action close_receipt [12:32:24]cmd_close_receipt [12:32:24]MH_GetDate [12:32:24]Write to MH i2c: F0 00 00 15 2E 32 [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: F0 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: F0 09 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: F0 09 00 15 2E 00 5D 81 C8 66 0F 81 47 66 84 [12:32:24]GetLastDocTimeStamp 1724415909 [12:32:24]current date 1724416349 [12:32:24]FM_GetShiftState [12:32:24]SAM_PROTO_GetShiftState [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 13 01 00 [12:32:24]Write to MH i2c: E2 08 00 16 2E 80 13 01 00 00 00 00 00 C1 [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 16 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 85 [12:32:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:32:24]wFMCommunicate OK [12:32:24]SAM_PROTO_GetShiftState done [12:32:24]FM_GetShiftState done [12:32:24]opened in 1724372406 [12:32:24]opened+sec_in_day 1724458806 [12:32:24]quantity*price = 13000 [12:32:24]sum+1 = 13001 [12:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 98 23.08.2024 12:32 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15304 ФПД: 38637795332252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123229&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15304&fm=38637795332252&tin=02508201610067®Number=0000000000162784&sum=13000 0 [12:32:25]StoreToDocumentArchive [12:32:25]shift 102 fd 15304 [12:32:25]save to /storage/0102/doc_00015304 [12:32:25]save last doc name /storage/0102/doc_00015304 to /storage/kkm_last_doc_name [12:32:25]save OK [12:32:25]Clear old archive folders... [12:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:32:25]tlvbuf is 004AE020 [12:32:25]SAM_PROTO_ClearQueue [12:32:25]wFMCommunicate request_size=4 [12:32:25]MH_SAM_APDU [12:32:25]CAPDU: 80 09 00 00 [12:32:25]Write to MH i2c: E2 08 00 23 2E 80 09 00 00 00 00 00 00 C3 [12:32:25]Write i2c OK [12:32:25]MH_I2C_Read... [12:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:25]Read from MH i2c: E2 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: E2 03 00 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: E2 03 00 23 2E 00 90 00 C5 [12:32:25]RAPDU: 90 00 [12:32:25]wFMCommunicate OK [12:32:25]SAM_PROTO_ClearQueue done [12:32:25]KKMCreateOFDPacket [12:32:25]OFDProtocolAddRootSTLVToBuf [12:32:25]FM_MakeSignedData [12:32:25]FM_MakeSignedData [12:32:25]SAM_PROTO_SignData [12:32:25]wFMCommunicate request_size=4 [12:32:25]MH_SAM_APDU [12:32:25]CAPDU: 80 0D 01 02 [12:32:25]Write to MH i2c: E2 08 00 24 2E 80 0D 01 02 00 00 00 00 CB [12:32:25]Write i2c OK [12:32:25]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 24 2E 00 90 00 C6 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=255 [12:32:26]MH_SAM_APDU [12:32:26]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 62 00 00 00 F4 03 04 00 5D 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 [12:32:26]Write to MH i2c: E2 02 01 25 2E 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 62 00 00 00 F4 03 04 00 5D 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 00 00 B1 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 25 2E 00 90 00 C7 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=41 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C8 3B 00 00 35 04 06 00 23 24 10 10 D0 9C [12:32:26]Write to MH i2c: E2 2C 00 26 2E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C8 3B 00 00 35 04 06 00 23 24 10 10 D0 9C 00 00 72 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 26 2E 00 90 00 C8 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 03 02 [12:32:26]Write to MH i2c: E2 08 00 27 2E 80 0D 03 02 00 00 00 00 D0 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 0B 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 0B 00 27 2E 00 EC CA CB CE 5E 1A F5 60 90 00 ED [12:32:26]RAPDU: EC CA CB CE 5E 1A F5 60 90 00 [12:32:26]wFMCommunicate OK [12:32:26]SAM_PROTO_SignData done [12:32:26]FM_MakeSignedData done [12:32:26]CreateOFDProtocolMessage [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 11 00 00 [12:32:26]Write to MH i2c: E2 08 00 28 2E 80 11 00 00 00 00 00 00 D0 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 17 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 17 00 28 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 22 [12:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:32:26]wFMCommunicate OK [12:32:26]CreateOFDProtocolMessage done [12:32:26]OFDSenderStorePacket 15304 [12:32:26]StoreOFDPacket docnum=15304 [12:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 CA E3 26 01 E4 30 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 62 00 00 00 F4 03 04 00 5D 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C8 3B 00 00 35 04 06 00 23 24 10 10 D0 9C EC CA CB CE 5E 1A F5 60 [12:32:26]CheckFolder [12:32:26]dirname=/storage/ofd_packets [12:32:26]CheckFolder done [12:32:26]ProducePacketName [12:32:26]name=ofd_packets/00015304 [12:32:26]NVStorageSaveData ofd_packets/00015304 [12:32:26]File name is /storage/ofd_packets/00015304 [12:32:26]Write 332 bytes [12:32:26]NVStorageSaveData done [12:32:26]OFDSenderStorePacket done [12:32:26]KKMCreateOFDPacket done [12:32:26]NVStorageSaveData kkm_last_timestamp [12:32:26]File name is /storage/kkm_last_timestamp [12:32:26]Write 4 bytes [12:32:26]NVStorageSaveData done [12:32:26]ExternCall_PrintAddStr [12:32:26]wPrintStart [12:32:26]Write to MH i2c: 01 00 00 29 2E 57 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 07 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 07 00 29 2E 00 00 00 00 00 FF 0F 6C [12:32:26]RasterBufferAndPrint [12:32:26]line Счет N : (3)151288 [12:32:26]line ИНН: 02508201610067 [12:32:26]line Контрольно-Кассовый Чек [12:32:26]line ПРОДАЖА [12:32:26]line Товар: 2000036220012 [12:32:26]line Кофе Капучино XL(GABB TRADE) [12:32:26]line 1.000 * 130.00 [12:32:26]line = 130.00 [12:32:26]line НДС 12% НСП 1% [12:32:26]line > о реализуемом товаре [12:32:26]line ИТОГО: 130.00 [12:32:26]line НСП 1% : 1.15 [12:32:26]line НДС 12% : 13.80 [12:32:26]line Наличными: 130.00 [12:32:26]line Безнал.: 0.00 [12:32:26]line Место: АЗС № 135 "Партнер Нефть" [12:32:26]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:32:26]line СНО: Общий режим [12:32:26]line Чек 98 23.08.2024 12:32 [12:32:26]line Смена: 102 ФФД: 1.0 [12:32:26]line ЗНМ: 0300000144 [12:32:26]line РНМ: 0000000000162784 [12:32:26]line Версия ККМ: v1.0 [12:32:26]line ФМ: 0000000002094529 [12:32:26]line ФД: 15304 [12:32:26]line ФПД: 38637795332252 [12:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123229&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15304&fm=38637795332252&tin=02508201610067®Number=0000000000162784&sum=13000 [12:32:26]line 0 [12:32:26]OFD Sender: Processing packet 15304 [packets to send 8, broken 7] [12:32:26]ProducePacketName [12:32:26]name=ofd_packets/00015304 [12:32:26]OFD Sender: To server: pG, [12:32:26]CommunicateWithHost lk.salyk.kg:30040 [12:32:26]ConnectInit lk.salyk.kg [12:32:26]written 0, free lines is 4095 [12:32:27]Connected sock=9 [12:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 CA E3 26 01 E4 30 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 62 00 00 00 F4 03 04 00 5D 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C8 3B 00 00 35 04 06 00 23 24 10 10 D0 9C EC CA CB CE 5E 1A F5 60 [12:32:27]Write to MH i2c: 01 00 00 52 2E 80 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 07 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 07 00 52 2E 00 00 00 00 00 FE 0C 91 [12:32:27]RasterBufferAndPrint [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]written 0, free lines is 3332 [12:32:27]MH_Cut [12:32:27]Write to MH i2c: D1 01 00 59 2E 01 59 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 01 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 01 00 59 2E 00 58 [12:32:27]Write to MH i2c: 01 00 00 5A 2E 88 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 BF 8B 47 00 50 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C8 3B 00 00 F4 03 04 00 B8 2B C8 66 B6 04 01 00 00 D2 D9 B2 23 F2 AC 7E EE [12:32:27]CommunicateWithHost err = 0 [12:32:27]CheckOFDResponse [12:32:27]1017 (14) - 77093643461234 [12:32:27]1041 (16) - 0000000002094529 [12:32:27]1040 (4) - 15304 [12:32:27]1012 (4) - 23.08.2024 06:27 [12:32:27]1206 (1) - 0 [12:32:27]OFD Sender: Remove packet 15304 [12:32:27]ProducePacketName [12:32:27]name=ofd_packets/00015304 [12:32:27]NVStorageDeleteData [12:32:27]OFD Sender: No OFD packet to send [12:32:27]*** Cut start [12:32:27]*** Partial cut [12:32:27]*** CUTSNS_PIN = 1 [12:32:28]*** CUTSNS_PIN = 0 [12:32:28]*** Brake cut motor [12:32:28]Read from MH i2c: 01 [12:32:28]MH_I2C_Read... [12:32:28]*** Stop cut motor [12:32:28]*** Cut end [12:32:28]Read from MH i2c: 01 07 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: 01 07 00 5A 2E 00 00 00 00 00 FF 0F 9D [12:32:28]process_action close_receipt done [12:32:28]requested_data is exist [12:32:28]produce_requested_data [12:32:28]requested_item fm.sn is exist - process it [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 11 00 00 [12:32:28]Write to MH i2c: E2 08 00 5B 2E 80 11 00 00 00 00 00 00 03 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 5B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 55 [12:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:32:28]wFMCommunicate OK [12:32:28]requested_item fd.num is exist - process it [12:32:28]SAM_PROTO_GetFieldsCounters [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 13 00 00 [12:32:28]Write to MH i2c: E2 08 00 5C 2E 80 13 00 00 00 00 00 00 06 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 62 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 62 00 5C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:32:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C8 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:28]wFMCommunicate OK [12:32:28]SAM_PROTO_GetFieldsCounters done [12:32:28]requested_item shift.num is exist - process it [12:32:28]requested_item shift.opened is exist - process it [12:32:28]req_shift_opened [12:32:28]FM_GetShiftState [12:32:28]SAM_PROTO_GetShiftState [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 13 01 00 [12:32:28]Write to MH i2c: E2 08 00 5D 2E 80 13 01 00 00 00 00 00 08 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 0E 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 0E 00 5D 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CC [12:32:28]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:32:28]wFMCommunicate OK [12:32:28]SAM_PROTO_GetShiftState done [12:32:28]FM_GetShiftState done [12:32:28]req_shift_opened done [12:32:28]requested_item shift.open_date is exist - process it [12:32:28]req_shift_open_date [12:32:28]req_shift_open_date done [12:32:28]produce_requested_data done [12:32:28]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15304,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:32:28]process_action_free close_receipt [12:32:28]json_value_free [12:32:28]json_value_free done [12:32:28]process_json_proto returns [12:32:28]Send response to host [12:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15304,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:32:28]free response buf [12:32:28]execute_script done [12:32:28]execute_script returns [12:32:28]free content buf [12:32:28]Sock 10.Close socket [12:32:28]Sock 10.Thread stoped [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:25]accept exits with 8 [12:33:25]New connection [12:33:25]New thread 3066801508 created [12:33:25]Thread 3066944868 joined [12:33:25]Waiting for new connection... [12:33:25] Sock 8.Parse request [12:33:25]Sock 8.Check first char [12:33:25]Sock 8.First char is OK [12:33:25]request: POST /json_proto HTTP/1.0 [12:33:25]Method: POST [12:33:25]URL: /json_proto [12:33:25]Method is POST - this is cgi request [12:33:25]url: /json_proto [12:33:25]query_string will be loaded in cgi processing [12:33:25]execute_cgi json_proto POST (null) [12:33:25]execute_cgi path=json_proto method=POST [12:33:25]POST find Content-Length [12:33:25]Host: 172.17.44.4:8080 [12:33:25]Content-Length: 887 [12:33:25]Content-Type: application/json [12:33:25] [12:33:25]POST finish read [12:33:25]Found Content-Length = 887 [12:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151289", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4870216764937", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Amber Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" ] } } [12:33:25]execute_script... [12:33: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)151289", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4870216764937", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Amber Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" ] } } [12:33:25]POST & json_proto [12:33:25]process_json_proto [12:33:25]json parsed OK: [12:33:25]protocol is kg_v1.0 [12:33:25]action value=close_receipt [12:33:25]process_action close_receipt [12:33:25]cmd_close_receipt [12:33:25]MH_GetDate [12:33:25]Write to MH i2c: F0 00 00 5E 2E 7B [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: F0 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: F0 09 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: F0 09 00 5E 2E 00 99 81 C8 66 0F 81 47 66 09 [12:33:25]GetLastDocTimeStamp 1724416349 [12:33:25]current date 1724416409 [12:33:25]FM_GetShiftState [12:33:25]SAM_PROTO_GetShiftState [12:33:25]wFMCommunicate request_size=4 [12:33:25]MH_SAM_APDU [12:33:25]CAPDU: 80 13 01 00 [12:33:25]Write to MH i2c: E2 08 00 5F 2E 80 13 01 00 00 00 00 00 0A [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:25]Read from MH i2c: E2 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 0E 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 0E 00 5F 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 CE [12:33:25]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:33:25]wFMCommunicate OK [12:33:25]SAM_PROTO_GetShiftState done [12:33:25]FM_GetShiftState done [12:33:25]opened in 1724372406 [12:33:25]opened+sec_in_day 1724458806 [12:33:25]quantity*price = 15500 [12:33:25]sum+1 = 15501 [12:33:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870216764937 Нагр.Таб.Палоч. HEETS Amber Selection 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 296.00 НСП 1% : 2.62 НДС 12% : 31.43 Наличными: 296.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 99 23.08.2024 12:33 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15305 ФПД: 255233008333608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123329&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15305&fm=255233008333608&tin=02508201610067®Number=0000000000162784&sum=29600 0 [12:33:26]StoreToDocumentArchive [12:33:26]shift 102 fd 15305 [12:33:26]save to /storage/0102/doc_00015305 [12:33:26]save last doc name /storage/0102/doc_00015305 to /storage/kkm_last_doc_name [12:33:26]save OK [12:33:26]Clear old archive folders... [12:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=389 [12:33:26]tlvbuf is B6F539A0 [12:33:26]SAM_PROTO_ClearQueue [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 09 00 00 [12:33:26]Write to MH i2c: E2 08 00 6C 2E 80 09 00 00 00 00 00 00 0C [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [12:33:26]RAPDU: 90 00 [12:33:26]wFMCommunicate OK [12:33:26]SAM_PROTO_ClearQueue done [12:33:26]KKMCreateOFDPacket [12:33:26]OFDProtocolAddRootSTLVToBuf [12:33:26]FM_MakeSignedData [12:33:26]FM_MakeSignedData [12:33:26]SAM_PROTO_SignData [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 0D 01 02 [12:33:26]Write to MH i2c: E2 08 00 6D 2E 80 0D 01 02 00 00 00 00 14 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [12:33:26]RAPDU: 90 00 [12:33:26]wFMCommunicate OK [12:33:26]wFMCommunicate request_size=255 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 33 37 06 04 31 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 41 6D 62 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 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 [12:33:26]Write to MH i2c: E2 02 01 6E 2E 80 0D 02 02 FA 00 03 00 85 01 1E 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 33 37 06 04 31 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 41 6D 62 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 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 00 00 76 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [12:33:26]RAPDU: 90 00 [12:33:26]wFMCommunicate OK [12:33:26]wFMCommunicate request_size=148 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 0D 02 02 8F 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 63 00 00 00 F4 03 04 00 99 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C9 3B 00 00 35 04 06 00 E8 22 10 CB F3 28 [12:33:26]Write to MH i2c: E2 97 00 6F 2E 80 0D 02 02 8F 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 63 00 00 00 F4 03 04 00 99 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C9 3B 00 00 35 04 06 00 E8 22 10 CB F3 28 00 00 E7 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 03 00 6F 2E 00 90 00 11 [12:33:26]RAPDU: 90 00 [12:33:26]wFMCommunicate OK [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 0D 03 02 [12:33:26]Write to MH i2c: E2 08 00 70 2E 80 0D 03 02 00 00 00 00 19 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 0B 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 0B 00 70 2E 00 50 C3 E0 44 50 71 18 BC 90 00 E6 [12:33:26]RAPDU: 50 C3 E0 44 50 71 18 BC 90 00 [12:33:26]wFMCommunicate OK [12:33:26]SAM_PROTO_SignData done [12:33:26]FM_MakeSignedData done [12:33:26]CreateOFDProtocolMessage [12:33:26]wFMCommunicate request_size=4 [12:33:26]MH_SAM_APDU [12:33:26]CAPDU: 80 11 00 00 [12:33:26]Write to MH i2c: E2 08 00 71 2E 80 11 00 00 00 00 00 00 19 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:26]Read from MH i2c: E2 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 17 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: E2 17 00 71 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 6B [12:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:33:26]wFMCommunicate OK [12:33:26]CreateOFDProtocolMessage done [12:33:26]OFDSenderStorePacket 15305 [12:33:26]StoreOFDPacket docnum=15305 [12:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 99 01 00 00 F4 A3 91 01 4F CF 5A 03 01 00 03 00 85 01 1E 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 33 37 06 04 31 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 41 6D 62 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 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 63 00 00 00 F4 03 04 00 99 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C9 3B 00 00 35 04 06 00 E8 22 10 CB F3 28 50 C3 E0 44 50 71 18 BC [12:33:26]CheckFolder [12:33:26]dirname=/storage/ofd_packets [12:33:26]CheckFolder done [12:33:26]ProducePacketName [12:33:26]name=ofd_packets/00015305 [12:33:26]NVStorageSaveData ofd_packets/00015305 [12:33:26]File name is /storage/ofd_packets/00015305 [12:33:26]Write 439 bytes [12:33:26]NVStorageSaveData done [12:33:26]OFDSenderStorePacket done [12:33:26]KKMCreateOFDPacket done [12:33:26]NVStorageSaveData kkm_last_timestamp [12:33:26]File name is /storage/kkm_last_timestamp [12:33:26]Write 4 bytes [12:33:26]NVStorageSaveData done [12:33:26]ExternCall_PrintAddStr [12:33:26]wPrintStart [12:33:26]Write to MH i2c: 01 00 00 72 2E A0 [12:33:26]Write i2c OK [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: 01 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: 01 07 00 [12:33:26]MH_I2C_Read... [12:33:26]Read from MH i2c: 01 07 00 72 2E 00 00 00 00 00 FF 0F B5 [12:33:26]RasterBufferAndPrint [12:33:26]line Счет N : (3)151289 [12:33:26]line ИНН: 02508201610067 [12:33:26]line Контрольно-Кассовый Чек [12:33:27]line ПРОДАЖА [12:33:27]line Товар: 4640030091584 [12:33:27]line Сигареты Esse Gold [12:33:27]line 1.000 * 155.00 [12:33:27]line = 155.00 [12:33:27]line НДС 12% НСП 1% [12:33:27]line > о реализуемом товаре [12:33:27]line Товар: 4870216764937 [12:33:27]line Нагр.Таб.Палоч. HEETS Amber Selection [12:33:27]line 1.000 * 141.00 [12:33:27]line = 141.00 [12:33:27]line НДС 12% НСП 1% [12:33:27]line > о реализуемом товаре [12:33:27]line ИТОГО: 296.00 [12:33:27]line НСП 1% : 2.62 [12:33:27]line НДС 12% : 31.43 [12:33:27]line Наличными: 296.00 [12:33:27]line Безнал.: 0.00 [12:33:27]line Место: АЗС № 135 "Партнер Нефть" [12:33:27]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:33:27]line СНО: Общий режим [12:33:27]line Чек 99 23.08.2024 12:33 [12:33:27]line Смена: 102 ФФД: 1.0 [12:33:27]line ЗНМ: 0300000144 [12:33:27]line РНМ: 0000000000162784 [12:33:27]line Версия ККМ: v1.0 [12:33:27]line ФМ: 0000000002094529 [12:33:27]line ФД: 15305 [12:33:27]line ФПД: 255233008333608 [12:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123329&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15305&fm=255233008333608&tin=02508201610067®Number=0000000000162784&sum=29600 [12:33:27]OFD Sender: Processing packet 15305 [packets to send 8, broken 7] [12:33:27]ProducePacketName [12:33:27]name=ofd_packets/00015305 [12:33:27]OFD Sender: To server: pG, [12:33:27]CommunicateWithHost lk.salyk.kg:30040 [12:33:27]ConnectInit lk.salyk.kg [12:33:27]line 0 [12:33:27]written 0, free lines is 4095 [12:33:27]Connected sock=10 [12:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 99 01 00 00 F4 A3 91 01 4F CF 5A 03 01 00 03 00 85 01 1E 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 33 37 06 04 31 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 41 6D 62 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 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 63 00 00 00 F4 03 04 00 99 81 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 C9 3B 00 00 35 04 06 00 E8 22 10 CB F3 28 50 C3 E0 44 50 71 18 BC [12:33:27]Write to MH i2c: 01 00 00 A1 2E CF [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: 01 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: 01 07 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: 01 07 00 A1 2E 00 00 00 00 00 AA 0C 8C [12:33:27]RasterBufferAndPrint [12:33:27]line [12:33:27]line [12:33:27]line [12:33:27]line [12:33:27]line [12:33:27]written 0, free lines is 3247 [12:33:27]MH_Cut [12:33:27]Write to MH i2c: D1 01 00 A8 2E 01 A8 [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: D1 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: D1 01 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: D1 01 00 A8 2E 00 A7 [12:33:27]Write to MH i2c: 01 00 00 A9 2E D7 [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 22 A4 47 00 F8 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 32 30 39 34 35 32 39 10 04 04 00 C9 3B 00 00 F4 03 04 00 F5 2B C8 66 B6 04 01 00 00 DE 03 3F 35 83 86 42 70 [12:33:27]CommunicateWithHost err = 0 [12:33:27]CheckOFDResponse [12:33:27]1017 (14) - 77093643461234 [12:33:27]1041 (16) - 0000000002094529 [12:33:27]1040 (4) - 15305 [12:33:27]1012 (4) - 23.08.2024 06:28 [12:33:27]1206 (1) - 0 [12:33:27]OFD Sender: Remove packet 15305 [12:33:27]ProducePacketName [12:33:27]name=ofd_packets/00015305 [12:33:27]NVStorageDeleteData [12:33:28]OFD Sender: No OFD packet to send [12:33:28]*** Cut start [12:33:28]*** Partial cut [12:33:28]*** CUTSNS_PIN = 1 [12:33:28]*** CUTSNS_PIN = 0 [12:33:28]*** Brake cut motor [12:33:29]Read from MH i2c: 01 [12:33:29]MH_I2C_Read... [12:33:29]*** Stop cut motor [12:33:29]*** Cut end [12:33:29]Read from MH i2c: 01 07 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: 01 07 00 A9 2E 00 00 00 00 00 FF 0F EC [12:33:29]process_action close_receipt done [12:33:29]requested_data is exist [12:33:29]produce_requested_data [12:33:29]requested_item fm.sn is exist - process it [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 11 00 00 [12:33:29]Write to MH i2c: E2 08 00 AA 2E 80 11 00 00 00 00 00 00 52 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 17 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 17 00 AA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A4 [12:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:33:29]wFMCommunicate OK [12:33:29]requested_item fd.num is exist - process it [12:33:29]SAM_PROTO_GetFieldsCounters [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 13 00 00 [12:33:29]Write to MH i2c: E2 08 00 AB 2E 80 13 00 00 00 00 00 00 55 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 62 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 62 00 AB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [12:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 C9 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:29]wFMCommunicate OK [12:33:29]SAM_PROTO_GetFieldsCounters done [12:33:29]requested_item shift.num is exist - process it [12:33:29]requested_item shift.opened is exist - process it [12:33:29]req_shift_opened [12:33:29]FM_GetShiftState [12:33:29]SAM_PROTO_GetShiftState [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 13 01 00 [12:33:29]Write to MH i2c: E2 08 00 AC 2E 80 13 01 00 00 00 00 00 57 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 0E 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 0E 00 AC 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1B [12:33:29]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:33:29]wFMCommunicate OK [12:33:29]SAM_PROTO_GetShiftState done [12:33:29]FM_GetShiftState done [12:33:29]req_shift_opened done [12:33:29]requested_item shift.open_date is exist - process it [12:33:29]req_shift_open_date [12:33:29]req_shift_open_date done [12:33:29]produce_requested_data done [12:33:29]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15305,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:33:29]process_action_free close_receipt [12:33:29]json_value_free [12:33:29]json_value_free done [12:33:29]process_json_proto returns [12:33:29]Send response to host [12:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15305,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:33:29]free response buf [12:33:29]execute_script done [12:33:29]execute_script returns [12:33:29]free content buf [12:33:29]Sock 8.Close socket [12:33:29]Sock 8.Thread stoped [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:52]accept exits with 9 [12:35:52]New connection [12:35:52]New thread 3066944868 created [12:35:52]Thread 3066801508 joined [12:35:52]Waiting for new connection... [12:35:52] Sock 9.Parse request [12:35:52]Sock 9.Check first char [12:35:52]Sock 9.First char is OK [12:35:52]request: POST /json_proto HTTP/1.0 [12:35:52]Method: POST [12:35:52]URL: /json_proto [12:35:52]Method is POST - this is cgi request [12:35:52]url: /json_proto [12:35:52]query_string will be loaded in cgi processing [12:35:52]execute_cgi json_proto POST (null) [12:35:52]execute_cgi path=json_proto method=POST [12:35:52]POST find Content-Length [12:35:52]Host: 172.17.44.4:8080 [12:35:52]Content-Length: 646 [12:35:52]Content-Type: application/json [12:35:52] [12:35:52]POST finish read [12:35:52]Found Content-Length = 646 [12:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151290", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:52]execute_script... [12:35: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)151290", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:52]POST & json_proto [12:35:52]process_json_proto [12:35:52]json parsed OK: [12:35:52]protocol is kg_v1.0 [12:35:52]action value=close_receipt [12:35:52]process_action close_receipt [12:35:52]cmd_close_receipt [12:35:52]MH_GetDate [12:35:52]Write to MH i2c: F0 00 00 AD 2E CA [12:35:52]Write i2c OK [12:35:52]MH_I2C_Read... [12:35:52]Read from MH i2c: F0 [12:35:52]MH_I2C_Read... [12:35:52]Read from MH i2c: F0 09 00 [12:35:52]MH_I2C_Read... [12:35:52]Read from MH i2c: F0 09 00 AD 2E 00 2C 82 C8 66 0F 81 47 66 EC [12:35:52]GetLastDocTimeStamp 1724416409 [12:35:52]current date 1724416556 [12:35:52]FM_GetShiftState [12:35:52]SAM_PROTO_GetShiftState [12:35:52]wFMCommunicate request_size=4 [12:35:52]MH_SAM_APDU [12:35:52]CAPDU: 80 13 01 00 [12:35:52]Write to MH i2c: E2 08 00 AE 2E 80 13 01 00 00 00 00 00 59 [12:35:52]Write i2c OK [12:35:52]MH_I2C_Read... [12:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:52]Read from MH i2c: E2 [12:35:52]MH_I2C_Read... [12:35:52]Read from MH i2c: E2 0E 00 [12:35:52]MH_I2C_Read... [12:35:52]Read from MH i2c: E2 0E 00 AE 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1D [12:35:52]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:35:52]wFMCommunicate OK [12:35:52]SAM_PROTO_GetShiftState done [12:35:52]FM_GetShiftState done [12:35:52]opened in 1724372406 [12:35:52]opened+sec_in_day 1724458806 [12:35:52]quantity*price = 39000 [12:35:52]sum+1 = 39001 [12:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 100 23.08.2024 12:35 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15306 ФПД: 171819405892184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123556&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15306&fm=171819405892184&tin=02508201610067®Number=0000000000162784&sum=39000 0 [12:35:53]StoreToDocumentArchive [12:35:53]shift 102 fd 15306 [12:35:53]save to /storage/0102/doc_00015306 [12:35:53]save last doc name /storage/0102/doc_00015306 to /storage/kkm_last_doc_name [12:35:53]save OK [12:35:53]Clear old archive folders... [12:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:35:53]tlvbuf is 004ADFF0 [12:35:53]SAM_PROTO_ClearQueue [12:35:53]wFMCommunicate request_size=4 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 09 00 00 [12:35:53]Write to MH i2c: E2 08 00 BB 2E 80 09 00 00 00 00 00 00 5B [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:53]Read from MH i2c: E2 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 BB 2E 00 90 00 5D [12:35:53]RAPDU: 90 00 [12:35:53]wFMCommunicate OK [12:35:53]SAM_PROTO_ClearQueue done [12:35:53]KKMCreateOFDPacket [12:35:53]OFDProtocolAddRootSTLVToBuf [12:35:53]FM_MakeSignedData [12:35:53]FM_MakeSignedData [12:35:53]SAM_PROTO_SignData [12:35:53]wFMCommunicate request_size=4 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 0D 01 02 [12:35:53]Write to MH i2c: E2 08 00 BC 2E 80 0D 01 02 00 00 00 00 63 [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:53]Read from MH i2c: E2 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 BC 2E 00 90 00 5E [12:35:53]RAPDU: 90 00 [12:35:53]wFMCommunicate OK [12:35:53]wFMCommunicate request_size=255 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2C 82 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 [12:35:53]Write to MH i2c: E2 02 01 BD 2E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2C 82 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 00 00 91 [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:53]Read from MH i2c: E2 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 BD 2E 00 90 00 5F [12:35:53]RAPDU: 90 00 [12:35:53]wFMCommunicate OK [12:35:53]wFMCommunicate request_size=41 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CA 3B 00 00 35 04 06 00 9C 44 D2 A7 5A 58 [12:35:53]Write to MH i2c: E2 2C 00 BE 2E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CA 3B 00 00 35 04 06 00 9C 44 D2 A7 5A 58 00 00 44 [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:53]Read from MH i2c: E2 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 03 00 BE 2E 00 90 00 60 [12:35:53]RAPDU: 90 00 [12:35:53]wFMCommunicate OK [12:35:53]wFMCommunicate request_size=4 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 0D 03 02 [12:35:53]Write to MH i2c: E2 08 00 BF 2E 80 0D 03 02 00 00 00 00 68 [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:53]Read from MH i2c: E2 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 0B 00 [12:35:53]MH_I2C_Read... [12:35:53]Read from MH i2c: E2 0B 00 BF 2E 00 F3 1B 5F C8 B1 CB 24 0A 90 00 48 [12:35:53]RAPDU: F3 1B 5F C8 B1 CB 24 0A 90 00 [12:35:53]wFMCommunicate OK [12:35:53]SAM_PROTO_SignData done [12:35:53]FM_MakeSignedData done [12:35:53]CreateOFDProtocolMessage [12:35:53]wFMCommunicate request_size=4 [12:35:53]MH_SAM_APDU [12:35:53]CAPDU: 80 11 00 00 [12:35:53]Write to MH i2c: E2 08 00 C0 2E 80 11 00 00 00 00 00 00 68 [12:35:53]Write i2c OK [12:35:53]MH_I2C_Read... [12:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:54]Read from MH i2c: E2 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: E2 17 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: E2 17 00 C0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 BA [12:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:35:54]wFMCommunicate OK [12:35:54]CreateOFDProtocolMessage done [12:35:54]OFDSenderStorePacket 15306 [12:35:54]StoreOFDPacket docnum=15306 [12:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 2E D3 26 01 0B B2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2C 82 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CA 3B 00 00 35 04 06 00 9C 44 D2 A7 5A 58 F3 1B 5F C8 B1 CB 24 0A [12:35:54]CheckFolder [12:35:54]dirname=/storage/ofd_packets [12:35:54]CheckFolder done [12:35:54]ProducePacketName [12:35:54]name=ofd_packets/00015306 [12:35:54]NVStorageSaveData ofd_packets/00015306 [12:35:54]File name is /storage/ofd_packets/00015306 [12:35:54]Write 332 bytes [12:35:54]NVStorageSaveData done [12:35:54]OFDSenderStorePacket done [12:35:54]KKMCreateOFDPacket done [12:35:54]NVStorageSaveData kkm_last_timestamp [12:35:54]File name is /storage/kkm_last_timestamp [12:35:54]Write 4 bytes [12:35:54]NVStorageSaveData done [12:35:54]ExternCall_PrintAddStr [12:35:54]wPrintStart [12:35:54]Write to MH i2c: 01 00 00 C1 2E EF [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 07 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 07 00 C1 2E 00 00 00 00 00 FF 0F 04 [12:35:54]RasterBufferAndPrint [12:35:54]line Счет N : (3)151290 [12:35:54]line ИНН: 02508201610067 [12:35:54]line Контрольно-Кассовый Чек [12:35:54]line ПРОДАЖА [12:35:54]line Товар: 2000036220012 [12:35:54]line Кофе Капучино XL(GABB TRADE) [12:35:54]line 3.000 * 130.00 [12:35:54]line = 390.00 [12:35:54]line НДС 12% НСП 1% [12:35:54]line > о реализуемом товаре [12:35:54]line ИТОГО: 390.00 [12:35:54]line НСП 1% : 3.45 [12:35:54]line НДС 12% : 41.42 [12:35:54]line Наличными: 390.00 [12:35:54]line Безнал.: 0.00 [12:35:54]line Место: АЗС № 135 "Партнер Нефть" [12:35:54]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:35:54]line СНО: Общий режим [12:35:54]line Чек 100 23.08.2024 12:35 [12:35:54]line Смена: 102 ФФД: 1.0 [12:35:54]line ЗНМ: 0300000144 [12:35:54]line РНМ: 0000000000162784 [12:35:54]line Версия ККМ: v1.0 [12:35:54]line ФМ: 0000000002094529 [12:35:54]line ФД: 15306 [12:35:54]line ФПД: 171819405892184 [12:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T123556&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15306&fm=171819405892184&tin=02508201610067®Number=0000000000162784&sum=39000 [12:35:54]line 0 [12:35:54]OFD Sender: Processing packet 15306 [packets to send 8, broken 7] [12:35:54]ProducePacketName [12:35:54]name=ofd_packets/00015306 [12:35:54]OFD Sender: To server: pG, [12:35:54]CommunicateWithHost lk.salyk.kg:30040 [12:35:54]ConnectInit lk.salyk.kg [12:35:54]written 0, free lines is 4095 [12:35:54]Connected sock=10 [12:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 2E 01 00 00 2E D3 26 01 0B B2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2C 82 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CA 3B 00 00 35 04 06 00 9C 44 D2 A7 5A 58 F3 1B 5F C8 B1 CB 24 0A [12:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1C F5 47 00 72 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CA 3B 00 00 F4 03 04 00 88 2C C8 66 B6 04 01 00 00 73 21 21 D4 7E FF 55 9E [12:35:54]CommunicateWithHost err = 0 [12:35:54]CheckOFDResponse [12:35:54]1017 (14) - 77093643461234 [12:35:54]1041 (16) - 0000000002094529 [12:35:54]1040 (4) - 15306 [12:35:54]1012 (4) - 23.08.2024 06:30 [12:35:54]1206 (1) - 0 [12:35:54]OFD Sender: Remove packet 15306 [12:35:54]ProducePacketName [12:35:54]name=ofd_packets/00015306 [12:35:54]NVStorageDeleteData [12:35:54]Write to MH i2c: 01 00 00 EA 2E 18 [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 07 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: 01 07 00 EA 2E 00 00 00 00 00 FF 0C 2A [12:35:54]RasterBufferAndPrint [12:35:54]line [12:35:54]line [12:35:54]line [12:35:54]line [12:35:54]line [12:35:54]written 0, free lines is 3333 [12:35:54]MH_Cut [12:35:54]Write to MH i2c: D1 01 00 F1 2E 01 F1 [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: D1 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: D1 01 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: D1 01 00 F1 2E 00 F0 [12:35:54]Write to MH i2c: 01 00 00 F2 2E 20 [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:55]OFD Sender: No OFD packet to send [12:35:55]*** Cut start [12:35:55]*** Partial cut [12:35:55]*** CUTSNS_PIN = 1 [12:35:55]*** CUTSNS_PIN = 0 [12:35:55]*** Brake cut motor [12:35:56]Read from MH i2c: 01 [12:35:56]MH_I2C_Read... [12:35:56]*** Stop cut motor [12:35:56]*** Cut end [12:35:56]Read from MH i2c: 01 07 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 07 00 F2 2E 00 00 00 00 00 FF 0F 35 [12:35:56]process_action close_receipt done [12:35:56]requested_data is exist [12:35:56]produce_requested_data [12:35:56]requested_item fm.sn is exist - process it [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 11 00 00 [12:35:56]Write to MH i2c: E2 08 00 F3 2E 80 11 00 00 00 00 00 00 9B [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 17 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 17 00 F3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 ED [12:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:35:56]wFMCommunicate OK [12:35:56]requested_item fd.num is exist - process it [12:35:56]SAM_PROTO_GetFieldsCounters [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 13 00 00 [12:35:56]Write to MH i2c: E2 08 00 F4 2E 80 13 00 00 00 00 00 00 9E [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 62 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 62 00 F4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [12:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CA 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:56]wFMCommunicate OK [12:35:56]SAM_PROTO_GetFieldsCounters done [12:35:56]requested_item shift.num is exist - process it [12:35:56]requested_item shift.opened is exist - process it [12:35:56]req_shift_opened [12:35:56]FM_GetShiftState [12:35:56]SAM_PROTO_GetShiftState [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 13 01 00 [12:35:56]Write to MH i2c: E2 08 00 F5 2E 80 13 01 00 00 00 00 00 A0 [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 F5 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 64 [12:35:56]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:35:56]wFMCommunicate OK [12:35:56]SAM_PROTO_GetShiftState done [12:35:56]FM_GetShiftState done [12:35:56]req_shift_opened done [12:35:56]requested_item shift.open_date is exist - process it [12:35:56]req_shift_open_date [12:35:56]req_shift_open_date done [12:35:56]produce_requested_data done [12:35:56]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15306,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:35:56]process_action_free close_receipt [12:35:56]json_value_free [12:35:56]json_value_free done [12:35:56]process_json_proto returns [12:35:56]Send response to host [12:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15306,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:35:56]free response buf [12:35:56]execute_script done [12:35:56]execute_script returns [12:35:56]free content buf [12:35:56]Sock 9.Close socket [12:35:56]Sock 9.Thread stoped [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]accept exits with 8 [12:47:35]New connection [12:47:35]New thread 3066801508 created [12:47:35]Thread 3066944868 joined [12:47:35]Waiting for new connection... [12:47:35] Sock 8.Parse request [12:47:35]Sock 8.Check first char [12:47:35]Sock 8.First char is OK [12:47:35]request: POST /json_proto HTTP/1.0 [12:47:35]Method: POST [12:47:35]URL: /json_proto [12:47:35]Method is POST - this is cgi request [12:47:35]url: /json_proto [12:47:35]query_string will be loaded in cgi processing [12:47:35]execute_cgi json_proto POST (null) [12:47:35]execute_cgi path=json_proto method=POST [12:47:35]POST find Content-Length [12:47:35]Host: 172.17.44.4:8080 [12:47:35]Content-Length: 725 [12:47:35]Content-Type: application/json [12:47:35] [12:47:35]POST finish read [12:47:35]Found Content-Length = 725 [12:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151291", "tax_sys" : 0, "items" : [ { "code": "4870233467293", "name": "\u0421\u043B\u0438\u0432. \u0441 \u043C\u0430\u043A\u043E\u043C \u0432 \u043A\u0430\u0440\u0430\u043C.\u0433\u043B.\u0441 \u043A\u0443\u043D\u0436\u0443\u0442\u043E\u043C", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:35]execute_script... [12:47: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)151291", "tax_sys" : 0, "items" : [ { "code": "4870233467293", "name": "\u0421\u043B\u0438\u0432. \u0441 \u043C\u0430\u043A\u043E\u043C \u0432 \u043A\u0430\u0440\u0430\u043C.\u0433\u043B.\u0441 \u043A\u0443\u043D\u0436\u0443\u0442\u043E\u043C", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:35]POST & json_proto [12:47:35]process_json_proto [12:47:35]json parsed OK: [12:47:35]protocol is kg_v1.0 [12:47:35]action value=close_receipt [12:47:35]process_action close_receipt [12:47:35]cmd_close_receipt [12:47:35]MH_GetDate [12:47:35]Write to MH i2c: F0 00 00 F6 2E 13 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 09 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 09 00 F6 2E 00 EC 84 C8 66 0F 81 47 66 F7 [12:47:35]GetLastDocTimeStamp 1724416556 [12:47:35]current date 1724417260 [12:47:35]FM_GetShiftState [12:47:35]SAM_PROTO_GetShiftState [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 13 01 00 [12:47:35]Write to MH i2c: E2 08 00 F7 2E 80 13 01 00 00 00 00 00 A2 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 F7 2E 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 66 [12:47:35]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetShiftState done [12:47:35]FM_GetShiftState done [12:47:35]opened in 1724372406 [12:47:35]opened+sec_in_day 1724458806 [12:47:35]quantity*price = 3600 [12:47:35]sum+1 = 3601 [12:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 36.00 НСП 1% : 0.32 НДС 12% : 3.82 Наличными: 36.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 101 23.08.2024 12:47 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15307 ФПД: 238078874275514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124740&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15307&fm=238078874275514&tin=02508201610067®Number=0000000000162784&sum=3600 0 [12:47:36]StoreToDocumentArchive [12:47:36]shift 102 fd 15307 [12:47:36]save to /storage/0102/doc_00015307 [12:47:36]save last doc name /storage/0102/doc_00015307 to /storage/kkm_last_doc_name [12:47:36]save OK [12:47:36]Clear old archive folders... [12:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [12:47:36]tlvbuf is 00448D80 [12:47:36]SAM_PROTO_ClearQueue [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 09 00 00 [12:47:36]Write to MH i2c: E2 08 00 04 2F 80 09 00 00 00 00 00 00 A5 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 04 2F 00 90 00 A7 [12:47:36]RAPDU: 90 00 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_ClearQueue done [12:47:36]KKMCreateOFDPacket [12:47:36]OFDProtocolAddRootSTLVToBuf [12:47:36]FM_MakeSignedData [12:47:36]FM_MakeSignedData [12:47:36]SAM_PROTO_SignData [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 0D 01 02 [12:47:36]Write to MH i2c: E2 08 00 05 2F 80 0D 01 02 00 00 00 00 AD [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 05 2F 00 90 00 A8 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=255 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 32 39 33 06 04 3E 00 D0 A1 D0 BB D0 B8 D0 B2 2E 20 D1 81 20 D0 BC D0 B0 D0 BA D0 BE D0 BC 20 D0 B2 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 B3 D0 BB 2E D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EC 84 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 [12:47:37]Write to MH i2c: E2 02 01 06 2F 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 32 39 33 06 04 3E 00 D0 A1 D0 BB D0 B8 D0 B2 2E 20 D1 81 20 D0 BC D0 B0 D0 BA D0 BE D0 BC 20 D0 B2 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 B3 D0 BB 2E D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EC 84 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 00 00 55 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 06 2F 00 90 00 A9 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=63 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CB 3B 00 00 35 04 06 00 D8 88 0E BA CE BA [12:47:37]Write to MH i2c: E2 42 00 07 2F 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CB 3B 00 00 35 04 06 00 D8 88 0E BA CE BA 00 00 B2 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 07 2F 00 90 00 AA [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 03 02 [12:47:37]Write to MH i2c: E2 08 00 08 2F 80 0D 03 02 00 00 00 00 B2 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 08 2F 00 EF AE 0F B2 A0 A1 A6 B7 90 00 AF [12:47:37]RAPDU: EF AE 0F B2 A0 A1 A6 B7 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_SignData done [12:47:37]FM_MakeSignedData done [12:47:37]CreateOFDProtocolMessage [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 11 00 00 [12:47:37]Write to MH i2c: E2 08 00 09 2F 80 11 00 00 00 00 00 00 B2 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 09 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 04 [12:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:47:37]wFMCommunicate OK [12:47:37]CreateOFDProtocolMessage done [12:47:37]OFDSenderStorePacket 15307 [12:47:37]StoreOFDPacket docnum=15307 [12:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 44 01 00 00 DA 69 3C 01 E9 54 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 32 39 33 06 04 3E 00 D0 A1 D0 BB D0 B8 D0 B2 2E 20 D1 81 20 D0 BC D0 B0 D0 BA D0 BE D0 BC 20 D0 B2 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 B3 D0 BB 2E D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EC 84 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CB 3B 00 00 35 04 06 00 D8 88 0E BA CE BA EF AE 0F B2 A0 A1 A6 B7 [12:47:37]CheckFolder [12:47:37]dirname=/storage/ofd_packets [12:47:37]CheckFolder done [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00015307 [12:47:37]NVStorageSaveData ofd_packets/00015307 [12:47:37]File name is /storage/ofd_packets/00015307 [12:47:37]Write 354 bytes [12:47:37]NVStorageSaveData done [12:47:37]OFDSenderStorePacket done [12:47:37]KKMCreateOFDPacket done [12:47:37]NVStorageSaveData kkm_last_timestamp [12:47:37]File name is /storage/kkm_last_timestamp [12:47:37]Write 4 bytes [12:47:37]NVStorageSaveData done [12:47:37]ExternCall_PrintAddStr [12:47:37]wPrintStart [12:47:37]Write to MH i2c: 01 00 00 0A 2F 39 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 0A 2F 00 00 00 00 00 FF 0F 4E [12:47:37]RasterBufferAndPrint [12:47:37]line Счет N : (3)151291 [12:47:37]line ИНН: 02508201610067 [12:47:37]line Контрольно-Кассовый Чек [12:47:37]line ПРОДАЖА [12:47:37]line Товар: 4870233467293 [12:47:37]line Слив. с маком в карам.гл.с кунжутом [12:47:37]line 1.000 * 36.00 [12:47:37]line = 36.00 [12:47:37]line НДС 12% НСП 1% [12:47:37]line > о реализуемом товаре [12:47:37]line ИТОГО: 36.00 [12:47:37]line НСП 1% : 0.32 [12:47:37]line НДС 12% : 3.82 [12:47:37]line Наличными: 36.00 [12:47:37]line Безнал.: 0.00 [12:47:37]line Место: АЗС № 135 "Партнер Нефть" [12:47:37]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:47:37]line СНО: Общий режим [12:47:37]line Чек 101 23.08.2024 12:47 [12:47:37]line Смена: 102 ФФД: 1.0 [12:47:37]line ЗНМ: 0300000144 [12:47:37]line РНМ: 0000000000162784 [12:47:37]line Версия ККМ: v1.0 [12:47:37]line ФМ: 0000000002094529 [12:47:37]line ФД: 15307 [12:47:37]line ФПД: 238078874275514 [12:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124740&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15307&fm=238078874275514&tin=02508201610067®Number=0000000000162784&sum=3600 [12:47:37]line 0 [12:47:37]OFD Sender: Processing packet 15307 [packets to send 8, broken 7] [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00015307 [12:47:37]OFD Sender: To server: pG, [12:47:37]CommunicateWithHost lk.salyk.kg:30040 [12:47:37]ConnectInit lk.salyk.kg [12:47:37]written 0, free lines is 4095 [12:47:38]Connected sock=10 [12:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 44 01 00 00 DA 69 3C 01 E9 54 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 37 32 39 33 06 04 3E 00 D0 A1 D0 BB D0 B8 D0 B2 2E 20 D1 81 20 D0 BC D0 B0 D0 BA D0 BE D0 BC 20 D0 B2 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 B3 D0 BB 2E D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EC 84 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CB 3B 00 00 35 04 06 00 D8 88 0E BA CE BA EF AE 0F B2 A0 A1 A6 B7 [12:47:38]Write to MH i2c: 01 00 00 33 2F 62 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 33 2F 00 00 00 00 00 E8 0C 5D [12:47:38]RasterBufferAndPrint [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]written 0, free lines is 3313 [12:47:38]MH_Cut [12:47:38]Write to MH i2c: D1 01 00 3A 2F 01 3B [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 01 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 01 00 3A 2F 00 3A [12:47:38]Write to MH i2c: 01 00 00 3B 2F 6A [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 1D 1A 47 00 40 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 32 30 39 34 35 32 39 10 04 04 00 CB 3B 00 00 F4 03 04 00 47 2F C8 66 B6 04 01 00 00 83 8F 27 97 47 9E A1 78 [12:47:38]CommunicateWithHost err = 0 [12:47:38]CheckOFDResponse [12:47:38]1017 (14) - 77093643461234 [12:47:38]1041 (16) - 0000000002094529 [12:47:38]1040 (4) - 15307 [12:47:38]1012 (4) - 23.08.2024 06:42 [12:47:38]1206 (1) - 0 [12:47:38]OFD Sender: Remove packet 15307 [12:47:38]ProducePacketName [12:47:38]name=ofd_packets/00015307 [12:47:38]NVStorageDeleteData [12:47:38]OFD Sender: No OFD packet to send [12:47:39]*** Cut start [12:47:39]*** Partial cut [12:47:39]*** CUTSNS_PIN = 1 [12:47:39]*** CUTSNS_PIN = 0 [12:47:39]*** Brake cut motor [12:47:39]Read from MH i2c: 01 [12:47:39]MH_I2C_Read... [12:47:39]*** Stop cut motor [12:47:39]*** Cut end [12:47:39]Read from MH i2c: 01 07 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: 01 07 00 3B 2F 00 00 00 00 00 FF 0F 7F [12:47:39]process_action close_receipt done [12:47:39]requested_data is exist [12:47:39]produce_requested_data [12:47:39]requested_item fm.sn is exist - process it [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 11 00 00 [12:47:39]Write to MH i2c: E2 08 00 3C 2F 80 11 00 00 00 00 00 00 E5 [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 17 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 17 00 3C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 37 [12:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:47:39]wFMCommunicate OK [12:47:39]requested_item fd.num is exist - process it [12:47:39]SAM_PROTO_GetFieldsCounters [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 13 00 00 [12:47:39]Write to MH i2c: E2 08 00 3D 2F 80 13 00 00 00 00 00 00 E8 [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 62 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 62 00 3D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CB 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:39]wFMCommunicate OK [12:47:39]SAM_PROTO_GetFieldsCounters done [12:47:39]requested_item shift.num is exist - process it [12:47:39]requested_item shift.opened is exist - process it [12:47:39]req_shift_opened [12:47:39]FM_GetShiftState [12:47:39]SAM_PROTO_GetShiftState [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 13 01 00 [12:47:39]Write to MH i2c: E2 08 00 3E 2F 80 13 01 00 00 00 00 00 EA [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 0E 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 0E 00 3E 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 AE [12:47:39]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:47:39]wFMCommunicate OK [12:47:39]SAM_PROTO_GetShiftState done [12:47:39]FM_GetShiftState done [12:47:39]req_shift_opened done [12:47:39]requested_item shift.open_date is exist - process it [12:47:39]req_shift_open_date [12:47:39]req_shift_open_date done [12:47:39]produce_requested_data done [12:47:39]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15307,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:47:39]process_action_free close_receipt [12:47:39]json_value_free [12:47:39]json_value_free done [12:47:39]process_json_proto returns [12:47:39]Send response to host [12:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15307,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:47:39]free response buf [12:47:39]execute_script done [12:47:39]execute_script returns [12:47:39]free content buf [12:47:39]Sock 8.Close socket [12:47:39]Sock 8.Thread stoped [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:44]accept exits with 9 [12:58:44]New connection [12:58:44]New thread 3066944868 created [12:58:44]Thread 3066801508 joined [12:58:44]Waiting for new connection... [12:58:44] Sock 9.Parse request [12:58:44]Sock 9.Check first char [12:58:44]Sock 9.First char is OK [12:58:44]request: POST /json_proto HTTP/1.0 [12:58:44]Method: POST [12:58:44]URL: /json_proto [12:58:44]Method is POST - this is cgi request [12:58:44]url: /json_proto [12:58:44]query_string will be loaded in cgi processing [12:58:44]execute_cgi json_proto POST (null) [12:58:44]execute_cgi path=json_proto method=POST [12:58:44]POST find Content-Length [12:58:44]Host: 172.17.44.4:8080 [12:58:44]Content-Length: 632 [12:58:44]Content-Type: application/json [12:58:44] [12:58:44]POST finish read [12:58:44]Found Content-Length = 632 [12:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151292", "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" ] } } [12:58:44]execute_script... [12:58:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151292", "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" ] } } [12:58:44]POST & json_proto [12:58:44]process_json_proto [12:58:44]json parsed OK: [12:58:44]protocol is kg_v1.0 [12:58:44]action value=close_receipt [12:58:44]process_action close_receipt [12:58:44]cmd_close_receipt [12:58:44]MH_GetDate [12:58:44]Write to MH i2c: F0 00 00 3F 2F 5D [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: F0 09 00 3F 2F 00 89 87 C8 66 0F 81 47 66 E1 [12:58:44]GetLastDocTimeStamp 1724417260 [12:58:44]current date 1724417929 [12:58:44]FM_GetShiftState [12:58:44]SAM_PROTO_GetShiftState [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 13 01 00 [12:58:44]Write to MH i2c: E2 08 00 40 2F 80 13 01 00 00 00 00 00 EC [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0E 00 40 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B0 [12:58:44]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_GetShiftState done [12:58:44]FM_GetShiftState done [12:58:44]opened in 1724372406 [12:58:44]opened+sec_in_day 1724458806 [12:58:44]quantity*price = 6000 [12:58:44]sum+1 = 6001 [12:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 102 23.08.2024 12:58 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15308 ФПД: 35652301899864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T125849&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15308&fm=35652301899864&tin=02508201610067®Number=0000000000162784&sum=6000 0 [12:58:45]StoreToDocumentArchive [12:58:45]shift 102 fd 15308 [12:58:45]save to /storage/0102/doc_00015308 [12:58:45]save last doc name /storage/0102/doc_00015308 to /storage/kkm_last_doc_name [12:58:45]save OK [12:58:45]Clear old archive folders... [12:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:58:45]tlvbuf is 0045E1A0 [12:58:45]SAM_PROTO_ClearQueue [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 09 00 00 [12:58:45]Write to MH i2c: E2 08 00 4D 2F 80 09 00 00 00 00 00 00 EE [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 4D 2F 00 90 00 F0 [12:58:45]RAPDU: 90 00 [12:58:45]wFMCommunicate OK [12:58:45]SAM_PROTO_ClearQueue done [12:58:45]KKMCreateOFDPacket [12:58:45]OFDProtocolAddRootSTLVToBuf [12:58:45]FM_MakeSignedData [12:58:45]FM_MakeSignedData [12:58:45]SAM_PROTO_SignData [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 0D 01 02 [12:58:45]Write to MH i2c: E2 08 00 4E 2F 80 0D 01 02 00 00 00 00 F6 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [12:58:45]RAPDU: 90 00 [12:58:45]wFMCommunicate OK [12:58:45]wFMCommunicate request_size=255 [12:58:45]MH_SAM_APDU [12:58:45]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 66 00 00 00 F4 03 04 00 89 87 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:58:45]Write to MH i2c: E2 02 01 4F 2F 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 66 00 00 00 F4 03 04 00 89 87 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 32 [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 4F 2F 00 90 00 F2 [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=30 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 02 02 19 32 30 39 34 35 32 39 10 04 04 00 CC 3B 00 00 35 04 06 00 20 6C F2 CA 48 58 [12:58:46]Write to MH i2c: E2 21 00 50 2F 80 0D 02 02 19 00 32 30 39 34 35 32 39 10 04 04 00 CC 3B 00 00 35 04 06 00 20 6C F2 CA 48 58 00 00 E0 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 03 00 50 2F 00 90 00 F3 [12:58:46]RAPDU: 90 00 [12:58:46]wFMCommunicate OK [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 0D 03 02 [12:58:46]Write to MH i2c: E2 08 00 51 2F 80 0D 03 02 00 00 00 00 FB [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0B 00 51 2F 00 B4 CE 1C 1D DC 14 B6 BE 90 00 1B [12:58:46]RAPDU: B4 CE 1C 1D DC 14 B6 BE 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_SignData done [12:58:46]FM_MakeSignedData done [12:58:46]CreateOFDProtocolMessage [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 11 00 00 [12:58:46]Write to MH i2c: E2 08 00 52 2F 80 11 00 00 00 00 00 00 FB [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 52 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 4D [12:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:58:46]wFMCommunicate OK [12:58:46]CreateOFDProtocolMessage done [12:58:46]OFDSenderStorePacket 15308 [12:58:46]StoreOFDPacket docnum=15308 [12:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 23 01 00 00 0F 77 1B 01 80 74 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 66 00 00 00 F4 03 04 00 89 87 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CC 3B 00 00 35 04 06 00 20 6C F2 CA 48 58 B4 CE 1C 1D DC 14 B6 BE [12:58:46]CheckFolder [12:58:46]dirname=/storage/ofd_packets [12:58:46]CheckFolder done [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00015308 [12:58:46]NVStorageSaveData ofd_packets/00015308 [12:58:46]File name is /storage/ofd_packets/00015308 [12:58:46]Write 321 bytes [12:58:46]NVStorageSaveData done [12:58:46]OFDSenderStorePacket done [12:58:46]KKMCreateOFDPacket done [12:58:46]NVStorageSaveData kkm_last_timestamp [12:58:46]File name is /storage/kkm_last_timestamp [12:58:46]Write 4 bytes [12:58:46]NVStorageSaveData done [12:58:46]ExternCall_PrintAddStr [12:58:46]wPrintStart [12:58:46]Write to MH i2c: 01 00 00 53 2F 82 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 53 2F 00 00 00 00 00 FF 0F 97 [12:58:46]RasterBufferAndPrint [12:58:46]line Счет N : (3)151292 [12:58:46]line ИНН: 02508201610067 [12:58:46]line Контрольно-Кассовый Чек [12:58:46]line ПРОДАЖА [12:58:46]line Товар: 4700000160204 [12:58:46]line Вода Легенда 1,5л [12:58:46]line 1.000 * 60.00 [12:58:46]line = 60.00 [12:58:46]line НДС 12% НСП 1% [12:58:46]line > о реализуемом товаре [12:58:46]line ИТОГО: 60.00 [12:58:46]line НСП 1% : 0.53 [12:58:46]line НДС 12% : 6.37 [12:58:46]line Наличными: 60.00 [12:58:46]line Безнал.: 0.00 [12:58:46]line Место: АЗС № 135 "Партнер Нефть" [12:58:46]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:58:46]line СНО: Общий режим [12:58:46]line Чек 102 23.08.2024 12:58 [12:58:46]line Смена: 102 ФФД: 1.0 [12:58:46]line ЗНМ: 0300000144 [12:58:46]line РНМ: 0000000000162784 [12:58:46]line Версия ККМ: v1.0 [12:58:46]line ФМ: 0000000002094529 [12:58:46]line ФД: 15308 [12:58:46]line ФПД: 35652301899864 [12:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T125849&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15308&fm=35652301899864&tin=02508201610067®Number=0000000000162784&sum=6000 [12:58:46]line 0 [12:58:46]OFD Sender: Processing packet 15308 [packets to send 8, broken 7] [12:58:46]ProducePacketName [12:58:46]name=ofd_packets/00015308 [12:58:46]OFD Sender: To server: pG, [12:58:46]CommunicateWithHost lk.salyk.kg:30040 [12:58:46]ConnectInit lk.salyk.kg [12:58:46]written 0, free lines is 4095 [12:58:46]Connected sock=10 [12:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 23 01 00 00 0F 77 1B 01 80 74 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 66 00 00 00 F4 03 04 00 89 87 C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CC 3B 00 00 35 04 06 00 20 6C F2 CA 48 58 B4 CE 1C 1D DC 14 B6 BE [12:58:47]Write to MH i2c: 01 00 00 7B 2F AA [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 7B 2F 00 00 00 00 00 09 0D C7 [12:58:47]RasterBufferAndPrint [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]line [12:58:47]written 0, free lines is 3343 [12:58:47]MH_Cut [12:58:47]Write to MH i2c: D1 01 00 82 2F 01 83 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 01 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: D1 01 00 82 2F 00 82 [12:58:47]Write to MH i2c: 01 00 00 83 2F B2 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 EA 74 47 00 6C BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CC 3B 00 00 F4 03 04 00 E4 31 C8 66 B6 04 01 00 00 43 54 5C BE F1 41 41 D2 [12:58:47]CommunicateWithHost err = 0 [12:58:47]CheckOFDResponse [12:58:47]1017 (14) - 77093643461234 [12:58:47]1041 (16) - 0000000002094529 [12:58:47]1040 (4) - 15308 [12:58:47]1012 (4) - 23.08.2024 06:53 [12:58:47]1206 (1) - 0 [12:58:47]OFD Sender: Remove packet 15308 [12:58:47]ProducePacketName [12:58:47]name=ofd_packets/00015308 [12:58:47]NVStorageDeleteData [12:58:47]OFD Sender: No OFD packet to send [12:58:47]*** Cut start [12:58:47]*** Partial cut [12:58:47]*** CUTSNS_PIN = 1 [12:58:47]*** CUTSNS_PIN = 0 [12:58:48]*** Brake cut motor [12:58:48]Read from MH i2c: 01 [12:58:48]MH_I2C_Read... [12:58:48]*** Stop cut motor [12:58:48]*** Cut end [12:58:48]Read from MH i2c: 01 07 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: 01 07 00 83 2F 00 00 00 00 00 FF 0F C7 [12:58:48]process_action close_receipt done [12:58:48]requested_data is exist [12:58:48]produce_requested_data [12:58:48]requested_item fm.sn is exist - process it [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 11 00 00 [12:58:48]Write to MH i2c: E2 08 00 84 2F 80 11 00 00 00 00 00 00 2D [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 17 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 17 00 84 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 7F [12:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [12:58:48]wFMCommunicate OK [12:58:48]requested_item fd.num is exist - process it [12:58:48]SAM_PROTO_GetFieldsCounters [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 13 00 00 [12:58:48]Write to MH i2c: E2 08 00 85 2F 80 13 00 00 00 00 00 00 30 [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 62 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 62 00 85 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CC 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:48]wFMCommunicate OK [12:58:48]SAM_PROTO_GetFieldsCounters done [12:58:48]requested_item shift.num is exist - process it [12:58:48]requested_item shift.opened is exist - process it [12:58:48]req_shift_opened [12:58:48]FM_GetShiftState [12:58:48]SAM_PROTO_GetShiftState [12:58:48]wFMCommunicate request_size=4 [12:58:48]MH_SAM_APDU [12:58:48]CAPDU: 80 13 01 00 [12:58:48]Write to MH i2c: E2 08 00 86 2F 80 13 01 00 00 00 00 00 32 [12:58:48]Write i2c OK [12:58:48]MH_I2C_Read... [12:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:48]Read from MH i2c: E2 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 0E 00 [12:58:48]MH_I2C_Read... [12:58:48]Read from MH i2c: E2 0E 00 86 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F6 [12:58:48]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [12:58:48]wFMCommunicate OK [12:58:48]SAM_PROTO_GetShiftState done [12:58:48]FM_GetShiftState done [12:58:48]req_shift_opened done [12:58:48]requested_item shift.open_date is exist - process it [12:58:48]req_shift_open_date [12:58:48]req_shift_open_date done [12:58:48]produce_requested_data done [12:58:48]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15308,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [12:58:48]process_action_free close_receipt [12:58:48]json_value_free [12:58:48]json_value_free done [12:58:48]process_json_proto returns [12:58:48]Send response to host [12:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15308,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [12:58:48]free response buf [12:58:48]execute_script done [12:58:48]execute_script returns [12:58:48]free content buf [12:58:48]Sock 9.Close socket [12:58:48]Sock 9.Thread stoped [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03: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:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:39]accept exits with 8 [13:18:39]New connection [13:18:39]New thread 3066801508 created [13:18:39]Thread 3066944868 joined [13:18:39]Waiting for new connection... [13:18:39] Sock 8.Parse request [13:18:39]Sock 8.Check first char [13:18:39]Sock 8.First char is OK [13:18:39]request: POST /json_proto HTTP/1.0 [13:18:39]Method: POST [13:18:39]URL: /json_proto [13:18:39]Method is POST - this is cgi request [13:18:39]url: /json_proto [13:18:39]query_string will be loaded in cgi processing [13:18:39]execute_cgi json_proto POST (null) [13:18:39]execute_cgi path=json_proto method=POST [13:18:39]POST find Content-Length [13:18:40]Host: 172.17.44.4:8080 [13:18:40]Content-Length: 1054 [13:18:40]Content-Type: application/json [13:18:40] [13:18:40]POST finish read [13:18:40]Found Content-Length = 1054 [13:18:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151293", "tax_sys" : 0, "items" : [ { "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:40]execute_script... [13:18: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)151293", "tax_sys" : 0, "items" : [ { "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:40]POST & json_proto [13:18:40]process_json_proto [13:18:40]json parsed OK: [13:18:40]protocol is kg_v1.0 [13:18:40]action value=close_receipt [13:18:40]process_action close_receipt [13:18:40]cmd_close_receipt [13:18:40]MH_GetDate [13:18:40]Write to MH i2c: F0 00 00 87 2F A5 [13:18:40]Write i2c OK [13:18:40]MH_I2C_Read... [13:18:40]Read from MH i2c: F0 [13:18:40]MH_I2C_Read... [13:18:40]Read from MH i2c: F0 09 00 [13:18:40]MH_I2C_Read... [13:18:40]Read from MH i2c: F0 09 00 87 2F 00 34 8C C8 66 0F 81 47 66 D9 [13:18:40]GetLastDocTimeStamp 1724417929 [13:18:40]current date 1724419124 [13:18:40]FM_GetShiftState [13:18:40]SAM_PROTO_GetShiftState [13:18:40]wFMCommunicate request_size=4 [13:18:40]MH_SAM_APDU [13:18:40]CAPDU: 80 13 01 00 [13:18:40]Write to MH i2c: E2 08 00 88 2F 80 13 01 00 00 00 00 00 34 [13:18:40]Write i2c OK [13:18:40]MH_I2C_Read... [13:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:40]Read from MH i2c: E2 [13:18:40]MH_I2C_Read... [13:18:40]Read from MH i2c: E2 0E 00 [13:18:40]MH_I2C_Read... [13:18:40]Read from MH i2c: E2 0E 00 88 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 F8 [13:18:40]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:18:40]wFMCommunicate OK [13:18:40]SAM_PROTO_GetShiftState done [13:18:40]FM_GetShiftState done [13:18:40]opened in 1724372406 [13:18:40]opened+sec_in_day 1724458806 [13:18:40]quantity*price = 5900 [13:18:40]sum+1 = 5901 [13:18:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.16 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 103 23.08.2024 13:18 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15309 ФПД: 258519526754305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131844&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15309&fm=258519526754305&tin=02508201610067®Number=0000000000162784&sum=12400 0 [13:18:41]StoreToDocumentArchive [13:18:41]shift 102 fd 15309 [13:18:41]save to /storage/0102/doc_00015309 [13:18:41]save last doc name /storage/0102/doc_00015309 to /storage/kkm_last_doc_name [13:18:41]save OK [13:18:41]Clear old archive folders... [13:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=436 [13:18:41]tlvbuf is 004A9550 [13:18:41]SAM_PROTO_ClearQueue [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 09 00 00 [13:18:41]Write to MH i2c: E2 08 00 95 2F 80 09 00 00 00 00 00 00 36 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 95 2F 00 90 00 38 [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_ClearQueue done [13:18:41]KKMCreateOFDPacket [13:18:41]OFDProtocolAddRootSTLVToBuf [13:18:41]FM_MakeSignedData [13:18:41]FM_MakeSignedData [13:18:41]SAM_PROTO_SignData [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 01 02 [13:18:41]Write to MH i2c: E2 08 00 96 2F 80 0D 01 02 00 00 00 00 3E [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 96 2F 00 90 00 39 [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=255 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 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:18:41]Write to MH i2c: E2 02 01 97 2F 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 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 00 00 DC [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=195 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 02 02 BE 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 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 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 70 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 67 00 00 00 F4 03 04 00 34 8C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CD 3B 00 00 35 04 06 00 EB 1F 44 8F 48 01 [13:18:41]Write to MH i2c: E2 C6 00 98 2F 80 0D 02 02 BE 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 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 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 70 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 67 00 00 00 F4 03 04 00 34 8C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CD 3B 00 00 35 04 06 00 EB 1F 44 8F 48 01 00 00 0E [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 98 2F 00 90 00 3B [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 03 02 [13:18:41]Write to MH i2c: E2 08 00 99 2F 80 0D 03 02 00 00 00 00 43 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 99 2F 00 56 52 B9 A0 C6 18 40 B6 90 00 19 [13:18:41]RAPDU: 56 52 B9 A0 C6 18 40 B6 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_SignData done [13:18:41]FM_MakeSignedData done [13:18:41]CreateOFDProtocolMessage [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 11 00 00 [13:18:41]Write to MH i2c: E2 08 00 9A 2F 80 11 00 00 00 00 00 00 43 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 9A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 95 [13:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:18:41]wFMCommunicate OK [13:18:41]CreateOFDProtocolMessage done [13:18:41]OFDSenderStorePacket 15309 [13:18:41]StoreOFDPacket docnum=15309 [13:18:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 C8 01 00 00 B0 79 C0 01 FE 1C 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 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 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 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 70 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 67 00 00 00 F4 03 04 00 34 8C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CD 3B 00 00 35 04 06 00 EB 1F 44 8F 48 01 56 52 B9 A0 C6 18 40 B6 [13:18:41]CheckFolder [13:18:41]dirname=/storage/ofd_packets [13:18:41]CheckFolder done [13:18:41]ProducePacketName [13:18:41]name=ofd_packets/00015309 [13:18:41]NVStorageSaveData ofd_packets/00015309 [13:18:41]File name is /storage/ofd_packets/00015309 [13:18:42]Write 486 bytes [13:18:42]NVStorageSaveData done [13:18:42]OFDSenderStorePacket done [13:18:42]KKMCreateOFDPacket done [13:18:42]NVStorageSaveData kkm_last_timestamp [13:18:42]File name is /storage/kkm_last_timestamp [13:18:42]Write 4 bytes [13:18:42]NVStorageSaveData done [13:18:42]ExternCall_PrintAddStr [13:18:42]wPrintStart [13:18:42]Write to MH i2c: 01 00 00 9B 2F CA [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 9B 2F 00 00 00 00 00 FF 0F DF [13:18:42]RasterBufferAndPrint [13:18:42]line Счет N : (3)151293 [13:18:42]line ИНН: 02508201610067 [13:18:42]line Контрольно-Кассовый Чек [13:18:42]line ПРОДАЖА [13:18:42]line Товар: 4630056952563 [13:18:42]line Печ Юбилейное Торжество молочное 120г [13:18:42]line 1.000 * 59.00 [13:18:42]line = 59.00 [13:18:42]line НДС 12% НСП 1% [13:18:42]line > о реализуемом товаре [13:18:42]line Товар: 4870001571535 [13:18:42]line Вода ASU пит н.газ персик ПЭТ 0,5л [13:18:42]line 1.000 * 65.00 [13:18:42]line = 65.00 [13:18:42]line НДС 12% НСП 1% [13:18:42]line > о реализуемом товаре [13:18:42]line ИТОГО: 124.00 [13:18:42]line НСП 1% : 1.09 [13:18:42]line НДС 12% : 13.16 [13:18:42]line Наличными: 124.00 [13:18:42]line Безнал.: 0.00 [13:18:42]line Место: АЗС № 135 "Партнер Нефть" [13:18:42]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:18:42]line СНО: Общий режим [13:18:42]line Чек 103 23.08.2024 13:18 [13:18:42]line Смена: 102 ФФД: 1.0 [13:18:42]line ЗНМ: 0300000144 [13:18:42]line РНМ: 0000000000162784 [13:18:42]line Версия ККМ: v1.0 [13:18:42]line ФМ: 0000000002094529 [13:18:42]line ФД: 15309 [13:18:42]line ФПД: 258519526754305 [13:18:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131844&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15309&fm=258519526754305&tin=02508201610067®Number=0000000000162784&sum=12400 [13:18:42]line 0 [13:18:42]written 0, free lines is 4095 [13:18:42]OFD Sender: Processing packet 15309 [packets to send 8, broken 7] [13:18:42]ProducePacketName [13:18:42]name=ofd_packets/00015309 [13:18:42]OFD Sender: To server: pG, [13:18:42]CommunicateWithHost lk.salyk.kg:30040 [13:18:42]ConnectInit lk.salyk.kg [13:18:42]Connected sock=9 [13:18:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 C8 01 00 00 B0 79 C0 01 FE 1C 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 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 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 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 70 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 67 00 00 00 F4 03 04 00 34 8C C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CD 3B 00 00 35 04 06 00 EB 1F 44 8F 48 01 56 52 B9 A0 C6 18 40 B6 [13:18:42]Write to MH i2c: 01 00 00 CB 2F FA [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 CB 2F 00 00 00 00 00 8D 0C 9A [13:18:42]RasterBufferAndPrint [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]written 0, free lines is 3222 [13:18:42]MH_Cut [13:18:42]Write to MH i2c: D1 01 00 D2 2F 01 D3 [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 01 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 01 00 D2 2F 00 D2 [13:18:42]Write to MH i2c: 01 00 00 D3 2F 02 [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 41 AD 47 00 A0 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 32 30 39 34 35 32 39 10 04 04 00 CD 3B 00 00 F4 03 04 00 90 36 C8 66 B6 04 01 00 00 CA DC 58 1B 74 B6 95 EB [13:18:42]CommunicateWithHost err = 0 [13:18:42]CheckOFDResponse [13:18:42]1017 (14) - 77093643461234 [13:18:42]1041 (16) - 0000000002094529 [13:18:42]1040 (4) - 15309 [13:18:42]1012 (4) - 23.08.2024 07:13 [13:18:42]1206 (1) - 0 [13:18:42]OFD Sender: Remove packet 15309 [13:18:42]ProducePacketName [13:18:42]name=ofd_packets/00015309 [13:18:42]NVStorageDeleteData [13:18:43]OFD Sender: No OFD packet to send [13:18:43]*** Cut start [13:18:43]*** Partial cut [13:18:43]*** CUTSNS_PIN = 1 [13:18:43]*** CUTSNS_PIN = 0 [13:18:43]*** Brake cut motor [13:18:44]Read from MH i2c: 01 [13:18:44]MH_I2C_Read... [13:18:44]*** Stop cut motor [13:18:44]*** Cut end [13:18:44]Read from MH i2c: 01 07 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: 01 07 00 D3 2F 00 00 00 00 00 FF 0F 17 [13:18:44]process_action close_receipt done [13:18:44]requested_data is exist [13:18:44]produce_requested_data [13:18:44]requested_item fm.sn is exist - process it [13:18:44]wFMCommunicate request_size=4 [13:18:44]MH_SAM_APDU [13:18:44]CAPDU: 80 11 00 00 [13:18:44]Write to MH i2c: E2 08 00 D4 2F 80 11 00 00 00 00 00 00 7D [13:18:44]Write i2c OK [13:18:44]MH_I2C_Read... [13:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:44]Read from MH i2c: E2 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 17 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 17 00 D4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 CF [13:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:18:44]wFMCommunicate OK [13:18:44]requested_item fd.num is exist - process it [13:18:44]SAM_PROTO_GetFieldsCounters [13:18:44]wFMCommunicate request_size=4 [13:18:44]MH_SAM_APDU [13:18:44]CAPDU: 80 13 00 00 [13:18:44]Write to MH i2c: E2 08 00 D5 2F 80 13 00 00 00 00 00 00 80 [13:18:44]Write i2c OK [13:18:44]MH_I2C_Read... [13:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:44]Read from MH i2c: E2 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 62 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 62 00 D5 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [13:18:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CD 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:44]wFMCommunicate OK [13:18:44]SAM_PROTO_GetFieldsCounters done [13:18:44]requested_item shift.num is exist - process it [13:18:44]requested_item shift.opened is exist - process it [13:18:44]req_shift_opened [13:18:44]FM_GetShiftState [13:18:44]SAM_PROTO_GetShiftState [13:18:44]wFMCommunicate request_size=4 [13:18:44]MH_SAM_APDU [13:18:44]CAPDU: 80 13 01 00 [13:18:44]Write to MH i2c: E2 08 00 D6 2F 80 13 01 00 00 00 00 00 82 [13:18:44]Write i2c OK [13:18:44]MH_I2C_Read... [13:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:44]Read from MH i2c: E2 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 D6 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 46 [13:18:44]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:18:44]wFMCommunicate OK [13:18:44]SAM_PROTO_GetShiftState done [13:18:44]FM_GetShiftState done [13:18:44]req_shift_opened done [13:18:44]requested_item shift.open_date is exist - process it [13:18:44]req_shift_open_date [13:18:44]req_shift_open_date done [13:18:44]produce_requested_data done [13:18:44]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15309,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:18:44]process_action_free close_receipt [13:18:44]json_value_free [13:18:44]json_value_free done [13:18:44]process_json_proto returns [13:18:44]Send response to host [13:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15309,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:18:44]free response buf [13:18:44]execute_script done [13:18:44]execute_script returns [13:18:44]free content buf [13:18:44]Sock 8.Close socket [13:18:44]Sock 8.Thread stoped [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:20]accept exits with 10 [13:22:20]New connection [13:22:20]New thread 3066944868 created [13:22:20]Thread 3066801508 joined [13:22:20]Waiting for new connection... [13:22:20] Sock 10.Parse request [13:22:20]Sock 10.Check first char [13:22:20]Sock 10.First char is OK [13:22:20]request: POST /json_proto HTTP/1.0 [13:22:20]Method: POST [13:22:20]URL: /json_proto [13:22:20]Method is POST - this is cgi request [13:22:20]url: /json_proto [13:22:20]query_string will be loaded in cgi processing [13:22:20]execute_cgi json_proto POST (null) [13:22:20]execute_cgi path=json_proto method=POST [13:22:20]POST find Content-Length [13:22:20]Host: 172.17.44.4:8080 [13:22:20]Content-Length: 654 [13:22:20]Content-Type: application/json [13:22:20] [13:22:20]POST finish read [13:22:20]Found Content-Length = 654 [13:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)151294", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:20]execute_script... [13:22: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)151294", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:20]POST & json_proto [13:22:20]process_json_proto [13:22:20]json parsed OK: [13:22:20]protocol is kg_v1.0 [13:22:20]action value=close_receipt [13:22:20]process_action close_receipt [13:22:20]cmd_close_receipt [13:22:20]MH_GetDate [13:22:20]Write to MH i2c: F0 00 00 D7 2F F5 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: F0 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: F0 09 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: F0 09 00 D7 2F 00 11 8D C8 66 0F 81 47 66 07 [13:22:20]GetLastDocTimeStamp 1724419124 [13:22:20]current date 1724419345 [13:22:20]FM_GetShiftState [13:22:20]SAM_PROTO_GetShiftState [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 13 01 00 [13:22:20]Write to MH i2c: E2 08 00 D8 2F 80 13 01 00 00 00 00 00 84 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 0E 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 0E 00 D8 2F 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 48 [13:22:20]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:22:20]wFMCommunicate OK [13:22:20]SAM_PROTO_GetShiftState done [13:22:20]FM_GetShiftState done [13:22:20]opened in 1724372406 [13:22:20]opened+sec_in_day 1724458806 [13:22:20]quantity*price = 9500 [13:22:20]sum+1 = 9501 [13:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 104 23.08.2024 13:22 Смена: 102 ФФД: 1.0 ЗНМ: 0300000144 РНМ: 0000000000162784 Версия ККМ: v1.0 ФМ: 0000000002094529 ФД: 15310 ФПД: 278094145408002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132225&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15310&fm=278094145408002&tin=02508201610067®Number=0000000000162784&sum=9500 0 [13:22:21]StoreToDocumentArchive [13:22:21]shift 102 fd 15310 [13:22:21]save to /storage/0102/doc_00015310 [13:22:21]save last doc name /storage/0102/doc_00015310 to /storage/kkm_last_doc_name [13:22:21]save OK [13:22:21]Clear old archive folders... [13:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:22:21]tlvbuf is 004AE260 [13:22:21]SAM_PROTO_ClearQueue [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 09 00 00 [13:22:21]Write to MH i2c: E2 08 00 E5 2F 80 09 00 00 00 00 00 00 86 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [13:22:21]RAPDU: 90 00 [13:22:21]wFMCommunicate OK [13:22:21]SAM_PROTO_ClearQueue done [13:22:21]KKMCreateOFDPacket [13:22:21]OFDProtocolAddRootSTLVToBuf [13:22:21]FM_MakeSignedData [13:22:21]FM_MakeSignedData [13:22:21]SAM_PROTO_SignData [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 0D 01 02 [13:22:21]Write to MH i2c: E2 08 00 E6 2F 80 0D 01 02 00 00 00 00 8E [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [13:22:21]RAPDU: 90 00 [13:22:21]wFMCommunicate OK [13:22:21]wFMCommunicate request_size=255 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 11 8D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:22:21]Write to MH i2c: E2 02 01 E7 2F 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 11 8D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 C8 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 E7 2F 00 90 00 8A [13:22:22]RAPDU: 90 00 [13:22:22]wFMCommunicate OK [13:22:22]wFMCommunicate request_size=52 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CE 3B 00 00 35 04 06 00 FC EC D6 C0 4C 02 [13:22:22]Write to MH i2c: E2 37 00 E8 2F 80 0D 02 02 2F 00 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CE 3B 00 00 35 04 06 00 FC EC D6 C0 4C 02 00 00 2B [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 03 00 E8 2F 00 90 00 8B [13:22:22]RAPDU: 90 00 [13:22:22]wFMCommunicate OK [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 0D 03 02 [13:22:22]Write to MH i2c: E2 08 00 E9 2F 80 0D 03 02 00 00 00 00 93 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0B 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0B 00 E9 2F 00 1B DF CE F1 3B 58 93 B6 90 00 29 [13:22:22]RAPDU: 1B DF CE F1 3B 58 93 B6 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_SignData done [13:22:22]FM_MakeSignedData done [13:22:22]CreateOFDProtocolMessage [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 11 00 00 [13:22:22]Write to MH i2c: E2 08 00 EA 2F 80 11 00 00 00 00 00 00 93 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 17 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 17 00 EA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 E5 [13:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:22:22]wFMCommunicate OK [13:22:22]CreateOFDProtocolMessage done [13:22:22]OFDSenderStorePacket 15310 [13:22:22]StoreOFDPacket docnum=15310 [13:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 62 BE 31 01 17 E3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 11 8D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CE 3B 00 00 35 04 06 00 FC EC D6 C0 4C 02 1B DF CE F1 3B 58 93 B6 [13:22:22]CheckFolder [13:22:22]dirname=/storage/ofd_packets [13:22:22]CheckFolder done [13:22:22]ProducePacketName [13:22:22]name=ofd_packets/00015310 [13:22:22]NVStorageSaveData ofd_packets/00015310 [13:22:22]File name is /storage/ofd_packets/00015310 [13:22:22]Write 343 bytes [13:22:22]NVStorageSaveData done [13:22:22]OFDSenderStorePacket done [13:22:22]KKMCreateOFDPacket done [13:22:22]NVStorageSaveData kkm_last_timestamp [13:22:22]File name is /storage/kkm_last_timestamp [13:22:22]Write 4 bytes [13:22:22]NVStorageSaveData done [13:22:22]ExternCall_PrintAddStr [13:22:22]wPrintStart [13:22:22]Write to MH i2c: 01 00 00 EB 2F 1A [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: 01 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: 01 07 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: 01 07 00 EB 2F 00 00 00 00 00 FF 0F 2F [13:22:22]RasterBufferAndPrint [13:22:22]line Счет N : (3)151294 [13:22:22]line ИНН: 02508201610067 [13:22:22]line Контрольно-Кассовый Чек [13:22:22]line ПРОДАЖА [13:22:22]line Товар: 4700000480050 [13:22:22]line Напиток Nitro Energy эн green ж/б 0,45л [13:22:22]line 1.000 * 95.00 [13:22:22]line = 95.00 [13:22:22]line НДС 12% НСП 1% [13:22:22]line > о реализуемом товаре [13:22:22]line ИТОГО: 95.00 [13:22:22]line НСП 1% : 0.84 [13:22:22]line НДС 12% : 10.09 [13:22:22]line Наличными: 95.00 [13:22:22]line Безнал.: 0.00 [13:22:22]line Место: АЗС № 135 "Партнер Нефть" [13:22:22]line Адрес: 720000, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:22:22]line СНО: Общий режим [13:22:22]line Чек 104 23.08.2024 13:22 [13:22:22]line Смена: 102 ФФД: 1.0 [13:22:22]line ЗНМ: 0300000144 [13:22:22]line РНМ: 0000000000162784 [13:22:22]line Версия ККМ: v1.0 [13:22:22]line ФМ: 0000000002094529 [13:22:22]line ФД: 15310 [13:22:22]line ФПД: 278094145408002 [13:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132225&type=1&operation_type=1&fn_number=0000000002094529&fd_number=15310&fm=278094145408002&tin=02508201610067®Number=0000000000162784&sum=9500 [13:22:22]line 0 [13:22:22]OFD Sender: Processing packet 15310 [packets to send 8, broken 7] [13:22:22]ProducePacketName [13:22:22]name=ofd_packets/00015310 [13:22:22]OFD Sender: To server: pG, [13:22:22]CommunicateWithHost lk.salyk.kg:30040 [13:22:22]ConnectInit lk.salyk.kg [13:22:22]written 0, free lines is 4095 [13:22:22]Connected sock=9 [13:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 39 01 00 00 62 BE 31 01 17 E3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 11 8D C8 66 0E 04 04 00 66 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CE 3B 00 00 35 04 06 00 FC EC D6 C0 4C 02 1B DF CE F1 3B 58 93 B6 [13:22:23]Write to MH i2c: 01 00 00 14 30 44 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 07 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 07 00 14 30 00 00 00 00 00 E7 0C 3E [13:22:23]RasterBufferAndPrint [13:22:23]line [13:22:23]line [13:22:23]line [13:22:23]line [13:22:23]line [13:22:23]written 0, free lines is 3309 [13:22:23]MH_Cut [13:22:23]Write to MH i2c: D1 01 00 1B 30 01 1D [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: D1 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: D1 01 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: D1 01 00 1B 30 00 1C [13:22:23]Write to MH i2c: 01 00 00 1C 30 4C [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 86 A6 47 00 16 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CE 3B 00 00 F4 03 04 00 6C 37 C8 66 B6 04 01 00 00 FF 79 C1 BD 90 AD 3D 4B [13:22:23]CommunicateWithHost err = 0 [13:22:23]CheckOFDResponse [13:22:23]1017 (14) - 77093643461234 [13:22:23]1041 (16) - 0000000002094529 [13:22:23]1040 (4) - 15310 [13:22:23]1012 (4) - 23.08.2024 07:17 [13:22:23]1206 (1) - 0 [13:22:23]OFD Sender: Remove packet 15310 [13:22:23]ProducePacketName [13:22:23]name=ofd_packets/00015310 [13:22:23]NVStorageDeleteData [13:22:23]OFD Sender: No OFD packet to send [13:22:23]*** Cut start [13:22:23]*** Partial cut [13:22:23]*** CUTSNS_PIN = 1 [13:22:23]*** CUTSNS_PIN = 0 [13:22:24]*** Brake cut motor [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]*** Stop cut motor [13:22:24]*** Cut end [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 1C 30 00 00 00 00 00 FF 0F 61 [13:22:24]process_action close_receipt done [13:22:24]requested_data is exist [13:22:24]produce_requested_data [13:22:24]requested_item fm.sn is exist - process it [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 11 00 00 [13:22:24]Write to MH i2c: E2 08 00 1D 30 80 11 00 00 00 00 00 00 C7 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 17 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 17 00 1D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 19 [13:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:22:24]wFMCommunicate OK [13:22:24]requested_item fd.num is exist - process it [13:22:24]SAM_PROTO_GetFieldsCounters [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 13 00 00 [13:22:24]Write to MH i2c: E2 08 00 1E 30 80 13 00 00 00 00 00 00 CA [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 62 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 62 00 1E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [13:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:24]wFMCommunicate OK [13:22:24]SAM_PROTO_GetFieldsCounters done [13:22:24]requested_item shift.num is exist - process it [13:22:24]requested_item shift.opened is exist - process it [13:22:24]req_shift_opened [13:22:24]FM_GetShiftState [13:22:24]SAM_PROTO_GetShiftState [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 13 01 00 [13:22:24]Write to MH i2c: E2 08 00 1F 30 80 13 01 00 00 00 00 00 CC [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 0E 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 0E 00 1F 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 90 [13:22:24]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:22:24]wFMCommunicate OK [13:22:24]SAM_PROTO_GetShiftState done [13:22:24]FM_GetShiftState done [13:22:24]req_shift_opened done [13:22:24]requested_item shift.open_date is exist - process it [13:22:24]req_shift_open_date [13:22:24]req_shift_open_date done [13:22:24]produce_requested_data done [13:22:24]produce_requested_data return {"fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:22:24]process_action_free close_receipt [13:22:24]json_value_free [13:22:24]json_value_free done [13:22:24]process_json_proto returns [13:22:24]Send response to host [13:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:22:24]free response buf [13:22:24]execute_script done [13:22:24]execute_script returns [13:22:24]free content buf [13:22:24]Sock 10.Close socket [13:22:24]Sock 10.Thread stoped [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:15]accept exits with 8 [13:46:15]New connection [13:46:15]New thread 3066801508 created [13:46:15]Thread 3066944868 joined [13:46:15]Waiting for new connection... [13:46:15] Sock 8.Parse request [13:46:15]Sock 8.Check first char [13:46:15]Sock 8.First char is OK [13:46:15]request: POST /json_proto HTTP/1.0 [13:46:15]Method: POST [13:46:15]URL: /json_proto [13:46:15]Method is POST - this is cgi request [13:46:15]url: /json_proto [13:46:15]query_string will be loaded in cgi processing [13:46:15]execute_cgi json_proto POST (null) [13:46:15]execute_cgi path=json_proto method=POST [13:46:15]POST find Content-Length [13:46:15]Host: 172.17.44.4:8080 [13:46:15]Content-Length: 215 [13:46:15]Content-Type: application/json [13:46:15] [13:46:15]POST finish read [13:46:15]Found Content-Length = 215 [13:46:15]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" ] } } [13:46:15]execute_script... [13:46:15]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" ] } } [13:46:15]POST & json_proto [13:46:15]process_json_proto [13:46:15]json parsed OK: [13:46:15]protocol is kg_v1.0 [13:46:15]action value=get_value [13:46:15]process_action get_value [13:46:15]cmd_get_value [13:46:15]process_action get_value done [13:46:15]requested_data is exist [13:46:15]produce_requested_data [13:46:15]requested_item kkm.sn is exist - process it [13:46:15]requested_item kkm.ver is exist - process it [13:46:15]requested_item fm.sn is exist - process it [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 11 00 00 [13:46:15]Write to MH i2c: E2 08 00 20 30 80 11 00 00 00 00 00 00 CA [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 17 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 17 00 20 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 1C [13:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:46:15]wFMCommunicate OK [13:46:15]requested_item fd.num is exist - process it [13:46:15]SAM_PROTO_GetFieldsCounters [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 13 00 00 [13:46:15]Write to MH i2c: E2 08 00 21 30 80 13 00 00 00 00 00 00 CD [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 62 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 62 00 21 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [13:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:15]wFMCommunicate OK [13:46:15]SAM_PROTO_GetFieldsCounters done [13:46:15]requested_item shift.num is exist - process it [13:46:15]requested_item shift.opened is exist - process it [13:46:15]req_shift_opened [13:46:15]FM_GetShiftState [13:46:15]SAM_PROTO_GetShiftState [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 13 01 00 [13:46:15]Write to MH i2c: E2 08 00 22 30 80 13 01 00 00 00 00 00 CF [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 0E 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 0E 00 22 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 93 [13:46:15]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:46:15]wFMCommunicate OK [13:46:15]SAM_PROTO_GetShiftState done [13:46:15]FM_GetShiftState done [13:46:15]req_shift_opened done [13:46:15]requested_item shift.open_date is exist - process it [13:46:15]req_shift_open_date [13:46:15]req_shift_open_date done [13:46:15]produce_requested_data done [13:46:15]produce_requested_data return {"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:46:15]process_action_free get_value [13:46:15]json_value_free [13:46:15]json_value_free done [13:46:15]process_json_proto returns [13:46:15]Send response to host [13:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:46:15]free response buf [13:46:15]execute_script done [13:46:15]execute_script returns [13:46:15]free content buf [13:46:15]Sock 8.Close socket [13:46:15]Sock 8.Thread stoped [13:46:15]accept exits with 9 [13:46:15]New connection [13:46:15]New thread 3066944868 created [13:46:15]Thread 3066801508 joined [13:46:15]Waiting for new connection... [13:46:15] Sock 9.Parse request [13:46:15]Sock 9.Check first char [13:46:15]Sock 9.First char is OK [13:46:15]request: POST /json_proto HTTP/1.0 [13:46:15]Method: POST [13:46:15]URL: /json_proto [13:46:15]Method is POST - this is cgi request [13:46:15]url: /json_proto [13:46:15]query_string will be loaded in cgi processing [13:46:15]execute_cgi json_proto POST (null) [13:46:15]execute_cgi path=json_proto method=POST [13:46:15]POST find Content-Length [13:46:15]Host: 172.17.44.4:8080 [13:46:15]Content-Length: 331 [13:46:15]Content-Type: application/json [13:46:15] [13:46:15]POST finish read [13:46:15]Found Content-Length = 331 [13:46:15]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" ] } } [13:46:15]execute_script... [13:46:15]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" ] } } [13:46:15]POST & json_proto [13:46:15]process_json_proto [13:46:15]json parsed OK: [13:46:15]protocol is kg_v1.0 [13:46:15]action value=get_value [13:46:15]process_action get_value [13:46:15]cmd_get_value [13:46:15]process_action get_value done [13:46:15]requested_data is exist [13:46:15]produce_requested_data [13:46:15]requested_item fm.sale.total is exist - process it [13:46:15]SAM_PROTO_GetFMData [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 13 03 00 [13:46:15]Write to MH i2c: E2 08 00 23 30 80 13 03 00 00 00 00 00 D2 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:46:16]Read from MH i2c: E2 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 23 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 B2 [13:46:16]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:46:16]wFMCommunicate OK [13:46:16]wFMCommunicate request_size=4 [13:46:16]MH_SAM_APDU [13:46:16]CAPDU: 80 17 00 00 [13:46:16]Write to MH i2c: E2 08 00 24 30 80 17 00 00 00 00 00 00 D4 [13:46:16]Write i2c OK [13:46:16]MH_I2C_Read... [13:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:16]Read from MH i2c: E2 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 24 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [13:46:16]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:46:16]wFMCommunicate OK [13:46:16]wFMCommunicate request_size=4 [13:46:16]MH_SAM_APDU [13:46:16]CAPDU: 80 17 00 00 [13:46:16]Write to MH i2c: E2 08 00 25 30 80 17 00 00 00 00 00 00 D5 [13:46:16]Write i2c OK [13:46:16]MH_I2C_Read... [13:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:16]Read from MH i2c: E2 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 [13:46:16]MH_I2C_Read... [13:46:16]Read from MH i2c: E2 FD 00 25 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [13:46:16]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:46:16]wFMCommunicate OK [13:46:16]wFMCommunicate request_size=4 [13:46:16]MH_SAM_APDU [13:46:16]CAPDU: 80 17 00 00 [13:46:16]Write to MH i2c: E2 08 00 26 30 80 17 00 00 00 00 00 00 D6 [13:46:16]Write i2c OK [13:46:16]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 FD 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 FD 00 26 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 48 [13:46:17]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:46:17]wFMCommunicate OK [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 17 00 00 [13:46:17]Write to MH i2c: E2 08 00 27 30 80 17 00 00 00 00 00 00 D7 [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 E0 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 E0 00 27 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [13:46:17]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:46:17]wFMCommunicate OK [13:46:17]SAM_PROTO_GetFMData done [13:46:17]requested_item fm.sale_refund.total is exist - process it [13:46:17]requested_item fm.buy.total is exist - process it [13:46:17]requested_item shift.sale.total is exist - process it [13:46:17]SAM_PROTO_GetShiftData [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 13 02 00 [13:46:17]Write to MH i2c: E2 08 00 28 30 80 13 02 00 00 00 00 00 D6 [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 FD 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 FD 00 28 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [13:46:17]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:46:17]wFMCommunicate OK [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 17 00 00 [13:46:17]Write to MH i2c: E2 08 00 29 30 80 17 00 00 00 00 00 00 D9 [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:18]Read from MH i2c: E2 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 29 30 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 FB [13:46:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [13:46:18]wFMCommunicate OK [13:46:18]wFMCommunicate request_size=4 [13:46:18]MH_SAM_APDU [13:46:18]CAPDU: 80 17 00 00 [13:46:18]Write to MH i2c: E2 08 00 2A 30 80 17 00 00 00 00 00 00 DA [13:46:18]Write i2c OK [13:46:18]MH_I2C_Read... [13:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:18]Read from MH i2c: E2 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 2A 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [13:46:18]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 [13:46:18]wFMCommunicate OK [13:46:18]wFMCommunicate request_size=4 [13:46:18]MH_SAM_APDU [13:46:18]CAPDU: 80 17 00 00 [13:46:18]Write to MH i2c: E2 08 00 2B 30 80 17 00 00 00 00 00 00 DB [13:46:18]Write i2c OK [13:46:18]MH_I2C_Read... [13:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:46:18]Read from MH i2c: E2 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 [13:46:18]MH_I2C_Read... [13:46:18]Read from MH i2c: E2 FD 00 2B 30 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 4D [13:46:18]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 [13:46:18]wFMCommunicate OK [13:46:18]wFMCommunicate request_size=4 [13:46:18]MH_SAM_APDU [13:46:18]CAPDU: 80 17 00 00 [13:46:18]Write to MH i2c: E2 08 00 2C 30 80 17 00 00 00 00 00 00 DC [13:46:18]Write i2c OK [13:46:18]MH_I2C_Read... [13:46:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:46:19]Read from MH i2c: E2 [13:46:19]MH_I2C_Read... [13:46:19]Read from MH i2c: E2 CB 00 [13:46:19]MH_I2C_Read... [13:46:19]Read from MH i2c: E2 CB 00 2C 30 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 C5 [13:46:19]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 [13:46:19]wFMCommunicate OK [13:46:19]SAM_PROTO_GetShiftData done [13:46:19]requested_item shift.sale.total_cash is exist - process it [13:46:19]requested_item shift.sale_refund.total is exist - process it [13:46:19]requested_item shift.sale_refund.total_cash is exist - process it [13:46:19]requested_item shift.buy.total is exist - process it [13:46:19]requested_item shift.buy.total_cash is exist - process it [13:46:19]produce_requested_data done [13:46:19]produce_requested_data return {"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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} [13:46:19]process_action_free get_value [13:46:19]json_value_free [13:46:19]json_value_free done [13:46:19]process_json_proto returns [13:46:19]Send response to host [13:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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}}} [13:46:19]free response buf [13:46:19]execute_script done [13:46:19]execute_script returns [13:46:19]free content buf [13:46:19]Sock 9.Close socket [13:46:19]Sock 9.Thread stoped [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:49:57]accept exits with 8 [13:49:57]New connection [13:49:57]New thread 3066801508 created [13:49:57]Thread 3066944868 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 8.Parse request [13:49:57]Sock 8.Check first char [13:49:57]Sock 8.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.44.4:8080 [13:49:57]Content-Length: 215 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 215 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]execute_script... [13:49:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=get_value [13:49:57]process_action get_value [13:49:57]cmd_get_value [13:49:57]process_action get_value done [13:49:57]requested_data is exist [13:49:57]produce_requested_data [13:49:57]requested_item kkm.sn is exist - process it [13:49:57]requested_item kkm.ver is exist - process it [13:49:57]requested_item fm.sn is exist - process it [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 11 00 00 [13:49:57]Write to MH i2c: E2 08 00 2D 30 80 11 00 00 00 00 00 00 D7 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 17 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 17 00 2D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 29 [13:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:49:57]wFMCommunicate OK [13:49:57]requested_item fd.num is exist - process it [13:49:57]SAM_PROTO_GetFieldsCounters [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 00 00 [13:49:57]Write to MH i2c: E2 08 00 2E 30 80 13 00 00 00 00 00 00 DA [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 62 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 62 00 2E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [13:49:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetFieldsCounters done [13:49:57]requested_item shift.num is exist - process it [13:49:57]requested_item shift.opened is exist - process it [13:49:57]req_shift_opened [13:49:57]FM_GetShiftState [13:49:57]SAM_PROTO_GetShiftState [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 01 00 [13:49:57]Write to MH i2c: E2 08 00 2F 30 80 13 01 00 00 00 00 00 DC [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 2F 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 A0 [13:49:57]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetShiftState done [13:49:57]FM_GetShiftState done [13:49:57]req_shift_opened done [13:49:57]requested_item shift.open_date is exist - process it [13:49:57]req_shift_open_date [13:49:57]req_shift_open_date done [13:49:57]produce_requested_data done [13:49:57]produce_requested_data return {"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:49:57]process_action_free get_value [13:49:57]json_value_free [13:49:57]json_value_free done [13:49:57]process_json_proto returns [13:49:57]Send response to host [13:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:49:57]free response buf [13:49:57]execute_script done [13:49:57]execute_script returns [13:49:57]free content buf [13:49:57]Sock 8.Close socket [13:49:57]Sock 8.Thread stoped [13:49:57]accept exits with 9 [13:49:57]New connection [13:49:57]New thread 3066944868 created [13:49:57]Thread 3066801508 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 9.Parse request [13:49:57]Sock 9.Check first char [13:49:57]Sock 9.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.44.4:8080 [13:49:57]Content-Length: 331 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 331 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:49:57]execute_script... [13:49:57]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" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=get_value [13:49:57]process_action get_value [13:49:57]cmd_get_value [13:49:57]process_action get_value done [13:49:57]requested_data is exist [13:49:57]produce_requested_data [13:49:57]requested_item fm.sale.total is exist - process it [13:49:57]SAM_PROTO_GetFMData [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 03 00 [13:49:57]Write to MH i2c: E2 08 00 30 30 80 13 03 00 00 00 00 00 DF [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 30 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 BF [13:49:58]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 17 00 00 [13:49:58]Write to MH i2c: E2 08 00 31 30 80 17 00 00 00 00 00 00 E1 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 31 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [13:49:58]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 17 00 00 [13:49:58]Write to MH i2c: E2 08 00 32 30 80 17 00 00 00 00 00 00 E2 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 FD 00 32 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [13:49:58]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 17 00 00 [13:49:58]Write to MH i2c: E2 08 00 33 30 80 17 00 00 00 00 00 00 E3 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 FD 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 FD 00 33 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 55 [13:49:59]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 17 00 00 [13:49:59]Write to MH i2c: E2 08 00 34 30 80 17 00 00 00 00 00 00 E4 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 E0 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 E0 00 34 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [13:49:59]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_GetFMData done [13:49:59]requested_item fm.sale_refund.total is exist - process it [13:49:59]requested_item fm.buy.total is exist - process it [13:49:59]requested_item shift.sale.total is exist - process it [13:49:59]SAM_PROTO_GetShiftData [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 13 02 00 [13:49:59]Write to MH i2c: E2 08 00 35 30 80 13 02 00 00 00 00 00 E3 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 FD 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 FD 00 35 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 34 [13:49:59]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 17 00 00 [13:49:59]Write to MH i2c: E2 08 00 36 30 80 17 00 00 00 00 00 00 E6 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:50:00]OFD Sender: No OFD packet to send [13:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:00]Read from MH i2c: E2 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 36 30 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 [13:50:00]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 [13:50:00]wFMCommunicate OK [13:50:00]wFMCommunicate request_size=4 [13:50:00]MH_SAM_APDU [13:50:00]CAPDU: 80 17 00 00 [13:50:00]Write to MH i2c: E2 08 00 37 30 80 17 00 00 00 00 00 00 E7 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:00]Read from MH i2c: E2 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 37 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:00]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 [13:50:00]wFMCommunicate OK [13:50:00]wFMCommunicate request_size=4 [13:50:00]MH_SAM_APDU [13:50:00]CAPDU: 80 17 00 00 [13:50:00]Write to MH i2c: E2 08 00 38 30 80 17 00 00 00 00 00 00 E8 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:00]Read from MH i2c: E2 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 FD 00 38 30 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 [13:50:00]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 [13:50:00]wFMCommunicate OK [13:50:00]wFMCommunicate request_size=4 [13:50:00]MH_SAM_APDU [13:50:00]CAPDU: 80 17 00 00 [13:50:00]Write to MH i2c: E2 08 00 39 30 80 17 00 00 00 00 00 00 E9 [13:50:00]Write i2c OK [13:50:00]MH_I2C_Read... [13:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:50:00]Read from MH i2c: E2 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 CB 00 [13:50:00]MH_I2C_Read... [13:50:00]Read from MH i2c: E2 CB 00 39 30 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 [13:50:01]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 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftData done [13:50:01]requested_item shift.sale.total_cash is exist - process it [13:50:01]requested_item shift.sale_refund.total is exist - process it [13:50:01]requested_item shift.sale_refund.total_cash is exist - process it [13:50:01]requested_item shift.buy.total is exist - process it [13:50:01]requested_item shift.buy.total_cash is exist - process it [13:50:01]produce_requested_data done [13:50:01]produce_requested_data return {"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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} [13:50:01]process_action_free get_value [13:50:01]json_value_free [13:50:01]json_value_free done [13:50:01]process_json_proto returns [13:50:01]Send response to host [13:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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}}} [13:50:01]free response buf [13:50:01]execute_script done [13:50:01]execute_script returns [13:50:01]free content buf [13:50:01]Sock 9.Close socket [13:50:01]Sock 9.Thread stoped [13:50:01]accept exits with 8 [13:50:01]New connection [13:50:01]New thread 3066801508 created [13:50:01]Thread 3066944868 joined [13:50:01]Waiting for new connection... [13:50:01] Sock 8.Parse request [13:50:01]Sock 8.Check first char [13:50:01]Sock 8.First char is OK [13:50:01]request: POST /json_proto HTTP/1.0 [13:50:01]Method: POST [13:50:01]URL: /json_proto [13:50:01]Method is POST - this is cgi request [13:50:01]url: /json_proto [13:50:01]query_string will be loaded in cgi processing [13:50:01]execute_cgi json_proto POST (null) [13:50:01]execute_cgi path=json_proto method=POST [13:50:01]POST find Content-Length [13:50:01]Host: 172.17.44.4:8080 [13:50:01]Content-Length: 331 [13:50:01]Content-Type: application/json [13:50:01] [13:50:01]POST finish read [13:50:01]Found Content-Length = 331 [13:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:50:01]execute_script... [13:50:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:50:01]POST & json_proto [13:50:01]process_json_proto [13:50:01]json parsed OK: [13:50:01]protocol is kg_v1.0 [13:50:01]action value=get_value [13:50:01]process_action get_value [13:50:01]cmd_get_value [13:50:01]process_action get_value done [13:50:01]requested_data is exist [13:50:01]produce_requested_data [13:50:01]requested_item fm.sale.total is exist - process it [13:50:01]SAM_PROTO_GetFMData [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 03 00 [13:50:01]Write to MH i2c: E2 08 00 3A 30 80 13 03 00 00 00 00 00 E9 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 FD 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 FD 00 3A 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 C9 [13:50:01]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:50:01]wFMCommunicate OK [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 17 00 00 [13:50:01]Write to MH i2c: E2 08 00 3B 30 80 17 00 00 00 00 00 00 EB [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 FD 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 FD 00 3B 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [13:50:01]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 17 00 00 [13:50:02]Write to MH i2c: E2 08 00 3C 30 80 17 00 00 00 00 00 00 EC [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 FD 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 FD 00 3C 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [13:50:02]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 17 00 00 [13:50:02]Write to MH i2c: E2 08 00 3D 30 80 17 00 00 00 00 00 00 ED [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 FD 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 FD 00 3D 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 5F [13:50:02]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 17 00 00 [13:50:02]Write to MH i2c: E2 08 00 3E 30 80 17 00 00 00 00 00 00 EE [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 E0 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 E0 00 3E 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [13:50:03]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:50:03]wFMCommunicate OK [13:50:03]SAM_PROTO_GetFMData done [13:50:03]requested_item fm.sale_refund.total is exist - process it [13:50:03]requested_item fm.buy.total is exist - process it [13:50:03]requested_item shift.sale.total is exist - process it [13:50:03]SAM_PROTO_GetShiftData [13:50:03]wFMCommunicate request_size=4 [13:50:03]MH_SAM_APDU [13:50:03]CAPDU: 80 13 02 00 [13:50:03]Write to MH i2c: E2 08 00 3F 30 80 13 02 00 00 00 00 00 ED [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 FD 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 FD 00 3F 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3E [13:50:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:03]wFMCommunicate OK [13:50:03]wFMCommunicate request_size=4 [13:50:03]MH_SAM_APDU [13:50:03]CAPDU: 80 17 00 00 [13:50:03]Write to MH i2c: E2 08 00 40 30 80 17 00 00 00 00 00 00 F0 [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 FD 00 [13:50:03]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 FD 00 40 30 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 12 [13:50:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [13:50:04]wFMCommunicate OK [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 17 00 00 [13:50:04]Write to MH i2c: E2 08 00 41 30 80 17 00 00 00 00 00 00 F1 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 FD 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 FD 00 41 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A8 [13:50:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [13:50:04]wFMCommunicate OK [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 17 00 00 [13:50:04]Write to MH i2c: E2 08 00 42 30 80 17 00 00 00 00 00 00 F2 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 FD 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 FD 00 42 30 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 64 [13:50:04]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 [13:50:05]wFMCommunicate OK [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 17 00 00 [13:50:05]Write to MH i2c: E2 08 00 43 30 80 17 00 00 00 00 00 00 F3 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]OFD Sender: No OFD packet to send [13:50:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 CB 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 CB 00 43 30 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [13:50:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_GetShiftData done [13:50:05]requested_item shift.sale.total_cash is exist - process it [13:50:05]requested_item shift.sale_refund.total is exist - process it [13:50:05]requested_item shift.sale_refund.total_cash is exist - process it [13:50:05]requested_item shift.buy.total is exist - process it [13:50:05]requested_item shift.buy.total_cash is exist - process it [13:50:05]produce_requested_data done [13:50:05]produce_requested_data return {"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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} [13:50:05]process_action_free get_value [13:50:05]json_value_free [13:50:05]json_value_free done [13:50:05]process_json_proto returns [13:50:05]Send response to host [13:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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}}} [13:50:05]free response buf [13:50:05]execute_script done [13:50:05]execute_script returns [13:50:05]free content buf [13:50:05]Sock 8.Close socket [13:50:05]Sock 8.Thread stoped [13:50:05]accept exits with 9 [13:50:05]New connection [13:50:05]New thread 3066944868 created [13:50:05]Thread 3066801508 joined [13:50:05]Waiting for new connection... [13:50:05] Sock 9.Parse request [13:50:05]Sock 9.Check first char [13:50:05]Sock 9.First char is OK [13:50:05]request: POST /json_proto HTTP/1.0 [13:50:05]Method: POST [13:50:05]URL: /json_proto [13:50:05]Method is POST - this is cgi request [13:50:05]url: /json_proto [13:50:05]query_string will be loaded in cgi processing [13:50:05]execute_cgi json_proto POST (null) [13:50:05]execute_cgi path=json_proto method=POST [13:50:05]POST find Content-Length [13:50:05]Host: 172.17.44.4:8080 [13:50:05]Content-Length: 269 [13:50:05]Content-Type: application/json [13:50:05] [13:50:05]POST finish read [13:50:05]Found Content-Length = 269 [13:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u043C\u0441\u0430\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:05]execute_script... [13:50:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u043C\u0441\u0430\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:05]POST & json_proto [13:50:05]process_json_proto [13:50:05]json parsed OK: [13:50:05]protocol is kg_v1.0 [13:50:05]action value=x_report [13:50:05]process_action x_report [13:50:05]cmd_x_report [13:50:05]MH_GetDate [13:50:05]Write to MH i2c: F0 00 00 44 30 63 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 09 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 09 00 44 30 00 92 93 C8 66 0F 81 47 66 FC [13:50:05]GetLastDocTimeStamp 1724419345 [13:50:05]current date 1724421010 [13:50:05]FM_GetShiftState [13:50:05]SAM_PROTO_GetShiftState [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 13 01 00 [13:50:05]Write to MH i2c: E2 08 00 45 30 80 13 01 00 00 00 00 00 F2 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 0E 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 0E 00 45 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 B6 [13:50:05]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_GetShiftState done [13:50:05]FM_GetShiftState done [13:50:05]KKMCreateXReportDocument [13:50:05]Load OK [13:50:05]Malloc new data [13:50:05]MH_GetDate [13:50:05]Write to MH i2c: F0 00 00 46 30 65 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 09 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: F0 09 00 46 30 00 92 93 C8 66 0F 81 47 66 FE [13:50:05]Malloc new data [13:50:05]Malloc new data [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 11 00 00 [13:50:05]Write to MH i2c: E2 08 00 47 30 80 11 00 00 00 00 00 00 F1 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 47 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 43 [13:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_GetFieldsCounters [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 13 00 00 [13:50:05]Write to MH i2c: E2 08 00 48 30 80 13 00 00 00 00 00 00 F4 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 62 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 62 00 48 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [13:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:05]wFMCommunicate OK [13:50:05]SAM_PROTO_GetFieldsCounters done [13:50:05]Malloc new data [13:50:05]Malloc new data [13:50:05]Malloc new data [13:50:05]KKMCreateXReportDocument OK [13:50:05]KKMSetXReportData OK [13:50:05]KKMPrepareXReportFMData [13:50:05]SAM_PROTO_GetShiftData [13:50:05]wFMCommunicate request_size=4 [13:50:05]MH_SAM_APDU [13:50:05]CAPDU: 80 13 02 00 [13:50:05]Write to MH i2c: E2 08 00 49 30 80 13 02 00 00 00 00 00 F7 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:50:06]Read from MH i2c: E2 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 FD 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 FD 00 49 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 48 [13:50:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:06]wFMCommunicate OK [13:50:06]wFMCommunicate request_size=4 [13:50:06]MH_SAM_APDU [13:50:06]CAPDU: 80 17 00 00 [13:50:06]Write to MH i2c: E2 08 00 4A 30 80 17 00 00 00 00 00 00 FA [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:06]Read from MH i2c: E2 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 FD 00 [13:50:06]MH_I2C_Read... [13:50:06]Read from MH i2c: E2 FD 00 4A 30 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 1C [13:50:06]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 [13:50:06]wFMCommunicate OK [13:50:06]wFMCommunicate request_size=4 [13:50:06]MH_SAM_APDU [13:50:06]CAPDU: 80 17 00 00 [13:50:06]Write to MH i2c: E2 08 00 4B 30 80 17 00 00 00 00 00 00 FB [13:50:06]Write i2c OK [13:50:06]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:07]Read from MH i2c: E2 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 FD 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 FD 00 4B 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B2 [13:50:07]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 [13:50:07]wFMCommunicate OK [13:50:07]wFMCommunicate request_size=4 [13:50:07]MH_SAM_APDU [13:50:07]CAPDU: 80 17 00 00 [13:50:07]Write to MH i2c: E2 08 00 4C 30 80 17 00 00 00 00 00 00 FC [13:50:07]Write i2c OK [13:50:07]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:07]Read from MH i2c: E2 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 FD 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 FD 00 4C 30 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 6E [13:50:07]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 [13:50:07]wFMCommunicate OK [13:50:07]wFMCommunicate request_size=4 [13:50:07]MH_SAM_APDU [13:50:07]CAPDU: 80 17 00 00 [13:50:07]Write to MH i2c: E2 08 00 4D 30 80 17 00 00 00 00 00 00 FD [13:50:07]Write i2c OK [13:50:07]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:50:08]Read from MH i2c: E2 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: E2 CB 00 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: E2 CB 00 4D 30 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E6 [13:50:08]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 [13:50:08]wFMCommunicate OK [13:50:08]SAM_PROTO_GetShiftData done [13:50:08]1194 (1194) - счетчики итогов смены [13:50:08] 1134 (4) - 104 - количество чеков со всеми признаками расчетов [13:50:08] 1129 (155) - счетчики операций «приход» [13:50:08] 1135 (4) - 104 - количество чеков по признаку расчетов [13:50:08] 1201 (3) - 40340.64 - общая итоговая сумма в чеках [13:50:08] 1136 (3) - 13926.00 - итоговая сумма в чеках наличными [13:50:08] 1138 (3) - 26414.64 - итоговая сумма в чеках безналичными [13:50:08] 1024 (122) - суммы налогов [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 0% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1006 (12) - суммы НДС [13:50:08] 1010 (1) - 12% - код ставки НДС [13:50:08] 1011 (3) - 4284.16 - сумма НДС по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (11) - суммы НСП [13:50:08] 1014 (1) - 1% - код ставки НСП [13:50:08] 1015 (2) - 356.97 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 2% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 3% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 5% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1130 (141) - счетчики операций «возврат прихода» [13:50:08] 1135 (4) - 0 - количество чеков по признаку расчетов [13:50:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:50:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:50:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:50:08] 1024 (117) - суммы налогов [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 0% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 12% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 2% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 3% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 5% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1131 (141) - счетчики операций «расход» [13:50:08] 1135 (4) - 0 - количество чеков по признаку расчетов [13:50:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:50:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:50:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:50:08] 1024 (117) - суммы налогов [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 0% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 12% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 2% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 3% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 5% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1132 (141) - счетчики операций «возврат расхода» [13:50:08] 1135 (4) - 0 - количество чеков по признаку расчетов [13:50:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:50:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:50:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:50:08] 1024 (117) - суммы налогов [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 0% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1006 (9) - суммы НДС [13:50:08] 1010 (1) - 12% - код ставки НДС [13:50:08] 1011 (0) - 0.00 - сумма НДС по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 2% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 3% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 5% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 0,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1007 (9) - суммы НСП [13:50:08] 1014 (1) - 1,50% - код ставки НСП [13:50:08] 1015 (0) - 0.00 - сумма НСП по ставке [13:50:08] 1133 (588) - - счетчики коррекции - не используются [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1194 (04AA) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1134 (046E) [13:50:08]Malloc new data [13:50:08]Processing tag 1129 (0469) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1135 (046F) [13:50:08]Malloc new data [13:50:08]Processing tag 1201 (04B1) [13:50:08]Malloc new data [13:50:08]Processing tag 1136 (0470) [13:50:08]Malloc new data [13:50:08]Processing tag 1138 (0472) [13:50:08]Malloc new data [13:50:08]Processing tag 1024 (0400) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]SetTLVBufToDocument err=0 [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1130 (046A) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1135 (046F) [13:50:08]Malloc new data [13:50:08]Processing tag 1201 (04B1) [13:50:08]Malloc new data [13:50:08]Processing tag 1136 (0470) [13:50:08]Malloc new data [13:50:08]Processing tag 1138 (0472) [13:50:08]Malloc new data [13:50:08]Processing tag 1024 (0400) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]SetTLVBufToDocument err=0 [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1131 (046B) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1135 (046F) [13:50:08]Malloc new data [13:50:08]Processing tag 1201 (04B1) [13:50:08]Malloc new data [13:50:08]Processing tag 1136 (0470) [13:50:08]Malloc new data [13:50:08]Processing tag 1138 (0472) [13:50:08]Malloc new data [13:50:08]Processing tag 1024 (0400) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1006 (03EE) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1010 (03F2) [13:50:08]Malloc new data [13:50:08]Processing tag 1011 (03F3) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]Processing tag 1007 (03EF) [13:50:08]Load OK [13:50:08]SetTLVBufToDocument [13:50:08]Processing tag 1014 (03F6) [13:50:08]Malloc new data [13:50:08]Processing tag 1015 (03F7) [13:50:08]Malloc new data [13:50:08]SetTLVBufToDocument err=0 [13:50:08]SetTLVBufToDocument err=0 [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1132 (046C) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1135 (046F) [13:50:09]Malloc new data [13:50:09]Processing tag 1201 (04B1) [13:50:09]Malloc new data [13:50:09]Processing tag 1136 (0470) [13:50:09]Malloc new data [13:50:09]Processing tag 1138 (0472) [13:50:09]Malloc new data [13:50:09]Processing tag 1024 (0400) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1006 (03EE) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1010 (03F2) [13:50:09]Malloc new data [13:50:09]Processing tag 1011 (03F3) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1006 (03EE) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1010 (03F2) [13:50:09]Malloc new data [13:50:09]Processing tag 1011 (03F3) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1007 (03EF) [13:50:09]Load OK [13:50:09]SetTLVBufToDocument [13:50:09]Processing tag 1014 (03F6) [13:50:09]Malloc new data [13:50:09]Processing tag 1015 (03F7) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]SetTLVBufToDocument err=0 [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Processing tag 1133 (046D) [13:50:09]Malloc new data [13:50:09]SetTLVBufToDocument err=0 [13:50:09]SetTLVBufToDocument err=0 [13:50:09]Malloc new data [13:50:09]SAM_PROTO_GetFMData [13:50:09]wFMCommunicate request_size=4 [13:50:09]MH_SAM_APDU [13:50:09]CAPDU: 80 13 03 00 [13:50:09]Write to MH i2c: E2 08 00 4E 30 80 13 03 00 00 00 00 00 FD [13:50:09]Write i2c OK [13:50:09]MH_I2C_Read... [13:50:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:50:09]Read from MH i2c: E2 [13:50:09]MH_I2C_Read... [13:50:09]Read from MH i2c: E2 FD 00 [13:50:09]MH_I2C_Read... [13:50:09]Read from MH i2c: E2 FD 00 4E 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 DD [13:50:09]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:50:10]wFMCommunicate OK [13:50:10]wFMCommunicate request_size=4 [13:50:10]MH_SAM_APDU [13:50:10]CAPDU: 80 17 00 00 [13:50:10]Write to MH i2c: E2 08 00 4F 30 80 17 00 00 00 00 00 00 FF [13:50:10]Write i2c OK [13:50:10]MH_I2C_Read... [13:50:10]OFD Sender: No OFD packet to send [13:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:10]Read from MH i2c: E2 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 FD 00 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 FD 00 4F 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [13:50:10]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:10]wFMCommunicate OK [13:50:10]wFMCommunicate request_size=4 [13:50:10]MH_SAM_APDU [13:50:10]CAPDU: 80 17 00 00 [13:50:10]Write to MH i2c: E2 08 00 50 30 80 17 00 00 00 00 00 00 00 [13:50:10]Write i2c OK [13:50:10]MH_I2C_Read... [13:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:10]Read from MH i2c: E2 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 FD 00 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 FD 00 50 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [13:50:10]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:11]wFMCommunicate OK [13:50:11]wFMCommunicate request_size=4 [13:50:11]MH_SAM_APDU [13:50:11]CAPDU: 80 17 00 00 [13:50:11]Write to MH i2c: E2 08 00 51 30 80 17 00 00 00 00 00 00 01 [13:50:11]Write i2c OK [13:50:11]MH_I2C_Read... [13:50:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:11]Read from MH i2c: E2 [13:50:11]MH_I2C_Read... [13:50:11]Read from MH i2c: E2 FD 00 [13:50:11]MH_I2C_Read... [13:50:11]Read from MH i2c: E2 FD 00 51 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 73 [13:50:11]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:11]wFMCommunicate OK [13:50:11]wFMCommunicate request_size=4 [13:50:11]MH_SAM_APDU [13:50:11]CAPDU: 80 17 00 00 [13:50:11]Write to MH i2c: E2 08 00 52 30 80 17 00 00 00 00 00 00 02 [13:50:11]Write i2c OK [13:50:11]MH_I2C_Read... [13:50:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:50:11]Read from MH i2c: E2 [13:50:11]MH_I2C_Read... [13:50:11]Read from MH i2c: E2 E0 00 [13:50:11]MH_I2C_Read... [13:50:11]Read from MH i2c: E2 E0 00 52 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [13:50:11]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:50:12]wFMCommunicate OK [13:50:12]SAM_PROTO_GetFMData done [13:50:12]FM_GetFMData:85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A 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 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:12]oper:6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:50:12]total:23 29 F3 2D [13:50:12]Malloc new data [13:50:12]oper:6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A 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 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:50:12]total:34 47 92 01 [13:50:12]Malloc new data [13:50:12]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 [13:50:13]total: [13:50:13]Malloc new data [13:50:13]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 [13:50:13]total: [13:50:13]Malloc new data [13:50:13]KKMPrepareXReportFMData err=0 [13:50:13]Х отчет ИНН: 02508201610067 Кассир: Сарымсаков Н. 23.08.2024 13:50 Смена: 10 РНМ: 0000000000162784 ЗНМ: 0300000144 СНО: Общий режим Всего чеков: 104 ИТОГИ ПРИХОД Чеков: 104 Общий итог: 40340.64 Итого наличными: 13926.00 Итого безнал.: 26414.64 НДС 0% : 0.00 НДС 12% : 4284.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 356.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 13926.00 НС Приход: 7709104.99 НС Возвр.Прихода: 263637.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094529 [13:50:13]StoreToDocumentArchive [13:50:13]MH_GetDate [13:50:13]Write to MH i2c: F0 00 00 53 30 72 [13:50:13]Write i2c OK [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: F0 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: F0 09 00 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: F0 09 00 53 30 00 99 93 C8 66 0F 81 47 66 12 [13:50:13]shift 10 fd 1724421017 [13:50:13]Create dir for shift 0010 [13:50:13]save to /storage/0010/doc_1724421017 [13:50:13]save last doc name /storage/0010/doc_1724421017 to /storage/kkm_last_doc_name [13:50:13]save OK [13:50:13]Clear old archive folders... [13:50:13]NVStorageSaveData kkm_last_timestamp [13:50:13]File name is /storage/kkm_last_timestamp [13:50:13]Write 4 bytes [13:50:13]NVStorageSaveData done [13:50:13]ExternCall_PrintAddStr [13:50:13]wPrintStart [13:50:13]Write to MH i2c: 01 00 00 54 30 84 [13:50:13]Write i2c OK [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 07 00 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 FF 0F 99 [13:50:13]RasterBufferAndPrint [13:50:13]line Х отчет [13:50:13]line ИНН: 02508201610067 [13:50:13]line Кассир: Сарымсаков Н. [13:50:13]line 23.08.2024 13:50 [13:50:13]line Смена: 10 [13:50:13]line РНМ: 0000000000162784 [13:50:13]line ЗНМ: 0300000144 [13:50:13]line СНО: Общий режим [13:50:13]line Всего чеков: 104 [13:50:13]line ИТОГИ ПРИХОД [13:50:13]line Чеков: 104 [13:50:13]line Общий итог: 40340.64 [13:50:13]line Итого наличными: 13926.00 [13:50:13]line Итого безнал.: 26414.64 [13:50:13]line НДС 0% : 0.00 [13:50:13]line НДС 12% : 4284.16 [13:50:13]line НСП 0% : 0.00 [13:50:13]line НСП 1,50% : 0.00 [13:50:13]line НСП 0,50% : 0.00 [13:50:13]line НСП 5% : 0.00 [13:50:13]line НСП 3% : 0.00 [13:50:13]line НСП 2% : 0.00 [13:50:13]line НСП 1% : 356.97 [13:50:13]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:50:13]line Чеков: 0 [13:50:13]line Общий итог: 0.00 [13:50:13]line Итого наличными: 0.00 [13:50:13]line Итого безнал.: 0.00 [13:50:13]line НДС 0% : 0.00 [13:50:13]line НДС 12% : 0.00 [13:50:13]line НСП 0% : 0.00 [13:50:13]line НСП 1,50% : 0.00 [13:50:13]line НСП 0,50% : 0.00 [13:50:13]line НСП 5% : 0.00 [13:50:13]line НСП 3% : 0.00 [13:50:13]line НСП 2% : 0.00 [13:50:13]line НСП 1% : 0.00 [13:50:13]line ИТОГИ РАСХОД [13:50:13]line Чеков: 0 [13:50:13]line Общий итог: 0.00 [13:50:13]line Итого наличными: 0.00 [13:50:13]line Итого безнал.: 0.00 [13:50:13]line НДС 0% : 0.00 [13:50:13]line НДС 12% : 0.00 [13:50:13]line НСП 0% : 0.00 [13:50:13]line НСП 1,50% : 0.00 [13:50:13]line НСП 0,50% : 0.00 [13:50:13]line НСП 5% : 0.00 [13:50:13]line НСП 3% : 0.00 [13:50:13]line НСП 2% : 0.00 [13:50:13]line НСП 1% : 0.00 [13:50:13]line ИТОГИ ВОЗВРАТ РАСХОДА [13:50:13]line Чеков: 0 [13:50:13]line Общий итог: 0.00 [13:50:13]line Итого наличными: 0.00 [13:50:13]line Итого безнал.: 0.00 [13:50:13]line НДС 0% : 0.00 [13:50:13]line НДС 12% : 0.00 [13:50:13]line НСП 0% : 0.00 [13:50:13]line НСП 1,50% : 0.00 [13:50:13]line НСП 0,50% : 0.00 [13:50:13]line НСП 5% : 0.00 [13:50:13]line НСП 3% : 0.00 [13:50:13]line НСП 2% : 0.00 [13:50:13]line НСП 1% : 0.00 [13:50:13]line Сумма внесений: 0.00 [13:50:13]line Сумма выплат: 0.00 [13:50:13]line Нал. в кассе: 13926.00 [13:50:13]line НС Приход: 7709104.99 [13:50:13]line НС Возвр.Прихода: 263637.00 [13:50:13]line НС Расход: 0.00 [13:50:13]line НС Возвр.Расхода: 0.00 [13:50:13]line ФМ: 0000000002094529 [13:50:13]written 0, free lines is 4095 [13:50:13]Write to MH i2c: 01 00 00 9F 30 CF [13:50:13]Write i2c OK [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 07 00 [13:50:13]MH_I2C_Read... [13:50:13]Read from MH i2c: 01 07 00 9F 30 00 00 00 00 00 B0 0A 90 [13:50:13]RasterBufferAndPrint [13:50:13]line [13:50:13]line [13:50:13]line [13:50:13]line [13:50:13]line [13:50:13]written 0, free lines is 2769 [13:50:14]MH_Cut [13:50:14]Write to MH i2c: D1 01 00 A6 30 01 A8 [13:50:14]Write i2c OK [13:50:14]MH_I2C_Read... [13:50:14]Read from MH i2c: D1 [13:50:14]MH_I2C_Read... [13:50:14]Read from MH i2c: D1 01 00 [13:50:14]MH_I2C_Read... [13:50:14]Read from MH i2c: D1 01 00 A6 30 00 A7 [13:50:14]Write to MH i2c: 01 00 00 A7 30 D7 [13:50:14]Write i2c OK [13:50:14]MH_I2C_Read... [13:50:15]*** Cut start [13:50:15]*** Partial cut [13:50:15]*** CUTSNS_PIN = 1 [13:50:15]*** CUTSNS_PIN = 0 [13:50:15]OFD Sender: No OFD packet to send [13:50:15]*** Brake cut motor [13:50:15]Read from MH i2c: 01 [13:50:15]MH_I2C_Read... [13:50:15]*** Stop cut motor [13:50:15]*** Cut end [13:50:15]Read from MH i2c: 01 07 00 [13:50:15]MH_I2C_Read... [13:50:15]Read from MH i2c: 01 07 00 A7 30 00 00 00 00 00 FF 0F EC [13:50:15]process_action x_report done [13:50:15]requested_data is exist [13:50:15]produce_requested_data [13:50:15]requested_item fd.num is exist - process it [13:50:15]SAM_PROTO_GetFieldsCounters [13:50:15]wFMCommunicate request_size=4 [13:50:15]MH_SAM_APDU [13:50:15]CAPDU: 80 13 00 00 [13:50:15]Write to MH i2c: E2 08 00 A8 30 80 13 00 00 00 00 00 00 54 [13:50:15]Write i2c OK [13:50:15]MH_I2C_Read... [13:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:15]Read from MH i2c: E2 [13:50:15]MH_I2C_Read... [13:50:15]Read from MH i2c: E2 62 00 [13:50:15]MH_I2C_Read... [13:50:15]Read from MH i2c: E2 62 00 A8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [13:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:15]wFMCommunicate OK [13:50:15]SAM_PROTO_GetFieldsCounters done [13:50:15]requested_item shift.num is exist - process it [13:50:15]requested_item shift.opened is exist - process it [13:50:15]req_shift_opened [13:50:15]FM_GetShiftState [13:50:15]SAM_PROTO_GetShiftState [13:50:15]wFMCommunicate request_size=4 [13:50:15]MH_SAM_APDU [13:50:15]CAPDU: 80 13 01 00 [13:50:15]Write to MH i2c: E2 08 00 A9 30 80 13 01 00 00 00 00 00 56 [13:50:15]Write i2c OK [13:50:15]MH_I2C_Read... [13:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:16]Read from MH i2c: E2 [13:50:16]MH_I2C_Read... [13:50:16]Read from MH i2c: E2 0E 00 [13:50:16]MH_I2C_Read... [13:50:16]Read from MH i2c: E2 0E 00 A9 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1A [13:50:16]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:50:16]wFMCommunicate OK [13:50:16]SAM_PROTO_GetShiftState done [13:50:16]FM_GetShiftState done [13:50:16]req_shift_opened done [13:50:16]requested_item shift.open_date is exist - process it [13:50:16]req_shift_open_date [13:50:16]req_shift_open_date done [13:50:16]produce_requested_data done [13:50:16]produce_requested_data return {"fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:50:16]process_action_free x_report [13:50:16]json_value_free [13:50:16]json_value_free done [13:50:16]process_json_proto returns [13:50:16]Send response to host [13:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:50:16]free response buf [13:50:16]execute_script done [13:50:16]execute_script returns [13:50:16]free content buf [13:50:16]Sock 9.Close socket [13:50:16]Sock 9.Thread stoped [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:48]accept exits with 8 [13:50:48]New connection [13:50:48]New thread 3066801508 created [13:50:48]Thread 3066944868 joined [13:50:48]Waiting for new connection... [13:50:48] Sock 8.Parse request [13:50:48]Sock 8.Check first char [13:50:48]Sock 8.First char is OK [13:50:48]request: POST /json_proto HTTP/1.0 [13:50:48]Method: POST [13:50:48]URL: /json_proto [13:50:48]Method is POST - this is cgi request [13:50:48]url: /json_proto [13:50:48]query_string will be loaded in cgi processing [13:50:48]execute_cgi json_proto POST (null) [13:50:48]execute_cgi path=json_proto method=POST [13:50:48]POST find Content-Length [13:50:48]Host: 172.17.44.4:8080 [13:50:48]Content-Length: 215 [13:50:48]Content-Type: application/json [13:50:48] [13:50:48]POST finish read [13:50:48]Found Content-Length = 215 [13:50:48]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" ] } } [13:50:48]execute_script... [13:50:48]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" ] } } [13:50:48]POST & json_proto [13:50:48]process_json_proto [13:50:48]json parsed OK: [13:50:48]protocol is kg_v1.0 [13:50:48]action value=get_value [13:50:48]process_action get_value [13:50:48]cmd_get_value [13:50:48]process_action get_value done [13:50:48]requested_data is exist [13:50:48]produce_requested_data [13:50:48]requested_item kkm.sn is exist - process it [13:50:48]requested_item kkm.ver is exist - process it [13:50:48]requested_item fm.sn is exist - process it [13:50:48]wFMCommunicate request_size=4 [13:50:48]MH_SAM_APDU [13:50:48]CAPDU: 80 11 00 00 [13:50:48]Write to MH i2c: E2 08 00 AA 30 80 11 00 00 00 00 00 00 54 [13:50:48]Write i2c OK [13:50:48]MH_I2C_Read... [13:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:48]Read from MH i2c: E2 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: E2 17 00 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: E2 17 00 AA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 A6 [13:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:50:48]wFMCommunicate OK [13:50:48]requested_item fd.num is exist - process it [13:50:48]SAM_PROTO_GetFieldsCounters [13:50:48]wFMCommunicate request_size=4 [13:50:48]MH_SAM_APDU [13:50:48]CAPDU: 80 13 00 00 [13:50:48]Write to MH i2c: E2 08 00 AB 30 80 13 00 00 00 00 00 00 57 [13:50:48]Write i2c OK [13:50:48]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 62 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 62 00 AB 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CE 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:49]wFMCommunicate OK [13:50:49]SAM_PROTO_GetFieldsCounters done [13:50:49]requested_item shift.num is exist - process it [13:50:49]requested_item shift.opened is exist - process it [13:50:49]req_shift_opened [13:50:49]FM_GetShiftState [13:50:49]SAM_PROTO_GetShiftState [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 13 01 00 [13:50:49]Write to MH i2c: E2 08 00 AC 30 80 13 01 00 00 00 00 00 59 [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0E 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 0E 00 AC 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 1D [13:50:49]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:50:49]wFMCommunicate OK [13:50:49]SAM_PROTO_GetShiftState done [13:50:49]FM_GetShiftState done [13:50:49]req_shift_opened done [13:50:49]requested_item shift.open_date is exist - process it [13:50:49]req_shift_open_date [13:50:49]req_shift_open_date done [13:50:49]produce_requested_data done [13:50:49]produce_requested_data return {"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406} [13:50:49]process_action_free get_value [13:50:49]json_value_free [13:50:49]json_value_free done [13:50:49]process_json_proto returns [13:50:49]Send response to host [13:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000144","kkm.ver":"v1.0","fm.sn":"0000000002094529","fd.num":15310,"shift.num":102,"shift.opened":1,"shift.open_date":1724372406}}} [13:50:49]free response buf [13:50:49]execute_script done [13:50:49]execute_script returns [13:50:49]free content buf [13:50:49]Sock 8.Close socket [13:50:49]Sock 8.Thread stoped [13:50:49]accept exits with 10 [13:50:49]New connection [13:50:49]New thread 3066944868 created [13:50:49]Thread 3066801508 joined [13:50:49]Waiting for new connection... [13:50:49] Sock 10.Parse request [13:50:49]Sock 10.Check first char [13:50:49]Sock 10.First char is OK [13:50:49]request: POST /json_proto HTTP/1.0 [13:50:49]Method: POST [13:50:49]URL: /json_proto [13:50:49]Method is POST - this is cgi request [13:50:49]url: /json_proto [13:50:49]query_string will be loaded in cgi processing [13:50:49]execute_cgi json_proto POST (null) [13:50:49]execute_cgi path=json_proto method=POST [13:50:49]POST find Content-Length [13:50:49]Host: 172.17.44.4:8080 [13:50:49]Content-Length: 331 [13:50:49]Content-Type: application/json [13:50:49] [13:50:49]POST finish read [13:50:49]Found Content-Length = 331 [13:50:49]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" ] } } [13:50:49]execute_script... [13:50:49]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" ] } } [13:50:49]POST & json_proto [13:50:49]process_json_proto [13:50:49]json parsed OK: [13:50:49]protocol is kg_v1.0 [13:50:49]action value=get_value [13:50:49]process_action get_value [13:50:49]cmd_get_value [13:50:49]process_action get_value done [13:50:49]requested_data is exist [13:50:49]produce_requested_data [13:50:49]requested_item fm.sale.total is exist - process it [13:50:49]SAM_PROTO_GetFMData [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 13 03 00 [13:50:49]Write to MH i2c: E2 08 00 AD 30 80 13 03 00 00 00 00 00 5C [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 FD 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 FD 00 AD 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 3C [13:50:49]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:50:49]wFMCommunicate OK [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 17 00 00 [13:50:49]Write to MH i2c: E2 08 00 AE 30 80 17 00 00 00 00 00 00 5E [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:50]Read from MH i2c: E2 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 AE 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [13:50:50]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:50]wFMCommunicate OK [13:50:50]wFMCommunicate request_size=4 [13:50:50]MH_SAM_APDU [13:50:50]CAPDU: 80 17 00 00 [13:50:50]Write to MH i2c: E2 08 00 AF 30 80 17 00 00 00 00 00 00 5F [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]OFD Sender: No OFD packet to send [13:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:50]Read from MH i2c: E2 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 AF 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [13:50:50]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:50]wFMCommunicate OK [13:50:50]wFMCommunicate request_size=4 [13:50:50]MH_SAM_APDU [13:50:50]CAPDU: 80 17 00 00 [13:50:50]Write to MH i2c: E2 08 00 B0 30 80 17 00 00 00 00 00 00 60 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:50]Read from MH i2c: E2 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 FD 00 B0 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 D2 [13:50:50]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:50]wFMCommunicate OK [13:50:50]wFMCommunicate request_size=4 [13:50:50]MH_SAM_APDU [13:50:50]CAPDU: 80 17 00 00 [13:50:50]Write to MH i2c: E2 08 00 B1 30 80 17 00 00 00 00 00 00 61 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:50:50]Read from MH i2c: E2 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 E0 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: E2 E0 00 B1 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:51]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:50:51]wFMCommunicate OK [13:50:51]SAM_PROTO_GetFMData done [13:50:51]requested_item fm.sale_refund.total is exist - process it [13:50:51]requested_item fm.buy.total is exist - process it [13:50:51]requested_item shift.sale.total is exist - process it [13:50:51]SAM_PROTO_GetShiftData [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 13 02 00 [13:50:51]Write to MH i2c: E2 08 00 B2 30 80 13 02 00 00 00 00 00 60 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 FD 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 FD 00 B2 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [13:50:51]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:51]wFMCommunicate OK [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 17 00 00 [13:50:51]Write to MH i2c: E2 08 00 B3 30 80 17 00 00 00 00 00 00 63 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:51]Read from MH i2c: E2 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 FD 00 [13:50:51]MH_I2C_Read... [13:50:51]Read from MH i2c: E2 FD 00 B3 30 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 85 [13:50:51]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 [13:50:51]wFMCommunicate OK [13:50:51]wFMCommunicate request_size=4 [13:50:51]MH_SAM_APDU [13:50:51]CAPDU: 80 17 00 00 [13:50:51]Write to MH i2c: E2 08 00 B4 30 80 17 00 00 00 00 00 00 64 [13:50:51]Write i2c OK [13:50:51]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 FD 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 FD 00 B4 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [13:50:52]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 [13:50:52]wFMCommunicate OK [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 17 00 00 [13:50:52]Write to MH i2c: E2 08 00 B5 30 80 17 00 00 00 00 00 00 65 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 FD 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 FD 00 B5 30 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 D7 [13:50:52]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 [13:50:52]wFMCommunicate OK [13:50:52]wFMCommunicate request_size=4 [13:50:52]MH_SAM_APDU [13:50:52]CAPDU: 80 17 00 00 [13:50:52]Write to MH i2c: E2 08 00 B6 30 80 17 00 00 00 00 00 00 66 [13:50:52]Write i2c OK [13:50:52]MH_I2C_Read... [13:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:50:52]Read from MH i2c: E2 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 CB 00 [13:50:52]MH_I2C_Read... [13:50:52]Read from MH i2c: E2 CB 00 B6 30 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 4F [13:50:52]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 [13:50:53]wFMCommunicate OK [13:50:53]SAM_PROTO_GetShiftData done [13:50:53]requested_item shift.sale.total_cash is exist - process it [13:50:53]requested_item shift.sale_refund.total is exist - process it [13:50:53]requested_item shift.sale_refund.total_cash is exist - process it [13:50:53]requested_item shift.buy.total is exist - process it [13:50:53]requested_item shift.buy.total_cash is exist - process it [13:50:53]produce_requested_data done [13:50:53]produce_requested_data return {"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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} [13:50:53]process_action_free get_value [13:50:53]json_value_free [13:50:53]json_value_free done [13:50:53]process_json_proto returns [13:50:53]Send response to host [13:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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}}} [13:50:53]free response buf [13:50:53]execute_script done [13:50:53]execute_script returns [13:50:53]free content buf [13:50:53]Sock 10.Close socket [13:50:53]Sock 10.Thread stoped [13:50:53]accept exits with 8 [13:50:53]New connection [13:50:53]New thread 3066801508 created [13:50:53]Thread 3066944868 joined [13:50:53]Waiting for new connection... [13:50:53] Sock 8.Parse request [13:50:53]Sock 8.Check first char [13:50:53]Sock 8.First char is OK [13:50:53]request: POST /json_proto HTTP/1.0 [13:50:53]Method: POST [13:50:53]URL: /json_proto [13:50:53]Method is POST - this is cgi request [13:50:53]url: /json_proto [13:50:53]query_string will be loaded in cgi processing [13:50:53]execute_cgi json_proto POST (null) [13:50:53]execute_cgi path=json_proto method=POST [13:50:53]POST find Content-Length [13:50:53]Host: 172.17.44.4:8080 [13:50:53]Content-Length: 331 [13:50:53]Content-Type: application/json [13:50:53] [13:50:53]POST finish read [13:50:53]Found Content-Length = 331 [13:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:50:53]execute_script... [13:50:53]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" ] } } [13:50:53]POST & json_proto [13:50:53]process_json_proto [13:50:53]json parsed OK: [13:50:53]protocol is kg_v1.0 [13:50:53]action value=get_value [13:50:53]process_action get_value [13:50:53]cmd_get_value [13:50:53]process_action get_value done [13:50:53]requested_data is exist [13:50:53]produce_requested_data [13:50:53]requested_item fm.sale.total is exist - process it [13:50:53]SAM_PROTO_GetFMData [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 13 03 00 [13:50:53]Write to MH i2c: E2 08 00 B7 30 80 13 03 00 00 00 00 00 66 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 FD 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 FD 00 B7 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 46 [13:50:53]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:50:53]wFMCommunicate OK [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 17 00 00 [13:50:53]Write to MH i2c: E2 08 00 B8 30 80 17 00 00 00 00 00 00 68 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:54]Read from MH i2c: E2 [13:50:54]MH_I2C_Read... [13:50:54]Read from MH i2c: E2 FD 00 [13:50:54]MH_I2C_Read... [13:50:54]Read from MH i2c: E2 FD 00 B8 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [13:50:54]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:54]wFMCommunicate OK [13:50:54]wFMCommunicate request_size=4 [13:50:54]MH_SAM_APDU [13:50:54]CAPDU: 80 17 00 00 [13:50:54]Write to MH i2c: E2 08 00 B9 30 80 17 00 00 00 00 00 00 69 [13:50:54]Write i2c OK [13:50:54]MH_I2C_Read... [13:50:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:54]Read from MH i2c: E2 [13:50:54]MH_I2C_Read... [13:50:54]Read from MH i2c: E2 FD 00 [13:50:54]MH_I2C_Read... [13:50:54]Read from MH i2c: E2 FD 00 B9 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [13:50:54]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:54]wFMCommunicate OK [13:50:54]wFMCommunicate request_size=4 [13:50:54]MH_SAM_APDU [13:50:54]CAPDU: 80 17 00 00 [13:50:54]Write to MH i2c: E2 08 00 BA 30 80 17 00 00 00 00 00 00 6A [13:50:54]Write i2c OK [13:50:54]MH_I2C_Read... [13:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:55]Read from MH i2c: E2 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: E2 FD 00 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: E2 FD 00 BA 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 DC [13:50:55]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:50:55]wFMCommunicate OK [13:50:55]wFMCommunicate request_size=4 [13:50:55]MH_SAM_APDU [13:50:55]CAPDU: 80 17 00 00 [13:50:55]Write to MH i2c: E2 08 00 BB 30 80 17 00 00 00 00 00 00 6B [13:50:55]Write i2c OK [13:50:55]MH_I2C_Read... [13:50:55]OFD Sender: No OFD packet to send [13:50:55]Read from MH i2c: E2 [13:50:55]MH_I2C_Read... [13:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:50:55]Read from MH i2c: E2 E0 00 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: E2 E0 00 BB 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 55 [13:50:55]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:50:55]wFMCommunicate OK [13:50:55]SAM_PROTO_GetFMData done [13:50:55]requested_item fm.sale_refund.total is exist - process it [13:50:55]requested_item fm.buy.total is exist - process it [13:50:55]requested_item shift.sale.total is exist - process it [13:50:55]SAM_PROTO_GetShiftData [13:50:55]wFMCommunicate request_size=4 [13:50:55]MH_SAM_APDU [13:50:55]CAPDU: 80 13 02 00 [13:50:55]Write to MH i2c: E2 08 00 BC 30 80 13 02 00 00 00 00 00 6A [13:50:55]Write i2c OK [13:50:55]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 FD 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 FD 00 BC 30 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BB [13:50:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:56]wFMCommunicate OK [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 17 00 00 [13:50:56]Write to MH i2c: E2 08 00 BD 30 80 17 00 00 00 00 00 00 6D [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 FD 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 FD 00 BD 30 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 [13:50:56]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 [13:50:56]wFMCommunicate OK [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 17 00 00 [13:50:56]Write to MH i2c: E2 08 00 BE 30 80 17 00 00 00 00 00 00 6E [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:57]Read from MH i2c: E2 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 FD 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 FD 00 BE 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:57]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 [13:50:57]wFMCommunicate OK [13:50:57]wFMCommunicate request_size=4 [13:50:57]MH_SAM_APDU [13:50:57]CAPDU: 80 17 00 00 [13:50:57]Write to MH i2c: E2 08 00 BF 30 80 17 00 00 00 00 00 00 6F [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:57]Read from MH i2c: E2 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 FD 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 FD 00 BF 30 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 [13:50:57]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 [13:50:57]wFMCommunicate OK [13:50:57]wFMCommunicate request_size=4 [13:50:57]MH_SAM_APDU [13:50:57]CAPDU: 80 17 00 00 [13:50:57]Write to MH i2c: E2 08 00 C0 30 80 17 00 00 00 00 00 00 70 [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:50:57]Read from MH i2c: E2 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 CB 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 CB 00 C0 30 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 [13:50: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 [13:50:58]wFMCommunicate OK [13:50:58]SAM_PROTO_GetShiftData done [13:50:58]requested_item shift.sale.total_cash is exist - process it [13:50:58]requested_item shift.sale_refund.total is exist - process it [13:50:58]requested_item shift.sale_refund.total_cash is exist - process it [13:50:58]requested_item shift.buy.total is exist - process it [13:50:58]requested_item shift.buy.total_cash is exist - process it [13:50:58]produce_requested_data done [13:50:58]produce_requested_data return {"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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} [13:50:58]process_action_free get_value [13:50:58]json_value_free [13:50:58]json_value_free done [13:50:58]process_json_proto returns [13:50:58]Send response to host [13:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":7709104.99,"fm.sale_refund.total":263637.00,"fm.buy.total":0.00,"shift.sale.total":40340.64,"shift.sale.total_cash":13926.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}}} [13:50:58]free response buf [13:50:58]execute_script done [13:50:58]execute_script returns [13:50:58]free content buf [13:50:58]Sock 8.Close socket [13:50:58]Sock 8.Thread stoped [13:50:58]accept exits with 9 [13:50:58]New connection [13:50:58]New thread 3066944868 created [13:50:58]Thread 3066801508 joined [13:50:58]Waiting for new connection... [13:50:58] Sock 9.Parse request [13:50:58]Sock 9.Check first char [13:50:58]Sock 9.First char is OK [13:50:58]request: POST /json_proto HTTP/1.0 [13:50:58]Method: POST [13:50:58]URL: /json_proto [13:50:58]Method is POST - this is cgi request [13:50:58]url: /json_proto [13:50:58]query_string will be loaded in cgi processing [13:50:58]execute_cgi json_proto POST (null) [13:50:58]execute_cgi path=json_proto method=POST [13:50:58]POST find Content-Length [13:50:58]Host: 172.17.44.4:8080 [13:50:58]Content-Length: 272 [13:50:58]Content-Type: application/json [13:50:58] [13:50:58]POST finish read [13:50:58]Found Content-Length = 272 [13:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u043C\u0441\u0430\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:58]execute_script... [13:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u043C\u0441\u0430\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:58]POST & json_proto [13:50:58]process_json_proto [13:50:58]json parsed OK: [13:50:58]protocol is kg_v1.0 [13:50:58]action value=close_shift [13:50:58]process_action close_shift [13:50:58]cmd_close_shift [13:50:58]MH_GetDate [13:50:58]Write to MH i2c: F0 00 00 C1 30 E0 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 C1 30 00 C7 93 C8 66 0F 81 47 66 AE [13:50:58]GetLastDocTimeStamp 1724421010 [13:50:58]current date 1724421063 [13:50:58]FM_GetShiftState [13:50:58]SAM_PROTO_GetShiftState [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 13 01 00 [13:50:58]Write to MH i2c: E2 08 00 C2 30 80 13 01 00 00 00 00 00 6F [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0E 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0E 00 C2 30 00 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 33 [13:50:58]RAPDU: 09 00 01 B6 D5 C7 66 00 00 00 00 90 00 [13:50:58]wFMCommunicate OK [13:50:58]SAM_PROTO_GetShiftState done [13:50:58]FM_GetShiftState done [13:50:58]KKMCreateCloseShiftDocument [13:50:58]Load OK [13:50:58]Malloc new data [13:50:58]MH_GetDate [13:50:58]Write to MH i2c: F0 00 00 C3 30 E2 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 C3 30 00 C7 93 C8 66 0F 81 47 66 B0 [13:50:58]Malloc new data [13:50:58]Malloc new data [13:50:58]Malloc new data [13:50:58]Malloc new data [13:50:58]KKMCreateCloseShiftDocument OK [13:50:58]KKMSetCloseShiftData OK [13:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=75 [13:50:58]tlvbuf is 0061A3E0 [13:50:58]KKMLoadAndSignCloseShiftData [13:50:58]SAM_PROTO_ProcessDocument [13:50:58]wFMCommunicate request_size=9 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 01 00 04 05 00 4B 00 [13:50:58]Write to MH i2c: E2 0C 00 C4 30 80 15 01 00 04 00 05 00 4B 00 00 00 CB [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 C4 30 00 90 00 68 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=23 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [13:50:58]Write to MH i2c: E2 1A 00 C5 30 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 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 C5 30 00 90 00 69 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=34 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 [13:50:58]Write to MH i2c: E2 25 00 C6 30 80 15 02 00 1D 00 FD 03 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 00 00 3A [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 C6 30 00 90 00 6A [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=13 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 02 00 08 F4 03 04 00 C7 93 C8 66 [13:50:58]Write to MH i2c: E2 10 00 C7 30 80 15 02 00 08 00 F4 03 04 00 C7 93 C8 66 00 00 0A [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 C7 30 00 90 00 6B [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=25 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 [13:50:58]Write to MH i2c: E2 1C 00 C8 30 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 00 00 DD [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 C8 30 00 90 00 6C [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 15 03 00 [13:50:58]Write to MH i2c: E2 08 00 C9 30 80 15 03 00 00 00 00 00 7A [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 FD 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 FD 00 C9 30 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CF 3B 00 00 0E 04 04 00 66 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AB [13:50:59]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CF 3B 00 00 0E 04 04 00 66 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_ProcessDocument answer len = 1265 [13:50:59]SAM_PROTO_ProcessDocument remain to read = 1017 [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 17 00 00 [13:50:59]Write to MH i2c: E2 08 00 CA 30 80 17 00 00 00 00 00 00 7A [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 FD 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 FD 00 CA 30 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [13:50:59]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [13:51:00]wFMCommunicate OK [13:51:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:51:00]SAM_PROTO_ProcessDocument remain to read = 767 [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 17 00 00 [13:51:00]Write to MH i2c: E2 08 00 CB 30 80 17 00 00 00 00 00 00 7B [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 FD 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 FD 00 CB 30 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 DD [13:51:00]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 OFD Sender: No OFD packet to send [13:51:00]00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:51:00]wFMCommunicate OK [13:51:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:51:00]SAM_PROTO_ProcessDocument remain to read = 517 [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 17 00 00 [13:51:00]Write to MH i2c: E2 08 00 CC 30 80 17 00 00 00 00 00 00 7C [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 FD 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 FD 00 CC 30 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 06 [13:51:01]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 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:51:01]SAM_PROTO_ProcessDocument remain to read = 267 [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 17 00 00 [13:51:01]Write to MH i2c: E2 08 00 CD 30 80 17 00 00 00 00 00 00 7D [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 FD 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 FD 00 CD 30 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 45 [13:51:01]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 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:51:01]SAM_PROTO_ProcessDocument remain to read = 17 [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 17 00 00 [13:51:01]Write to MH i2c: E2 08 00 CE 30 80 17 00 00 00 00 00 00 7E [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 14 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 14 00 CE 30 00 01 00 06 F7 03 00 00 35 04 06 00 81 0C D5 FA B0 6E 90 00 3D [13:51:01]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 81 0C D5 FA B0 6E 90 00 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [13:51:01]SAM_PROTO_ProcessDocument done [13:51:01]1209 (1) - 1.0 - номер версии ФФД [13:51:01]1041 (16) - 0000000002094529 - номер ФМ [13:51:01]1040 (4) - 15311 - номер ФД [13:51:01]1038 (4) - 102 - номер смены [13:51:01]1118 (4) - 104 - количество кассовых чеков за смену [13:51:01]1111 (4) - 106 - общее количество ФД за смену [13:51:01]1194 (1194) - счетчики итогов смены [13:51:01] 1134 (4) - 104 - количество чеков со всеми признаками расчетов [13:51:01] 1129 (155) - счетчики операций «приход» [13:51:01] 1135 (4) - 104 - количество чеков по признаку расчетов [13:51:01] 1201 (3) - 40340.64 - общая итоговая сумма в чеках [13:51:01] 1136 (3) - 13926.00 - итоговая сумма в чеках наличными [13:51:01] 1138 (3) - 26414.64 - итоговая сумма в чеках безналичными [13:51:01] 1024 (122) - суммы налогов [13:51:01] 1006 (9) - суммы НДС [13:51:01] 1010 (1) - 0% - код ставки НДС [13:51:01] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:01] 1006 (12) - суммы НДС [13:51:01] 1010 (1) - 12% - код ставки НДС [13:51:01] 1011 (3) - 4284.16 - сумма НДС по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 0% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1007 (11) - суммы НСП [13:51:01] 1014 (1) - 1% - код ставки НСП [13:51:01] 1015 (2) - 356.97 - сумма НСП по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 2% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 3% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 5% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 0,50% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1007 (9) - суммы НСП [13:51:01] 1014 (1) - 1,50% - код ставки НСП [13:51:01] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:01] 1130 (141) - счетчики операций «возврат прихода» [13:51:01] 1135 (4) - 0 - количество чеков по признаку расчетов [13:51:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:51:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:51:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:51:01] 1024 (117) - суммы налогов [13:51:01] 1006 (9) - суммы НДС [13:51:01] 1010 (1) - 0% - код ставки НДС [13:51:01] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:01] 1006 (9) - суммы НДС [13:51:01] 1010 (1) - 12% - код ставки НДС [13:51:02] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 2% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 3% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 5% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1131 (141) - счетчики операций «расход» [13:51:02] 1135 (4) - 0 - количество чеков по признаку расчетов [13:51:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:51:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:51:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:51:02] 1024 (117) - суммы налогов [13:51:02] 1006 (9) - суммы НДС [13:51:02] 1010 (1) - 0% - код ставки НДС [13:51:02] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:02] 1006 (9) - суммы НДС [13:51:02] 1010 (1) - 12% - код ставки НДС [13:51:02] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 2% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 3% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 5% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1132 (141) - счетчики операций «возврат расхода» [13:51:02] 1135 (4) - 0 - количество чеков по признаку расчетов [13:51:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:51:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:51:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:51:02] 1024 (117) - суммы налогов [13:51:02] 1006 (9) - суммы НДС [13:51:02] 1010 (1) - 0% - код ставки НДС [13:51:02] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:02] 1006 (9) - суммы НДС [13:51:02] 1010 (1) - 12% - код ставки НДС [13:51:02] 1011 (0) - 0.00 - сумма НДС по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 2% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 3% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 5% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 0,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1007 (9) - суммы НСП [13:51:02] 1014 (1) - 1,50% - код ставки НСП [13:51:02] 1015 (0) - 0.00 - сумма НСП по ставке [13:51:02] 1133 (588) - - счетчики коррекции - не используются [13:51:02]1077 (6) - 141892129566830 - ФПД [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1209 (04B9) [13:51:02]Malloc new data [13:51:02]Processing tag 1041 (0411) [13:51:02]Processing tag 1040 (0410) [13:51:02]Malloc new data [13:51:02]Processing tag 1038 (040E) [13:51:02]Malloc new data [13:51:02]Processing tag 1118 (045E) [13:51:02]Malloc new data [13:51:02]Processing tag 1111 (0457) [13:51:02]Malloc new data [13:51:02]Processing tag 1194 (04AA) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1134 (046E) [13:51:02]Malloc new data [13:51:02]Processing tag 1129 (0469) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1135 (046F) [13:51:02]Malloc new data [13:51:02]Processing tag 1201 (04B1) [13:51:02]Malloc new data [13:51:02]Processing tag 1136 (0470) [13:51:02]Malloc new data [13:51:02]Processing tag 1138 (0472) [13:51:02]Malloc new data [13:51:02]Processing tag 1024 (0400) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1130 (046A) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1135 (046F) [13:51:02]Malloc new data [13:51:02]Processing tag 1201 (04B1) [13:51:02]Malloc new data [13:51:02]Processing tag 1136 (0470) [13:51:02]Malloc new data [13:51:02]Processing tag 1138 (0472) [13:51:02]Malloc new data [13:51:02]Processing tag 1024 (0400) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1131 (046B) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1135 (046F) [13:51:02]Malloc new data [13:51:02]Processing tag 1201 (04B1) [13:51:02]Malloc new data [13:51:02]Processing tag 1136 (0470) [13:51:02]Malloc new data [13:51:02]Processing tag 1138 (0472) [13:51:02]Malloc new data [13:51:02]Processing tag 1024 (0400) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1132 (046C) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1135 (046F) [13:51:02]Malloc new data [13:51:02]Processing tag 1201 (04B1) [13:51:02]Malloc new data [13:51:02]Processing tag 1136 (0470) [13:51:02]Malloc new data [13:51:02]Processing tag 1138 (0472) [13:51:02]Malloc new data [13:51:02]Processing tag 1024 (0400) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1006 (03EE) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1010 (03F2) [13:51:02]Malloc new data [13:51:02]Processing tag 1011 (03F3) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1007 (03EF) [13:51:02]Load OK [13:51:02]SetTLVBufToDocument [13:51:02]Processing tag 1014 (03F6) [13:51:02]Malloc new data [13:51:02]Processing tag 1015 (03F7) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1133 (046D) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Processing tag 1077 (0435) [13:51:02]Malloc new data [13:51:02]SetTLVBufToDocument err=0 [13:51:02]Malloc new data [13:51:02]SAM_PROTO_GetFMData [13:51:02]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 13 03 00 [13:51:03]Write to MH i2c: E2 08 00 CF 30 80 13 03 00 00 00 00 00 7E [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 FD 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 FD 00 CF 30 00 C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 5E [13:51:03]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 02 3B 00 00 69 04 A0 00 6F 04 04 00 A2 3A 00 00 B1 04 04 00 23 29 F3 2D 70 04 04 00 8C 9A AE 11 72 04 04 00 97 8E 44 1C 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 3C E1 04 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 F6 14 68 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 00 6F 04 04 00 60 00 00 00 B1 04 04 00 34 47 92 01 70 04 04 00 94 37 92 01 72 04 02 00 A0 0F 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 1A B9 2A EF 03 09 00 F6 90 00 [13:51:04]wFMCommunicate OK [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 17 00 00 [13:51:04]Write to MH i2c: E2 08 00 D0 30 80 17 00 00 00 00 00 00 80 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 FD 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 FD 00 D0 30 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [13:51:04]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 62 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:51:04]wFMCommunicate OK [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 17 00 00 [13:51:04]Write to MH i2c: E2 08 00 D1 30 80 17 00 00 00 00 00 00 81 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 FD 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 FD 00 D1 30 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [13:51:05]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:51:05]wFMCommunicate OK [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 17 00 00 [13:51:05]Write to MH i2c: E2 08 00 D2 30 80 17 00 00 00 00 00 00 82 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:51:05]Read from MH i2c: E2 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 FD 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: E2 FD 00 D2 30 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F4 [13:51:05]RAPDU: 00 F6 03 01 00 04 F7 OFD Sender: No OFD packet to send [13:51:05]03 00 00 EF 03 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 90 00 [13:51:05]wFMCommunicate OK [13:51:05]wFMCommunicate request_size=4 [13:51:05]MH_SAM_APDU [13:51:05]CAPDU: 80 17 00 00 [13:51:05]Write to MH i2c: E2 08 00 D3 30 80 17 00 00 00 00 00 00 83 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 E0 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 E0 00 D3 30 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [13:51:06]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_GetFMData done [13:51:06]Malloc new data [13:51:06]Malloc new data [13:51:06]Malloc new data [13:51:06]Malloc new data [13:51:06]KKMLoadAndSignCloseShiftData err=0 [13:51:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сарымсаков Н. 23.08.2024 13:51 Смена: 102 РНМ: 0000000000162784 ЗНМ: 0300000144 СНО: Общий режим Чеков за смену: 104 ФД за смену: 106 Всего чеков: 104 ИТОГИ ПРИХОД Чеков: 104 Общий итог: 40340.64 Итого наличными: 13926.00 Итого безнал.: 26414.64 НДС 0% : 0.00 НДС 12% : 4284.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 356.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 13926.00 НС Приход: 7709104.99 НС Возвр.Прихода: 263637.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 15311 ФМ: 0000000002094529 ФПД: 141892129566830 [13:51:06]StoreToDocumentArchive [13:51:06]shift 102 fd 15311 [13:51:06]save to /storage/0102/doc_00015311 [13:51:06]save last doc name /storage/0102/doc_00015311 to /storage/kkm_last_doc_name [13:51:06]save OK [13:51:06]Clear old archive folders... [13:51:06]Remove dir /storage/0010 [13:51:06]opendir ok [13:51:06]file . [13:51:06]file .. [13:51:06]file doc_1724421017 [13:51:06]remove file /storage/0010/doc_1724421017 [13:51:06]remove dir /storage/0010 [13:51:06]NVStorageSaveData kkm_registers [13:51:06]File name is /storage/kkm_registers [13:51:06]Write 24 bytes [13:51:06]NVStorageSaveData done [13:51:06]NVStorageSaveData kkm_registers [13:51:06]File name is /storage/kkm_registers [13:51:06]Write 24 bytes [13:51:06]NVStorageSaveData done [13:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [13:51:06]tlvbuf is 005F22D0 [13:51:06]SAM_PROTO_ClearQueue [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 09 00 00 [13:51:06]Write to MH i2c: E2 08 00 D4 30 80 09 00 00 00 00 00 00 76 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 D4 30 00 90 00 78 [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_ClearQueue done [13:51:06]KKMCreateOFDPacket [13:51:06]OFDProtocolAddRootSTLVToBuf [13:51:06]FM_MakeSignedData [13:51:06]FM_MakeSignedData [13:51:06]SAM_PROTO_SignData [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 0D 01 02 [13:51:06]Write to MH i2c: E2 08 00 D5 30 80 0D 01 02 00 00 00 00 7E [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 03 00 D5 30 00 90 00 79 [13:51:06]RAPDU: 90 00 [13:51:06]wFMCommunicate OK [13:51:06]wFMCommunicate request_size=255 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 0D 02 02 FA 05 00 67 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 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 C7 93 C8 66 0E 04 04 00 66 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 [13:51:06]Write to MH i2c: E2 02 01 D6 30 80 0D 02 02 FA 00 05 00 67 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 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 C7 93 C8 66 0E 04 04 00 66 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 00 B5 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 D6 30 00 90 00 7A [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=255 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 02 02 FA 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 71 8B 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 [13:51:07]Write to MH i2c: E2 02 01 D7 30 80 0D 02 02 FA 00 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 71 8B 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 EA [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 D7 30 00 90 00 7B [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=255 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 02 02 FA 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 [13:51:08]Write to MH i2c: E2 02 01 D8 30 80 0D 02 02 FA 00 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 00 48 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:08]Read from MH i2c: E2 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 03 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: E2 03 00 D8 30 00 90 00 7C [13:51:08]RAPDU: 90 00 [13:51:08]wFMCommunicate OK [13:51:08]wFMCommunicate request_size=255 [13:51:08]MH_SAM_APDU [13:51:08]CAPDU: 80 0D 02 02 FA 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 [13:51:08]Write to MH i2c: E2 02 01 D9 30 80 0D 02 02 FA 00 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 00 00 47 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 03 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 03 00 D9 30 00 90 00 7D [13:51:09]RAPDU: 90 00 [13:51:09]wFMCommunicate OK [13:51:09]wFMCommunicate request_size=255 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:51:09]Write to MH i2c: E2 02 01 DA 30 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 0C [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 03 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [13:51:09]RAPDU: 90 00 [13:51:09]wFMCommunicate OK [13:51:09]wFMCommunicate request_size=142 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF 3B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 35 04 06 00 81 0C D5 FA B0 6E [13:51:10]Write to MH i2c: E2 91 00 DB 30 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF 3B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 35 04 06 00 81 0C D5 FA B0 6E 00 00 4F [13:51:10]Write i2c OK [13:51:10]MH_I2C_Read... [13:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:10]Read from MH i2c: E2 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 03 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [13:51:10]RAPDU: 90 00 [13:51:10]wFMCommunicate OK [13:51:10]wFMCommunicate request_size=4 [13:51:10]MH_SAM_APDU [13:51:10]CAPDU: 80 0D 03 02 [13:51:10]Write to MH i2c: E2 08 00 DC 30 80 0D 03 02 00 00 00 00 87 [13:51:10]Write i2c OK [13:51:10]MH_I2C_Read... [13:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:10]Read from MH i2c: E2 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 0B 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 0B 00 DC 30 00 71 49 99 44 74 A0 09 4E 90 00 8A [13:51:10]RAPDU: 71 49 99 44 74 A0 09 4E 90 00 [13:51:10]wFMCommunicate OK [13:51:10]SAM_PROTO_SignData done [13:51:10]FM_MakeSignedData done [13:51:10]CreateOFDProtocolMessage [13:51:10]wFMCommunicate request_size=4 [13:51:10]MH_SAM_APDU [13:51:10]CAPDU: 80 11 00 00 [13:51:10]Write to MH i2c: E2 08 00 DD 30 80 11 00 00 00 00 00 00 87 [13:51:10]Write i2c OK [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 [13:51:10]MH_I2C_Read... [13:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:10]Read from MH i2c: E2 17 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 17 00 DD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 D9 [13:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 90 00 [13:51:10]wFMCommunicate OK [13:51:10]CreateOFDProtocolMessage done [13:51:10]OFDSenderStorePacket 15311 [13:51:10]StoreOFDPacket docnum=15311 [13:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 7B 05 00 00 DD E4 73 05 30 1C 5A 05 01 00 05 00 67 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 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 C7 93 C8 66 0E 04 04 00 66 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B 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 CF 3B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 35 04 06 00 81 0C D5 FA B0 6E 71 49 99 44 74 A0 09 4E [13:51:10]CheckFolder [13:51:10]dirname=/storage/ofd_packets [13:51:10]CheckFolder done [13:51:10]ProducePacketName [13:51:10]name=ofd_packets/00015311 [13:51:10]NVStorageSaveData ofd_packets/00015311 [13:51:10]File name is /storage/ofd_packets/00015311 [13:51:10]Write 1433 bytes [13:51:10]NVStorageSaveData done [13:51:10]OFDSenderStorePacket done [13:51:10]KKMCreateOFDPacket done [13:51:10]NVStorageSaveData kkm_last_timestamp [13:51:10]File name is /storage/kkm_last_timestamp [13:51:10]Write 4 bytes [13:51:10]NVStorageSaveData done [13:51:10]ExternCall_PrintAddStr [13:51:10]wPrintStart [13:51:10]Write to MH i2c: 01 00 00 DE 30 0E [13:51:10]OFD Sender: No OFD packet to send [13:51:10]Write i2c OK [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: 01 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: 01 07 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: 01 07 00 DE 30 00 00 00 00 00 FF 0F 23 [13:51:10]RasterBufferAndPrint [13:51:10]line Отчет о закрытии смены [13:51:10]line ФФД: 1.0 [13:51:10]line ИНН: 02508201610067 [13:51:10]line Кассир: Сарымсаков Н. [13:51:10]line 23.08.2024 13:51 [13:51:10]line Смена: 102 [13:51:10]line РНМ: 0000000000162784 [13:51:10]line ЗНМ: 0300000144 [13:51:10]line СНО: Общий режим [13:51:10]line Чеков за смену: 104 [13:51:10]line ФД за смену: 106 [13:51:10]line Всего чеков: 104 [13:51:10]line ИТОГИ ПРИХОД [13:51:10]line Чеков: 104 [13:51:10]line Общий итог: 40340.64 [13:51:10]line Итого наличными: 13926.00 [13:51:10]line Итого безнал.: 26414.64 [13:51:10]line НДС 0% : 0.00 [13:51:10]line НДС 12% : 4284.16 [13:51:10]line НСП 0% : 0.00 [13:51:10]line НСП 1,50% : 0.00 [13:51:10]line НСП 0,50% : 0.00 [13:51:10]line НСП 5% : 0.00 [13:51:10]line НСП 3% : 0.00 [13:51:10]line НСП 2% : 0.00 [13:51:10]line НСП 1% : 356.97 [13:51:10]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:51:10]line Чеков: 0 [13:51:10]line Общий итог: 0.00 [13:51:10]line Итого наличными: 0.00 [13:51:10]line Итого безнал.: 0.00 [13:51:10]line НДС 0% : 0.00 [13:51:10]line НДС 12% : 0.00 [13:51:10]line НСП 0% : 0.00 [13:51:10]line НСП 1,50% : 0.00 [13:51:10]line НСП 0,50% : 0.00 [13:51:10]line НСП 5% : 0.00 [13:51:10]line НСП 3% : 0.00 [13:51:10]line НСП 2% : 0.00 [13:51:10]line НСП 1% : 0.00 [13:51:10]line ИТОГИ РАСХОД [13:51:10]line Чеков: 0 [13:51:10]line Общий итог: 0.00 [13:51:10]line Итого наличными: 0.00 [13:51:10]line Итого безнал.: 0.00 [13:51:10]line НДС 0% : 0.00 [13:51:10]line НДС 12% : 0.00 [13:51:10]line НСП 0% : 0.00 [13:51:10]line НСП 1,50% : 0.00 [13:51:10]line НСП 0,50% : 0.00 [13:51:10]line НСП 5% : 0.00 [13:51:10]line НСП 3% : 0.00 [13:51:10]line НСП 2% : 0.00 [13:51:10]line НСП 1% : 0.00 [13:51:10]line ИТОГИ ВОЗВРАТ РАСХОДА [13:51:10]line Чеков: 0 [13:51:10]line Общий итог: 0.00 [13:51:10]line Итого наличными: 0.00 [13:51:10]line Итого безнал.: 0.00 [13:51:10]line НДС 0% : 0.00 [13:51:10]line НДС 12% : 0.00 [13:51:10]line НСП 0% : 0.00 [13:51:10]line НСП 1,50% : 0.00 [13:51:10]line НСП 0,50% : 0.00 [13:51:10]line НСП 5% : 0.00 [13:51:10]line НСП 3% : 0.00 [13:51:10]line НСП 2% : 0.00 [13:51:10]line НСП 1% : 0.00 [13:51:10]line Сумма внесений: 0.00 [13:51:10]line Сумма выплат: 0.00 [13:51:10]line Нал. в кассе: 13926.00 [13:51:10]line НС Приход: 7709104.99 [13:51:10]line НС Возвр.Прихода: 263637.00 [13:51:10]line НС Расход: 0.00 [13:51:10]line НС Возвр.Расхода: 0.00 [13:51:11]line ФД: 15311 [13:51:11]line ФМ: 0000000002094529 [13:51:11]line ФПД: 141892129566830 [13:51:11]written 0, free lines is 4095 [13:51:11]OFD Sender: Processing packet 15311 [packets to send 8, broken 7] [13:51:11]ProducePacketName [13:51:11]name=ofd_packets/00015311 [13:51:11]OFD Sender: To server: pG, [13:51:11]CommunicateWithHost lk.salyk.kg:30040 [13:51:11]ConnectInit lk.salyk.kg [13:51:11]Connected sock=11 [13:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 7B 05 00 00 DD E4 73 05 30 1C 5A 05 01 00 05 00 67 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 19 00 D0 A1 D0 B0 D1 80 D1 8B D0 BC D1 81 D0 B0 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 C7 93 C8 66 0E 04 04 00 66 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 10 8E 3D 70 04 03 00 D8 3F 15 72 04 03 00 38 4E 28 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 80 89 06 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 71 8B 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 Write to MH i2c: 03 01 01 00 00 00 00 2E 6D 31 04 5F 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F [13:51:12]04 04 00 00 00 00 00 B1 04 00 00 70 04 00 Write i2c OK [13:51:12]00 MH_I2C_Read... [13:51:12]72 Read from MH i2c: 04 01 00 [13:51:12]00 MH_I2C_Read... [13:51:12]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 Read from MH i2c: 00 01 00 07 EE 00 03 [13:51:12]09 MH_I2C_Read... [13:51:12]00 F2 03 Read from MH i2c: 01 01 00 07 01 00 F3 2E 03 31 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 00 03 00 09 00 00 00 BC F6 0B 03 2D 01 [13:51:12]00 RasterBufferAndPrint [13:51:12]01 line [13:51:12]F7 line [13:51:12]03 line [13:51:12]00 line [13:51:12]00 line [13:51:12]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 written 0, free lines is 3136 [13:51:12]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 MH_Cut [13:51:12]03 Write to MH i2c: 01 D1 00 01 04 00 F7 35 03 31 00 01 00 38 EF [13:51:12]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Write i2c OK [13:51:12]F6 MH_I2C_Read... [13:51:12]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 Read from MH i2c: F6 D1 03 [13:51:12]01 MH_I2C_Read... [13:51:12]00 Read from MH i2c: 02 D1 F7 01 03 00 00 [13:51:12]00 MH_I2C_Read... [13:51:12]EF 03 09 00 F6 03 01 00 Read from MH i2c: 03 D1 F7 01 03 00 00 35 00 31 EF 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 37 09 [13:51:12]00 Write to MH i2c: F6 01 03 00 01 00 00 36 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 31 03 67 09 [13:51:12]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 Write i2c OK [13:51:12]00 MH_I2C_Read... [13:51:12]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 CF 3B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 35 04 06 00 81 0C D5 FA B0 6E 71 49 99 44 74 A0 09 4E [13:51:12]*** Cut start [13:51:12]*** Partial cut [13:51:12]*** CUTSNS_PIN = 1 [13:51:12]*** CUTSNS_PIN = 0 [13:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 4F 00 00 00 A8 E2 47 00 15 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 10 04 04 00 CF 3B 00 00 F4 03 04 00 2E 3E *** Brake cut motor [13:51:13]C8 66 B6 04 01 00 00 74 85 15 0F 86 ED E5 32 [13:51:13]CommunicateWithHost err = 0 [13:51:13]CheckOFDResponse [13:51:13]1017 (14) - 77093643461234 [13:51:13]1041 (16) - 0000000002094529 [13:51:13]1040 (4) - 15311 [13:51:13]1012 (4) - 23.08.2024 07:45 [13:51:13]1206 (1) - 0 [13:51:13]OFD Sender: Remove packet 15311 [13:51:13]ProducePacketName [13:51:13]name=ofd_packets/00015311 [13:51:13]NVStorageDeleteData [13:51:13]Read from MH i2c: 01 [13:51:13]MH_I2C_Read... [13:51:13]*** Stop cut motor [13:51:13]*** Cut end [13:51:13]Read from MH i2c: 01 07 00 [13:51:13]MH_I2C_Read... [13:51:13]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 FF 0F 7C [13:51:13]process_action close_shift done [13:51:13]requested_data is exist [13:51:13]produce_requested_data [13:51:13]requested_item fd.num is exist - process it [13:51:13]SAM_PROTO_GetFieldsCounters [13:51:13]wFMCommunicate request_size=4 [13:51:13]MH_SAM_APDU [13:51:13]CAPDU: 80 13 00 00 [13:51:13]Write to MH i2c: E2 08 00 37 31 80 13 00 00 00 00 00 00 E4 [13:51:13]Write i2c OK [13:51:13]MH_I2C_Read... [13:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:13]Read from MH i2c: E2 [13:51:13]MH_I2C_Read... [13:51:13]Read from MH i2c: E2 62 00 [13:51:13]MH_I2C_Read... [13:51:13]Read from MH i2c: E2 62 00 37 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 35 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 32 37 38 34 10 04 04 00 CF 3B 00 00 0E 04 04 00 66 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 OFD Sender: No OFD packet to send [13:51:13]19 04 04 00 00 00 00 00 90 00 [13:51:13]wFMCommunicate OK [13:51:13]SAM_PROTO_GetFieldsCounters done [13:51:13]requested_item shift.num is exist - process it [13:51:13]requested_item shift.opened is exist - process it [13:51:13]req_shift_opened [13:51:13]FM_GetShiftState [13:51:13]SAM_PROTO_GetShiftState [13:51:13]wFMCommunicate request_size=4 [13:51:13]MH_SAM_APDU [13:51:13]CAPDU: 80 13 01 00 [13:51:13]Write to MH i2c: E2 08 00 38 31 80 13 01 00 00 00 00 00 E6 [13:51:13]Write i2c OK [13:51:13]MH_I2C_Read... [13:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:14]Read from MH i2c: E2 [13:51:14]MH_I2C_Read... [13:51:14]Read from MH i2c: E2 0E 00 [13:51:14]MH_I2C_Read... [13:51:14]Read from MH i2c: E2 0E 00 38 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F1 [13:51:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [13:51:14]wFMCommunicate OK [13:51:14]SAM_PROTO_GetShiftState done [13:51:14]FM_GetShiftState done [13:51:14]req_shift_opened done [13:51:14]requested_item shift.open_date is exist - process it [13:51:14]req_shift_open_date [13:51:14]FM_GetShiftState [13:51:14]SAM_PROTO_GetShiftState [13:51:14]wFMCommunicate request_size=4 [13:51:14]MH_SAM_APDU [13:51:14]CAPDU: 80 13 01 00 [13:51:14]Write to MH i2c: E2 08 00 39 31 80 13 01 00 00 00 00 00 E7 [13:51:14]Write i2c OK [13:51:14]MH_I2C_Read... [13:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:14]Read from MH i2c: E2 [13:51:14]MH_I2C_Read... [13:51:14]Read from MH i2c: E2 0E 00 [13:51:14]MH_I2C_Read... [13:51:14]Read from MH i2c: E2 0E 00 39 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [13:51:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [13:51:14]wFMCommunicate OK [13:51:14]SAM_PROTO_GetShiftState done [13:51:14]FM_GetShiftState done [13:51:14]req_shift_open_date done [13:51:14]produce_requested_data done [13:51:14]produce_requested_data return {"fd.num":15311,"shift.num":102,"shift.opened":0,"shift.open_date":0} [13:51:14]process_action_free close_shift [13:51:14]json_value_free [13:51:14]json_value_free done [13:51:14]process_json_proto returns [13:51:14]Send response to host [13:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":15311,"shift.num":102,"shift.opened":0,"shift.open_date":0}}} [13:51:14]free response buf [13:51:14]execute_script done [13:51:14]execute_script returns [13:51:14]free content buf [13:51:14]Sock 9.Close socket [13:51:14]Sock 9.Thread stoped [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send